In iOS 8 Apple added in Core Text the Ruby Annotation, or the possibility to inject some character above the main text. This is very useful if you develop apps that shows Chinese or japanese text, writing that use this annotation.
Up to iOS 10.3, is was simple use this feature: it was necessary only create an attributedText that was using the ruby annotation and pass the attributed text to the label and, that's it! in Apple way, (or very simple) you can show some text with ruby annotation with all the features of auto layout of UILabel.
It was just missing the ability to put the text vertically and the UILabel was perfect.
From iOS 11.0 this feature doesn't work! Why? "An Apple engineer had not documented the feature", Suggestion:"Create a label yourself that displays the Ruby annotation" (Apple's answer from Apple Bug Report).
In internet there are some code to show ruby annotation but if the string is long the view or label doesn't become bigger an trunk the string. the scaling text, doesn't work. This is because you have to override the draw method and use Core Text to draw the text.
I am trying over and over again to create a label that allows you to view text with the ruby annotation, but I have major difficulties: Core Text is no longer updated and many of the documentation pages are empty and without documentation. what little code there is is in objective C. There are no alternatives for displaying ruby-annotated text horizontally or vertically. TextKit doesn't talk about displaying text like that. My application is a Japanese language dictionary, so the ruby annotation is very important !!!!
Is it possible that there isn't a definitive solution? is it possible that Apple can't add this feature because the engineer doesn't write the documentation to the feature that write?
Is possible that an Engineer doesn't write documentation about a feature and for this reason the feature is removed ?
Any Apple Engineer can help me to solve this problem?
Thank you
Up to iOS 10.3, is was simple use this feature: it was necessary only create an attributedText that was using the ruby annotation and pass the attributed text to the label and, that's it! in Apple way, (or very simple) you can show some text with ruby annotation with all the features of auto layout of UILabel.
It was just missing the ability to put the text vertically and the UILabel was perfect.
From iOS 11.0 this feature doesn't work! Why? "An Apple engineer had not documented the feature", Suggestion:"Create a label yourself that displays the Ruby annotation" (Apple's answer from Apple Bug Report).
In internet there are some code to show ruby annotation but if the string is long the view or label doesn't become bigger an trunk the string. the scaling text, doesn't work. This is because you have to override the draw method and use Core Text to draw the text.
I am trying over and over again to create a label that allows you to view text with the ruby annotation, but I have major difficulties: Core Text is no longer updated and many of the documentation pages are empty and without documentation. what little code there is is in objective C. There are no alternatives for displaying ruby-annotated text horizontally or vertically. TextKit doesn't talk about displaying text like that. My application is a Japanese language dictionary, so the ruby annotation is very important !!!!
Is it possible that there isn't a definitive solution? is it possible that Apple can't add this feature because the engineer doesn't write the documentation to the feature that write?
Is possible that an Engineer doesn't write documentation about a feature and for this reason the feature is removed ?
Any Apple Engineer can help me to solve this problem?
Thank you