3

Is there a user control (standard or third-party) for iOS that allows to display vertical text of East Asian languages? I also need to display a ruby characters (furigana/reading aid) near the text. Result should look like this http://img23.imageshack.us/img23/3262/img0088xa.jpg (japanese iBooks screenshot)

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
kallax
  • 353
  • 1
  • 2
  • 11

1 Answers1

2

At this time you will need Core Text or a view using Core Text. Github search fails but googling in Japanese wins. http://cocoadays-info.blogspot.jp/2012/01/coretexttextview-lccoretext.html Blog article in Japanese on this https://github.com/novi/LTCoreText

Should do the trick.

Too bad github search doesn't find it.

Google translate may or may not help. I've forked it just now and will translate the read me soon.

Also found https://github.com/hokuron/CTRVerticalTextView Though it seems fairly unfinished and it's owner's blog seems down. A Japanese site has this nifty page of bookmarks on the topic. http://b.hatena.ne.jp/Watson/iOS/CoreText/

uchuugaka
  • 12,679
  • 6
  • 37
  • 55
  • Project code is pretty clean and intelligible. (thanks Cocoa!) – uchuugaka Mar 31 '13 at 03:16
  • Thanks, I'll try these projects right now. Sorry for late answer. – kallax Mar 31 '13 at 16:46
  • No worries. I was curious myself. And very interested to learn more on this implementation. – uchuugaka Mar 31 '13 at 21:56
  • Okay, I've checked both projects and ready to give response. In short: LTCoreText looks very heavy for me. It depends on DTCoreText, which also needs DTFoundation. But in comparison with CTRVerticalTextView, LTCoreText doesn't have any advantages for my tasks. I don't need multi-column layout, HTML-markup and inline images displaying. So I think that I should learn more about CoreText and make something like CTRVerticalTextView by myself. Thanks for directing me to this. – kallax Mar 31 '13 at 22:36
  • Sounds reasonable. These may be helpful references when you get into the thick of it. Managing Core Text layout can get painful quickly. In this case, handling font substitution for glyphs that are not in the font in use is one of the points I do not yet know if Core Text handles. Anway, hope this is of some use. – uchuugaka Apr 01 '13 at 05:32