[Bf-committers] How & When could we support right-to-left languages?

Ton Roosendaal ton at blender.org
Thu Sep 15 20:08:16 CEST 2011


Hi,

Here's UI drawing with negated matrix:
http://www.blender.org/bf/blah.png

source/blender/editors/interface.c, uiDrawBlock(), swap first two args  
in wmOrtho2().

Unfortunately a lot of other issues happen still... previews, icons,  
histograms and so on. All pixeldrawing goes L->R...

-Ton-

------------------------------------------------------------------------
Ton Roosendaal  Blender Foundation   ton at blender.org    www.blender.org
Blender Institute   Entrepotdok 57A  1018AD Amsterdam   The Netherlands

On 15 Sep, 2011, at 19:27, Steve Obbayi wrote:

> Looks like there's going to be some intense work needed here. I have  
> quite a bit of free time
> over the next few weeks so I will probably use a lot of it getting  
> up to speed in the UI code
> And by the way, the numbers in Arabic follow the L->R English format.
>
> Steve
>
> ----- "Ton Roosendaal" <ton at blender.org> wrote:
>
>> Hi,
>>
>> Some pointers for people who like to dive into it:
>>
>> Issue 1: typing text in buttons
>>
>> source/blender/editors/interface/interface_handlers.c
>> functions called ui_textedit_...
>>
>> It's all hardcoded to typing L->R now. Selecting, arrow keys same.
>>
>> Issue 2:
>> Are numbers typed reverse too? I guess, but they don't draw reverse
>> right?
>>
>> Issue 3:
>> Filepaths... is this reversed?
>>
>> Issue 4:
>> Text drawing in buttons, there's alignment code hardcoded... needs to
>>
>> be flippable.
>> Same for truncating rules of strings in Blender.
>>
>> Issue 5:
>> Click in text button has very nasty code to detect which character is
>>
>> found.
>>
>> Issue 6:
>> Is increment/decrement button clicks the same still? Same for gesture
>>
>> (left = lower, right is higher value).
>>
>> All in all, it'll needs someone with quite some time figuring out our
>>
>> UI code. It's unfortunately wrapped old sorta 90ies stuff here still.
>>
>> Might be only possible by cleaning and structuring code partially.
>>
>> -Ton-
>>
>> ------------------------------------------------------------------------
>> Ton Roosendaal  Blender Foundation   ton at blender.org
>> www.blender.org
>> Blender Institute   Entrepotdok 57A  1018AD Amsterdam   The
>> Netherlands
>>
>> On 15 Sep, 2011, at 17:33, xiangquan xiao wrote:
>>
>>> After congcong made an advertisement about garlic in the blender-
>>> nations,
>>> more and more volunteers come to contribute to the translation
>>> program.
>>> However, Hebrew and Persian(Farsi) as well as Arabic are written
>>> from right
>>> to left. We have disscussed this issue not long ago, but it seems a
>>
>>> little more
>>> urgent than I ever thought.
>>>
>>> Is there somebody working for this? Or at least any plan?
>>> I'd like to help on this, but I'm totally unfamiliar with these
>>> languages,
>>> as well as the text rendering process :(
>>>
>>> Regards!
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list