2014-02-19, 21:45
UPDATE: This was mainly fix in PR5008, for more details see ticket 15382
With @vkosh PR4242 I would like to request a few changes for better RTL support (Arabic, Hebrew, Farsi) in Virtual Keyboard.
Currently the virtual keyboard isn't aware of RTL scripts and just order the text string from the left to the right no matter what.
Better RTL handling in Virtual Keyboard should touch:
* The line identation (to the right or the left).
should be decided by the first character (unless it's a number), this is how it done for example in Gmail, although in Virtual Keyboard maybe it's best just to center the line.
* Words order in the line, it should be the same as the line identation (unless the line is centered).
* Letter order depend on the script used, when a word with a mix of characters from RTL and LTR scripts then the word is divided to sub-strings each with its characters sorted differentely (so the Latin character and numbers will be sorted LTR and the Hebrew ones RTL).
* A capital letter is used for a new line in English, this introducing an issue with Hebrew, even if the language is set as Hebrew the first character will automatically will be English cap as the caps in Hebrew keyboard layout are the Latin caps (very handy when writing a mixed Hebrew and English line, no need to change language, just press shift or caps).
So this is needed to be addressed as an exception (set externally in the DialogKeyboard.xml so it can be adapted for other languages).
* If the Virtual Keyboard is used with a text box larger than one line then we need a control (and maybe a button) for manually changing the line identation (although it can auto recognized by the first character) as we can't assume the line will be centered.
The usuall SHIFT+CTL hotkey should be mapped to this control.
This one is more related to some plugins like Forum Browser and not the general use of XBMC.
With @vkosh PR4242 I would like to request a few changes for better RTL support (Arabic, Hebrew, Farsi) in Virtual Keyboard.
Currently the virtual keyboard isn't aware of RTL scripts and just order the text string from the left to the right no matter what.
Better RTL handling in Virtual Keyboard should touch:
* The line identation (to the right or the left).
should be decided by the first character (unless it's a number), this is how it done for example in Gmail, although in Virtual Keyboard maybe it's best just to center the line.
* Words order in the line, it should be the same as the line identation (unless the line is centered).
* Letter order depend on the script used, when a word with a mix of characters from RTL and LTR scripts then the word is divided to sub-strings each with its characters sorted differentely (so the Latin character and numbers will be sorted LTR and the Hebrew ones RTL).
* A capital letter is used for a new line in English, this introducing an issue with Hebrew, even if the language is set as Hebrew the first character will automatically will be English cap as the caps in Hebrew keyboard layout are the Latin caps (very handy when writing a mixed Hebrew and English line, no need to change language, just press shift or caps).
So this is needed to be addressed as an exception (set externally in the DialogKeyboard.xml so it can be adapted for other languages).
* If the Virtual Keyboard is used with a text box larger than one line then we need a control (and maybe a button) for manually changing the line identation (although it can auto recognized by the first character) as we can't assume the line will be centered.
The usuall SHIFT+CTL hotkey should be mapped to this control.
This one is more related to some plugins like Forum Browser and not the general use of XBMC.