langsci
Tools for Language Science Press: converting Word/OpenDocument manuscripts to LaTeX, cleaning BibTeX, checking LaTeX sources against the LangSci guidelines, and the press's own code (catalog and distributor exports, example extraction for CLDF, download statistics).
python -m venv .venv
.venv/bin/pip install -e ".[sanity,git]" # from this directory; extras: see below
.venv/bin/doc2tex manuscript.docx # pandoc (no Java); soffice only for odt/doc
.venv/bin/doc2tex --converter w2l manuscript.odt # the former converter: w2l (Writer2LaTeX, Java), odt only
.venv/bin/normalizebib localbibliography.bib
Python 3.11 or newer. Without extras only the commands doc2tex and normalizebib and the BibTeX/LaTeX libraries work.
What is where
| Part | Contents | Extra |
|---|---|---|
langsci.bib, langsci.latex, langsci.conversion, langsci.cli |
the core: BibTeX normalising, plain references to BibTeX, LaTeX helpers, the guideline checker, the docx/odt converter, the commands | sanity (Pillow) for the checker |
langsci.catalog |
the catalog of the press: books, per-book data (CSV), crawler, distributor exports (ONIX, KU, EBSCO, ...), title mapping | online, exports, onix |
langsci.services, langsci.imtvault, langsci.resources |
Zenodo and Glottolog, the interlinear examples for the Lucene/CLDF store, reference lists | online, wikidata |
langsci.downloads |
download statistics: add up the reports (OMP, OAPEN, Zenodo), plots and tables | stats |
scripts/ |
about 30 small scripts of the press, one binary each (packaging/build_binaries.py) |
see scripts/README.md |
Documentation
| For | Read |
|---|---|
| using the commands, the library, the scripts | docs/user-guide.md |
converting a manuscript with doc2tex (preparing the document, the markers, what is left to do) |
docs/doc2tex-manual.md |
| how the pandoc converter is built (pipeline, filter, limits, tests) | docs/doc2tex-pandoc-route.md |
| how the package is organised, where data live, the rules for changing it | docs/architecture.md |
| the download statistics (monthly report) | docs/downloadstats.md |
the web services (a separate project, langsci-web: what they do, installing them on a server, logs) |
web/README.md |
the ELAN/FLEx part under the name eldpy |
eldpy/README.md |
| the scripts and their extras | scripts/README.md |
The top directory is the package langsci (pyproject.toml, src/, tests/, docs/, scripts/, packaging/, tex/). eldpy/ and web/ are two more projects with their own pyproject.toml next to it. history/ is the record of how the code got here (the old code, the findings and decisions of the refactoring): you do not need it to use or change the package; history/notes/handover.md is the start if you want it.
Tests
.venv/bin/pip install -e ".[test]"
.venv/bin/python -m pytest tests -q # offline, about a minute; real documents and the network are not needed
w2l, bwrap and git make a few more tests run; without them those tests are skipped. The ONIX validity tests need the EDItEUR schemas
(LANGSCI_ONIX_SCHEMAS=/path, or validate_onix --fetch).
License
MIT, see LICENSE. Publishing on PyPI (langsci and eldpy, with hatch): docs/publishing.md.
Metadata
Release files for langsci 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langsci-0.1.0.tar.gz | 1.2 MB | Without provenance | Details for langsci-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langsci-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langsci-0.1.0-py3-none-any.whl |
Total release size: 2.1 MB
Release files / langsci-0.1.0.tar.gz
| Download URL | langsci-0.1.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
381ae3d64590d5ffb50ddadff10d1a40e1c1a240ab23e32d710af793b660f00c
|
|
BLAKE2b-256 checksum How to use checksums |
9bcc79faa39332ff870aac4c3192064c1f70f7f3f111294758ff09489b4d66e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.13.5"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.9 29 Sep 2026","python":"3.13.5","system":{"name":"Linux","release":"6.12.118+deb13-amd64"}} HTTPX2/2.16.2
|
Release files / langsci-0.1.0-py3-none-any.whl
| Download URL | langsci-0.1.0-py3-none-any.whl |
|---|---|
| Size | 880.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cb103071e18b6dbbb513306bf222ec1969ff0dfd8ecb722d331dd03d117e590
|
|
BLAKE2b-256 checksum How to use checksums |
d7eff35759d4b8e591b96e5cb7cc77402fa9152c4b1f0f78f61b2bd2903b9845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.13.5"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.9 29 Sep 2026","python":"3.13.5","system":{"name":"Linux","release":"6.12.118+deb13-amd64"}} HTTPX2/2.16.2
|
Security for langsci 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.