On Mon, Apr 12 2021 at 15:45:26 -0500, stefano franchi <[email protected]> wrote:
Where am I supposed to store my templates, functions, snippets, etc?

Otherwise put, in (La)TeX terms is there a lilypond equivalent of ~/texmf ?


There's no standard directory. Just use what you want and then use --include=/PATH/TO/DIR to let lilypond find your files.


On linux, there seems to be no equivalents, at least as far as I can tell. It thought ~/.local/share/lilypond would be it, but it is not created at installation time. Is there an environment variable that could be set? The docs make reference to LILYPOND_DATADIR, but that seems to indicate the global location, as far as I can tell from the following description:

LILYPOND_DATADIR
This specifies a directory where locale messages and data files are looked up by default, overriding locations defined either at compile-time or computed dynamically at run-time (see Relocation <https://lilypond.org/doc/v2.22/Documentation/usage/command_002dline-usage#relocation>). The directory should contain subdirectories called ‘ly’, ‘ps’, ‘tex’, etc.

Or is "locale" a typo for "local"?

I'm confused

 <>

Locale refers to localization, i.e. translation files (PO files).

On my current 2.23.0 installation from lilypond.org package, I see this:

$ ls .local/lilypond/usr/share/lilypond/current/
fonts  ly  ps  python  scm  vim

Locale files are in another directory:

$ ls .local/lilypond/usr/share/
bash-completion emacs fontconfig gdb ghostscript glib-2.0 guile lilypond locale xml

$ ls .local/lilypond/usr/share/locale/
af az bs de en@quot fa he is ko mk nds or ro sq te ug zh_CN am be ca dz en@shaw fi hi it ku ml ne pa ru sr tg uk zh_HK an be@latin ca@valencia el eo fr hr ja lt mn nl pl rw sr@ije th vi zh_TW ar bg cs en@boldquot es ga hu ka lv mr nn ps si sr@latin tl wa as bn cy en_CA et gl hy kk mai ms no pt sk sv tr xh ast bn_IN da en_GB eu gu id kn mg nb oc pt_BR sl ta tt yi


Reply via email to