|
From: | Chris Yate |
Subject: | Re: Determine the including file |
Date: | Fri, 22 Jan 2016 11:28:19 +0000 |
What I'm thinking about is the following:
I have the file openlilylib.ily, which is the main entry point to openLilyLib.
I'm currently changing the way how openLilyLib is organized. Previously you loaded openLilyLib, and then you had the command \useLibrary to load specific libraries from within openLilyLib.
In the future the libraries will be in separate repositories each (disentangling code, distribution, collaboration and whatever).
For example you'll have the directories
openlilylib/scholarly
openlilylib/oll-core
You'll "load" the ScholarLY library by including its main file (e.g.) openlilylib/scholarly/main.ily, and this will in turn include openlilylib/oll-core/main.ily.
So as a user you won't write
\include "openlilylib"
\useLibrary Scholarly
anymore but
\include "scholarly/main.ily"
(or something similar)
Now the question comes:
openLilyLib registers a list of loaded libraries and its options. What I'm thinking about is if a function inside openlilylib/oll-core/main.ily can determine from which file it has been included and then add this to the list of loaded libraries.
If that's not possible that wouldn't be much of an issue. ScholarLY would then simply have to include oll-core and *then* issue a command to register itself with oll. But I just wanted to explore the possibility.
Urs
[Prev in Thread] | Current Thread | [Next in Thread] |