Yet another LaTeX filter
Project description
YaLafi: Yet another LaTeX filter
This Python package extracts plain text from LaTeX documents. The software may be integrated with a proofreading tool and an editor. It provides
- mapping of character positions between LaTeX and plain text,
- simple inclusion of own LaTeX macros and environments with tailored treatment,
- careful conservation of text flows,
- replacement of equations with detection of trailing interpunction.
A complete description is available at the GitHub page.
The sample Python application script yalafi/shell/shell.py integrates the filter with LanguageTool. It
- sends the extracted plain text to the proofreader,
- maps position information in returned messages back to the LaTeX text,
- generates results in several formats.
You may
- create a proofreading report in text or HTML format for a complete document tree,
- check LaTeX texts directly in the editors Emacs and Vim via plug-ins Emacs-langtool and vim-grammarous,
- run the script as emulation of a LanguageTool server with integrated LaTeX filtering.
For instance, the LaTeX input
Only few people\footnote{We use
\textcolor{red}{redx colour.}}
is lazy.
will lead to the text report
1.) Line 2, column 17, Rule ID: MORFOLOGIK_RULE_EN_GB
Message: Possible spelling mistake found
Suggestion: red; Rex; reds; redo; Red; Rede; redox; red x
Only few people is lazy. We use redx colour.
^^^^
2.) Line 3, column 1, Rule ID: PEOPLE_VBZ[1]
Message: If 'people' is plural here, don't use the third-person singular verb.
Suggestion: am; are; aren
Only few people is lazy. We use redx colour.
^^
This is the corresponding HTML report:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yalafi-1.0.0.tar.gz.
File metadata
- Download URL: yalafi-1.0.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7888a4813edb0d9b220b907f6b54c155d9906c807ae95a5d3bb2106d64740f7
|
|
| MD5 |
2e17e8fc36cd4bef3a465c9d7dfd4281
|
|
| BLAKE2b-256 |
ea5ca2079fdedeaadc1a727150455c65f9931f70d606fe08a01682b3abaf74ea
|
File details
Details for the file yalafi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: yalafi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 54.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44a34a37f713370e1a923ecf26af9a3d18f80d17c87ffaa91c0c2f96e49c119
|
|
| MD5 |
df6b1639b895fe8ee4f3c4a4007015a9
|
|
| BLAKE2b-256 |
bf47bff730e39622b1ddd6aaf5d5202e1b96f4d4afff77b216a8a4c04d2b639a
|