lilypond-user
[Top][All Lists]
Advanced

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

Re: Glossary index [was: how to get notes without tails?]


From: Simon Albrecht
Subject: Re: Glossary index [was: how to get notes without tails?]
Date: Sun, 30 Aug 2015 22:50:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Am 30.08.2015 um 22:42 schrieb Trevor Daniels:
Simon Albrecht wrote Sunday, August 30, 2015 8:58 PM
Am 30.08.2015 um 21:52 schrieb Trevor Daniels:
It would be a great help, I think, to add all the non-English terms to the
Glossary Index.  That would be easy to do, but very laborious and
time-consuming.  Just needs someone to do it ....
Or someone with the proficiency and time to write a script?
Actually I don't think that would be very difficult.

A typical entry header looks like this:

@node acciaccatura
@section acciaccatura

ES: mordente de una nota,
I: acciaccatura,
F: acciaccatura, appoggiature brève,
D: Zusammenschlag,
NL: samenslag,
DK: ?,
S: ?,
FI: ?.

The script would need to extract the rest of each line beginning
@section, ES:, I: etc.  Remove duplicates, remove ?s, and
for each of the remainder insert a new line containing that extract
prefixed by @cindex.  Repeat for the next @node.

And this should be part of the build process, then. Pythoneers forward…
Regards, Simon



reply via email to

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