https://github.com/kpym/laxents
Accents translator between UTF-8 and LaTeX written in Golang.
https://github.com/kpym/laxents
accents go go-module go-package golang latex
Last synced: about 1 month ago
JSON representation
Accents translator between UTF-8 and LaTeX written in Golang.
- Host: GitHub
- URL: https://github.com/kpym/laxents
- Owner: kpym
- License: mit
- Created: 2024-11-30T16:23:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-30T16:54:25.000Z (over 1 year ago)
- Last Synced: 2025-01-31T01:51:10.257Z (over 1 year ago)
- Topics: accents, go, go-module, go-package, golang, latex
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laxents
Accents translator between UTF-8 and LaTeX written in Golang.
## Usage
```bash
$ laxents.exe --help
convert between LaTeX accents and Unicode characters
Usage: laxents.exe [--to-unicode] [--to-latex] [--input INPUT] [--output OUTPUT] [TEXT]
Positional arguments:
TEXT string to convert
Options:
--to-unicode, -u convert from LaTeX to Unicode
--to-latex, -l convert from Unicode to LaTeX
--input INPUT, -i INPUT
input file
--output OUTPUT, -o OUTPUT
output file
--help, -h display this help and exit
Examples:
laxents -to-latex "déçû"
laxents -to-unicode "d\\'e\\c{c}\\^{u}"
laxents -to-unicode -i input.tex -o output.tex
laxents -to-latex -i input.tex -o output.tex
cat input.tex | laxents -to-unicode
```
## Installation
Dowload it from the [releases page](https://github.com/kpym/esplus/releases) and put it in your path.
Or build it yourself:
```bash
go install github.com/kpym/esplus@latest
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.