12-24-2023, 08:46 AM | #1 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2023
Device: none
|
full "page" images with text reflow
Hi all!
New here. Long time book production person, recently turned freelance book designer. while I'm an expert on the print size, ebooks are still a hazy mystery. I do all my typesetting for print in Indesign, and have had ok luck exporting to epub so far, but have run into a problem: How can I get text to reflow "around" a full page image? There are some images in this book I can treat as blocks, but most are meant to be on a facing page. Is it a sizing issue? A coding issue? If anyone has advice on the InDesign end, or a coding tip for editing it in Sigil, that would be wonderful. Thanks!! Peggy Pilcrow&Stanza / book design and production |
12-24-2023, 03:13 PM | #2 |
the rook, bossing Never.
Posts: 12,384
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Indesign is for paper (PDF) and kludged for ebooks. At best you can use it for fixed layout ebooks (which are a horrible imitation of PDF).
There is no "facing page" concept on real ebooks. While text can flow around an image, it's best that it doesn't for widest compatibility. All you need is properly styled Word or LO Writer and Sigil or Calibre. It's not "typesetting" as in PDF for paper. Perfectly replicating paper is a fail. Real ebooks are a subset of web pages, but paginated, as a web page would be on a printer preview. The ebook page is what ever size and resolution the users ereader or app has. The user expects to vary margins, line-height (so don't set it ever) and font size, and even font-face. We actually do the epub first, via LO Writer, proof epub and when it's finalised make a copy of the LO Writer doc and add page styles, headers, footers, page numbers, book style formatting etc and output as a PDF for paper. The source doc for an epub has only one page style, small margins, no headers, footers or page numbers. No white space entered. Everything is paragraph styles which become mapped 1:1 to CSS if you convert an docx to epub in calibre. Sigil allows hand building epub3, mathml etc. Indesign is hampering you. Like trying to do calligraphy with a sewing machine. |
Advert | |
|
12-24-2023, 05:12 PM | #3 |
A Hairy Wizard
Posts: 3,228
Karma: 19001261
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Welcome to MR!
If you want an image to take up the “full screen” then there wouldn’t be any room for the text to flow around. In that case you could insert an image wrapped in svg tags on its own html page. The text would end before the image and pickup right after. If, instead, you want it to just take up the full width, with text above/below, then you could do something along the lines of: Code:
div.image {margin:2em 0; width:100%} img {width:100%} <p>Some text paragraph.</p> <div class="image"><img alt="" src="yourimage.jpg"/></div> <p>Some text paragraph.</p> Code:
div.image {margin:2em 0; width:75%; float:left}
img {width:100%}
<p>Some text paragraph.</p>
<div class="image"><img alt="" src="yourimage.jpg"/></div>
<p>Some text paragraph.</p>
|
12-24-2023, 05:29 PM | #4 |
Grand Sorcerer
Posts: 6,759
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
I believe that the question is actually about having a full page image with the the text flowing around it so that the previous page contains a full page of text.
See the thread Full-page image "floating" for responsive pagination. |
12-24-2023, 05:53 PM | #5 | |
the rook, bossing Never.
Posts: 12,384
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
height: auto; width: 95%; ( or vice versa) and the enclosing p tags are centred with 0 left & right but desired top and bottom margin. Easy & compatible. Things that are at the start of a new file need a padding-top as many platforms ignore margin-top for the first item in a file. A "Full page" image and text flowing round it is a nonsense in an ebook. Though you can have float, it fails on many platforms, so we never have any "float" in any CSS. No drop caps, image or text based. Ebooks use CSS and HTML, but are not web pages or web sites. Forget Desktop Publishing, which is what InDesign is derived from. Or Web site design. Last edited by Quoth; 12-24-2023 at 06:00 PM. |
|
Advert | |
|
12-26-2023, 10:58 AM | #6 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
https://www.mobileread.com/forums/sh...3&postcount=14 you can see examples with a full page image, with a full page text before and after the image. Of course, that only can be obtained under epub3 but I can't see the reason about why that is a nonsense in an ebook. With the proper code, no matter the font-size, no matter the font-family, the image always will be at full page, and the text before and after the image, will be also at full page (the only "drawback" is that the image will be able to be displaced half page up or down at most, regarding the text around). A nice effect, not possible with epub2. Fragmentation doesn't exist with epub3; there are none blank spaces unwished. Last edited by RbnJrg; 12-26-2023 at 01:30 PM. |
|
12-26-2023, 11:27 AM | #7 | |||
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
height: auto; width: 95%; Code:
height: 95%; width: auto; Quote:
ADE 4.x (Windows), Thorium (Windows and Linux), Koodo Reader (Windows and Linux), IceCream Ebook Reader (Windows), Foliate (Linux), Readium, Bibi Reader and JSReader (all Sigil plugins on both Windows and on Linux), Calibre Viewer (Windows and Linux), EPUBReader (extension for Chrome and Firefox), ePUB Reader (another extension for Chrome and Firefox), PocketBook (Android), Gitden Reader (Android), Reasily (Android), Aldiko Next (Android), Lithium (Android), OverDrive (Android), Bluefire Reader (Android and IOs), BookFusion (Android). Quote:
Last edited by RbnJrg; 12-26-2023 at 11:53 AM. |
|||
12-26-2023, 01:58 PM | #8 |
the rook, bossing Never.
Posts: 12,384
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
12-26-2023, 04:18 PM | #9 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, I read it; you didn't read what I wrote.
Explain how it works the code with a height of 95% (for an image); give us a practical example (post a simple epub -or post the code- to show us how will work an image with "height: 95%" and text before and after that image). I am particularly interested in knowing 95% about "what" will occupy that image (if instead of 95% I will employ 950%, the image will be ten times bigger?) I look forward to seeing that miracle because I will learn something that until now, I thinked that was impossible (to use % for height when the height of the container is not previously defined). And you didn't explain why is a nonsense, in an ebook, a full page image (or a full page table). Maybe you discovered something and will be very usefull for all of us to know why is a nonsense such kind of images. |
12-26-2023, 04:27 PM | #10 | ||
the rook, bossing Never.
Posts: 12,384
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
You are not worth arguing with. Quote:
|
||
12-27-2023, 06:37 AM | #11 | |
Member
Posts: 11
Karma: 10
Join Date: Dec 2023
Device: none
|
Quote:
YES! This is what I'm trying to do, and seems to have worked for the poster in the other thread. However, because I'm a coding dummy (my HTML knowledge is 20yrs old), is there a precise block of code I should enter into the Sigil editor and exactly where? Everything else in the text appears to be working ok. Inline images are also no problem (though will try to float these at the top/bottom of pages as well) Another general question: is it better to remove images you want to float out of the generated HTML, then add them in when editing the epub with correct coding? Getting ever closer to my head not exploding. Thanks! |
|
12-27-2023, 09:31 AM | #12 | |||
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Let's go by parts.
First at all, you said the following: Quote:
Also you wrote the following: Quote:
Code:
width: 95%; height: auto; Quote:
Be sincere. You build your epubs from Word and turn it into an ebook with Calibre. Because of that, your knowledge of CSS and HTML is very limited, you barely know the basics. That is not a sin, since no one is born knowing. What is a sin is advising someone who is looking for help, like the OP, from ignorance, pretending to be an expert and specialist. To you, the design of an epub must be similar to what can be achieved with a typewriter. Today's epub is an epub3 built as follows: 1) First, to employ the best code available for an epub2 (this is the fallback code). 2) Above the previous code, based on @support, the epub3 code is incorporated (I give you a simple example so you can understand it: you want to center something vertically as perfectly as possible. In the epub2 code, you establish a top margin that adjusts, more or less, to the desired position. With the epub3 code, you override the top margin and use "display: flex" and center vertically with the flex-box properties). 3) Add a toc.ncx to the epub so that epub3 can be read by epub2 readers. Of this way, the best of both world will be in the hand of a reader. (Of course, you have to work more; of that way and following with the example, if the ereader has support for epub3, things will be displayed perfectly vertically centered, if not, it will be vertically center more or less well. The same is valid for all the others properties). In the future, if you want to help someone who comes to MR seeking advice, keep quiet, you'll be doing him/her a big favor. Last edited by RbnJrg; 12-27-2023 at 09:42 AM. |
|||
12-27-2023, 10:39 AM | #13 | |
the rook, bossing Never.
Posts: 12,384
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
I did websites, inc server side as a paid job, ever since CSS existed, and stupid websites with static HTML before that. Also many more years real programming: in C, C++, Forth, Modula-2 and Java. Designed and implemented hyperlink systems before HTML existed (though didn't use Apple's Hypercard). Designed and built multimedia systems before ebooks existed. But ebooks, even epub3 (of which there are broadly 3 kinds) are not websites or even web pages. The specs are a subset, and actual implementations vary from different to a subset. I've hardly used actual MS Word for over 10 years. I test on epub apps (4.3" to 10" screen), 5 different brands of epub based eink (4.7″ to 10.3″ screen) and on three kinds of eink Kindle. Was originally editing HTML and importing it to Mobipocket Creator, though mobi was obsolete when it came out. I do make mistakes. ThingA: auto ThingB: some value You seem to think vice versa is ThingB: some value ThingA: auto It's not. Vice versa would be ThingA: some value ThingB: auto KISS principle. Clever stuff breaks. You are a fanatic that would result in ebooks only working on a small percentage of actual retail users platforms. Are you a Moderator that you have the right to shut me up and close debate? Last edited by Quoth; 12-27-2023 at 10:48 AM. |
|
12-27-2023, 11:17 AM | #14 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2023
Device: none
|
guys! I love that there's a debate over ebook structure, but can we get to the answers on what actually works? Thanks!
|
12-27-2023, 02:50 PM | #15 |
Bibliophagist
Posts: 40,617
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The answer is that there is no one answer that will work on all ereading devices and applications. What you can do is to try to have it work on as many as possible which generally results in the use of simple CSS which will not allow your text reflow.
|
Tags |
formatting, image, indesign, reflow |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Full-page image "floating" for responsive pagination. | Vanguard3000 | ePub | 15 | 10-01-2023 05:39 PM |
[Feature Request] Manage "Full Text" search | shuvashish76 | Library Management | 7 | 07-17-2022 12:54 AM |
Koreader doesn't respond to "page-forward" touch in reflow mode | doron | KOReader | 4 | 05-01-2016 10:27 AM |
Zune eBook Creator (RTextAsImage) - "Convert" text to images | oleg.shastitko | Reading and Management | 10 | 01-28-2008 02:18 PM |