04-05-2018, 02:32 AM | #16 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If you have a Windows machine, use the following commands to display the FootnoteLinker plugin folder:
1. Change line 229 from: Code:
each_tag.a.string = '[' + str(sup_counter) + ']' Code:
each_tag.a.string = str(sup_counter) Code:
each_tag.string = '[' + str(sup_counter) + ']' Code:
each_tag.string = str(sup_counter) |
|
04-05-2018, 03:50 AM | #17 |
Connoisseur
Posts: 57
Karma: 600000
Join Date: Jan 2018
Device: Galaxy Tab S2
|
Hi,
just my 2 cents: This is a usability thing and tapping on Screen may end up in several actions deending if you were able to hit the hot spot. If you miss it even by only 1 Pixel you may mark some text or going back or forward one page or whatever depending on the reader you are using. Personally i don't like numbers only and the wurst thin is to put in into a <sup> element... But maybe its possible to enhance the plugin by some kind of a template like Code:
[=> %text ] |\/|aui |
04-05-2018, 07:55 AM | #18 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2018
Device: Kindle Fire
|
Thanks everyone for you quick replies! I have looked at (and appreciate) your solutions!
The problem I had with Sigil, is that for some reason I couldn't do a Regex search for the square brackets, only a non-Regex search would find them. So I made two passes of looking for "[" and "]" to eliminate them. I replaced them with a space. The resulting footnote links unfortunately had varying size underlines, so it wasn't a perfect solution, but acceptable. This was only the first chapter in which I tried this FootnoteLinker plugin. It was VERY helpful, indeed! I had 46 footnotes in it. But I have HUNDREDS of chapters left to annotate. I should also mention that I am pretty new to ebook publishing. I had a look around in Doitsu's source code and could see where he inserts the square brackets. I thought maybe I could modify it to just use a space instead and rezip it back into its .zip file. I changed the name just so I would know which one was which. But unfortunately Sigil would not accept my modified plugin as a valid plugin. So that is why I thought maybe Doitsu would think about this possible modification. It's just too good a plugin NOT to use! @Doitsu: Thanks for the idea on changing the source. My way didn't work. I understand everyone's concern about clicking a little footnote link. However, I am patterning my book along the lines of a commercially done one, and it works adequately, while not as easy as having a link with all sorts of "decorations" it must be remembered (in my case -I'm working on a Bible) that not everyone is interested in the footnotes, so having the footnotes be less conspicuous can enhance the reading experience if not the "clicking" one! Last edited by billyray520; 04-05-2018 at 08:10 AM. |
04-05-2018, 08:42 AM | #19 |
Sigil Developer
Posts: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Square brackets themselves are regex special characters and as such must be escaped in the regex itself so they are interpretted as just normal characters.
|
04-05-2018, 08:44 AM | #20 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
I've attached a patched version, which doesn't add square brackets, for your convenience.
|
04-05-2018, 01:31 PM | #21 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2018
Device: Kindle Fire
|
@ KevinH: Thanks for the word about escaping the special characters! I found the Regex help page. That will help a lot.
@ Doitsu: Thanks for the special edition plugin! It worked great! Now I have another problem.. The ebook I am editing has about 1750 html files most of which will need footnotes added. Is it possible to do use this plugin over and over on various files? I can't put ALL of the notes into one note html. I will need to have many different pages of note files related to groups of html documents (books of the Bible). Am I asking too much of this plugin? What worked this last time was deleting the files that were already footnoted with FootnoteLinker, and running the plugin on the new files. Then reinserting the deleted files. But that will become too cumbersome in little time as you can imagine. |
04-05-2018, 05:01 PM | #22 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
You might find another Sigil footnote plugin more useful for your purposes: Easy Endnote Insertion
|
04-06-2018, 08:38 AM | #23 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2018
Device: Kindle Fire
|
I've got another idea! I like your plugin better for several reasons. One of them is that your plugin uses footnotes in a separate file, not inline. I need that.
What I think I will try is using your test.epub and adding the bodytext and note page html's that I want footnoted and deleting your little test files, and updating with the correct css for the footnotes. Then, run your plugin and save the two files externally. Then re-import them into the main epub I'm working on. I should have time to try this out by tomorrow. I would totally be willing to do this, if it will let me continue using your plugin.. Update: Ok, I've tried it on a couple of files that were already footnoted, and it functioned perfectly! Last edited by billyray520; 04-06-2018 at 09:00 AM. |
04-06-2018, 10:06 AM | #24 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Couldn't you also add all of the footnotes to one file initially, and then mark/split it into logical sections after all the notes have been created? Sigil's Split feature will adjust all the links automatically.
|
04-07-2018, 07:07 AM | #25 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2018
Device: Kindle Fire
|
Quote:
This forum has been TERRIFIC!! I would be pulling my hair out if I didn't have this plugin! This Bible I am annotating has about the same amount of text in the form of notes as the text of the Bible itself! Now I can just concentrate on scanning, converting and proofreading all of these notes.. Last edited by billyray520; 04-07-2018 at 07:17 AM. |
|
04-09-2018, 07:26 AM | #26 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
You could use a fixed width space, like an en or em space. Or better I think, do it with padding in CSS: I used this for my notes: Code:
<a href="../Text/42-notes.html#n2" id="n2" class="noteref">[2]</a> .noteref { font-weight: bold; font-size:0.85em;padding: 0 0.25em; } |
|
05-11-2018, 10:28 AM | #27 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2018
Device: Kindle Fire
|
Another question: Would it be possible to have words be links to the footnotes instead of a number? And conversely, have those same words be links back to the original text?
Because this is a bible, I have two type of footnotes on every page: word links and verse number links. The verse number links already work fine, but I hope there's a way to have word links go to a (different) footnote too. I mean using footnotelinker of course... I can't really use easyendnote because these would be very large footnotes, sometimes many paragraphs. I would definitely prefer to keep the footnotes separate not intermingled in the main text. I want the notes to be accessible at the end of the chapter too. Last edited by billyray520; 05-11-2018 at 10:32 AM. |
05-11-2018, 11:01 AM | #28 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
05-11-2018, 05:30 PM | #29 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2018
Device: Kindle Fire
|
|
04-23-2019, 01:48 PM | #30 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2019
Location: France
Device: Bookeen Muse
|
[Plugin] Footnote Linker
Please excuse my english wich is not as good as I would like.
I have installed and ran Footnote Linker. I have noticed the following problem : In Sigil : I click Tools / Reports / Links In the column « Match ? » there should be « Yes » on all lines but instead there is « no » or it is empty. I think there is a problem in the endnotes.xhtml : Eg : <p class="note" id="ftn..."><a class="noteSymbol" href="../Text…. I think the id="ftn..." should be positionned after the <a <p class="note"><a id="ftn1" class="noteSymbol" href="../Text… Then click Tools / Reports / Links : all the « Match ? » are now « yes » Thank you for any help. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck plugin for Sigil | Doitsu | Plugins | 502 | 02-20-2024 06:58 AM |
kindlegen plugin for Sigil | Doitsu | Plugins | 169 | 02-16-2024 06:48 AM |
[Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 138 | 07-11-2023 11:22 AM |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 435 | 01-19-2023 09:46 PM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 10:11 AM |