[liblouis-liblouisxml] unicode braille output

  • From: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 28 Feb 2012 11:08:49 +0000

Dear John, all,

I dont know if I miss-read the documentation, but the following doesn't 
seem to work for me.

1. installed the latest liblouis and python bindings from svn.
2. ran the attached small python test.

Since the louis.ucBrl mode is requested, I expected to see unicode 
braille characters, but instead I still receive the ascii braille. Is 
this a bug in the documentation or somewhere in the code.

Thanks.
Mesar
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import louis
t = 'en-gb-g1.utb'
text = u'hello world'
out = louis.translate([t], text, mode=louis.ucBrl)[0]
print out


Other related posts:

  • » [liblouis-liblouisxml] unicode braille output - Mesar Hameed