06-09-2020, 01:33 PM | #346 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
For epub3, the full identifier is actually a combination of the book identifier plus the modification date and time. Sigil automatically updates this with every save.
From the epub3 spec ... Quote:
Last edited by KevinH; 06-09-2020 at 01:40 PM. |
|
06-09-2020, 01:37 PM | #347 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
FWIW, when an ebook with embedded but obfuscated fonts is opened in Sigil, the fonts are automatically de-obfuscated so that they can actually be read and used. They are kept in this deobfuscated state inside Sigil while Sigil is open and editing the file. The obfuscation step is only done on save. So you are free to change book id's when inside Sigil and the fonts will be properly obfuscated based on the new id when saved.
Last edited by KevinH; 06-09-2020 at 02:09 PM. |
Advert | |
|
06-09-2020, 03:49 PM | #348 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Out of curiosity, what happens with obfuscated fonts when using an export plugin like this one? If the files are copied from the temp directory created for the plugin's use, then..... ?
|
06-09-2020, 08:03 PM | #349 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Good question. In the sample output plugin, I think there is code to reobfuscate them. But in this plugin, the are written out deobfuscated but no encryption.xml either.
So the user can load the newly generated epub3 into Sigil, and use right click on the fonts to set the desired obfuscation method, idpf or adobe. The save will do what you set. |
06-09-2020, 08:07 PM | #350 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The same is true for FolderIn and FolderOut, I think as well.
|
Advert | |
|
06-10-2020, 09:07 AM | #351 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks. I couldn't remember off-hand if there was reobfuscation code in place, or if it was up to the plugin dev to do it.
|
06-10-2020, 09:38 AM | #352 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
It is up to the plugin devs, but the epub_utils.py has the necessary support routines and sample code (for idpf obfuscating) is in the sample output plugin attached near the front of the plugin dev main thread.
|
06-10-2020, 10:44 PM | #353 | |
Groupie
Posts: 159
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
I do notice they explicitly refer to "minor" changes; so it really does come back to the question of what to do when significant changes are being made. If the new file includes major changes to the version, the meta-data, the css, the internal file-structure, removing some text and adding other text, it seems to me that it would make no sense to continue to refer to the new file as merely an iteration of the original file. Would it be possible to add the option to generate a new ID when updating the file? This would also resolve the issue of "invalid" IDs which are not accepted in their original format in epub3. |
|
06-10-2020, 10:53 PM | #354 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Quote:
But for some reason, it does not show the existing one or allow you to edit it, or enforce its "uniqueness". You can add a new UUID with this, and epubcheck doesn't complain there are two UUIDs. I don't know what real-world effect the UUID has. Before I even knew the UUID existed, I know I created many epubs by cloning an existing one and replacing text. So they would all have the same UUID. But they all worked and never had any issues. Last edited by AlanHK; 06-10-2020 at 10:59 PM. |
||
06-11-2020, 12:03 AM | #355 | ||
Groupie
Posts: 159
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Quote:
Anyway maybe this is outside the scope of this particular plugin, in which case apologies for the digression. |
||
06-11-2020, 07:33 AM | #356 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The minor change refers to the book text itself. Not its layout, css, etc. If the text content has had major changes then indeed it must be a new book.
Changing a book from epub2 to epub3 does not mean major changes to the book text content. So adding a uuid when a perfectly good id already exists will not be part of ePub3-itizer. I will look into adding such functionality to Sigil or providing a plugin at some point. |
06-11-2020, 09:57 PM | #357 | |
Groupie
Posts: 159
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
|
|
10-09-2020, 08:17 AM | #358 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
I was about to request/suggest this, but see it was mentioned 5 years ago. Could not see a response, so adding a me-too.
Quote:
Last edited by AlanHK; 10-09-2020 at 08:24 AM. |
|
10-09-2020, 09:05 AM | #359 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The plugin has no info or idea of where Sigil itself loaded the epub2 originally from. The plugin should remember the last folder something was saved to after its first use.
You really should open the epub3 after creation, validate it passes epubcheck, etc. At this point changing the nav to linear = no or yes can be done by the user in the opf tab quite easily. |
10-09-2020, 12:06 PM | #360 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Quote:
But fixing the same setting every time I do a conversion is something that programs do more reliably, and faster, than people. I literally only found out today what the "linear" property does, after editing and distributing epubs for about 10 years, and just shrugging off the ugly extra TOC at the back as something I had to put up with. It's not a well known feature. There are a couple of other options that would be useful: e.g. to optionally add <meta property="ibooks:specified-fonts">true</meta> to the OPF so embedded fnts will work in i-devices. Also easily done manually, if you know you need to do it and know the syntax. |
||
|
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 |