![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Viewing/editing xpgt files
OK, I know that xpgt (Adobe page templates) are an abomination and not part of the epub standard, but in the real world we have to deal with this spawn of the devil, by replacing it with sensible css. However, the Calibre editor will not even display the xpgt read only, which makes composing the css equivalent cumbersome (-> export xpgt, open in external editor etc).
Any thoughts on putting xpgt viewing support into the editor? Or even better, support for editing the xpgt--just a plain xml editor would do (I promise to wear my tin foil helmet at all times!). Thanks |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,182
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In 9 times out of 10, all the XPGT is doing is altering the ePub's margin. So you can do it in the CSS without needing to see the XPGT file. I have yet to see one that specifies multiple columns.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
In my experience, the xpgt usually sets the margin-top at the beginning of a chapter, and it is this that I really want to see so I can replicate it in css.
Last edited by ShellShock; 07-21-2014 at 03:24 PM. |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
SS
Use the Unpack utility ('U'), then you can use anything to edit (view) that file |
![]() |
![]() |
![]() |
#5 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() So does this: https://bugs.launchpad.net/calibre/+bug/1346543 |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Status: fixreleased.
Github changelog -- https://github.com/kovidgoyal/calibr...92d838211d8fcc Make sure to update calibre this Friday. (Or run from source.) |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Wow, thanks for the fix! I'll get it on Friday.
|
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
I just look into this. The file will not open in my version Calibre64, Vista64. Maybe this is an effect related to the other problem "V 1.46 - Error with Author Link"?
Best regards, Armin |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
+1 Now it is working. Thanks for this modification.
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
It is not working for me: "calibre, version 1.46.0
ERROR: Unsupported file format: Editing files of type application/adobe-page-template+xml is not supported". In content.opf I had this: Code:
<item href="Misc/page-template.xpgt" id="pt" media-type="application/adobe-page-template+xml"/> Code:
<link href="../Misc/page-template.xpgt" rel="stylesheet" type="application/vnd.adobe-page-template+xml" /> Code:
<item href="Misc/page-template.xpgt" id="pt" media-type="application/vnd.adobe-page-template+xml"/> ![]() My brief research suggest both forms (with and without the vnd prefix) are used, suggesting this requires a further code change to cater for the vnd prefix. |
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
today I saw a: cover-template.xpgt file
(first time ever) along with the page-template.xpgt Go Adobe, You managed to break Kovids new feature in a single day ![]() |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
In Adobe's world, only their software is used for reading epubs. Sheer hubris.
|
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
I found at weekend 3 books not working. One of them had a file name template.xpgt.
Kovid, if you need some not working examples, let me know. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewing files | kelpie | Library Management | 3 | 06-27-2014 08:24 AM |
viewing files (root??) | ivipopi | Kindle Developer's Corner | 3 | 12-25-2012 06:46 AM |
Viewing annotations/highlights from Dx on pc for editing purpose files | JustBrowsing | Amazon Kindle | 3 | 02-06-2012 09:43 AM |
Viewing LRF files in (X)ubuntu | ProDigit | Calibre | 5 | 10-31-2009 09:43 PM |
Problem with viewing .prc files | spinoza | Calibre | 4 | 07-21-2009 12:28 PM |