Export All Hyphenation Points With ePubCrawler

ePubCrawler 0.2.4 or higher has an interesting feature: it can find all the hyphenation points in all the words in a document, and convert them to discretionary hyphens in the XHTML output.

ePubCrawler is our ‘work-in-progress’ of a tool for converting InDesign documents to fixed-layout EPUB. More info and download links can be found at https://www.rorohiko.com/epubcrawler.

By default, the feature is turned off. To enable it, open the config.ini file and find the addSoftHyphens setting. It is normally set to 0 (zero). Change this to 1 (one), and then run or re-run ePubCrawler.

Below an extract from a sample XHTML page with both settings.

With addSoftHyphens = 0

<p class="NormalP">With regards to programming styles - I strongly recommend that you copy the programming style used by the InDesign architects. I am fully aware that many people prefer one style over another, but in this case it will make things so much easier if you simply drop your own personal preferences, accept the style, and copy it as-is.</p>

With addSoftHyphens = 1

<p class="NormalP">With re&shy;gards to pro&shy;gram­ming styles - I strong&shy;ly rec&shy;om­mend that you copy the pro&shy;gram­ming style used by the In&shy;De­sign ar&shy;chi­tects. I am ful&shy;ly aware that many peo&shy;ple pre&shy;fer one style over an&shy;oth­er, but in this case it will make things so much eas&shy;i­er if you sim&shy;ply drop your own per&shy;son­al pref&shy;er­ences, ac&shy;cept the style, and copy it as-is.</p>

The text becomes pretty unreadable in XHTML, but the advantage is that you can now easily resize the text frame div in the CSS style sheet and the text will seem to ‘auto-hyphenate’.

It’s not perfect, and text reflow differences between InDesign and EPUB will always make the conversion fraught with pitfalls, but this option gives you another weapon to use when fighting the good fight.

 

 


This entry was posted in CS5, CS5.5, CS6, EPUB, InDesign, Mac OS X, News, Recipes, Windows. Bookmark the permalink.