Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2019, 09:22 AM   #181
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
Yes, perhaps an opf mediatype validator plugin in python would help.
KevinH is offline   Reply With Quote
Old 11-17-2019, 09:37 AM   #182
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by KevinH View Post
Yes renaming or moving any file means checking and updating any links to it in *all* files. It will not matter what you tried to rename or move.
I don't think I mentioned that there are no links at all to the xpgt file. Other than this one line in the OPF manifest there is no reference to "xpgt" at all in the unpacked epub zip file:
Code:
<item href="Styles/page-template.xpgt" id="pt" media-type="application/vnd.adobe-page-map+xml"/>
Quote:
Why can't the user just look in their OPF manifest for that mediatype. How is one character string to look up in the OPF (filename) any more useful than another character string to lookup (mediatype)?
Ok, I hadn't thought about it like that. Yes, both searches are just the same in the context of the OPF. I thought it would be most useful to give both the mediatype and the file name in the popup. At least the file name is easier to remember if you're going to search for it in the OPF. The text in the popup isn't cut'n'pasteable.

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:
Originally Posted by DiapDealer View Post
Or just run EpubCheck. That will give them more precise info about where the problem lies. It will take them to the exact line in the opf.
EpubCheck doesn't say anything about the xpgt file in this epub .
snarkophilus is offline   Reply With Quote
Advert
Old 11-17-2019, 09:47 AM   #183
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 11-17-2019, 09:59 AM   #184
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is offline   Reply With Quote
Old 11-17-2019, 11:12 AM   #185
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Advert
Old 11-17-2019, 11:39 AM   #186
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Preview is usually on the complete other side of the screen (or secondary monitor). Would be nice to have filename located there too.
Okay for people with secondary monitors, having a filename there would be a good visual cue that makes good sense. I just pushed this to master.

KevinH
KevinH is offline   Reply With Quote
Old 11-17-2019, 01:09 PM   #187
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
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.
odamizu is offline   Reply With Quote
Old 11-17-2019, 01:23 PM   #188
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 11-17-2019, 03:13 PM   #189
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2019-11-17 at 21.07.32.png
Views:	99
Size:	467.1 KB
ID:	174992  

Last edited by Vroni; 11-17-2019 at 03:18 PM.
Vroni is offline   Reply With Quote
Old 11-17-2019, 03:30 PM   #190
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is offline   Reply With Quote
Old 11-17-2019, 03:30 PM   #191
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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).
KevinH is offline   Reply With Quote
Old 11-17-2019, 03:32 PM   #192
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Vroni View Post
==> 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.
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.
KevinH is offline   Reply With Quote
Old 11-17-2019, 03:32 PM   #193
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,526
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Vroni View Post
But i miss a shortcut in the bookbrowser to switch fast between standard view and extended view with path info.
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?
DiapDealer is offline   Reply With Quote
Old 11-17-2019, 03:40 PM   #194
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
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.
Vroni is offline   Reply With Quote
Old 11-17-2019, 03:58 PM   #195
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,710
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Vroni View Post
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.
So set it not to show the full path, and mouse over a file in BookBrowser if you are ever uncertain.

Quote:
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)
No then you would never be able to select all files of the same file group, at one time (important for Merging and Moving Files, block renaming files, etc, and newbies would see the META-INF, mimetype, and the container.xml, and etc.

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:
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.
Yes, all of those were fixed earlier. Thank you for confirming that.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:54 PM.


MobileRead.com is a privately owned, operated and funded community.