![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
EPUB3 related requests
Hi, Kovid.
Would it be possible to add a context menu entry to "Mark as Navigation Document"? Right now, you must edit the opf manually. Also, when upgrading from EPUB2 to EPUB3, content files remain as "html", while EPUBCheck says it should be "xhtml". Can't this be changed automatically? Thanks, Thiago |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open a ticket for the mark request. As for auto-renaming I didnt do that deliberately. epubcheck is just idiotic and I dont want every epub 2 -> 3 doing extra work just to shut it up. Renaming a file means all references to it have to be updated, for which the entire book has to be scanned. You can of course easily rename them yourself if it bothers you using the bulk change file extensions tool in the editor.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Done: https://bugs.launchpad.net/calibre/+bug/1990507
Quote:
------ Another question: when renaming files on most systems, you can hit tab and then continue editing the next one; this does not work on the Editor. Would it be possible to change this? |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The reason the tab key doesnt work is because after every rename, the file tree has to be rebuilt which causes the next editing to be closed automatically. It could possibly be worked around, but not easily. If you are trying to edit many filenames, you should use the bulk edit facility instead.
Last edited by kovidgoyal; 09-22-2022 at 10:46 AM. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Turned out to be not too painful: https://github.com/kovidgoyal/calibr...d71bd239c5d3df
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
P.S.: I just tested it here and found two problems. First, if you edit more then one filename, when you press enter, the opf if not being updated with the change. Second, it does not check the filename until you finish the editing, so duplicate names might occur, and give you an error at the end. |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
https://github.com/kovidgoyal/calibr...110002b815b638
as for not entering unique names, I am not too fussed about that, if it bothers you, feel free to send a patch, although I dont really see what can be done other than discarding duplicates, which I have implemented. |
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
I think discarding the change is good enough. I noticed one last error: if you create a set of duplicate names at the same editing session (before pressing enter), then the duplicate is discarded. But, if the new name matches a name that already existed (before the editing session), then it will give you an error, and all the changes are discarded. Also the file tree is not updated until you save or make a new edition. |
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 457 | 05-28-2025 06:14 PM |
epub3 app with epub3 dictionary support | Doitsu | ePub | 0 | 01-21-2017 09:38 AM |
Epub3 XHTML Validation epub3 | Ramesh Arpitha | ePub | 5 | 06-30-2014 08:32 PM |
Two requests | Hoods7070 | Editor | 14 | 03-20-2014 03:57 AM |
New Errors Converting epub3 -> zip -> epub3 | Lola25 | ePub | 2 | 11-12-2013 09:37 PM |