![]() |
#31 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
You can easily test this by checking your epub with EPUBCheck. If using the Links report tool is important to you could use a regular expression to move the id attribute from the <p> tag to the <a> tag. |
|
![]() |
![]() |
![]() |
#32 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Apr 2019
Location: France
Device: Bookeen Muse
|
Thank you for your answer.
Yes reports are important for me as I make Epubs with lots of notes. Report is an easy way to check if all links are Ok. I have now created a new Saved research : Find : <p class="note" id="ftn(.*?)"><a class="noteSymbol" Replace : <p class="note"><a id="ftn\1" class="noteSymbol" Thank you |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,048
Karma: 5449552
Join Date: Nov 2009
Device: many
|
I will look into fixing reports to look for id tags on non-anchors as well sometime before our next release.
|
![]() |
![]() |
![]() |
#34 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Apr 2019
Location: France
Device: Bookeen Muse
|
Thank you for your answers
Atn Doitsu : When links are created "manually" in Sigil, they look like : <p class="note"><a id="ftn1" class="noteSymbol" href="../Text… ( the id="ftn…" after the <a ) Don't you think it could be a good thing that Footnote linker puts the id in the same position as when it is done manually ? Thank you |
![]() |
![]() |
![]() |
#35 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
Also, changing this behavior might break other code. Since you can easily fix this "problem" with a regular expression, I won't update the plugin. BTW, some epub3 apps, e.g. iBooks, will look for <aside>, <div> or <p> tags with an id attribute and won't find footnote definitions and/or won't display them as popup footnotes if the id attribute is added to an <a> tag. Note that there's another Sigil footnote plugin, Easy Footnote Insertion, which might work better for you. |
||
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Apr 2019
Location: France
Device: Bookeen Muse
|
Hi Doitsu,
I understand. Thank you for your answer |
![]() |
![]() |
![]() |
#37 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 2077248
Join Date: Feb 2020
Device: Forma
|
All notes of ebook mistakenly link to the book's cover. What's best way to fix?
Hello there.
I have no experience with editing ebooks. I am really just a reader. but there's an ebook where all the links to the end-of-chapter notes just go to the book's cover. So I would like to fix it, especiallly because this book is heavily noted. In Sigil's preview, the text looks like: Code:
absolute power of the state.”14 This is incorrect In Sigil's editor window, it looks like: Code:
absolute power of the state.”</span><a class="S-T1" href="../Text/index_split_000.xhtml#anchor22"><span class="S-T6">14</span></a> <span class="S-T1">This is incorrect Code:
and many others after him have taught us.15 Rome can Code:
and many others after him have taught us.</span><a class="S-T1" href="../Text/index_split_000.xhtml#anchor23"><span class="S-T6">15</span></a> <span class="S-T1">Rome |
![]() |
![]() |
![]() |
#38 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For the plugin to work, all footnote links and definitions must have unique class attributes. In your case you'll also need to remove the existing broken footnote definition links. You'll need to use a regular expression search to change: Code:
<a class="S-T1" href="../Text/index_split_000.xhtml#anchor22"><span class="S-T6">14</span></a> Code:
<a class="noteanchor">14</a>
They should look like this: Code:
<p class="note">14. Footnote definition</p>
If the number of footnote links matches the number of footnote definitions, the plugin should automatically link them. Make sure to create a backup copy, before you implement these changes! |
|
![]() |
![]() |
![]() |
#39 | ||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 2077248
Join Date: Feb 2020
Device: Forma
|
Quote:
Quote:
Note #14, at the end of chapter 1, looks like this in the Preview window: Code:
14 P. Lobstein, Einleitung in die Evangelische Dogmatik (Freiburg, 1897), 23. Code:
<p class="P-P14"><span class="S-T1" id="anchor129"></span><a class="S-T1" href="../Text/index_split_000.xhtml#anchor60"><span class="S-T6">14</span></a> <span class="S-T1">P. Lobstein,</span> <span class="S-T5">Einleitung in die Evangelische Dogmatik</span> <span class="S-T1">(Freiburg, 1897), 23.</span> </p> Code:
15 Friedrich Schleiermacher, Die Christliche Sitte nach dem Grundsazen der evangelischen Kirche dargestellt (Berlin: G. Reimer, 1884), 5 [Introduction to Christian Ethics, trans. John Shelley (Nashville: Abingdon, 1989)]; Richard Rothe, Zur Dogmatik (Gotha: Perthes, 1869), 10; Alexander Schweizer, Die Glaubenslehre der evangelisch-reformirten Kirche (Zurich: Orell, Fussli, 1847), I, 23. Code:
<p class="P-P14"><span class="S-T1" id="anchor130"></span><a class="S-T1" href="../Text/index_split_000.xhtml#anchor61"><span class="S-T6">15</span></a> <span class="S-T1">Friedrich Schleiermacher,</span> <span class="S-T5">Die Christliche Sitte nach dem Grundsazen der evangelischen Kirche dargestellt</span> <span class="S-T1">(Berlin: G. Reimer, 1884), 5 [</span><span class="S-T5">Introduction to Christian Ethics</span><span class="S-T1">, trans. John Shelley (Nashville: Abingdon, 1989)]; Richard Rothe,</span> <span class="S-T5">Zur Dogmatik</span> <span class="S-T1">(Gotha: Perthes, 1869), 10; Alexander Schweizer,</span> <span class="S-T5">Die Glaubenslehre der evangelisch-reformirten Kirche</span> <span class="S-T1">(Zurich: Orell, Fussli, 1847), I, 23.</span> </p> |
||
![]() |
![]() |
![]() |
#40 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
You might want to post your question in the general epub forum. |
|
![]() |
![]() |
![]() |
#41 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Hi Doitsu,
I was referred to your plugin by DNSB when I created a thread asking what to do with footnotes that were converted from "true PDF" (text can be highlighted) to MS Word 2016 Docx on the way to ePub. (I'm using MS Word as middleman as that's what's suggested by Willus at https://www.willus.com/k2pdfopt/pdf_conversion.shtml). Anyway, does your plugin help me with footnotes that, in MS Word 2016, are differentiated from the main body by its smaller font size and by beginning with a number and then a period and then a space and then the footnote text itself (for example --> 2. Bob Smith blah blah blah). If not, do you have any suggestions? |
![]() |
![]() |
![]() |
#42 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(I've attached a sample epub file to the first post.) |
|
![]() |
![]() |
![]() |
#43 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 2136218
Join Date: Jan 2014
Location: Denmark
Device: iPad
|
Hi Doitsu
This is a great plugin - thank you so much ![]() Works fine with Sigil v.0.9.10. |
![]() |
![]() |
![]() |
#44 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2020
Device: Poketbook InkPad 2, Kindle Paperwhite 10th gen
|
Hi,
I was so happy when I found this plugin. I has been searching around the web how automatically generate links to endnotes and backlinks to footnote anchors. So, first of all, many thank to developer(s) and contributors! ![]() I just bought some ebooks that have this problem: endnotes are not linked! I found footnote anchors with and endnote defintions and replace defaults when started the plugin. But I get the following error (I tried with 2 ebooks, but the same problem). Quote:
|
|
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
The plugin only works if footnote links and footnote definitions have unique class attributes. Since the plugin detected more footnote definitions than footnote links, some paragraphs that aren't footnote definitions must have the same class attribute as footnote definitions.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck plugin for Sigil | Doitsu | Plugins | 519 | 07-22-2024 04:59 PM |
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 |