![]() |
#181 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes, perhaps an opf mediatype validator plugin in python would help.
|
![]() |
![]() |
![]() |
#182 | |||
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:
<item href="Styles/page-template.xpgt" id="pt" media-type="application/vnd.adobe-page-map+xml"/> Quote:
For this particular troublesome epub, once we're done I'm just going to delete the xpgt file and not touch the OPF at all ![]() Quote:
![]() |
|||
![]() |
![]() |
Advert | |
|
![]() |
#183 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes, because it in itself the xpgt is a valid file. The mediatype that is assigned to it "application/vnd.adobe-page-map+xml" is actually a semi-vaild (debatedly) mediatype. The problem is it is a mediatype for a different kind of file!
The way to correct this is to replace the wrong mediatype for the .xpgt file with the correct one for this file type. According to the mobileread wiki, https://wiki.mobileread.com/wiki/Ado...ayout_Template It should be "adobe-page-template+xml" or under the new iana.org try a "vnd.adobe-page-template+xml". This is why this is so troublesome. The assigned mediatype did not match the file extension but does actually exists at least according to some people. |
![]() |
![]() |
![]() |
#184 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,526
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yep. We can't do magic. We can't easily detect that a valid xml file with a valid media-type, does in fact have the wrong media-type.
Besides; when I mentioned using EpubCheck, I was only trying to address your concerns about the pop-up error message you were getting for the css file with the wrong media-type. You were worried about knowing where to look, and EpubCheck tells you exactly. If it's any consolation, the proprietary Adobe stylesheet was just as silently incorrect in the older versions of Sigil as it is now (after the fixes Kevin implemented). Last edited by DiapDealer; 11-17-2019 at 10:10 AM. |
![]() |
![]() |
![]() |
#185 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay, as a test, I just pushed to master an unrecognized media type load warning when an epub is first imported and the media type is unrecognized. This will not fix your issue as the media-type was recognized but incorrect.
|
![]() |
![]() |
Advert | |
|
![]() |
#186 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
KevinH |
|
![]() |
![]() |
![]() |
#187 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,819
Karma: 6769540
Join Date: Mar 2015
Device: Kindle, iOS
|
Building Sigil from master is beyond my skill set, but if you're looking for someone to test the dual-monitor thing on Mac, I would be happy to do so if sent a link to the latest Mac build.
|
![]() |
![]() |
![]() |
#188 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I will pm you with an updated link once my last commit passes through travis.
Thanks again for all of your testing. pm sent. Last edited by KevinH; 11-17-2019 at 01:35 PM. |
![]() |
![]() |
![]() |
#189 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Just player a little bit around with the latest Sigil Version for Mac Kevin pm-ed to me. I tried the create enpty custom ebook but failed somehow, maybe i missed something or i'm doing something wrong, but the error message isn't very helpful.
As far as i understood i need to specify what filetype(s) a folder may contain, but after adding the markers the error message is complainng at i'm still getting an error message leaving me helpless (see attachment) V ==> Never mind, understood now what to do. But i miss a shortcut in the bookbrowser to switch fast between standard view and extended view with path info. Last edited by Vroni; 11-17-2019 at 03:18 PM. |
![]() |
![]() |
![]() |
#190 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,526
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Adding markers for the OPF/NCX files is mandatory for EPUB2.
|
![]() |
![]() |
![]() |
#191 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
You are designing an empty epub. To do that you have to say where to put your OPF file and what to name it. Only 1 opf is allowed. Since you default to epub2, you also need to do the same thing for an NCX. Again only one NCX is allowed. In your case you do not have any of either required file.
The error messagesare quite clear, without an NCX and without an OPF you will not have a valid epub (empty or otherwise). |
![]() |
![]() |
![]() |
#192 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Huh? It is a Preference setting in Appearances. And the full bookpath is always shown in the tooltips in BookBrowser so you can always distinguish between files.
|
![]() |
![]() |
![]() |
#193 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,526
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Why would you need to switch fast??? That setting is meant to be set to one or the other. Some will always like to see the full path. Others who only deal with standardized formats probably will not. Can explain why you would need to quickly change back and forth?
|
![]() |
![]() |
![]() |
#194 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Because i would like to work not all the time in the extended view as it consumes a lot of space, you have to expand the bookbrowser widely. Sometime, would like to havre it like this. But most of the time the space available should go to code view and oreview.
BTW a tree view for the real folder structure would save some space and i can collapse the folders i'm currently not working with (working with large books will end up in a scrollmania) Besides that, the reappearing save dialog disappeared as well in mojave 10.4.6, and the preview window renders full size svg images better now. |
![]() |
![]() |
![]() |
#195 | |||
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
Quote:
If you are building a compendium style and have too many files images or text files build it epub by epub (always keeping everything in one folder per book) and use FolderOut and FolderIn to merge the files after each book has already been polished. Then all you need do is cut and paste to merge the OPF pieces manually. Quote:
|
|||
![]() |
![]() |
![]() |
|
![]() |
||||
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 |