Michael Schmitt wrote: > Angus Leeming wrote: > > >Let's move on to the actual process of extracting info from the > >msgfmt > run. It > >is more interesting and was quite challenging. You put a lot of > >effort > into > >it and I didn't mean to stand on your toes. If you feel hurt, I > >apologise profusely. > > > That's not the point! I wanted to help the LyX community and I feel > responsible for fixing all outstanding problems by myself. But now > it seems that you also had to spent a lot of time on the script > which was not my intention at all :-( > > The previous version worked fine for me (apart from the XHTML > problems). ".*" might be greedy but does it really matter? The > gettext output is well-known (if it changes in the future, we have > to fix the reg. expr. anyway), performance is absoluty irrelevant, > and the script is used only by a few LyX developers.
And MY point is that it did NOT work fine because I generated an i18n.php3 page with multiple warning messages about uninitialised variables. The difficult part was the thinking about how to fix that (ie, don't create the output string by modifying the input string but instead use the input string to fill three vars and then create the output string from that.) Thereafter, the rest was half an hour's play on Tuesday evening. And a little further tidy on Wed because I was a bit embarassed by the mess I'd made ;-) Anyway, I have a reasonable working knowledge of sed and I'm trying to improve my feeling for cut, paste etc. I 'feel' that I will then be able 'do' sh-scripting with a reasonable level of proficiency. Still don't know no awk though. The next play thing for a Tuesday evening ;-) So, now you know my motivation. I feel all naked... -- Angus
