Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2021, 10:02 PM   #391
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

I tried the 0.56 version on Linux which works remarkably smoothly and quickly with a commercial ePub2 which had even some epubcheck mistakes. Thank you.

A question

This ebook has about 200/250 endnotes. I had hoped that an
Code:
epub:type="rearnote"
attribute (or other of the same kind like "note", "footnote", etc.) could have been added to each note.

This kind of attribute is requested with Koreader (and maybe other rendering engines) to display inline notes (notes de bas de page) which provide a real comfort at least for some books*. Note that a Koreader option allows the user to select either a pop-up or inline display as long as this kind of attribute is present. Koreader can be used with many different ebook-readers (Kobo, Kindle, Android, pocketbook, etc.)

If the endnotes definitions are to be found in one file, this seems to be doable. I could do it myself with a regex but maybe not every reader.

* for example when the notes add complementary information which goes beyond plain bibliographical references and when pretty small anchors can easily be missed by the reader.

Last edited by roger64; 03-27-2021 at 10:32 PM.
roger64 is offline   Reply With Quote
Old 03-27-2021, 10:40 PM   #392
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,670
Karma: 5433388
Join Date: Nov 2009
Device: many
Since aside comes with epub3, if only anchors were there, how could it recognize that it was meant as a footnote and not just another anchor a tag.

Adding semantic tags like that could only be added if it was clear it was a link to a footnote and a return link from a footnote.
KevinH is online now   Reply With Quote
Advert
Old 03-27-2021, 11:44 PM   #393
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by KevinH View Post
Since aside comes with epub3, if only anchors were there, how could it recognize that it was meant as a footnote and not just another anchor a tag.

Adding semantic tags like that could only be added if it was clear it was a link to a footnote and a return link from a footnote.
Indeed.

As it happens, this particular commercial book includes also index entries using a a tag and href link. So this semantic question has to be answered by the reader (if the editor did nothing about it).

But, maybe, if you find something like this in the opf of the proposed ePub2 :

Code:
<guide>
    <reference type="cover" title="Cover" href="text/titlepage.xhtml"/>
    <reference type="other.footnotes" title="Notes de bas-de-page" href="text/PL20.xhtml"/>
  </guide>
you could process this one and only PL20 chapter?

Last edited by roger64; 03-27-2021 at 11:49 PM.
roger64 is offline   Reply With Quote
Old 03-28-2021, 11:36 AM   #394
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,670
Karma: 5433388
Join Date: Nov 2009
Device: many
The use of the guide to properly mark semantic types as footnotes is rare to say the least. It was not even one if the original semantic types for epub2.

So this is really something for a different plugin, not ePub3-itizer to deal with.
KevinH is online now   Reply With Quote
Old 03-28-2021, 08:25 PM   #395
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by KevinH View Post
Adding semantic tags like that could only be added if it was clear it was a link to a footnote and a return link from a footnote.
Making use of aside and epub:type to enable pop-up or inline footnotes is part of the advantages of the ePub3 format and probably one of the reasons why users would like to upgrade.

That's why, even if it is a rare occurrence, if the acknowledged semantic tag "footnote" is present in the opf, I fail to see why it would be best to call for a distinct plugin for upgrading also the footnotes to the ePub3 standard. It would be a puzzling, artificial and easily avoidable complexity.

As you said above, an if... then... condition "could only be added" to the plugin code to deal with the footnotes when a semantic tag is present.

Last edited by roger64; 03-28-2021 at 08:34 PM.
roger64 is offline   Reply With Quote
Advert
Old 03-28-2021, 09:03 PM   #396
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,670
Karma: 5433388
Join Date: Nov 2009
Device: many
It should be part of a more generic footnote plugin where the user can optionally identify a particular class if used to help detect foot vs end notes and and source vs return.

So no this is not something for a generic epub3-itizer to do. It is just the first step to making a good epub3, and not the final step. Much in the way of proper semantics should be set by the dev and something like AccessAide should be run to update alts, missing titles, add aria roles, etc.

So no, this is not going to become part of epub3-itizer when it really belongs in its own plugin that deals with identifying and updating footnotes.
KevinH is online now   Reply With Quote
Old 03-29-2021, 04:22 AM   #397
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thank you for taking the time to reply me.

You are right, the plugin already exists with Sigil... Its name is FNLinker. It creates new ePub3 footnotes under two conditions:
- an easy one, the presence of the semantic tag (see above)
- a tricky one (depends on the book): there must be an equal number of class anchors and class definitions.

If there is a discrepancy between these two classes, it may require a careful (long) analysis to correct the mistake(s) before being able to process the links in some few seconds.

Last edited by roger64; 03-29-2021 at 07:02 AM. Reason: FNLinker
roger64 is offline   Reply With Quote
Old 04-21-2021, 01:14 AM   #398
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
If I process an epub with filenames *.html this produces a valid epub3.
However, if I do an epubcheck, it gives a warning like:

WARNING(HTM-014a): XHTML Content Document file name 'OEBPS/Text/r1.html' should have the extension '.xhtml'.

I can fix that easily, but can the plugin do this automatically?

I realise there is the possible case of there being both a.html and a.xhtml, though no one in their right mind would do that, so in that case you could either add a suffix or abort renaming with an error message.
AlanHK is offline   Reply With Quote
Old 04-21-2021, 06:00 AM   #399
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
If I process an epub with filenames *.html this produces a valid epub3.
However, if I do an epubcheck, it gives a warning like:
You'll have to rename the files before running the plugin:

Quote:
Originally Posted by KevinH View Post
Before Conversion
1. Make sure your epub2 validates under FlightCrew and/or EpubCheck
2. If your epub uses ".htm" or ".html" file extensions, you should first change them to use ".xhtml" file extensions as follows [...]
Doitsu is offline   Reply With Quote
Old 04-21-2021, 12:34 PM   #400
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,670
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes, Doitsu is 100% correct. It is just easier and faster to do the file renames and link updating inside Sigil and it can do it all at once easily.
KevinH is online now   Reply With Quote
Old 04-21-2021, 12:50 PM   #401
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,685
Karma: 145624990
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by AlanHK View Post
I realise there is the possible case of there being both a.html and a.xhtml, though no one in their right mind would do that, so in that case you could either add a suffix or abort renaming with an error message.
I've run into two epubs where there were duplicate filenames with different extensions (i.e. part00019.htm and part00019.html). Both of them were omnibus editions. As you said, not sure why anyone in their right mind would do that but it has happened.
DNSB is online now   Reply With Quote
Old 04-21-2021, 12:59 PM   #402
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,670
Karma: 5433388
Join Date: Nov 2009
Device: many
I hope the were not both in the same folder at least!
KevinH is online now   Reply With Quote
Old 04-21-2021, 07:52 PM   #403
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
You'll have to rename the files before running the plugin:
What do you mean "have to"? If I'm doing it manually, can do it just as easily after conversion. Though it's probably preferable, even though not necessary.

Anyway, the point is: I have a epub2, using .html filenames.
ePubCheck: "No problems found!"

Run the conversion:
'WARNING(HTM-014a): XHTML Content Document file name 'OEBPS/Text/halftitle.html' should have the extension '.xhtml'."
-- for every file.

Would be nice if epub3-itizer fixed that.

Last edited by AlanHK; 04-21-2021 at 07:58 PM.
AlanHK is offline   Reply With Quote
Old 04-21-2021, 07:57 PM   #404
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by DNSB View Post
I've run into two epubs where there were duplicate filenames with different extensions (i.e. part00019.htm and part00019.html). Both of them were omnibus editions. As you said, not sure why anyone in their right mind would do that but it has happened.
Actually, if you look at books, where the original structure was each volume in its own folder in the zip, after Sigil opened it and flattened the file structure it renamed any collisions automatically, (e.g. several cover.jpg files each gets a number added). So not a new problem.
AlanHK is offline   Reply With Quote
Old 04-21-2021, 08:04 PM   #405
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,670
Karma: 5433388
Join Date: Nov 2009
Device: many
No. Naming your files properly is not the job of ePub3-itizer as the plugin instructions and this thread clearly states.

It will not be changed, especially when doing it inside Sigil would be much faster than doing it via python in a plugin. No reason at all to duplicate that code.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 551 07-18-2023 06:22 AM
Create a javascript quizz for Epub3 in Sigil BertrandThibaut Sigil 3 01-26-2014 09:04 AM
An epub3 version of Sigil ? apulia03 Sigil 9 11-28-2012 01:07 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
epub3 Sigil Poetry(fixed layout) Giggleton Sigil 7 04-04-2011 12:58 PM


All times are GMT -4. The time now is 09:58 PM.


MobileRead.com is a privately owned, operated and funded community.