FS#10882 - RTL aware WPS
Opened by Tomer Shalev (tomers) - Sunday, 27 December 2009, 21:02 GMT
Last edited by Jonathan Gordon (jdgordon) - Thursday, 07 January 2010, 07:57 GMT
This patch extends the WPS specification to include new directives that are sensitive to the direction of the language - either Left-to-Right or Right-to-Left.
'aL' - Align Left RTL - Will align left when the language is set to any LTR language, but will align to right on RTL language
'aR' - Opposite of 'aL', It aligns to right normally, or aligns to left on RTL language.
For viewport and album-art directives, there is a new optional 's' flag as a prefix to the X coordinate. It will horizontally mirror the location of the item. E.g.:
Configuring a viewport of size (100, 50) in location (10, 5) is done in the following way:
This will result in the item showing as expected in any LTR language, but when RTL language is set, it will result (assuming LCD screen with dimensions of 320x240) in the viewport being set at location (210, 5), with the same width and height.
The patch includes calling to settings_apply_skins() on language load that causes the WPS file to be re-parsed, in order to recalculate the WPS's dimensions.
This patch includes a modified WPS file for only Cowon D2. All other relevant Cabbie v2 files should also be modified.
Please see attached screenshot to see how it looks like.
Thursday, 07 January 2010, 07:57 GMT
Reason for closing: Accepted