View Full Version : hyphenation control


mzmm
07-08-2013, 11:11 AM
hi all,

not having much luck googling, so was wondering if anyone knows how/if it's possible to control how a reader/app (mostly ADE and RMSDK) hyphenates.

i know that in iBooks i can set -webkit-hyphens:0; hyphens:0;

whoops—as per Jellby's comment below, of course i meant:

-webkit-hyphens:none;
hyphens:none;

, but of course this doesn't work on just about everything else out there. also, i'd rather set lower bounds in minimum number of letters that are hyphenated rather than just turning them off.

i read some posts suggesting inserting soft-hyphens everywhere, but, apart from the labour in putting them in, they also make the text non-searchable if a word contains a soft-hyphen.

any suggestions/advice would be appreciated!

thanks

Toxaris
07-08-2013, 01:08 PM
Not only that, soft-hyphens do not work in a lot of readers. They can even be displayed as question marks.
It is not really controllable.

RbnJrg
07-08-2013, 09:30 PM
hi all,

...i read some posts suggesting inserting soft-hyphens everywhere, but, apart from the labour in putting them in...

thanks

No labour at all; use the "Hyphenate This!" Calibre's plugin:

http://www.mobileread.com/forums/showthread.php?t=208534&highlight=hyphenate

Regards
Rubén

Toxaris
07-09-2013, 03:46 AM
That plugin inserts a lot of soft hyphens, but there is a lot of issues with it on a lot of readers. Again, a lot of readers do not support the soft hyphen. With newer readers hyphenation will be built in into the reader software, but for older readers you are out of luck.

mzmm
07-09-2013, 07:52 AM
thanks Toxaris and Rubén, looks like i'll be sticking with the default hyphenation then.

No labour at all; use the "Hyphenate This!" Calibre's plugin ...

and thanks for the link, i try to stay away from Calibre as an editor because i don't know it well enough to get consistent results, but will check out the plugin to see how how the hyphens are being generated

RbnJrg
07-09-2013, 09:40 AM
...and thanks for the link, i try to stay away from Calibre as an editor because i don't know it well enough to get consistent results, but will check out the plugin to see how how the hyphens are being generated

Results are great and work in ADE. By the way, Calibre doesn't touch the ebook; the plugin just inserts the ­ entities without affecting others parts of the ebook.

mzmm
07-09-2013, 03:04 PM
Results are great and work in ADE.

which version of ADE? i made a dummy book with one word in it that contained a soft-hyphen and the word wasn't searchable in ADE 2.0.67275

RbnJrg
07-09-2013, 07:06 PM
which version of ADE? i made a dummy book with one word in it that contained a soft-hyphen and the word wasn't searchable in ADE 2.0.67275

My version is ADE 2.0.67532. But also should work in ADE 2.0.67275; maybe you are doing something wrong. Have you downloaded and installed the dictionaries for "Hyphenate This"?

Below I attach a screenshot of my ADE.

EDIT: A dummy book with just one word is not enough to see hyphenated words. Instead use a real book; "Hyphenate This!" won't hurt it.

Toxaris
07-10-2013, 02:54 AM
But there are big issues with hyphenation on ADE-based readers, even the newer ones. The Kobo is one of the few readers where is it works to some extent. In most readers it will not show the hyphen, show a question mark or a blank. Other issues are that the hyphenation words can no longer be searched. Some readers suffer more from this than others, but in general this method of hyphenation does not really work to an acceptable level. It is fine if it is converted to a mobi, where I heard it will work better.
ADE is not always a good way to see if stuff works.

RbnJrg
07-10-2013, 10:04 AM
...It is fine if it is converted to a mobi, where I heard it will work better.


Yes, in my K4NT I have no problem with soft hyphen. But I can't say the same about others reader devices because I only tried the PC viewers for them. It's perfectly possible all those troubles you point out. But if mmzm wants the book for personal use, then he could try Hyphenate This! to see if it works for him. Of course, for commercial books, your reasons are of much weight.

Jellby
07-14-2013, 04:20 AM
i know that in iBooks i can set -webkit-hyphens:0; hyphens:0;, but of course this doesn't work on just about everything else out there.

For Adobe readers you can add adobe-hyphenate, but I think the correct value is "none:

h1 {
-webkit-hyphens: none;
adobe-hyphenate: none;
hyphens: none;
}

recommended for titles and other "display" stuff.