PDA

View Full Version : New Language example



rombust
07-21-2011, 08:26 AM
A simple example of how to use different languages in the same application (by the use of xml files)

ClanLib 2.3 SVN (Examples/Display_Text/Language)

It displays "Today is a good day." in english, chinese (simplified) and arabic.

For arabic, you require "fribidi" ( http://fribidi.org/ ).

The aim, if anyone wants to accept the challenge, is to write a bidi converter for clanlib (i.e. CL_StringHelp::bidi_reorder).

See - http://www.unicode.org/reports/tr9/

http://esoteric.clanlib.org/~rombust/ReleaseImages/language.png

rombust
07-21-2011, 10:56 AM
fribidi precompiled download is now available on http://clanlib.org/wiki/ExternalLibraries

sphair
07-21-2011, 01:28 PM
Nice work :)

rombust
07-21-2011, 02:17 PM
Thanks :)