Dear Gregorio Users, I have attached a script called gpp [gregorio-pre-process], modified from Richard Chonak's gprocess, that facilitates the inclusion of several gabc scores in a tex document with the annotation paramaters automated based on the gabc header.
Thee script runs gregorio on the gabc file and then create a tex wrapper
(called $-input.tex) that includes the annotation information and
\greincludescore. This $-input.tex file can now be included in a larger tex
file with the command \input{$-input.tex}
The immediate advantage of this is that you can control more aspects of the
final score from the gabc file itself without taking the time to input it
manually in the tex file. Also, I think this will make the main tex file
more managable, without the annotation code which you would not normally
have to modify anyway. The only negative side I can foresee is the
additional number of files in your folder, but for me this is a negligible
disadvantage.
I tried it out this afternoon and was able to take a folder with a few
hundred gabc files and get them arranged into a tex file with annotations in
a relatively short time. (I used simple find and replace scripts to take the
names of the files and put the formating around them to turn them into first
gpp $.gabc commands to run in a batch at the command line, and
then \input{$-input.tex} strings, which could be incorporated into the final
tex file.)
Another possibility this raises (hinted at in the attached script) is that
you could automate the inclusion of label and index codes for the sake of
automating cross referencing within a book and the creation of an index of
all the chants. May I suggest that the gabc header convention be modified to
allow for two more entries such as "index-entry:" and
"cross-reference-name:" [or anything similar]? These attributes could then
be incorporated into the gpp script.
Please let me know what you think and if you have any suggestions.
Yours,
br. Innocent
gpp
Description: Binary data
_______________________________________________ Gregorio-users mailing list [email protected] https://mail.gna.org/listinfo/gregorio-users

