View Full Version : Hyphenation


Jini
04-04-2012, 09:42 PM
I am new to the epub format. After converting a file to epub, I wasn't OK with some of the design changes that the program made. So, I went directly into the file (via unzip) and made most of the changes happen.

What I am not getting is how to activate or deactivate hyphenation through the whole epub document. Is there a specific CSS command that I can use?

Toxaris
04-05-2012, 03:03 AM
Whether or not hyphenation works, greatly depends on the reader. Newer generations can do it, older cannot. It is possible to turn it off for readers that do support hyphenation, notably iBooks. That can be done by adding -webkit-hyphens: off.
This is not a really part of the specs.

Jellby
04-05-2012, 06:57 AM
In CSS3 (and ePub 3, I guess), it would be "hyphens: none". In ADE I believe it's "adobe-hyphenate: none"

My advice is to only deactivate it for certain things like titles. Leave the hyphenation for the main text unspecified, so the reader can choose whether or not he wants hyphens (if the device allows that).

Jini
04-05-2012, 12:48 PM
Thanks guys. I also tried word-wrap: break-word;

Somehow I had the impression that my reader deactivated hyphenations by default, but I think I was mistaken.