Lexer and codec to work with LaTeX code in Python. Instead of using latexcodec, I encourage you to consider pylatexenc instead, which is far superior: https://github.com/phfaist/pylatexenc
Other
27
stars
12
forks
source link
Adding a command line interface for STDIN/STDOUT #35
Have you considered adding a command line interface to your library, so people can use it on the shell?
I know there already existing options out there:
$ recode --diacritics ltex..utf8 < manuscript.tex (looks unmaintained: https://github.com/pinard/Recode)
Adapting the C Code for more latex codes is more work.
Perl LaTeX::Decode $ latex2utf8 (I do not know perl)
However, your library is much more complete and I am also familiar with python to add things I am missing. I know it is a little bit of work. But a basic version should not be too hard: reading from STDIN, filtering it through your library and writing to STDOUT.
Have you considered adding a command line interface to your library, so people can use it on the shell?
I know there already existing options out there:
$ recode --diacritics ltex..utf8 < manuscript.tex
(looks unmaintained: https://github.com/pinard/Recode)Adapting the C Code for more latex codes is more work.
$ latex2utf8
(I do not know perl)However, your library is much more complete and I am also familiar with python to add things I am missing. I know it is a little bit of work. But a basic version should not be too hard: reading from STDIN, filtering it through your library and writing to STDOUT.