Questions tagged [mongolian-vertical-script]

For issues related to the display and rendering of vertical Mongolian text

Traditional Mongolian script is written from top to bottom and in columns from left to write.

enter image description here

This presents a unique challenge when trying to display text on systems only designed to support left-to-right and right-to-left horizontal text. It is even different than when Chinese or Japanese are written vertically because the Mongolian font glyphs are stored horizontally and must be rotated 90 degrees clockwise.

The letters of traditional Mongolian script also change form based on there position in the word and surrounding context. Thus, there are also various Unicode and rendering issues.

Questions that contain this tag can thus be related to the following programmatic issues specific to Mongolian Vertical Script:

  • Top-to-bottom text direction with left-to-right column text wrapping
  • Unicode rendering
16 questions
73
votes
2 answers

Working with Unicode code points in Swift

If you are not interested in the details of Mongolian but just want a quick answer about using and converting Unicode values in Swift, then skip down to the first part of the accepted answer. Background I want to render Unicode text for traditional…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
46
votes
2 answers

How do you make a vertical text UILabel and UITextView for iOS in Swift?

If you came to this question based on the title but are not interested in Mongolian, you might be looking for this Q&A instead: Swift: How can you rotate text for UIButton and UILabel? I've been learning Swift in order to develop iOS apps for…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
37
votes
6 answers

Vertical Text widget for Flutter

The TextDirection docs say: Flutter is designed to address the needs of applications written in any of the world's currently-used languages, whether they use a right-to-left or left-to-right writing direction. Flutter does not support other…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
35
votes
8 answers

Disable EditText context menu

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
25
votes
5 answers

UITableView with variable cell height: Working in IB but not programmatically

TL;DR My programmatically created table view cells are not resizing according to the intrinsic content height of their custom views, even though I am using UITableViewAutomaticDimension and setting both the top and bottom constraints. The problem…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
19
votes
5 answers

Custom rotated EditText view with working selection, cursor location, etc

What I want to do I want to make a rotated and flipped EditText view that has all of the properties of a normal EditText view. My problem I have successfully made (with much help from SO users) a custom EditText view that is both rotated and…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
16
votes
1 answer

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

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
11
votes
2 answers

UITextView's content getting misplaced with extra space after resizing

Background and description of the problem I made a vertical text view to be used with Mongolian. It is a custom text view that is made of three layers of views: a child UITextView, a container view (which is rotated 90 degrees and flipped) to hold…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
10
votes
4 answers

Custom font displays in IB but not in simulator

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
7
votes
1 answer

How to make a traditional Mongolian script TextView in Android

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
4
votes
1 answer

How to make a traditional Mongolian script ListView in Android

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
2
votes
1 answer

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

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
2
votes
1 answer

Resizing rotated child view in custom ViewGroup subclass

Background I have a custom ViewGroup subclass that rotates and mirrors its child view. The purpose for this is to correctly display traditional Mongolian text. I could put anything is this ViewGroup, but for my current project I am putting an…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
1
vote
1 answer

How can I make vertical-lr traditional Mongolian texts dispaly correctly on iOS broswers?

With the writing-mode set to be vertical-lr, a text box containing traditional Mongolian doesn't display correctly on iOS as shown in the first part of the first figure below. If the writing-mode is horizontal-tb, the text displays just fine. How…
Frank
  • 150
  • 6
1
vote
1 answer

Slow load time for custom UIView in Swift

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
1
2