forked from lda/TexLiLy
1
0
Fork 0
A TeX/Lilypond bot for [matrix].
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LoaD Accumulator 7a34f8d4d0
[FIX] Don't make the bot crash on bad formatting
TODO: Actually *tell* the user of how this works.
6 months ago
.gitignore [ADD/WIP] Add preliminary encryption support. 6 months ago
COPYING.AGPL [FIX] Fix up a few crashes and clarify the license. 6 months ago
README.MD [ADD/WIP] Add preliminary encryption support. 6 months ago
callbacks.py [FIX] Don't make the bot crash on bad formatting 6 months ago
latex.py [MOD] Change DPI 6 months ago
lilypond.py [ADD] Add custom version for inline .ly expressions 6 months ago
main.py [FIX] F-ed up some stuff. 6 months ago
parser.py [ADD] Allow more complex expressions in code tags. 6 months ago
requirements.txt [ADD/WIP] Add preliminary encryption support. 6 months ago
router.py [ADD] Add basic LilyPond support. 6 months ago
routes.py [ADD/WIP] Add preliminary encryption support. 6 months ago
utils.py [FIX] Don't make the bot crash on bad user input. 6 months ago

README.MD

TeXLily: A LaTeX and Lilypond bot for [matrix]

TeXlily is a TeX and Lilypond bot designed for [matrix]. It is made for clients who does not support LaTeX, but also for people willing to share sheet music to their friends using Lilypond.

Dependencies

TeXily only has a few dependencies:

- Python 3 (tested on 3.11)
    + `matrix-nio[e2e]`
    + `pyaml`
    + `imagesize`
- Lilypond
- A distribution of TeX for `latex` and `dvipng` programs.
    + You also need the `standalone` and `varwidth` packages, which you 
    can find on CTAN.

Python: pip install -r requirements.txt

Arch Linux: sudo pacman -S lilypond texlive

Contributing

You can contribute directly using PRs, or you can just mail me patches to: lda@freetards.xyz with a title starting with PATCH FOR TEXLILY:

To contribute, use PEP8 with 4 spaces.

How to setup

To setup TeXLily, you need to create a file named texlily.yaml, and make a directory where encryption keys and user styles will be stored.

The texlily.yaml file should look like this:

homeserver: "your homeserver's base URL"
user: "@foo:bar.fed"
data: "the encryption/style directory"

Then, start TeXLily with python3 main.py. Then, enter your password, et voilà !.

License

TeXlily's is under the AGPLv3. Check COPYING.AGPL for more information on the license.