[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Announcement of fribidi version 0.1.2
I have released a new version 0.1.2 of fribidi with the following changes:
* Added options -ltr and -rtl to fribidi to force LTR and RTL
directions.
* Added function fribidi_log2vis_get_embedding_levels() which
just returns an array of embedding levels.
* Added benchmark program.
* Added new check in test_fribidi that checks the changes
calculation.
* Changed interface to fribidi_log2vis() to include length of
string on input and the embedding level of output.
* Added function fribidi_find_string_changes() which finds the
bounding box of the changes between two FriBidiStrings.
Here's the blurb in case someone missed it:
FriBidi is a free BiDi library that adhers closely to the Unicode BiDi
algorithm.
FriBidi is written in C and should provide a common API that will
facilitate porting of various software to support BiDirection
locals.
FriBidi may be found at:
http://imagic.weizmann.ac.il/~dov/freesw/FriBidi
Here is an example of what the library can do, where capital letters
are treated as having Right-To-Left direction.
car is THE CAR in arabic => car is RAC EHT in arabic
CAR IS the car IN ENGLISH => HSILGNE NI the car SI RAC
he said "IT IS 123, 456, OK" => he said "KO ,456 ,123 SI TI"
he said "IT IS (123, 456), OK" => he said "KO ,(456 ,123) SI TI"
he said "IT IS 123,456, OK" => he said "KO ,123,456 SI TI"
he said "IT IS (123,456), OK" => he said "KO ,(123,456) SI TI"
HE SAID "it is 123, 456, ok" => "it is 123, 456, ok" DIAS EH
<H123>shalom</H123> => <123H/>shalom<123H>
<h123>SAALAM</h123> => <h123>MALAAS</h123>
HE SAID "it is a car!" AND RAN => NAR DNA "!it is a car" DIAS EH
HE SAID "it is a car!x" AND RAN => NAR DNA "it is a car!x" DIAS EH
-2 CELSIUS IS COLD => DLOC SI SUISLEC -2
SOLVE 1*5 1-5 1/5 1+5 => 1+5 1/5 1-5 5*1 EVLOS
THE RANGE IS 2.5..5 => 5..2.5 SI EGNAR EHT