Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX parser for unicodeit #73

Open
HDembinski opened this issue Apr 13, 2023 · 3 comments
Open

LaTeX parser for unicodeit #73

HDembinski opened this issue Apr 13, 2023 · 3 comments

Comments

@HDembinski
Copy link

HDembinski commented Apr 13, 2023

I developed the concept for a LaTeX parser for unicodeit here https://github.com/HDembinski/essays/blob/master/parse_latex.ipynb

It is a simple LaTeX parser written in EBNF. The parser is restricted to only be able to process the subset of LaTeX that we care about. It is more powerful than the search-and-replace approach that unicodeit uses currently. It handles several cases correctly that unicodeit does not handle, e.g.:

#27

I am interested in contributing this parser for the Python package to unicodeit, where it would largely replace the implementation of the Python package. My draft implementation is not bug-free, I will work on this and the integration into unicodeit if I get a confirmation from you that you are willing to review a PR with such a major change.

I have little experience with Javascript, so I cannot offer to help with improving that implementation.

@HDembinski
Copy link
Author

HDembinski commented Apr 20, 2023

Today, I published a first release of unicodeitplus based on the concept. I am still open toward merging my project back into unicodeit. I fixed the bugs I still had in the concept code, it now works as expected.

I am also open to become co-maintainers of unicodeit, if you have no time to work on this project.

@aur3l14no
Copy link

Nice! Hope it will be merged.

Also, by directly exposing the CLI, it becomes compatible with pipx, which is a convenient feature.

@HDembinski
Copy link
Author

@svenkreiss What do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants