From: Rafael L. <rla...@us...> - 2005-03-08 20:24:03
|
* Rafael Laboissiere <rla...@us...> [2005-03-08 20:15]: > * Alan W. Irwin <ir...@be...> [2005-03-08 10:38]: > > > Also, to help publicize the new PLplot language capability and also to get > > some help with proposed example 24, we might want to ask for help on > > plplot-general. > > For x24, we might get inspiration from the Peace Flag at: > > http://www.columbia.edu/~fdc/pace/flag.html Okay, here is the first try. With the following UTF-8 string: "#<0x00>åå¹³#<0x10> #<0x20>शाà¤à¤¤à¤¿" "#<0x10> Peace Paz #<0x40>শানà§à¦¤à¦¿" "#<0x10> Paz ÐÐ¸Ñ #<0x00>å¹³å" "#<0x10> Friede #<0x30>íí", and the following command line: PLPLOT_FREETYPE_SANS_FONT=/usr/share/fonts/truetype/arphic/bkai00mp.ttf \ PLPLOT_FREETYPE_SERIF_FONT=/usr/share/fonts/truetype/freefont/FreeSerif.ttf \ PLPLOT_FREETYPE_MONO_FONT=/usr/share/fonts/truetype/ttf-indic-fonts/lohit_hi.ttf \ PLPLOT_FREETYPE_SCRIPT_FONT=/usr/share/fonts/truetype/unfonts/UnBatang.ttf \ PLPLOT_FREETYPE_SYMBOL_FONT=/usr/share/fonts/truetype/ttf-bangla-fonts/JamrulNormal.ttf \ ./x24c -dev png -drvopt text,smooth -o x24c.png I obtained the plot attached below, containing the word "peace" in the 10 most spoken languages in the world: Rank Language First Language Speakers (in millions) 1 Mandarin 874 2 Hindi 366 3 English 341 4 Spanish 322 5 Bengali 207 6 Portuguese 176 7 Russian 167 8 Japanese 125 9 German 100 10 Korean 78 This PLplot graph could be read by over 2,7 billion people in the world! (Well, this is not true because a large amount of the speakers in the languages above are illiterate.) I am happy to learn that my mother tongue is ranked 6th... -- Rafael |