Thank you Federico On Mon, Apr 12, 2021 at 4:39 PM Federico Bruni <f...@inventati.org> wrote:
> > > On Mon, Apr 12 2021 at 15:45:26 -0500, stefano franchi < > stefano.fran...@gmail.com> 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. > > So there is no way to indicate a system-wide or user-dependent location. Too bad. I'm sure I'll forget the --include directive every other time... > > 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). > > So "locale messages" = "localized messages", I take it. Thanks for clarifying. That's not the most common use of "locale" in (techy) English, that's what confused me I guess. Now I know. > 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 > > Interesting. Neither directory exists on my system (Archlinux official package installation). Instead I have a bunch of /usr/share/locale/ca/LC_MESSAGES/lilypond.mo for various locales. Anyway, thanks again. S. -- __________________________________________________ Stefano Franchi stefano.fran...@gmail.com <stef...@tamu.edu> *https://www.researchgate.net/profile/Stefano_Franchi* <https://www.researchgate.net/profile/Stefano_Franchi>