logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lou_translate - A Braille translator for large scale testing of liblouis Braille translation tables

Author

       Written by John J. Boyer.

Description

       Translate  whatever  is on standard input and print it on standard output. It is intended for large-scale
       testing of the accuracy of braille translation and back-translation.

   TABLEiseither:
       - a query
              KEY[:VALUE] [KEY[:VALUE] ...]

       - a file list
              FILE[,FILE,...]

Examples

              lou_translate language:en grade:2 region:en-US < input.txt

              Do  a  forward  translation  of  English  text to grade 2 contracted braille according to the U.S.
              braille standard.

              lou_translate --forward en-us-g2.ctb < input.txt

              Do a forward translation with table en-us-g2.ctb.

              lou_translate unicode.dis,en-us-g2.ctb < input.txt

              If you require a specific braille encoding use a display table. Here we do a  forward  translation
              with  table en-us-g2.ctb and a display table for Unicode braille. The resulting braille is encoded
              as Unicode dot patterns.

              lou_translate -d unicode.dis language:en grade:2 region:en-US < input.txt

              Using a query and a specific display table you can  achieve  basically  the  same  translation  as
              above.

              echo ",! qk br{n fox" | lou_translate --backward en-us-g2.ctb

              Do a backward translation with table en-us-g2.ctb.

Name

       lou_translate - A Braille translator for large scale testing of liblouis Braille translation tables

Options

-h, --help
              display this help and exit

       -v, --version
              display version information and exit

       -f, --forward
              forward translation using the given table

       -b, --backward
              backward translation using the given table If neither -f nor -b are specified forward  translation
              is assumed

       -d, --display-table
              use  the given display table for the translation. This is useful when you are specifying the table
              as a query.  This option takes precedence over any display table specified as part  of  the  table
              file list.

Reporting Bugs

       Report bugs to liblouis-liblouisxml@freelists.org.
       Liblouis home page: <http://www.liblouis.io>

See Also

       The full  documentation  for  lou_translate  is  maintained  as  a  Texinfo  manual.   If  the  info  and
       lou_translate programs are properly installed at your site, the command

              infoliblouis

       should give you access to the complete manual.

Liblouis 3.32.0                                   December 2024                                 LOU_TRANSLATE(1)

Synopsis

lou_translate [OPTIONS] TABLE

See Also