05-29-2019, 03:10 PM | #106 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Experimentation is probably the only way you'll find a definitive answer. * Just a personal opinion, of course |
|
05-29-2019, 05:55 PM | #107 | |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
Code:
body { font-kerning: normal; font-variant: common-ligatures oldstyle-nums proportional-nums; font-feature-settings: "kern", "liga", "clig", "onum", "pnum"; } h1, h2, h3 { font-variant: common-ligatures lining-nums proportional-nums; font-feature-settings: "kern", "liga", "clig", "lnum", "pnum"; } https://friendsofepub.github.io/eBookTricks/ |
|
Advert | |
|
05-29-2019, 06:36 PM | #108 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I seem to remember, from 2-3 years ago when I was originally messing with this, that Code:
-webkit-font-feature-settings: "liga" My final conclusion was that text-rendering: optimizeLegibility; was convenient for both ligatures and kerning and I've used it ever since. Always willing to reconsider, though, if you discover a few golden nuggets. |
|
05-29-2019, 07:20 PM | #109 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Sorry, I did try it and it worked. I was wondering if there was anything it did that your suggestion didn't.
The lnum for headers is nice but I'm wondering how many fonts have both styles of numbers so that this would switch between them. In any event I'm taking the scatter gun approach and using his and yours together. |
05-31-2019, 11:37 AM | #110 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
|
Advert | |
|
05-31-2019, 12:36 PM | #111 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
06-01-2019, 10:07 AM | #112 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
|
06-01-2019, 12:31 PM | #113 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
06-01-2019, 01:11 PM | #114 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
Later in this thread, you said the leading/trailing spaces replacement out of the spans helps more. (btw. a similar thing is commented as a TODO in the original code itself as well, just there are thoughts about putting the trailing space into the next span as I understood well.) Is your tweak code "space out from span" is shareable for experimenting? |
|
06-02-2019, 08:17 AM | #115 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
06-02-2019, 03:03 PM | #116 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
One weird formatting experience what I have: I placed a hyphen dictionary, what I found here in another topic. Works quite well. (I hope with your tweaks Kobo will be "forced" to hyphenate often). What I do not understand: in the dic, is coded lefthyphens, righthyphens 2 and 2. I was given the same in the hyphenate.css as well. (just for sure) And I saw just ONE character after the hyphen. That looks weird. Additionally for my eyes seems that in short words, sometimes after hyphens "stretches" Kobo (Makes "spaces" between characters. Not to mention a lot of time discussing "spaces" next to dashes.) |
|
06-03-2019, 08:18 AM | #117 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I'm not sure that kepubs take any notice of the LEFTHYPHENMIN, RIGHTHYPHENMIN stuff coded at the top of the hyphenation dictionary. Epubs may use it but I'm not really sure. Kepubs do respond to CSS styles such as Code:
-webkit-hyphenate-limit-after: 3; -webkit-hyphenate-limit-before: 3; Code:
-webkit-hyphenate-after: 3; -webkit-hyphenate-before: 3; If you don't use these styles at all, I expect default values will be used. I'm not sure what these are but I suspect 2. I use values of 3 myself because I got fed up of seeing things like: Code:
an- yone th- ing Code:
He likes to use punctuati- on. |
|
06-03-2019, 01:41 PM | #118 | ||
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
Quote:
In the other thread, someone mentioned that in the metadata given language code determines which dictionary will be used for hyphenation. I am defining the language in the body element. I don't know which is correct I will use both for be on the safe side. I will try the hyphenate-limit-chars: 6 3 2; -webkit-hyphenate-limit-lines: 2; hyphenate-limit-lines: 2; Quote from Blitz "to improve hyphenation. You can indeed set the minimum number of letters a word must contain to be hyphenated, and the minimum number of letters which should be before and after the hyphen. Finally, you can control the maximum number of consecutive lines for which hyphenation must happen. As Bringhurst advised, “avoid more than three consecutive hyphenated lines.”" |
||
06-03-2019, 01:59 PM | #119 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Just a personal comment about this. It may work very well, however, I deliberately don't use this style because I figure kepubs need all the help they can get to keep word spacing looking good. If I occasionally have to look at hyphens at the end of 3 consecutive lines, so be it.
Last edited by jackie_w; 06-03-2019 at 02:05 PM. |
06-03-2019, 02:09 PM | #120 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
I feel somehow about kebup/epub like someone invented the wheel (epub) and the new one not works to let run it smoother, but reinvents the wheel again (kepub) just with looking better but not running as well like the original one. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3.26.1 not converting Kepub format | RZetlin | Conversion | 2 | 06-26-2018 02:47 AM |
Aura H2O trying kepub and have questions | Shadowjack | Kobo Reader | 25 | 12-26-2017 04:30 AM |
Glo Question regarding kepub format | user2178319 | Kobo Reader | 18 | 05-14-2015 12:48 PM |
Kepub format and Koreader | gontofe | Kobo Reader | 4 | 08-20-2014 09:10 AM |
Harry Potter KePUB format | Gazella | Conversion | 19 | 04-13-2014 06:54 AM |