lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lost in trying to fine oll-core and or package.ily


From: Urs Liska
Subject: Re: lost in trying to fine oll-core and or package.ily
Date: Tue, 15 Oct 2019 23:16:06 +0000

Simon has already given a very clear answer, but I want to add some more 
examples that may help you understanding the context and a part of your 
question that may not be fully covered yet.

Say you have a document
  C:\myscores\alleluja.ly
which contains a line
  \include "my-config.ily"
(note that the file extensions are not significant but only *conventions*, .ly 
typically indication LilyPond documents and .ily *i*nclude ly files)

If you navigate to C:\myscores and compile this file using
  lilypond-windows.exe alleluja.ly
LilyPond will look for the file my-config.ily first in the directory of the 
main file (C:\myscores) and then in some directories in the LilyPond 
installation itself.

However, if you compile using
  lilypond-windows.exe -I C:\my-lilypond-library alleluja.ly
then LilyPond will *additionally* look for the include file in the directory 
C:\my-lilypond-library.

If the \include statement references not simply a file but a relative path then 
the include file will be looked for in all item of the search path:
  \include "lyriclib/hymns.ily"
would then find files like
  C:\myscores\lyriclib\hymns.ily
  C.\my-lilypons-library\lyriclib\hymns.ily

This is how openLilyLib is loaded. If you have oll-core stored so that
  C:\openLilyLib\oll-core\package.ily
is a file and call LilyPond with
  lilypond-windows.exe -I C:\openLilyLib alleluja.ly
then
  \include "oll-core/package.ily"
will find the file because the search path C:\openLilyLib plus the relative 
path given in the \include statement "oll-core/package.ily" will be joined to 
C:\openLilyLib\oll-core\package.ily

HTH
Urs

15. Oktober 2019 17:16, "Freeman Gilmore" <address@hidden> schrieb:

> On Tue, Oct 15, 2019 at 10:34 AM Urs Liska <address@hidden> wrote:
> 
>> 15. Oktober 2019 16:28, "Freeman Gilmore" <address@hidden> schrieb:
>> 
>>> On Tue, Oct 15, 2019 at 1:50 AM Urs Liska <address@hidden> wrote:
>>> 
>>>> ...
>>>> 
>>>> So, for openLilyLib this means:
>>>> 
>>>> * You need *one* root directory where all openLilyLib packages will be 
>>>> located *below*, say
>>>> C:\openLilyLib
>>>> * Within that you need to have (at least) the oll-core package, in 
>>>> C:\openLilyLib\oll-core (so
>>>> you'll have a file C:\openLilyLib\oll-core\package.ily)
>>>> * Then you need to add C:\openLilyLib to LilyPond's search path
>>> I have seen this in other places; were do I do this? Is this an Environment 
>>> Variable setting, if
>> so
>>> how? How do i add C:\openLilyLib to LilyPond's search path? Else were most 
>>> is explained but this
>>> but this step is left with no clue.
>>> Thank you, ƒg
>>> 
>> 
>> For example call LilyPond with (something like (adjust to the Windows 
>> environment)
>> lilypond-windows.exe -I C:\openLilyLib path\to\document.loy
> 
> See if I have it: I run lilypond-windows.exe then i enter  -I C:\openLilyLib 
> path\to\document.loy .
> this adds the C:\openLilyLib directory to the file document.loy ?
> 
> Now if I use the include with the path C:\openLilyLib , dose Lilypond search 
> all the directories
> and subdirectories of openLilyLib or do i need an include ...\directory\file 
> for each file I use?
> 
> If this is getting to be to much to ask on basic let me know?
> Thank you, ƒg
> 
>> When using Frescobaldi, go to Edit=>Preferences=>LilyPond Preferences and 
>> add the directory to the
>> "LilyPond include path:" section at the bottom of the page.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]