Re: coding question about include-d tweak/function files

2018-01-30 Thread Urs Liska
Am 30.01.2018 um 22:14 schrieb Simon Albrecht: On 30.01.2018 17:22, Urs Liska wrote: Thinking about it, that would be a path to writing an \includeOnce or \require command in oll-core. The downside with that idea is that coding tools (i.e. Frescobaldi) will be able to help much less than

Re: coding question about include-d tweak/function files

2018-01-30 Thread Simon Albrecht
On 30.01.2018 17:22, Urs Liska wrote: Thinking about it, that would be a path to writing an \includeOnce or \require command in oll-core. The downside with that idea is that coding tools (i.e. Frescobaldi) will be able to help much less than with regular includes: no auto-completion, neither

Re: coding question about include-d tweak/function files

2018-01-30 Thread Kieren MacMillan
Hi Stefano, > Is it not viable to load them once one your "main" file instead of on every > score that requires one of their functions? Or is it the case that you want > to be able to compile each song in the songbook independently, meaning you > need to include the "tweaks" in each score,

Re: coding question about include-d tweak/function files

2018-01-30 Thread Stefano Troncaro
Hello Kieren, Is it not viable to load them once one your "main" file instead of on every score that requires one of their functions? Or is it the case that you want to be able to compile each song in the songbook independently, meaning you need to include the "tweaks" in each score, which then

Re: coding question about include-d tweak/function files

2018-01-30 Thread Urs Liska
Am 30.01.2018 um 17:02 schrieb Urs Liska: ... If this is a regular case I would look for a way to include them only once. Including them multiple times definitely doesn't make sense as the file will be completely parsed again and all the definitions just overwritten. The approach I would

Re: coding question about include-d tweak/function files

2018-01-30 Thread Urs Liska
Am 30.01.2018 um 16:28 schrieb Kieren MacMillan: Hello all, For those who make heavy use of stylesheets and/or overrides and tweaks: Do you have one large file? Several smaller files? One file per override? Currently, I use "several smaller files", e.g., /tweaks/dynamics.ily

Re: coding question about include-d tweak/function files

2018-01-30 Thread Urs Liska
Am 30.01.2018 um 16:28 schrieb Kieren MacMillan: Hello all, For those who make heavy use of stylesheets and/or overrides and tweaks: Do you have one large file? Several smaller files? One file per override? Currently, I use "several smaller files", e.g., /tweaks/dynamics.ily

coding question about include-d tweak/function files

2018-01-30 Thread Kieren MacMillan
Hello all, For those who make heavy use of stylesheets and/or overrides and tweaks: Do you have one large file? Several smaller files? One file per override? Currently, I use "several smaller files", e.g., /tweaks/dynamics.ily /tweaks/lyrics.ily /tweaks/spacing.ily and so on. But