mongolian-vertical-script

Slow load time for custom UIView in Swift

大兔子大兔子 提交于 2020-01-05 09:35:19
问题 Background In order to make a text view that scrolls horizontally for vertical Mongolian script, I made a custom UIView subclass. The class takes a UITextView , puts it in a UIView , rotates and flips that view, and then puts that view in a parent UIView . The purpose for the rotation and flipping is so that the text will be vertical and so that line wrapping will work right. The purpose of sticking everything in a parent UIView is so that Auto layout will work in a storyboard. (See more

Slow load time for custom UIView in Swift

烈酒焚心 提交于 2020-01-05 09:34:14
问题 Background In order to make a text view that scrolls horizontally for vertical Mongolian script, I made a custom UIView subclass. The class takes a UITextView , puts it in a UIView , rotates and flips that view, and then puts that view in a parent UIView . The purpose for the rotation and flipping is so that the text will be vertical and so that line wrapping will work right. The purpose of sticking everything in a parent UIView is so that Auto layout will work in a storyboard. (See more

Custom font displays in IB but not in simulator

强颜欢笑 提交于 2019-12-23 07:26:14
问题 I have set up a UITextView and a UILabel to use a custom font. (It is a vertically mirrored Mongolian font, but I also included English text so that you can see the effect.) The words display in the Interface Builder, but in the simulator most of the characters in the UITextView are just empty boxes. Strangely, in the characters in the UILabel do display correctly in the simulator. How do I get them to display in the UITextView as well? Notes: I am using Xcode version 6.3.2. From this SO Q&A

How to make a vertical UITextView by subclassing it from UIScrollView in Swift?

烂漫一生 提交于 2019-12-18 12:52:44
问题 Background I'm new to iOS development, but in order start making even the most rudimentary apps using the vertical Mongolian script, I need to have a vertical UITextView . I haven't found any other Mongolian app developers sharing their code so I am trying to make it myself. Mongolian is written from top to bottom and lines wrap from left to right as is illustrated in the following graphic: Scrolling should be horizontal (left to right). In a previous question I proposed a combination of a

How to make a traditional Mongolian script TextView in Android

我怕爱的太早我们不能终老 提交于 2019-12-18 04:15:12
问题 How do you make vertical (with left-to-right line wrapping) Mongolian script TextViews for Android apps? Background Android has fairly good support for many of the world's languages, even RTL languages like Arabic and Hebrew. However, there is no built in support for top-to-bottom languages like traditional Mongolian (which is still very much alive in Inner Mongolia and not to be confused with Cyrillic Mongolian). The following graphic shows the text direction with English added for clarity.

Disable EditText context menu

人走茶凉 提交于 2019-12-17 06:15:16
问题 I am making a vertical EditText for traditional Mongolian. I have successfully implemented it by embedding a slightly modified EditText inside of a rotated ViewGroup . I need to create a completely custom context menu because the system one does not support vertical text and is also not rotated when the ViewGroup is rotated. So I want to disable the system context menu altogether. Note that this is different than these questions that are just trying to disable copy/paste/etc.: How to disable

Disable EditText context menu

╄→гoц情女王★ 提交于 2019-12-17 06:15:16
问题 I am making a vertical EditText for traditional Mongolian. I have successfully implemented it by embedding a slightly modified EditText inside of a rotated ViewGroup . I need to create a completely custom context menu because the system one does not support vertical text and is also not rotated when the ViewGroup is rotated. So I want to disable the system context menu altogether. Note that this is different than these questions that are just trying to disable copy/paste/etc.: How to disable

How to make a traditional Mongolian script ListView in Android

若如初见. 提交于 2019-12-12 15:25:40
问题 How do you make a horizontally scrolling ListView for vertical Mongolian script in Android apps? Background Android has fairly good support for many of the world's languages, even RTL languages like Arabic and Hebrew. However, there is no built in support for top-to-bottom languages like traditional Mongolian (which is still very much alive in Inner Mongolia and not to be confused with Cyrillic Mongolian). The following graphic shows the text direction with English added for clarity. Since

Set composing text on an EditText from a custom keyboard in Android

旧巷老猫 提交于 2019-12-02 04:46:20
问题 Explanation of what I am trying to do I'm making a custom in-app keyboard that works on the same principle of this example. However, in my keyboard I'm using popup windows to display extra letter forms. In traditional Mongolian letters have different forms depending on if they are located at the beginning, middle, or end of a word. Usually these can be determined from the context, but sometimes a user needs to choose an alternate form explicitly from the popup key candidates. Lets say that a

Supporting complex text layout with OpenType fonts in Android

牧云@^-^@ 提交于 2019-11-28 00:35:05
What I would like I would like to put an OpenType font in my assets folder and use Typeface.createFromAsset to render Unicode text in my Android application for a language that uses complex text layout (CTL) . Background I want to do this for traditional Mongolian script , but it is the same issue (so I hear) for other languages like Thai, Arabic, Indic languages, and many minority languages. An OpenType font already includes the information necessary to properly display the text. The problem is that not all software supports OpenType rendering. Some do , but others don't. From what I can