[opensource-dev] Problem with displaying Arabic menu text in SL client

2010-10-05 Thread izze euler

Hi,

I have been looking to get Arabic text working on the SL client, but so far 
with no luck. I am only looking to display Arabic for menus and text on the 
client.

What I have found is that the Arabic text is being displayed left-to-right, 
rather than right-to-left. I have added a language to SL, so I have the Arabic 
translations in UTF8 format in XML files, as with the other languages such as 
Chinese.

I used Notepad++ to copy the translations to the XML files, and they are 
displayed right-to-left correctly. However, when loaded into the SL client, the 
text is being reversed so that it reads left-to-right.

I have tried reversing the text, so that it displays left-to-right in the XML 
file, in the hope that it will then be reversed and display right-to-left in 
the client. I cannot read or write Arabic, but I have been told that the 
characters are displayed disjoint, most likely due to the wrong ordering of the 
characters breaking associations between them in the XML file.

Has anyone looked into this problem, or have any ideas to what I could try? 
Does anyone have this working?

Kind Regards,
Izze

  ___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Re: [opensource-dev] Problem with displaying Arabic menu text in SL client

2010-10-05 Thread izze euler

Are you able to give an example on how to use this character within an XML file?

Izze

From: syt...@gmail.com
Date: Tue, 5 Oct 2010 12:38:44 +0200
Subject: Re: [opensource-dev] Problem with displaying Arabic menu text in SL 
client
To: slli...@boroon.dasgupta.ch
CC: iz...@hotmail.co.uk; opensource-dev@lists.secondlife.com

U+200F
Reverse direction
Notes:- Microsoft have a bug, this char don't work sometimes (msoffice 2011 for 
Mac affected too)

- parser work left2right put the char on left side of each entry in all XML 
files

-- Sent by iPhone 
Il giorno 05/ott/2010, alle ore 12:19, Boroondas Gupte 
 ha scritto:




Hi Izze



On 10/05/2010 10:31 AM, izze euler wrote:

  ___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Re: [opensource-dev] Problem with displaying Arabic menu text in SL client

2010-10-07 Thread izze euler

Would it be possible to create images containing the arabic text and displaying 
those instead of processing through Second Life's text engine?

Izze

Date: Tue, 5 Oct 2010 09:30:58 -0700
From: j...@lindenlab.com
To: opensource-dev@lists.secondlife.com
Subject: Re: [opensource-dev] Problem with displaying Arabic menu text in SL
client


On Tue, Oct 5, 2010 at 4:32 AM, izze euler  wrote:






Are you able to give an example on how to use this character within an XML file?

Using that character won't have any effect. As Boroondas mentioned, Second 
Life's text engine is pretty basic and simply doesn't support:Right-to-Left 
scripts - typically this functionality is called "BiDi" since the  direction 
actually changes within text strings for numbers, foreign words, etc.
Contextual shaping (think: ligatures as a mandatory language feature) Combining 
characters/diacritics* (think: characters merge into single glyphs)
Complex word breaking (for languages that don't use spaces)This is a big task, 
and (as Boroondas also mentioned) is probably best tackled by a thorough 
overhaul/replacement of SL's text rendering engine as Alissa Sabre attempted.

Additionally, if we're talking about a localized version of the UI and not just 
rendering text content correctly, you'd also want to flip the X coordinates for 
some (but not all) UI layout if the app was running with a UI language that was 
RTL, which would require changes to the XUI engine and some of the controls. 
(Since, ideally you don't have to touch all of the control rects in all of the 
XUI files)

-- Josh
* I look forward to the day when someone writes a text engine that handles the 
character combining logic for classical Mayan. 


___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges  
  ___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges