Re: [frogs] Here, froggie froggies... python update-texinfo-menus |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: "frogs@xxxxxxxxxxx" <frogs@xxxxxxxxxxx>
- Subject: Re: [frogs] Here, froggie froggies... python update-texinfo-menus
- From: "Carl D. Sorensen" <c_sorensen@xxxxxxx>
- Date: Fri, 13 Mar 2009 14:51:22 -0600
- Accept-language: en-US
- Acceptlanguage: en-US
- Thread-index: AcmjQU1Jw8dcGjIDRUaLfiiUeFsdXgA3CoMU
- Thread-topic: [frogs] Here, froggie froggies... python update-texinfo-menus
On 3/12/09 12:35 PM, "Andrew Wilson" <andrew@xxxxxxxxxxxxx> wrote:
> Well, It's been nearly 2 weeks and no-one else has stepped up
> so I'll have a go at this. Gives me a reason to learn python.
>
Good for you! I thought about doing it, but my free time comes in such
small chunks right now that I don't think I could do this effectively.
> Since I'm not currently familiar with python there will be no
> associated boasting. There will however be a vim user installing
> 100 megs of crap to see what the original does.
You can do that, but you might be able to avoid it.
If you look at at a texinfo file (or a .itely file), you'll see that there
are menus, which correspond to @node{} macros and @section{} or
@subsection{} macros in the file.
The emacs texinfo-update-all-menus macro simply goes through the file and
puts in menus that match the @node{} calls to the sectioning commands.
I don't think you need to exactly duplicate the emacs macro. I think you
just need to (re-)create the menus.
Thanks,
Carl
>
> andrew
>
> 2009/2/27 Graham Percival <graham@xxxxxxxxxxxxxxxxx>:
>> On Thu, Feb 26, 2009 at 10:35:54PM -0300, Han-Wen Nienhuys wrote:
>>> -master/Documentation/devel/compiling.itexi:2: warning: unreferenced
>>> node `Compiling from source'.
>>> makeinfo: Removing output file `out/contrib-guide.txt' due to errors;
>>> use --force to preserve.
>>
>> As it happens, this one was from a different source file so it
>> doesn't apply here, but these errors can normally be avoided with
>> the emacs texinfo-update-all-menus macros.
>>
>> Unfortunately, this has two problems:
>> 1) the macro adds whitespace to the ends of lines, which causes
>> problems in git when a text editor removes said space.
>> 2) it requires emacs, which is a maoing pain to me since I have
>> to download+install the whole 100 megs that emacs requires[*].
>>
>> Could some Frog who knows python tackle this problem and write a
>> script which does the same thing as texinfo-update-all-menus, but
>> without the trailing whitespace? I estimate it'll take 2-4 hours
>> for somebody familiar with python.
>> (and yes, if you can do it in 20 minutes, go ahead and do it and
>> boast in my face about how you're such a better programmer than
>> me. I'll gladly bear the shame if it solves this problem[+]. :)
>>
>>
>> * yes, this is an "I use vi, and I'm a jerk" joke.
>>
>> + in fact, as a special reward, I'll add "I'm a worse programmer
>> than X" to my sig on all lilypond-related email lists for a week.
>> Of course, your solution must work perfectly -- any extra testing
>> or bugfixing after you send your finished verson will be counted
>> towards your time. :)
>
> ---
>
> ----
> Join the Frogs!
---
----
Join the Frogs!