View Single Post
Old 03-28-2025, 01:23 PM   #83
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,881
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
What does the hyphenate section for a kepub produced by KTE look like? It will be in one of the css files. As far as I can tell from looking at the code it should be identical.
Here is what it looks like from calibre 7.24. This is in hyphenation.css.

Code:
* {
	/* Vendor-prefixed CSS properties for hyphenation. Keep -webkit last since
	 * some user agents also recognize -webkit properties and will apply them.
	 */
	-webkit-hyphens: auto;
	-webkit-hyphenate-limit-after: 3;
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-chars: 6 3 3;
	-webkit-hyphenate-limit-lines: 2;

	/* CSS4 standard properties for hyphenation. If a property isn't represented
	 * in the standard, don't put a vendor-prefixed property for it above.
	 */
	hyphens: auto;
	hyphenate-limit-chars: 6 3 3;
	hyphenate-limit-lines: 2;
	hyphenate-limit-last: page;
}

h1, h2, h3, h4, h5, h6, td {
	-webkit-hyphens: none !important;
	hyphens: none !important;
}

Last edited by JSWolf; 03-28-2025 at 01:25 PM.
JSWolf is online now   Reply With Quote