[oXygen-user] FW: Custom CSS for EPUB and Kindle

Oxygen XML Editor Support (Radu Coravu)
Mon Oct 6 01:09:17 CDT 2014


Hi Khaled,

Both the EPUB and Kindle formats are a bunch of HTML documents inside an 
archive container.

You should create a custom CSS and then edit the transformation 
scenario, specify in the Parameters list the "args.copycss" parameter to 
"yes" and the "args.css" to the path to your custom CSS.

To know what CSS selectors to add to your custom CSS:

After you publish to EPUB you can un-pack the EPUB archive using a free 
utility like 7-ZIP and open one of those output HTML documents to look 
inside it. For each significant HTML element you will have a @class 
attribute which contains several values, attribute which comes from the 
@class attributes of the original DITA content. You can then match based 
on those class attributes various HTML elements and style them accordingly.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 10/5/2014 10:24 PM, Khaled Aly wrote:
> Hi
>
> Can we advise aboutthe best practices for pre-transform CSS
> customization forEPUB and Kindleoutputs, starting with oXygen’sdefault
> stylesheet?
>
> Thanks & regards,
>
> Khaled
>
> ----------------------------------------------------------------
>
> Khaled A.B. Aly, Senior Author & Analyst in ICT
>
> Technopsis Research; Cairo, Egypt (GMT+2)
>
> //
>
> Technopsis.com/pro
>
> LinkedIn.com/in/kaaly <eg.linkedin.com/in/kaaly>
>
> +20 (0)12 2294 6280
>
> Skype:ka.aly
>
>
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list