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 12-15-2015, 02:06 PM   #166
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
You are welcome. (I do not think it is urgent to fix this sort of minutiae.)

I opened an issue to epubcheck just to learn what they think about it: https://github.com/IDPF/epubcheck/issues/663
AlPe is offline   Reply With Quote
Old 12-15-2015, 04:06 PM   #167
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: 8,804
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi AlPe,

Had one other bug that did not store the fixed opentype font media-type properly, so I don't mind making a v034 with both fixes.

Thanks,

KevinH
KevinH is offline   Reply With Quote
Advert
Old 12-15-2015, 10:09 PM   #168
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: 8,804
Karma: 6000000
Join Date: Nov 2009
Device: many
Bug fixed ePub3-itizer_v034.zip now posted
KevinH is offline   Reply With Quote
Old 12-16-2015, 04:16 AM   #169
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Great, thank you.
AlPe is offline   Reply With Quote
Old 01-11-2016, 08:33 PM   #170
tbrosz
Member
tbrosz is on a distinguished road
 
Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
Thanks for a useful Sigil plugin

I do conversions, and your plugin is useful for converting my ordinary EPUB2 files (nothing fancy, mostly straight text and images) into an EPUB3 version that seems to work.

The only complaint the EPUB Validator site had was that it wanted all the index files changed from .html to .xhtml. Once I made the name edits though, the file passed the 3.01 validation.

Is the plugin supposed to do that name change automatically?
tbrosz is offline   Reply With Quote
Advert
Old 01-11-2016, 08:45 PM   #171
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If not, it is easy to use Sigil's "Bulk Rename" feature.

Just use .xhtml as the rename pattern, and it will know you are changing the filename extension.
eschwartz is offline   Reply With Quote
Old 01-11-2016, 09:19 PM   #172
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: 8,804
Karma: 6000000
Join Date: Nov 2009
Device: many
The .html extension (vs .xhtml) is perfectly legal in epub 3. If epubcheck or any other validator complains with anything other than an info, the validator is wrong.


Edit:
I partially take that back... the IDPF does say "SHOULD" and not "MUST" (See their official definitions at the start on the epub 3 docs)

› The XHTML Content Document filename SHOULD use the file extension .xhtml.

So I guess a validator giving a warning or info about it is okay, but it should not error out.

KevinH

Last edited by KevinH; 01-11-2016 at 10:07 PM.
KevinH is offline   Reply With Quote
Old 01-11-2016, 09:55 PM   #173
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I mostly just change it to be nitpicky.
It is XHTML, while technically it "can" be *.html it is aesthetically displeasing (to me).

Sigil has the tools to fix it, anyway.
eschwartz is offline   Reply With Quote
Old 01-12-2016, 04:31 AM   #174
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,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by KevinH View Post
The .html extension (vs .xhtml) is perfectly legal in epub 3. If epubcheck or any other validator complains with anything other than an info, the validator is wrong.


Edit:
I partially take that back... the IDPF does say "SHOULD" and not "MUST" (See their official definitions at the start on the epub 3 docs)

› The XHTML Content Document filename SHOULD use the file extension .xhtml.

So I guess a validator giving a warning or info about it is okay, but it should not error out.

KevinH
You are right.

The validator (4.0.1.) gives only a warning, but when you have 60 files, it's a cumbersome warning..

The trick is that when and if your files are .xhtml (being also html 5), you should declare them as such.

Last edited by roger64; 01-12-2016 at 04:33 AM.
roger64 is offline   Reply With Quote
Old 01-12-2016, 10:37 AM   #175
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: 8,804
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi roger64,

The serializer I wrote for Gumbo will always produce xhtml that can be parsed by an html5 parser (only void tags will ever self-close, any void tags with separate closing tags will be made self-closing, etc). Using gumbo as the heart of the parsing/repairing engine in Sigil will always see to that.

So call it .xhtml but for epub3, anytime we parse the file and serialize it we are effectively creating polyglot html5/xhtml using xhtml serialization rules that will always parse in a spec compliant html5 parser. I just think it is nuts to have 2 (3 if you count pure xml, 4 if you count xhtml5 as different to xhtml 1.1) different specs when proper serialization can generate code that is recognized the same way under html5, xhtml5, xhtml 1.1 and xml 1.0.

Thanks,

KevinH
KevinH is offline   Reply With Quote
Old 01-12-2016, 07:13 PM   #176
tbrosz
Member
tbrosz is on a distinguished road
 
Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
What seems to work the most easily for me is simply manually renaming the numbered file names in the Book Browser window from .html to .xhtml. Sigil then goes into the rest of the file and renames their references automatically.
tbrosz is offline   Reply With Quote
Old 01-12-2016, 07:20 PM   #177
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by tbrosz View Post
What seems to work the most easily for me is simply manually renaming the numbered file names in the Book Browser window from .html to .xhtml. Sigil then goes into the rest of the file and renames their references automatically.
Of course, you really mean you did this, right? :
Quote:
Originally Posted by eschwartz View Post
If not, it is easy to use Sigil's "Bulk Rename" feature.

Just use .xhtml as the rename pattern, and it will know you are changing the filename extension.
eschwartz is offline   Reply With Quote
Old 01-12-2016, 07:48 PM   #178
tbrosz
Member
tbrosz is on a distinguished road
 
Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
The standard "search and find" rename function addresses all the contents of the files, but the file names in the browser window stay the same even if I change all the rest. For some reason, the rename doesn't extend automatically backwards to the file title in the browser window. I have to right-click on the name in the browser window ("index_split_001.html"), hit "rename," and type the "x" in there.

If there's another renaming tool in Sigil, I haven't found it yet.

It's a bit tedious for books with a lot of chapters, but it works. Hey, I've never even used Sigil all that much. Still feeling my way around.

Kind of like how Ponder figures out how to use HEX.

Last edited by tbrosz; 01-12-2016 at 08:41 PM.
tbrosz is offline   Reply With Quote
Old 01-12-2016, 08:57 PM   #179
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Erm, select a bunch of filenames in the File Browser, right-click, and use the Rename function.

If you use it on multiple files, it will do a bulk rename and ask you to "Rename Files Starting At: _____"

Enter ".xhtml" -- Sigil will recognize it starts with a "." and use the suffix to rename the file extensions instead of the file names.


(I could've sworn this used to be a "Bulk Rename" option... just plain "Rename" doesn't make it quite as obvious...)


Please do NOT use regex to change the filename links, Sigil knows how to update valid links if you rename files properly but if you destroy the links and *then** rename the files themselves the links won't match and accidents can happen!!!
eschwartz is offline   Reply With Quote
Old 01-12-2016, 09:00 PM   #180
tbrosz
Member
tbrosz is on a distinguished road
 
Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
That works a lot faster! Thanks! (Got to write this down...)

P.S. Not sure what "regex" is, but I'll avoid it.

Last edited by tbrosz; 01-12-2016 at 09:08 PM.
tbrosz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 588 03-28-2025 02:26 PM
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 05:46 PM.


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