View Single Post
Old 06-04-2015, 06:27 AM   #127
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
[QUOTE=Nick_1964;3112166][QUOTE=GeoffR;3112152]Hyphenation in kepubs defaults to off, but the default is changed to on if you select full justification from the Aa menu. The `Set kepub hyphenation` patch has an alternative to prevent it being turned on when you select full justification.
Quote:
I must look in to this, for now it keeps using hyphenation.
I don't understand but if I, in my mind,convert the words that have been cut off it looks like it uses "the english way" they are mostly correct,but in my language (and I think almost every language) hyphenation is done at another way.
It treat the book in my language as an english book making it rather useless for all other languages.
Kickin in an open door: kobo hasn't done this at a smart way.
We are lucky if you keep up the patching,and kepub isn't a wide supported format here.
I can't recall/remember if I use the full justification button.


No, I don't know if it does by default,but there is no "button" at the modification page of the plugin to turn on or off hyphenation.
The extended driver and Kepub Output plugin has an option "Hyphenate files". If you select that, an extra stylesheet is added to the book and linked to all files in the book. This has several different ways of turning hyphenation on. The contents of the stylesheet is:
Code:
* {
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;

	-webkit-hyphenate-after: 3;
	-webkit-hyphenate-before: 3;
	-webkit-hyphenate-lines: 2;
	hyphenate-after: 3;
	hyphenate-before: 3;
	hyphenate-lines: 2;
}

h1, h2, h3, h4, h5, h6, td {
	-moz-hyphens: none !important;
	-webkit-hyphens: none !important;
	hyphens: none !important;
}
Quote:
Maybe I can set
Code:
p {
  hyphens: none;
}
somewhere in calibre so it would add it to the .css if possible but I don't know exactly how and with my dyslectic it would not be easy to find this.
What you could do is take the stylesheet above, work out what all the equivalent "off" options are and put them in the kobo_extra.css and turn on the "Modify CSS" option. That will get added to each stylesheet when you send the book.
davidfor is offline   Reply With Quote