View Single Post
Old 03-01-2012, 03:47 PM   #4
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by Snorkledorf View Post
Should be very interesting to try. Now I've just got to start from square one again and learn the syntax...
I found the Tweak ePub solution to be quicker and I like the simplicity of markdown. You can help the Tweak process by defining your markdown images as follows:

Code:
![left](img/image.gif)

![right](img/image.gif)

![center](img/image.gif)
The value of the alt attribute of the generated <img> tags gets the value in square brackets, so you can use this in a regex to do a one-shot style update across all xhtml files in your ePub to apply the required text-align.

Last edited by Agama; 03-01-2012 at 04:01 PM.
Agama is offline   Reply With Quote