05-17-2012, 11:43 AM | #1 |
Junior Member
Posts: 4
Karma: 78960
Join Date: May 2012
Location: Virginia, USA
Device: Kindle, iPad
|
Looking for Suggestions to Convert Textboxes
I have a history book epub that has a lot of sidebars and textboxes which interrupt the flow of the text. In the epub they are offset with a border and color, making it clear that they are a different object. However in the Kindle format this is not possible.
I'm looking for suggestions on how these could be coded and ways to automate this. They are generally formatted in the epub like this: Code:
<div class="textbox1"> <h1 class="section"><span class="blue">TITLE</span></h1> <p class="nonindent">Paragraph</p> <p class="nonindent">Another Paragraph</p> <p class="center"><img src="images/7-1.jpg" alt=""/></p> </div> Code:
div.textbox1 { background-color: #DFE0E1; padding-top: 1em; padding-left: 1em; padding-right: 1em; padding-bottom: 1em; margin-top: 2em; margin-left: 2em; margin-bottom: 1em; margin-right: 2em; text-align: left; } Calibre made them into something like a block quote, but this is confusing. With other books I've put horizontal rules at the start and end to separate these, basically making a top/bottom border, but I do not have this automated yet...and there are a LOT of boxes. Another consideration is to just move them to the end of the chapters--this was already done with the longer boxes when cleaning up our epub conversion. But again, there are a LOT of text boxes, so an automated solution would be nice. Other suggestions? Perhaps some feature I'm not considering that may offset the text? With a little time I could cobble together a perl script to automate something, but I have a strong feeling it would be like reinventing the wheel using only rubber bands and duck tape. |
05-19-2012, 04:01 AM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You can maybe use background and border in mobipocket too, at least it says here it's possible: http://www.mobipocket.com/dev/articl...guidelines.htm
If they interrupt the text, moving them to the way and linking to them as if they were footnotes may be a good idea. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestions | transmitthis | Calibre | 24 | 01-25-2012 10:25 AM |
Suggestions | solara | Astak EZReader | 11 | 02-20-2010 11:01 PM |
Suggestions | LessPaul | Calibre | 1 | 09-28-2009 12:58 PM |
BD - suggestions... | pitolee | Sony Reader | 16 | 04-27-2007 10:08 PM |