![]() |
#16 | |||
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#17 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The element becomes a logjam. Other images and tables couldn't flow past it. You'd end up with what would look like a too-long pair of jeans, all bunched round someone's ankles...all the images, tables, etc., stacked up against each other at the end (rocks) whilst the text (water) flowed around that first one, leaving all the rocks at the bottom/end. Just saying. Hitch |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
So you setup your table to have text floated around it and you like how it looks. But then try increasing the font size. Do you still like how it looks? Does it still work? Increase more and then again more. Can you go big and bigger and still have it work?
Because of the ability to use such large font sizes, it's best not to float a table even if you could. |
![]() |
![]() |
![]() |
#19 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,944
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
At least, that's the cheap way to do it. TeX might also choose to put the image at the bottom of the page that would have contained the marker if the image wasn't at the bottom of it. that is, TeX can back-track its layout decisions to make a better layout. But even just a 'put this element at the top of the next page' would be a splendid tool. But there's so many things missing from ePub that would make book creators lives easier, and result in better looking books. |
|
![]() |
![]() |
![]() |
#20 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Hitch |
||
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,944
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
The large item to be displayed (picture, diagram, table, etc) has an optimal position marked in the text. The layout engine lays out text in pages until it gets to this item's optimal position marker. If there's room for the item on the current page when the layout engine gets to it, the layout engine lays out just enough additional text from past the item to make the item appear at the bottom of the current page. Alternatively, there isn't enough space for the item on the current page. So the layout engine lays out enough text from past the item to fill that page, and then puts the item at the top of the next page. In either case, the additional text that is moved from after the item to before the item is less than one page of text. (TeX is clever enough to backtrack and undo text layout to fit the item at the top of the page on which its optimal position would have gone if that's 'better'. But we don't really need that.) |
|
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
I believe Hitch's comment is about two images in a row or even x images in a row with only a small amount of text or none in between. Then when you try and delay the image you encounter, not more text, but another image. This can then stack up so that you have many images waiting to print until you have enough text to complete the page.
This is potentially an interesting issue but of course the user should be smart enough not to set up this kind of scenario since they have control over the CSS for each and every image. The latest CSS specification linked to in this thread has a different approach in that there is a block of data that has text and potentially one or more images. This approach limit the problem by only push the image around within the block. The user controls how much text and images in the block so thus control and disallows the stack of image to back up ad infintum. Wolf thought that tables should be exempted since the size of the table is related to the font size. I think an algorithm can take this into account so long as the total block is the only area for the float table. The table can be made to start at the top of a page if it doesn't fit but, of course, after that it might overflow the new page if it is too big. I think this is an acceptable result. The idea starting it delayed to the top of the page is the best that can be done. If it gets too big it gets too big. The same can be true of a paper book that won't fit on one page. I like the idea of permitting the object to be pushed both ways, to the bottom of the current page by shoving text later and the top of the next page by shoving text earlier. The CSS solution allows for this as well. I think this could be a useful tool for conscientious eBook makers but it could be misused. Dale Dale |
![]() |
![]() |
![]() |
#23 | |||||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
Quote:
Think of a river. You have water (text) and rocks in the stream (elements). Sometimes, the water is slow, sometimes fast, Different speeds, and thus, quantities, of water rush past the very same rocks. If the rendering engine is told to flow water at a higher rate of speed (amount of text) past the rock, because Jane is reading the book...and it pushed the element to the next page, what tells it to finally place the element on the next page? And more importantly, how to ensure that related text and element stay remotely together? IF you're discussing Figure 2, in the text, and it flows past the element to the top of page 1--or even further--and the graphic is now on page 3, you're accomplishing a "prettier" layout at the expense of usability, aren't you? The other problem I see is, if text can rather endlessly flow past those rocks, wouldn't you end up with all the rocks at the back of the book, in a stack, with all the text having "gone first," essentially? Given what we have to work with? Y'know, maybe I'm just dumb, but I'm not sure I understand what type of algo you could write--given the limitations of what we do, I mean, basically HTML/CSS and a little sumpin'-sumpin JSON--to ensure that there's a stopping point (for flowing the text) past the rocks. Quote:
Hitch |
|||||
![]() |
![]() |
![]() |
#24 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Dale |
|
![]() |
![]() |
![]() |
#25 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Not in detail, no. Skimmed? Yes. In detail? No. I admit I tend to put these things off until I know more than one device will be able to use whatever we're doing. Naughty, I know, I know. Hitch |
|
![]() |
![]() |
![]() |
#26 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,944
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
I don't see your potential issue as a problem at all. An image will never appear later than the page following it's optimal marker place. (Except in DaleDe's scenario, where you might get several pages of consecutive images, immediately following the page ion which all their optimal markers have been laid out). It sounds like the CSS committees are working on a sensible proposal. The real problem is that these will take years to make it into the official CSS, longer into ePub CSS, and even longer into common ePub rendering software. Sigh. |
|
![]() |
![]() |
![]() |
#27 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,944
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
Let's have a text that contains a mention of Figure 1, and Figure 1 is (for one particular rendering page size) 1/3 of a page high. In this layout, the mention of Fig.1 ends up half way down the page, and the paragraph it's in ends very shortly afterwards, and is followed by the Fig 1 optimal placement marker. In this case, Fig.1 gets place on the page at its optimal position, and the text continues following it and onto the next page. No problem Now consider what would happen at present if the paragraph it's in ends closer to the end of the rendered page than 1/3 from the bottom. There's no room for the image, so the bottom of the page is left blank - no Fig.1 until you move to the next page, when it appears at the top of the page, folowed by the text that comes after it. With vertically floating images, the text from after Fig.1 would be laid out at the bottom of the page down to the end of the page, and then Fig.1 would again appear at the top of the very next page, followed by the remainder of the text that followed it originally. Fig.1 ends up in exactly the same place as it would with current rendering engines. It's just that there isn't a nasty gap at the bottom of the preceding page. In no circumstances would Fig.1 appear later than the very next page. (Clearly, one of us is missing something. If it's me, please carry on - if I'm not understanding this, I'd like to know!) |
|
![]() |
![]() |
![]() |
#28 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
;-) Hitch |
|
![]() |
![]() |
![]() |
#29 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
>the text from after Fig.1 would be laid out at the bottom of the page down to the end of the page, and then Fig.1 would again appear at the top of the very next page
Anyone who has read many e-books must be accustomed to those occasional short pages, just as he is accustomed to the occasional short line (much to be preferred IMHO to the wild hyphenating that is sometimes used to justify lines). I think that to begin a caption on a page without an image would confuse more people than it would help. That said, I often try to work caption information into the preceding paragraph, to avoid situations where the image appears at the bottom of the page and the caption is forced to the next page. An image without caption information is more mysterious than caption information without an image, at least in the way I use images as illustrations for the text. |
![]() |
![]() |
![]() |
#30 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,944
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
Last edited by Jellby; 09-24-2015 at 07:39 AM. Reason: Fixed markup (without wrting a PM to the user, sorry :D) |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Control Fonts in SVG Images of Charts and Tables? | MikeWV | ePub | 37 | 06-18-2014 10:34 AM |
A problem with images inside tables | RbnJrg | ePub | 2 | 10-28-2013 09:09 PM |
The operator >> is undefined for the argument type(s) float, float | twobob | Kindle Developer's Corner | 10 | 09-05-2012 12:50 PM |
Q: Tables, images, and word-wrap | AndrewH | Workshop | 2 | 12-22-2010 02:34 AM |
PDF conversion which respects images/tables? | fivebells | Amazon Kindle | 9 | 12-19-2010 11:18 AM |