Hi. Please take a look at sample fribidi client that reads input in various encodings, convert them by iconv, applies bidirectional algorithm(libfribidi's log2vis funcion, and then prints out the result. The latest version can be found at sourceforge: http://fribidi.cvs.sourceforge.net/fribidi/fribidi/fribidi_main.c It was somehow too complicated for me to understand the whole code, although most of it is related to many arguments it can have.
Btw, http://pyfribidi.sourceforge.net/ is a fribidi binding for python, and it's much easier to use. See the homepage for sample code ;-) See it here: --- import pyfribidi print pyfribidi.log2vis ("ASD asd") --- Hossein