View Single Post
Old 05-30-2012, 02:10 AM   #53
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi,

Guido Henkel's idea implemented here in a slightly different way using writer2xhtml and Sigil - in French -. It's about underlining a h2 title with an ornament.


https://www.mobileread.com/forums/sho...&postcount=147

1. In your odt file, insert image under the first h2 title, anchored to paragraph, without border, 30% size

2. Once your odt file has been converted to EPUB, open the EPUB with Sigil and insert the 30 remaining images using this Regex (all html files). It looks complex but in fact you just have to copy the code that writer2xhtml wrote for you for the first image...
Search </h2>
Replace</h2><div style="text-align:center"><img alt="images3" class="frameGraphics" id="images3graphic" src="../Images/image003.png" style="width:30%" /></div>

3. Then you adjust the lower margin of the ornament on the main style sheet (here: margin-bottom: 1em)


You can adjust in the same way, the h2 margin-bottom if need be.

Last edited by roger64; 05-30-2012 at 03:14 AM.
roger64 is offline   Reply With Quote