[BRLTTY] BRLTTY and the latex-access project by means of python brlapi module

Daniel Dalton d.dalton at iinet.net.au
Fri Dec 2 06:20:36 EST 2011


On Thu, Dec 01, 2011 at 07:28:02PM -0500, Dave Mielke wrote:
> I'm assuming that you already have code which analyzes the latex and turns it 
> into braille. All you'd need to do is write an executable wrapper around it 

Yes, that's right. 

> whch reads the text from standard input, passes it through the code you already 
> have, and then writes the resulting braille to standard output.

So is something like this ok, (n.translate(text) converts text from
latex to output. 

#!/usr/bin/python 
import nemeth
n=nemeth.nemeth ()

while True:
  input=raw_input("")
  print n.translate(input)
  
I make it executable, chmod +x so where do I place it? Is there anything
else I need to do to invoke it as the table brltty should use?

Thanks,
Dan


More information about the BRLTTY mailing list