Merge lp://staging/~mabkenar/ubuntu-keyboard/add-persian-layout into lp://staging/ubuntu-keyboard
Status: | Merged |
---|---|
Approved by: | Michael Sheldon |
Approved revision: | 526 |
Merged at revision: | 545 |
Proposed branch: | lp://staging/~mabkenar/ubuntu-keyboard/add-persian-layout |
Merge into: | lp://staging/ubuntu-keyboard |
Diff against target: |
690 lines (+589/-0) 14 files modified
debian/control (+10/-0) debian/ubuntu-keyboard-persian.install (+1/-0) plugins/fa/fa.pro (+9/-0) plugins/fa/qml/Keyboard_fa.qml (+93/-0) plugins/fa/qml/Keyboard_fa_email.qml (+93/-0) plugins/fa/qml/Keyboard_fa_url.qml (+92/-0) plugins/fa/qml/Keyboard_fa_url_search.qml (+94/-0) plugins/fa/qml/Keyboard_symbols_fa.qml (+96/-0) plugins/fa/qml/qml.pro (+21/-0) plugins/fa/src/persianplugin.h (+25/-0) plugins/fa/src/persianplugin.json (+7/-0) plugins/fa/src/src.pro (+46/-0) plugins/plugins.pro (+1/-0) qml/keys/languages.js (+1/-0) |
To merge this branch: | bzr merge lp://staging/~mabkenar/ubuntu-keyboard/add-persian-layout |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | packaging | Approve | |
Michael Sheldon (community) | Approve | ||
Review via email: mp+314532@code.staging.launchpad.net |
Commit message
Persian layout
Description of the change
This is a Persian layout (fa_IR) for ubuntu-keyboard. This layout is a bit more complicated than most existing layouts because it has a dedicated symbols keyboard that contains Persian-specific symbols, and is defined in 'plugins/
A dedicated symbols keyboard is essential for Persian since many of the punctuation and numeric characters are different from other Latin scripts. For example, Persian has different question mark, comma, decimal separator, and thousands separator (just to name a few) and all of these characters should be included in the symbols keyboard. Android (version 5 and later) also follows the same approach and have a special symbols keyboard for Persian. However, the proposed Persian layout here fixes some of the shortcomings of the Persian layout in Android [1].
Another specialty of this layout is the inclusion of invisible characters necessary for typesetting Persian text, ZWNJ (U+200C) and ZWJ (U+200D). These keys have a different label than what they actually insert into the text, thanks to the property 'valueToSubmit' of CharKey{} object.
For more information about the design process, please refer to my blog [2].
[1] http://
[2] https:/
I should probably also mention that this is a perfectly working patch. I can successfully compile this branch and use it on my own Nexus 4.