pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
603 stars 165 forks source link

Add lilypond filter #79

Closed cole-miller closed 4 years ago

cole-miller commented 4 years ago

This filter processes LilyPond source code into images of musical notation. See the README for a detailed description and the test files for some examples of how it's used.

cole-miller commented 4 years ago

It looks like CI is failing due to a problem with another filter.

ETA: my mistake, there was also a problem with my tests; it's fixed now. (I don't know how to create test images that will be binary-identical to what the CI generates, so I'm falling back to just testing that the expected image files are created.)

cole-miller commented 4 years ago

Thanks for your feedback. I've opened a feature request in the pandoc repo as you suggested (just barely missed getting #6000!).

tarleb commented 4 years ago

Thanks again, this is a great addition!

tolot27 commented 4 years ago

How about LaTeX? Can it be simply converted to the lilypond environment?

cole-miller commented 4 years ago

@tolot27 I don't know what LaTeX syntax elements pandoc translates into Code and CodeBlock, if any, or how you'd specify element attributes. You might be better off writing in Markdown and translating to PDF with pandoc, which passes through LaTeX as an intermediate step.