Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-26-2014, 12:23 AM   #16
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
oops, sorry, forgot to delete out the style part.

Code:
<div class="Image"><img alt="0425" class="image1" src="../Images/0425.jpg" /></div>
eggheadbooks1 is offline   Reply With Quote
Old 05-26-2014, 02:33 AM   #17
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by eggheadbooks1 View Post
The device in question is an older Sony Reader. And one cannot code for everything; it's become impossible. It's the nature of the technological beast: the speed of change and the vagaries of device programming mean that even what is considered "standard" code is not read equally across devices. In this case, the code works on everything we tested except someone with an old Sony Reader sees the text overlaying the image. There's nothing I can do about it: if I fix that problem for a minority user set, I create a new one for the majority of users. And once someone decides to go digital, they have to accept that, as with all things digital, obsolescence is their problem; they cannot get angry at content creators because the content doesn't display on an older device.
Hmm, I would definitely get angry in that case. If you are selling an ePUB2, than the ePUB2 reader should be able to read it. If it were an ePUB3, that is another case. If you deliberately create code that is not supported on older readers, you should either specify that or, and that is better, come up with a way where it fails gracefully.
My experience with a SVG containing a viewbox is that is only really works full screen as a separate HTML file. If I want to enter a real SVG file into the book itself, I just add it as an image and reference to it like an image (e.g. <img src="../Images/picture.svg" />).
Toxaris is offline   Reply With Quote
Old 05-26-2014, 05:23 AM   #18
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
eggheadbooks1, I uploaded an ePub I made for the purpose of font testing on the iPad. The cover dimensions are: 1024x1339(WxH)
I used an SVG wrapper for the cover and it looks good on ADE, Calibre, iPad, Readium, Android... unfortunately I don't have other epub-readers at the moment.

If this doesn't work than I suggest you stick with Toxaris's advice :/
Attached Files
File Type: epub font_test.epub (279.9 KB, 356 views)
odedta is offline   Reply With Quote
Old 05-26-2014, 06:14 AM   #19
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You can download the Sony Reader Library that will show pretty closely how the epub will look in the actual reader at:

http://esupport.sony.com/US/p/model-...d#/downloadTab

or the equivalent location for your country.

The later versions will not accurately show the lack of support for justification, but it will show the doubling up of images when they are too large, etc.

Even if Toxaris's add in may produce a fairly plain epub, it will be a working one which only needs touching up instead of major surgery just to get the TOC to work.
mrmikel is offline   Reply With Quote
Old 05-26-2014, 06:18 AM   #20
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by mrmikel View Post
You can download the Sony Reader Library that will show pretty closely how the epub will look in the actual reader at:

http://esupport.sony.com/US/p/model-...d#/downloadTab

or the equivalent location for your country.

The later versions will not accurately show the lack of support for justification, but it will show the doubling up of images when they are too large, etc.

Even if Toxaris's add in may produce a fairly plain epub, it will be a working one which only needs touching up instead of major surgery just to get the TOC to work.
I think you mixed this for the other thread still, thanks for the info about the Sony reader for PC, didn't know that one.

EDIT: After installing the Sony reader for PC the cover image looks okay.
odedta is offline   Reply With Quote
Old 05-26-2014, 09:30 AM   #21
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by mrmikel View Post
You can download the Sony Reader Library that will show pretty closely how the epub will look in the actual reader at:

http://esupport.sony.com/US/p/model-...d#/downloadTab

or the equivalent location for your country.

The later versions will not accurately show the lack of support for justification, but it will show the doubling up of images when they are too large, etc.

Even if Toxaris's add in may produce a fairly plain epub, it will be a working one which only needs touching up instead of major surgery just to get the TOC to work.
The created ePUB will have a fully working TOC. I personally still finetune, but I am a perfectionist... The created ePUB is fully working and compliant.
Toxaris is offline   Reply With Quote
Old 05-26-2014, 01:28 PM   #22
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Toxaris: it is ePub2, but contrary to what you suggest, not all ePub2 readers behave the same way. In fact, it was precisely a problem with the Sony and Nook reading apps that created the need for the SVG wrapper: if you do not code in a screen percentage, then these apps cut images off (they are not shrunk to fit); but if you code in a screen percentage without max-height/width values, then higher-res devices upsize, often horribly (there are many posts about iPad image destruction).

Originally, ADE was programmed to shrink all images to fit, but then it changed and now also cuts off images that do not have a screen percentage coded in.

Mrmikel: unfortunately, the Sony Reader app does not replicate how a book will look in an actual Sony Reader any more than the Kindle for PC app replicates how a book looks in my Kindle Fire. It's close but it is not the same (even Kindle Previewer does not accurately replicate device functionality). I have the Sony Reader for PC and the SVG wrapper works fine in it. It works fine in a new Sony Reader device but not a really old one.

Odedta: in the ePub you sent (thank you) the cover is distorted when ADE is set to full screen (and the cover isn't centered, though you may not want it to be). See attached comparisons.

Thanks everyone for weighing in.
Attached Thumbnails
Click image for larger version

Name:	halfscreen.jpg
Views:	265
Size:	169.3 KB
ID:	123377   Click image for larger version

Name:	Fullscreen.jpg
Views:	262
Size:	222.4 KB
ID:	123378  
eggheadbooks1 is offline   Reply With Quote
Old 05-26-2014, 01:31 PM   #23
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
P.S. It has also occurred to me that Sony may have put out a firmware upgrade for this guy's older device but he never updated or he doesn't know how. How can we code for that?
eggheadbooks1 is offline   Reply With Quote
Old 05-26-2014, 03:10 PM   #24
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
I attached screenshots to show you how it looks on my monitor, the aspect ratio is preserved, centering the image is easy via CSS rules.

What happens if you remove the width? (part in red)
Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMaxYMid" version="1.1" viewBox="0 0 720 960" width="100%"  xmlns:xlink="http://www.w3.org/1999/xlink">
	<image height="100%" width="100%" xlink:href="../Images/cover.jpg"></image>
</svg>
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	256
Size:	122.2 KB
ID:	123388   Click image for larger version

Name:	Capture2.PNG
Views:	247
Size:	212.7 KB
ID:	123389  
odedta is offline   Reply With Quote
Old 05-26-2014, 07:42 PM   #25
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Hi Odedta:

Removing the width value does stop the distortion, but this is still an SVG wrapper and that seems to be the problem with iBooks and the old Sony reader.
eggheadbooks1 is offline   Reply With Quote
Old 05-26-2014, 08:20 PM   #26
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,155
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by eggheadbooks1 View Post
P.S. It has also occurred to me that Sony may have put out a firmware upgrade for this guy's older device but he never updated or he doesn't know how. How can we code for that?
Standard reply from any Tech company; please apply all available updates to your system and then replicate the issue.
PeterT is offline   Reply With Quote
Reply

Tags
ibooks, sony, svg


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Svg wrapper and image resizing Nabodita ePub 24 05-02-2014 12:21 AM
How can hyperlinks be added inside SVG wrapper? GrannyGrump Workshop 9 03-03-2014 06:14 AM
Need Example SVG wrapper including caption GrannyGrump ePub 30 11-06-2013 03:20 AM
Adding an SVG Wrapper ghostyjack Sigil 16 06-15-2013 05:13 AM
An Issue about a SVG wrapper RbnJrg Kindle Formats 29 06-10-2013 08:11 PM


All times are GMT -4. The time now is 08:25 AM.


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