2

How to display text in top-down languages (Japanese, Chinese, etc.) on iOS and Android?

For iOS, I've found this: https://github.com/novi/LTCoreText ... Any other alternative for iOS?

For Android, I cannot find any library/framework. Does anyone know?

Kara
  • 5,996
  • 16
  • 49
  • 56
ikevin8me
  • 4,173
  • 5
  • 39
  • 78

2 Answers2

1

You may use a custom view to draw text on it vertically, just like below screenshot, these are traditional Mongolian script.

public class DrawTextView extends View {

    @Override
    protected void onDraw(Canvas canvas) {

    .....
    }
}

enter image description here

Zephyr
  • 5,798
  • 33
  • 32
  • 1
    I would be very interested in seeing more of your source code for how you display traditional Mongolian. Have you done any more with this? The way I have done it is to do a rotation on canvas. – Suragch Dec 26 '14 at 02:08
-2

Simple answer: don't. Chinese and Japanese are only written top-down in traditional books. Computer applications and websites are written left-to-right, like European languages. See for example http://www.asahi.com/ (renowned Japanese newspaper) and http://xinhuanet.com/ (renowned Chinese news agency). Even modern books in China are printed left-to-right (in Japan not yet). The only script that I know that has to be printed top-down is the traditional Mongolian script - and that doesn't matter because Mongolian is written using the Cyrillic alphabet now.

Sprachprofi
  • 1,154
  • 10
  • 24
  • 1
    Apps which display Chinese/Japanese top-down exists. We need to develop an app to publish e-Books, to mimic the feel of those printed books which are written top-down. – ikevin8me Apr 10 '12 at 08:01
  • 1
    Traditional Mongolian script is still used in Inner Mongolia. – Suragch Dec 26 '14 at 02:03