02-10-2015, 10:51 AM | #1 |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Footnotes - here's how I do it
Hi everyone.
I've learned quite a few things on this forum, so I thought I'd give something back by sharing some trivial tricks I know. I hope this is the right section and I hope this is worth of a thread of its own. If it is not, I apologize. EDIT: I just found out two more ways to do this. 1) You get to a point where you have an EPUB with two html files: on one is the text with the numbers which refer to the footnotes, each signaled by a string you don't find anywhere else, e.g.**1, **2 ecc; on the other one you have the footnotes, each preceded by its progressive numer: Spoiler:
At this point with two fairly simple regular expressions you can interlink between text and footnotes. The cool thing is, you do it in one stroke. Fast and painless. This is especially easy if the printed book had all the notes stacked together at the end of the book or of each chapter. The regexs should be something like this. Spoiler:
2) When editing the book in Finereader, you copy all the notes within the text, preceded and followed by the usual unique string: Spoiler:
EDIT At this point you can use the ALTSEARCH add-on for open office (how much time I wasted for not knowing this... ) Code:
Find: \*\*(.*)\*\* Replace: \F{\1} Then, from open office, with a very simple regex \*\*(.*?)\*\* you find all the strings included between the two pairs of asterisks. Cut/insert/footnote/paste/repeat. This works faster than the method I first used because there is only one ODT file involved, and the autoclick software I use (PTFB) likes this much better. Basically, once you have arranged the file, you just need to run the PTFB macro as many times as needed. One click per footnote. Also, this way you don't have to cut/paste all the notes to an external file while working with AFR, and that saves time too. (This last regex works only if the notes are on one paragraph only. I still haven't found a way to search across multiple lines in OO. In case, just replace all the linebreaks with another unique string, do the job, and replace back) Enjoy What I'm talking about: Creating ebooks out of printed books, or images, with lots of footnotes. What file formats do I get: From my experience this works with epub, pdf, mobi, azw3, kepub, doc, odt... you name it. What is the end result: clickable progressive superscript numbers which link each to its footnote at the end of the book (or possibily of the chapter), each note with its "back link" to its number. Pretty std stuff. What software do I use: Abbyy Finereader (AFR), Open Office (OO) with writer2epub (W2E) and perfect epub, sigil - nothing fancy here - and PTFB, an auto-click sw which has saved me a lot of time. And I mean a lot. I'm on windows, no idea how this works elsewhere. How it's done: When I correct the ocr in AFR I replace all the numbers which refer to a footnote with some symbols or sequence of symbols that are not found anywhere else in the book, followed by the number of the note: **01, **02,..., **10. The numbers should all have the same number of digits because this greatly facilitates the auto-click process (more on this below). At the same time I cut and paste the actual footnotes in a separate ODT file, making sure that at least some of them show the number before the first word, so as to avoid mistakes when pasting them back (for some reason when I C/P from AFR to OO said number usually disappears). When the correction on AFR is complete and I have a decent ODT file, I copy all the notes at the bottom of that file and I once again correct it, with perfectepub and whatnot. I copy the notes before correcting the file because, of course, they usually show more or less the same errors as the main text. Then I copy the corrected notes into yet another ODT file, I open the two files in two separate big windows, I open the search function looking for '**' and I place the whole thing like this: [Image violates guidelines for size - MODERATOR] I cut the first note from the footnotes' file, launch PTFB, click on "new window macro", click on the main text file, add the two numbers to the selction with shift+rightkey twice (this can be done w/ a regex too), erase the selection (the two * stars and the two-digit number), I click on insert/footnote/ok, type one space and paste the note, type ctrl+home to get to the start of the note, I click on the note's number to head back to the text, and click "find". Then I stop the dialog window of PTFB, automatically save the sequence, and assign a hotkey to it. (When clicking ctrl+home the first line of the note only appears always at the same height if the note is high enough. Thus I usually hit "enter" some 7-8 times after pasting the note, to facilitate the process. These sequences of empty paragraphs can be easily erased from the epub, and if you want to erase them from the odt as well you can save the file as HTML, work on the code, and save it back as odt) So now I just have to select one footnote at a time from their file, ctrl+x, hotkey, and repeat til it's over. I still have to pay attention to the numbers, because many times I might skip one note, but nevertheless when I'm dealing with hundreds of notes this process, as I said, saves me SO MUCH time. The end result is an ODT file with clickable notes. These can be displayed either at the end of each page or all together at the end of the document (tools/footnotes). They work when exporting to pdf (except for the "back-link" on the note AFAIK), and they work when converted to EPUB with W2E. In the epub they end up in a single xhtml file. They are already styled, each note within a div with class "footnote" and a <p> with class "fnparagraph". You can of course style them more - for example, the default width of the div is 60%, which is too little imho. The whole thing still works when converting to MOBI/AZW3/KEPUB with calibre. I have never tried to display the notes at the end of each chapter, but this could be done by creating a separate ODT file for each chapter, saving each file as EPUB, and merging the xhtml files together. You'd have to rename the files and the anchors, not impossible but maybe not worth it either. Anyway, there you go. Hope this all makes sense, if you have questions or suggestions let me know. 1v Last edited by 1v4n0; 12-07-2016 at 07:00 PM. |
02-13-2015, 07:59 AM | #2 |
Klak
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
imho nothing beats pandoc markdow inline notes:
this^[Here's a note.] |
Advert | |
|
02-14-2015, 01:56 PM | #3 |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
You mean footnotes inside the main text, w/o link? I dunno, it breaks the reading imo. It's just something else
|
02-14-2015, 02:29 PM | #4 |
Klak
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
not inside main text. in production i use pandoc markdown between word & html.
"this^[Here's a note.]" is markdown tag that pandoc converts to endnote. to me it's the fastest way with text with many notes. |
02-15-2015, 01:23 AM | #5 | |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
If you are willing to invest in the time to learn how to use it, there are many cool tricks that you can use for generating/converting documents using templates. |
|
Advert | |
|
02-16-2015, 02:48 PM | #6 | |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Quote:
@eschwartz: what does "authoring information" mean? In what way could Pandoc help me w/ ebooks? Ty all 1v |
|
02-16-2015, 04:51 PM | #7 |
Klak
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
when i work on epub i prefer to leave word as soon as possible
i found it easier & faster to work in markdown than in both word & html, esp. with footnotes. just my 2c. |
02-17-2015, 04:28 AM | #8 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I just create the foot-/endnotes in Word (easy enough) and just export the Word document to ePUB with my add-in. It will convert the notes automatically to endnotes. You can choose to have a separate file with all the notes or at the end of every file the notes in that file.
That is the easiest way for me... |
02-20-2015, 03:34 PM | #9 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I mean, everything else is just much ado about nothing. And with no disrespect to Toxaris, whose addins and programs are the BEST, you don't even need his plugin for this (n.b.: you certainly do if you are using ABBYY, etc. I mean, if you are typing from the get-go). You just use Word's built-in footnoting/endnoting feature, and export the file. Kablammo, linked footnotes. I'll also NEVER understand (no offense to any poster here) the mad infatuation with OO/LO. The only thing that explains it is "FREE!" Because the myriad claims that it outputs cleaner code than Word are, simply, incorrect. I've used all three, extensively, and it's 6-of-one, half-dozen-of-the-other. SSDD. If we want to talk "clean code," the tie goes to Markdown or, frankly, the nearly-defunct Wordperfect--not because WP is magic, but because the users are better trained. Hitch |
|
02-20-2015, 04:10 PM | #10 |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
My main point is about inserting the footnotes in OO (or word, AFAIK) when starting from a printed book. It's a long process and PTFB helps me a lot. Once I have a good doc the rest is details.
Any faster ways than mine (with idiot-proof explanation ) ? |
02-20-2015, 04:39 PM | #11 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
02-22-2015, 12:48 AM | #12 | ||
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
IOW, it is an alternative writing tool, and one that requires thinking more about how you write, when most authors would probably prefer to focus on what you write. Quote:
Personally, I'd just nuke everything but the raw text and do all the styling afterward by hand, although I suppose then Notepad would work as well as any word processor. |
||
02-23-2015, 05:12 PM | #13 | ||
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
And, for whatever reason--oh, yes, timelining, mostly, and some other cool features--even though I'm pretty much a Word power-user (albeit a PIKER compared to Toxaris!), I prefer to write creative stuff in YWriter 5, which I also support. Not as much as Sigil, but some. Hitch |
||
02-23-2015, 05:18 PM | #14 | |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-08-2015, 01:04 PM | #15 |
Grand Sorcerer
Posts: 45,038
Karma: 56751447
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
|
Moderator Notice
Please take a few moments to read our Posting Guidelines, in particular the part about the maximum image size allowed (600x600 pixels). Images that violate those guidelines will be deleted. In all instances, an OP is notified of violations to Mobileread's guidelines. Thanks. |
Tags |
abbyy finereader, epub, footnotes, odt, writer2epub |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Footnotes | RafaelKing | Conversion | 1 | 05-19-2013 11:25 PM |
Footnotes | Adjust | ePub | 7 | 05-02-2013 08:33 PM |
Footnotes | dicknskip | Sigil | 11 | 12-14-2012 01:51 AM |
PRS-600 Footnotes | MelC | Sony Reader | 2 | 01-27-2010 01:45 PM |
Footnotes, anyone? | readingaloud | Workshop | 9 | 02-20-2007 12:45 PM |