View Single Post
Old 12-26-2013, 10:20 AM   #17
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by roger64 View Post
Sometimes a small drawing is worth one thousand words. So, maybe a screenshot of a printed text could make me realize what he is looking for.
The problem is not really in the effect I'm after, which is just a normal drop cap, but within a poetry environment (meaning hard linebreaks). But, as a sample, take this page, and ignore the fact that the drop cap is an image

Quote:
After that, maybe, I'll also understand probably why a negative indent is necessary.
The above image actually shows why I need a negative indent in poetry. The lines in the song are:

THESE...
(Chil!...)
Now...
(Chil!...)
Word...
Word...
Here's...
They...
(Chil!...)
They...
(Chil!...)
...

Some of them are indented (the "Chil!" ones). But a few lines are too long for the page (especially where the drop cap appears), and are broken in two, with the second part indented too. These linebreaks are "soft" ones, you don't want to include them in the ebook, they should only be generated as needed by the reader (just like normal paragraphs are broken into lines). The only way I know of getting this kind of display is with a negative text-indent (and a matching positive margin or padding), but it is this negative indent that causes the problems, especially since ADE is apparently behaving differently from other renderers.

If there is no poetry, I don't need the negative text-indent, or any indent at all, and there's no problem. If there is no float (drop cap or illustration), the negative text-indent works perfectly as intended.

EDIT: Pablo's explanation is much better than mine, but here you have your image
Jellby is offline   Reply With Quote