View Single Post
Old 01-19-2014, 05:12 PM   #18
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by GrannyGrump View Post
@theducks -- Link id's-- Yes, I do use a letter prefix. Thank you so much for the tip to use unique letters.

I will probably expand my AutoHotkey script-- right now, it does a "find next", waits for a number input from me, and then auto-types the entire string for the anchor tag, including the footnote number. I will just input some more characters to identify the chapter as well as the tag *number*.

For me, scripting with AHK feels simpler than trying to design REGEX patterns. I think my genetic inheritance is at fault. (I always blame everything I'm not good at on great-great-grampaw. )
Granny:

If you want to renumber endnotes for each chapter, it's always going to be manual. We've encountered this, long ago, and changed our process. We essentially do exactly what My One Twoo Wuv Ducky does: we regex the original file, insert the hr's before each chapter header class, and split it. If you try to keep endnotes with a particular CHAPTER/section, and restart numbering, you are, as you have observed, screwed.

If you do that, be prepared to reset the links by hand. Or, just rock-n-roll with 1-->infinity, and you'll be a much, much happier person. ;-)

Hitch
Hitch is offline   Reply With Quote