![]() |
#1 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,980
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Thoughts on Potential New Features for Sigil
Hi All,
I am looking for thoughts on new features for future versions of Sigil: Here is a new feature I have been thinking about ... Since epubcheck now reports on out of date or incorrect media types, I was thinking of: A. adding a tool to BookBrowser to change the Media Type for a resource one at a time. Inside Sigil each resource object keeps its own media type internally, and of course there is the OPF manifest which also provides the media type so both have to be updated. Multiple selection in the BookBrowser would be possible. or B. adding a new Sigil Tool menu to automatically walk all manifest types updating them when older media types need to be updated to new ones. The only issue with both option A or B is that of course you can convert a binary media-type to a text media type without losing anything if really needed but not visa-versa. Also what happens when the new media-type input from the user is actually has a different file format that what was provided in the OPF when first launched. That should not happen often but it could. So I would love to hear from you to understand if either option A or B would be useful enough to add to Sigil itself instead or if you feel these things would be better as a plugin, or not useful at all. Please use this thread to make other feature suggestions that might prove useful to the main body of Sigil users. Please try not to suggest things that have already been ruled out in earlier feature threads or that already exist in the form of a plugin. Be sure to explain why you think your feature would benefit the majority of the users of Sigil. Thanks. Last edited by KevinH; Yesterday at 01:21 PM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,634
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
How about a "Fix outdated/wrong media types" right-click Book Browser menu option that is only shown for .opf files?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,980
Karma: 5449552
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#4 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
I would have liked a dedicated tool, which would offer many options, but a such use case would be absolutely rare. Apart from correcting wrong media types, altering the media type by anything other than that on of the file makes almost no sense and is of no use. And if you really wanted to do it, then you knew exactly what you were doing and didn't need such a tool.
So @Doitsu's proposal is really perfect. Simple, small and effective. However, I recommend making this action accessible into the Automation tool. |
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,980
Karma: 5449552
Join Date: Nov 2009
Device: many
|
The only hard case is pure xml files with the generic .xml file extension but no way to easily detect what type of xml is in the file. I could always leave them alone and not update those.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 734
Karma: 2296998
Join Date: Jan 2017
Location: Poland
Device: Various
|
Or perhaps in the case of questionable .xml files, the choice of whether to treat them as pure xml or as “application/xhtml+xml”.
|
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,980
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Detecting html and doctype tags in a generic xml file should be quite easy to do. Those we can handle.
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,980
Karma: 5449552
Join Date: Nov 2009
Device: many
|
The other interesting case would be how to deal with media-types where they allow multiple media types for the same resource. Seems like Fonts and Javascripts are big with multiple names
Code:
Images -------- image/gif - GIF Images image/jpeg - JPEG Images image/png - PNG Images image/svg+xml - SVG documents image/webp - WebP Images Audio ------- audio/mpeg - MP3 audio audio/mp4 - AAC LC audio using MP4 container audio/ogg - OPUS audio using OGG container Style ------ text/css - CSS Style Sheets. Fonts ------ font/ttf application/font-sfnt - TrueType fonts font/otf application/font-sfnt application/vnd.ms-opentype - OpenType fonts font/woff application/font-woff - WOFF fonts font/woff2 - WOFF2 fonts Other ------ application/xhtml+xml - XHTML content documents application/javascript application/ecmascript text/javascript - JavaScripts application/x-dtbncx+xml - The legacy NCX. application/smil+xml - EPUB media overlay documents Last edited by KevinH; Today at 12:03 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ALERT: Potential Issues with Sigil 2.2.X and rtl languages and Normalization Forms | KevinH | Sigil | 41 | 07-01-2024 09:09 AM |
Features that i miss in Sigil | abraum | Sigil | 24 | 07-21-2021 10:52 AM |
What Features or Tools does Sigil Still Need Yet? | KevinH | Sigil | 175 | 03-06-2021 09:11 PM |
New Plugin Features in the upcoming Sigil 0.8.900 | KevinH | Plugins | 6 | 09-14-2015 02:48 PM |
Writer2ePub, Sigil, and mjBookMaker Features | Ransom | Writer2ePub | 1 | 09-21-2011 09:20 AM |