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-02-2016, 09:56 AM   #61
MickiTee
Guru
MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.
 
MickiTee's Avatar
 
Posts: 860
Karma: 4097942
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505, Pocketbook TL3, TL4, TL5
New Issue

I've installed 0.9.7 after removing 0.9.6 on my netbook (Windows 7 Starter SP1) and my PC (Windows 10 64-bit 1511) and I got the following error message when I opened an epub to edit the formatting (font size, margins etc).

'Unsupported XML media-type: application/vnd.adobe-page-template+xml'

I've never seen this error before in any previous version of Sigil I've used.

Below is the HTML code at the beginning of each file. I've only removed the name of the book from the <title> tag.

The book, published earlier this year, is Epub2 and has had its DRM stripped and it hasn't been anywhere near Calibre.

Both the Well-Formed Check Epub or FlightCrew reported No Problems when I ran them.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title></title>
<link href="../Styles/ebook_style.css" rel="stylesheet" type="text/css"/>
<link href="../Misc/page-template.xpgt" rel="stylesheet" type="application/vnd.adobe-page-template+xml"/>
<meta content="urn:uuid:de119b4b-b9c3-4241-b43e-f73df2d83856" name="Adept.expected.resource"/>
</head>
So far I haven't found any other files with an Adobe template to see if the error is repeated, but I'll keep looking.
MickiTee is offline   Reply With Quote
Old 11-02-2016, 11:02 AM   #62
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,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm admittedly a bit out of my element, here, but I'm not sure that the "vnd." part of the media-type is standard for link tags with xpgt files. But if EpubCheck isn't complaining, I may be all wet. I'll let Kevin chime in.

When I get home, though, I'll check if the same exact code triggers the error in 0.9.6.
DiapDealer is offline   Reply With Quote
Old 11-02-2016, 11:25 AM   #63
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,702
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
@MickiTee:
Quote:
Originally Posted by MickiTee View Post
I've installed 0.9.7 after removing 0.9.6 on my netbook (Windows 7 Starter SP1) and my PC (Windows 10 64-bit 1511) and I got the following error message when I opened an epub to edit the formatting (font size, margins etc).
'Unsupported XML media-type: application/vnd.adobe-page-template+xml'
You can ignore this message, which will be displayed for all epubs that contain page-template.xpgt files.

@DiapDealer:
Quote:
Originally Posted by DiapDealer View Post
I'm admittedly a bit out of my element, here, but I'm not sure that the "vnd." part of the media-type is standard for link tags with xpgt files.
AFAIK. "vnd." stands for vendor and the message is displayed because Sigil 0.9.7 added page-template.xpgt editing support and application/vnd.adobe-page-template+xml is not one of the core media types defined in the epub standards.

Quote:
Originally Posted by DiapDealer View Post
But if EpubCheck isn't complaining, I may be all wet. I'll let Kevin chime in.
Earlier epubcheck versions used to flag epubs with xpgt files as a problem, but this was relaxed in later versions.

Last edited by Doitsu; 11-02-2016 at 11:28 AM.
Doitsu is offline   Reply With Quote
Old 11-02-2016, 11:51 AM   #64
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,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Doitsu View Post
AFAIK. "vnd." stands for vendor and the message is displayed because Sigil 0.9.7 added page-template.xpgt editing support and application/vnd.adobe-page-template+xml is not one of the core media types defined in the epub standards.
So it's because Sigil 0.9.7 added the ability to edit XPGT files that the error/warning is occurring? If so, we'll probably have to look into suppressing that message. Hardly seems fair to bark about the existence of a file we've given users the ability to edit, afterall.
DiapDealer is offline   Reply With Quote
Old 11-02-2016, 12:17 PM   #65
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,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It looks to me that the new Sigil code that recognizes text_types (which allows the editing of page-maps, xpgts, and other xml files) is only looking for:

Code:
application/adobe-page-template+xml
If the vnd prefix is common, we'll probably have to add it as well.
DiapDealer is offline   Reply With Quote
Old 11-02-2016, 12:46 PM   #66
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,600
Karma: 5703586
Join Date: Nov 2009
Device: many
Hi,

Yes our own (Mobileread) Wiki for xpgt has the following:

Code:
application/adobe-page-template+xml
as the media-type. But other links seems to use:

Code:
application/vnd.adobe-page-template+xml
The official registrar of media-types http://www.iana.org/assignments/medi...ia-types.xhtml does NOT list it in either form so there is no official media-type (as of October 5th of this year).

So we should probably support both.

KevinH

Quote:
Originally Posted by DiapDealer View Post
It looks to me that the new Sigil code that recognizes text_types (which allows the editing of page-maps, xpgts, and other xml files) is only looking for:

Code:
application/adobe-page-template+xml
If the vnd prefix is common, we'll probably have to add it as well.
KevinH is offline   Reply With Quote
Old 11-02-2016, 12:54 PM   #67
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,702
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
But other links seems to use:

Code:
application/vnd.adobe-page-template+xml
I checked a couple of commercial ebooks and they all used

Code:
application/vnd.adobe-page-template+xml
which makes perfect sense, because it's a vendor-specific MIME type.
Doitsu is offline   Reply With Quote
Old 11-02-2016, 02:31 PM   #68
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,600
Karma: 5703586
Join Date: Nov 2009
Device: many
Agreed ...
But one that has not been properly registered and therefore is unofficial at best. Adobe did register a number of other vnd.adobe* media-types just not this one.

KevinH

Quote:
Originally Posted by Doitsu View Post
I checked a couple of commercial ebooks and they all used

Code:
application/vnd.adobe-page-template+xml
which makes perfect sense, because it's a vendor-specific MIME type.
KevinH is offline   Reply With Quote
Old 11-03-2016, 05:18 PM   #69
MickiTee
Guru
MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.
 
MickiTee's Avatar
 
Posts: 860
Karma: 4097942
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505, Pocketbook TL3, TL4, TL5
Thanks for the prompt reponses and clear explanation of this.
MickiTee is offline   Reply With Quote
Old 11-04-2016, 02:51 AM   #70
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 518
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by DiapDealer View Post
Might not be quite as easy, but it does work.
Yeah, that's nowhere near as easy as a right-click, "Open With", then choose. Time to roll back to 0.9.6.
nabsltd is offline   Reply With Quote
Old 11-04-2016, 04:10 AM   #71
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by nabsltd View Post
Yeah, that's nowhere near as easy as a right-click, "Open With", then choose. Time to roll back to 0.9.6.
FWIW : - the calibre Open With is available directly via right click on the format in Book Details.

Click image for larger version

Name:	3.jpg
Views:	486
Size:	79.2 KB
ID:	152790

BR
BetterRed is offline   Reply With Quote
Old 11-04-2016, 07:15 AM   #72
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,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by nabsltd View Post
Time to roll back to 0.9.6.
If launching Sigil via a stranded, and thus undeveloped, third-party plugin for another application were that important to me, I'd personally roll back to 0.9.5. It doesn't have the css centering bug to contend with. 0.9.4 was pretty solid, too. Everyone has their personal favorites. We'll miss you at the 0.9.7 table, though.

Quote:
Originally Posted by BetterRed View Post
FWIW : - the calibre Open With is available directly via right click on the format in Book Details.
Thanks! I knew there had to be any easier way, but I kept trying to find it via the library context-menu. Right-clicking on the format you want to open makes sense, though. Same amount of clicks; just have to remember where to start.

Last edited by DiapDealer; 11-04-2016 at 08:12 AM.
DiapDealer is offline   Reply With Quote
Old 11-04-2016, 09:09 AM   #73
Montezuma
Junior Member
Montezuma began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2011
Device: Sony T1
Quote:
Originally Posted by BetterRed View Post
FWIW : - the calibre Open With is available directly via right click on the format in Book Details.

Attachment 152790

BR
So, that's where it was hidden. Thank You!
Montezuma is offline   Reply With Quote
Old 11-04-2016, 01:36 PM   #74
Klecks
Enthusiast
Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.
 
Klecks's Avatar
 
Posts: 39
Karma: 59154
Join Date: May 2010
Location: Stuttgart, Germany
Device: Kobo H2O, PocketBook Touch HD, Tolino Vision 4
Quote:
Originally Posted by BetterRed View Post
FWIW : - the calibre Open With is available directly via right click on the format in Book Details.

Attachment 152790

BR
In Calibre you can use a keyboard shortcut for opening books with sigil.
But first you have to use the right-click-method at least once (see post #71).

If you use the open-with-plugin - be aware, that there are two open-with-methods waiting for a shortcut:
1. Open with - is targeting the plugin
2. Open With (with capital W) - is where you want to define your shortcut.
Attached Thumbnails
Click image for larger version

Name:	open-with-sigil.JPG
Views:	297
Size:	219.8 KB
ID:	152808  
Klecks is offline   Reply With Quote
Old 11-04-2016, 04:50 PM   #75
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 518
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by BetterRed View Post
FWIW : - the calibre Open With is available directly via right click on the format in Book Details.
It's still a lot easier to right-click on the book in the list, because that's where I just left-clicked to select the book in the first place.

It's also not as easy to edit different formats...you have to explicitly pick the format first, while the "Open with" plugin limits choices to only the formats that exist. And, although you can right click on the cover and do "Open With", that is again in a different location than the formats...it's a lot of mouse moves, and the plugin doesn't require nearly as much.

The last bonus for the plugin is that I don't have to clutter up my Windows "Open With" list on eBook formats so that Calibre can see them.

Quote:
Originally Posted by DiapDealer View Post
If launching Sigil via a stranded, and thus undeveloped, third-party plugin for another application were that important to me, I'd personally roll back to 0.9.5. It doesn't have the css centering bug to contend with. 0.9.4 was pretty solid, too.
90% of my use case for Sigil is for EPUB container maintenance (file renaming, file splitting/merging, TOC editing, etc.) and the rest is for the "Delete unused" features, so the CSS editing bug only hits me once every few months.
nabsltd is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 KevinH Sigil 106 10-04-2015 10:41 AM
Sigil 0.8.1 Released user_none Sigil 33 10-16-2014 05:04 PM
Sigil 0.8.0 Released user_none Sigil 126 10-11-2014 07:52 PM
Sigil 0.7.4 Released user_none Sigil 47 01-05-2014 02:31 PM
Sigil 0.4.2 Released user_none Sigil 41 10-26-2011 06:03 AM


All times are GMT -4. The time now is 04:19 PM.


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