I would also like to add one more thing which I forgot to mention; might Harfbuzz (http://www.freedesktop.org/wiki/Software/HarfBuzz) be a better option in this regard than fribidi2? It seems generally better at rendering complex scripts.