Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2019, 05:17 PM   #31
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,636
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
KFX does support a simple image wrapper of the sort described in this post. I have seen code like that used in several professionally published ebooks. Your example book will convert to KFX if you remove the caption from the SVG.
Yes, a wrapper with a simple image inside is supported by KFX. But with a image and not to be able to add a caption is, is...

Quote:
It is true, KFX does not support SVG text. I don't know of a surefire way to have captions that will display with the user's selected font and always be displayed on the same page as an image.
With the current state of KFX, the only way is to write the caption on the picture with a image proccessor. Sad need

Quote:
My point is that there is no single best option. There is a tradeoff that a Kindle ebook publisher will need to make between using the full capabilities of SVG and having the features of KFX available to the reader.
I agree with that.
RbnJrg is offline   Reply With Quote
Old 02-02-2019, 12:29 PM   #32
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by RbnJrg View Post
Well, well, well. All this time you were using a css template (blitz_C1C4.css) with very important definitions that were affecting the code you wrote. When that file is not included (or not linked to the .xhtml file) then the things doesn't work. And right now, with your epub, I realize about that file. What happens if you don't include blitz_C1C4.css? The code doesn't work with epub2. So, I had to do a bit of research to find all the important code included in blitz_C1C4.css that affect the svg wrapper. I attach two new epubs, one epub2 and one epub3 with the SAME CODE. And both work fine under ADE and Sigil. It's really newfangled this way of including images inside a svg wrapper found by Momoha. If a moderator is reading this thread, I think s/he should include all this info in the Wiki of the site. Only are used percentages and for all kind of images, no matter the size of them. So, for any .jpg, .png, .gif, whatever format, the new code would be:

Regards
Rubén
Anyone can add pages and edit pages in the wiki. The wiki stuff is not copyrighted (covered under creative commons) but posts may be. It is better that you guys add it.

Dale
DaleDe is offline   Reply With Quote
Old 02-06-2019, 09:56 AM   #33
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,103
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The only way to make sure the caption stays with the image is to make the caption part of the image at the bottom of the image. Otherwise, there is no way to know what font & font size will be used. I could up the font size enough where the caption would not stay on the same page or not properly display. But if the caption is part of the image, it will always display.
JSWolf is offline   Reply With Quote
Old 02-07-2019, 02:35 AM   #34
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
This code isn’t a solution for the whole figure-caption problem. I made this code for two main reasons:

1. It makes us able to place an image that won’t exceed neither the height nor width of the page, yet keep it’s ratio, and will be centred in the page.
2. It makes us able to make the image respect a certain % of the height of the page.

The code is advantageous from others because:
1. Doesn’t require to enter dimensions in pixel
2. Seems to be well supported (works on ADE, Kobo, Google Books, iBooks)

The code was made for ePub3, but Ruben saw the SVG code was also supported on ePub2.

Last edited by momoha; 02-07-2019 at 02:37 AM.
momoha is offline   Reply With Quote
Old 02-07-2019, 02:37 AM   #35
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Quote:
Originally Posted by RbnJrg View Post
What resellers Momoha? Any name? Because svg and svg wrappers have been being used for years, is not something new. The only issue with your code is the caption that not always will be together with the picture. I can handle that. But the image is well displayed and that is the important.
Nope I don’t know which ones, I just quoted Jiminy Panoz. We didn’t hear any comment from our clients.
momoha is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Novels set in revolutionary Russia? seagull Reading Recommendations 15 03-18-2013 09:40 AM
Revolutionary writing amalfiman General Discussions 2 07-16-2010 10:28 PM
Publishing: The Revolutionary Future Pardoz News 35 02-23-2010 08:51 PM
A revolutionary decade Argel News 1 05-26-2008 07:42 AM


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


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