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

Yousef Hurfoush bat3a at msn.com
Fri Sep 16 00:10:16 CEST 2011




in case you are not getting the picture in the email:

http://www.pasteall.org/pic/17985

> From: dfelinto at gmail.com
> Date: Thu, 15 Sep 2011 14:51:39 -0700
> To: bf-committers at blender.org
> Subject: Re: [Bf-committers] How & When could we support right-to-left	languages?
> 
> Hi,
> 
> While we are in the fun experiments department I built Blender with a
> patched ar.po: http://blenderecia.orgfree.com/blender/tmp/arabic.jpg
> 
> patch:
> http://blenderecia.orgfree.com/blender/tmp/arabic_flipped.patch
> flipping script:
> http://blenderecia.orgfree.com/blender/scripts/flip_po.py
> 
> And by flipping I mean to reverse the text order, not to mirror it
> horizontally.
> 
> I wonder how readable that is :)
> --
> Dalai
> 
> PS.: in garlic RNA_types_init_gettext is being called only by blenderplayer
> and the function doesn't exist (we have only the header in RNA_access.h).
> Can that be completely removed? Otherwise it doesn't build blenderplayer.
> 
> 2011/9/15 Ton Roosendaal <ton at blender.org>
> 
> > 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
> >
> > _______________________________________________
> > 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