home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Feature Requests
Adding support for Right-to-left languages (Hebrew, Arabic...)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1106534" data-attributes="member: 48495"><p>I've started the C# implementation, based on the full unicode table (taken from your link<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" />).</p><p></p><p>I now try to convert your python code (never used python before, so it's not that easy).</p><p></p><p>The first thing which might problematic is the initialization of the rtl start to fixed 1000:</p><p>[CODE=WinBatch] # initial settings</p><p> if self.lang_is_rtl:</p><p> x = 1000 # right bound of texture</p><p> dir = -1</p><p>[/CODE]</p><p>Shouldn't the start index be based on the actual string length (and its size)? As far as I understand our text rendering, it's based on collection of "rects" for each character to be rendered. The coordinates point to the characters bitmap (texture).</p><p></p><p>The later positioning of the constructed text (left or right aligned) is subject of the containing control.</p><p></p><p>Do you think this works without fixed "1000" as start?</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1106534, member: 48495"] I've started the C# implementation, based on the full unicode table (taken from your link(y)). I now try to convert your python code (never used python before, so it's not that easy). The first thing which might problematic is the initialization of the rtl start to fixed 1000: [CODE=WinBatch] # initial settings if self.lang_is_rtl: x = 1000 # right bound of texture dir = -1 [/CODE] Shouldn't the start index be based on the actual string length (and its size)? As far as I understand our text rendering, it's based on collection of "rects" for each character to be rendered. The coordinates point to the characters bitmap (texture). The later positioning of the constructed text (left or right aligned) is subject of the containing control. Do you think this works without fixed "1000" as start? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Feature Requests
Adding support for Right-to-left languages (Hebrew, Arabic...)
Contact us
RSS
Top
Bottom