[Typo3-dev] GIFBUILDER Right-To-Left capability on TEXT properties

Kasper Skårhøj kasper2005 at typo3.com
Mon Apr 4 11:28:25 CEST 2005


I can come to think of another issue: Mixing arabic/hebrew with english
(ASCII) text will not be possible then because then the english words
will be inverted...

Try to check if the freetype library has some plans for implementation
of RTL. Maybe the issue can be solved on that level.

- kasper



On Fri, 2005-04-01 at 19:32, Jesús H0rmigo wrote:
> Dear Joey,
> 
> Thank you a lot for the hint. This did the re-order of the fonts as you 
> expected. Now they are on the correct possition.
> 
> This function is as well available on example_callfunction.php inside 
> the directory media/scripts so I picked it from there.
> 
> The only issue remaining is that for example in Arabic (I am not arabic 
> and can't read Arabic as well) the fonts layout change depending on 
> which is the font they have near to it. I guess an Arabic reader would 
> be able now to understand that, but the connection between fonts is not 
> properly done.
> 
> I guess for example in HEBREW there is not connection between the fonts 
> and they are just displayed RTL, but Arabic is a bit different.
> 
> Now I am looking if this can be done by IM (I guess that no as I saw in 
> a few forums), and if not then I will check if there is any function 
> that can check which are the fonts near the other and re-assing the font 
> to connect properly to the next one.
> 
> Thank you a lot for your help. Once I have all this information compiled 
> I will post a FAQ for this topic.
> 
> Any help will be very welcome.
> 
> Thank you a lot,
> 
> Jesús H.
> 
> 
> JoH wrote:
> >>I've asked in the main english list about Right-To-Left capabilities
> >>and if it possible to do RTL text with GIFBUILDER (i.e.: Arabic).
> >>
> >>Nobody has replied and I guess it is because it is not possible by
> >>now. I've checked intensively TSRef and other sources but couldn't
> >>find anything similar that could help me to archieve this.
> > 
> > 
> > If I got you right, the letters are displayed in the correct order but from
> > left to right instead of right to left.
> > Since all GIFBUILDER objects have the same properties the following will
> > apply to GMENUs as well:
> > 
> > If you have something like this
> > 
> > 10 = TEXT
> > 10.text.field = title
> > 
> > you can use stdWrap properties on TEXT.text like this:
> > 
> > Write a small PHP-function to flip the text direction.
> > Save it in a file text_rearranger.php (usually in media/scripts/).
> > 
> > includeLibs.something = media/scripts/text_rearranger.php
> > 
> > 10 = TEXT
> > 10.text.field = title
> > 10.text.preUserFunc = right_to_left_function_name
> > 
> > Then your function will rearrange the text before it is used in the
> > GIFBUILDER.
> > 
> > Joey
> > 
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
-- 
- kasper

*******************
Happy new year! - My email address is now: 

		kasper2005 at typo3.com 







More information about the TYPO3-dev mailing list