Filed under How I do things
Image for Add a unique Class Name to the Body Tag in your ePub Chapters

Dreamweaver search with regular expressions

Add a unique Class Name to the Body Tag in your ePub Chapters

Edit: InDesign CC 2014 adds an ID value to the <body> tag, so if you have the latest version you will not need to use the method described in this article. When you export to ePUB, now, InDesign will add something like the following for the <body> tag:

<body id='dream-102' lang='en-GB' xml:lang='en-GB'>

The #dream-102 in this case is unique to page 102 in this eBook. Brilliant, we can now target each page individually with our CSS!

----------------- Continue reading if you have an earlier version of InDesign ------------

This GREP will help you add a class name to the body tag – like this

<body class="page3">

You know – so you can add some special CSS styles to each chapter in the eBook you just exported from InDesign.

Or maybe for each page – if you are making a fixed layout ePub.

Continue reading

Posted on 13 Mar 2014 around 10pm • Tagged with: eBooks | How I do things | Permanent link to this article

Image for eBook Typography - a couple of tweaks

eBook Typography - a couple of tweaks

My eBook eBook Typography for Flowable eBooks has been in the iBooks store for a couple of weeks, but I wasn't happy with a couple of issues, so I have uploaded a new version to the store.

It occurs to me, that eBooks can be updated (to fix stylistic problems), and rather than this being an entirely new edition (as it would be in pBook), this is simply a small update and could be handled in the same way that software is updated. On my title page, I have an aside that displays the version number.

But what changes have I implemented?

Continue reading

Posted on 28 Sep 2012 around 12pm • Tagged with: CSS | eBooks | How I do things | Permanent link to this article

Image for Screencasts are up on iTunes

Screencasts are up on iTunes

Today, I finally managed to get a presence for my screencasts on iTunes. Actually, screencasts have been on my site for a while, but after spending time and research on delivering video with HTML5, I thought it was time to get some experience it that area too.

You can subscribe to the screencasts on iTunes here.

Posted on 02 Dec 2010 around 1pm • Tagged with: How I do things | Permanent link to this article