rence.html#//apple_ref/doc/c_ref/NSWritingDirectionįinally, another (arguably less elegant) solution would be to assume that if the user chooses the Arial Hebrew font cards, then the user wants the cards to be set to RTL. If you have access to something like a UITextInput or NSParagraphStyle, these are examples of classes that implement methods like -baseWritingDirection to access a NSWritingDirection object that would tell you whether to set the RTL attribute in the HTML: If you're using a UILabel, then it might be possible to look at the NSString text and see whether it has invisible RTL markers as described here: Clearly, the label you are using recognizes the string as RTL because it renders correctly in the card list view. The question then becomes how you would know when to add the dir="RTL" attribute to the HTML you display on the flashcard. There's a really good explanation of bidirectional languages (like Hebrew and Arabic) in this article: My understanding is that UIWebViews support the dir="RTL" attribute for most tags including. I realize that this bug is probably super-low on your priority list, but if you ever want to try to fix it, I have a couple suggestions. Interesting! Thanks for your fast and thoughtful reply. If there's any way to fix that, then I think it really would be perfect. But when you have Hebrew with punctuation, the punctuation shows up on the wrong side of the word.įor example: ?מה (What?) looks like ?מה in the list (letters in correct RTL order and with the question mark correctly to the left of the word), but it looks like מה? on the card (letters in the correct order but with the question mark incorrectly to the right of the word). This doesn't cause any problems for pure Hebrew words, because even Hebrew shown in LTR mode will still have the letters appear in the correct right-to-left order. In Flashcards Deluxe, the Hebrew side appears correctly RTL when viewing in the List mode, but when in Card mode, it displays the text as LTR. In Google Spreadsheets, my second column for Hebrew is typed using RTL mode. I have one request regarding respecting Right-to-Left (RTL) mode in the imported cards. Hi, Ernie! This program is just about perfect for me for studying Hebrew vocabulary! I really like the drawing mode that lets me practice writing the words in script and then flipping the cards over to check my answers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |