![]() |
#136 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,789
Karma: 6000000
Join Date: Nov 2009
Device: many
|
No Sigil in 2011 simply ignored the incorrect mimetype and forced everything based on the file extension. This approach does not work for generic .xml files and some other files that can represent a number of possibly different media-types.
Sigil now, just like in web browsers treats the media type as important and that does determine how a file is displayed or processed. I will change Sigil's code to look up the media-type from the manifest item and if that is not recognized, then (assuming the extension is not ".xml") look up the media-type via the file extension. I will also hard code the bookpath to match the epub zip even if a file's type and mediatype are not recognized. Thanks for testing. KevinH Last edited by KevinH; 11-15-2019 at 07:44 PM. |
![]() |
![]() |
![]() |
#137 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,789
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
They are recognizable so I can add them as even more equivalents to the long list we already recognize. |
|
![]() |
![]() |
Advert | |
|
![]() |
#138 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
I've no idea how you implement this growing list, but is there ever a case where it would be useful for a user to be able to configure something to add to the list so that they could deal with a funny mime type without having to report a bug and wait for an update/release?
|
![]() |
![]() |
![]() |
#139 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,789
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Wouldn't it just be easier to edit the OPF and replace the broken mediatype?
FWIW, There is actually a core limited set of mediatypes that epub3 may use (see the epub3 spec) without supplying an alternative file. We already cover those covered by the spec. |
![]() |
![]() |
![]() |
#140 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
|
![]() |
![]() |
Advert | |
|
![]() |
#141 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,789
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay, I just now pushed a fix to master to try to harden Sigilaginst unrecognized mediatypes.
I can not use the Three Men in a Boat to test it as I have added those font mimetypes so that they are now recognized. So after the appveyor build completes, would you please grab it and test it with your 2011 epub and let me know if I have succeeded or still have more work to do. Thanks, KevinH I am a bit worried about your page-template file as it does use a recognized mediatype just not the proper mediatype for that file so we may still have issues with that one. |
![]() |
![]() |
![]() |
#142 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Code:
Debug: Warning: unrecognized mediatype in OPF: "txt/css" To be honest, I've no idea what that page-template file actually does. I tinkered with a few margins mentioned in that file and nothing seemed to change in the Sigil preview window. Don't care what it does, happy I can open the epub now ![]() Thanks very much for your work on this and the other tab closing issue! |
|
![]() |
![]() |
![]() |
#143 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Well ... if I rename another file within that epub, then I get the attached message. Sigil keeps working, other that the pop-up everything else works. I expect that's related to updating/changing the contents.opf?
|
![]() |
![]() |
![]() |
#144 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
There's a problem with changing the target of a TOC entry in the TOC editor.
Maybe I should change my profile blurb to "I break things"? ![]() |
![]() |
![]() |
![]() |
#145 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#146 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,587
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Does it happen with both EPUB2 and EPUB3? Last edited by DiapDealer; 11-16-2019 at 07:27 AM. |
|
![]() |
![]() |
![]() |
#147 | ||
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#148 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#149 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,587
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Any sign of the selection dialog trying to appear after clicking Select Target, or is the segfault immediate?
|
![]() |
![]() |
![]() |
#150 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
5.8.11 Pre=release | knc1 | Kindle Developer's Corner | 21 | 04-17-2018 08:42 PM |
Overdrive - Search for Pre-Release | nynaevelan | General Discussions | 11 | 11-24-2013 02:27 PM |
Where are the pre-release purchase buttons? | Sydney's Mom | General Discussions | 8 | 09-06-2012 10:57 PM |
KF Android 4.0 Pre-Release Version | robertc88 | Kindle Fire | 22 | 01-22-2012 07:24 PM |
PDF Viewer 0.3.0 pre-release | pruss | Android Devices | 62 | 11-22-2011 11:18 AM |