wf49670 / ppgen

Post-processing generator for DP
6 stars 4 forks source link

Fix for one error and implement .nr Footnote and .nr Illustration #36

Closed wf49670 closed 10 years ago

wf49670 commented 10 years ago

Major error (line 994 on my side of diffs): Infinite loop unless this statement (i += 1) is present. I changed a "for i in range..." to a "while i <" and somehow dropped the incrementation of i. Apparently this happened after my last test run, for which I apologize. (I also apologize for not finding a way to get this single change to you without the others. Feel free to make it manually if you don't want to merge all this other stuff right now.)

Implemented code to avoid running off the end of the file while gathering caption info (.ca) for text and HTML phases.

Implemented 2 new named registers, Footnote and Illustration.

.nr Footnote will set a translation for the word "Footnote" that ppgen emits during text processing. It defaults to Footnote. Values can be any single word, or "some string" or 'some string'. It will reject and terminate if multiple words are used unquoted, or if the quotes are mismatched.

.nr Illustration will do the same for the word "Illustration". It, of course, defaults to Illustration.

Examples: .nr Footnote Nota .nr Illustration Imagen

or

.nr Footnote "Nota de informacion"

ghost commented 10 years ago

Please make sure the documentation reflects your enhancements. Thanks.

wf49670 commented 10 years ago

On 10/17/2014 9:00 PM, rfrank wrote:

Please make sure the documentation reflects your enhancements. Thanks.

— Reply to this email directly or view it on GitHub https://github.com/rfrank/ppgen/pull/36#issuecomment-59593576.

I will. once it reaches master.

I presume it is time to document .dv since you've merged that one into master already, so I'll do that one now.

Thanks, Walt

ghost commented 10 years ago

Thank you for the .dv writeup (and all the others.)