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

Kent Mein mein at cs.umn.edu
Thu Sep 15 18:21:23 CEST 2011


In reply to Steve Obbayi (steve at sobbayi.com):

> Date: Thu, 15 Sep 2011 18:58:11 +0300 (EAT)
> From: Steve Obbayi <steve at sobbayi.com>
> To: bf-blender developers <bf-committers at blender.org>
> Subject: Re: [Bf-committers] How & When could we support right-to-left
>  languages?
> Reply-To: bf-blender developers <bf-committers at blender.org>
> 
> I am also not sure on the progress on this, I have some knowledge of Arabic, although
> not my first language. I would also like to get my hands dirty on this. Any pointers on where to pick up
> will be much appreciated.
> 
> Steve

As I see it breaking things down should be like this:
do some google searches for: gettext bidi  
Read up on issues and how people are doing it.

Then we have two things we need to deal with:
	truncating strings
	justifcation

For truncating strings, look at: 
source/blender/blenfont/intern/blf_font.c  (function blf_font_draw)
	notice the len property, you'll need to rewrite this
	and other functions so if bidi then
	grab the string starting from the other end...

The justifcation is probably a little more complex but same sort of deal...

Kent

> 
> ----- "xiangquan xiao" <xiaoxiangquan at gmail.com> 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
> 

-- 
mein at cs.umn.edu
http://www.cs.umn.edu/~mein


More information about the Bf-committers mailing list