![]() |
#31 | |||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
It’s pretty cool learning about the origins of small-caps, and I agree that I use it primarily for the opening line in the first paragraph of a new chapter: Code:
p.first::first-line {font-variant:small-caps; font-size:1.15em} Spoiler:
That's not quite true...and to be a little nit-picky... Smallcaps work on uppercase letters as well... it just doesn't appear to change anything because they are already uppercase letters. lol Smallcaps doesn't fail on uppercase letters. It tells the reading system/browser to use an SC font (if available) to the entire phrase. It also ensures the uppercase (capital) letters are larger than the smallcaps (lowercase) letters. You can also apply other styling, like font-size, that applies the appropriate relative size change to ALL the letters. Quote:
Isn’t the point of small-caps to differentiate between uppercase and lowercase letters while displaying all the letters using the uppercase glyph?? You mistakenly think that all letters MUST be the same size. (Definition - here and here ) If you were correct then you wouldn't need font-variant:small-caps at all - you could easily create that style with: Code:
.small {text-transform:uppercase; font-size: .7em} Code:
<p>H<span class="small">i</span>! M<span class="small">y name is</span> D<span class="small">ion the</span> B<span class="small">enificent</span>. N<span class="small">ice to meet you</span>. </p> Code:
.sc {font-variant:small-caps} <p class="sc">Hi! My name is Dion the Beneficent. Nice to meet you.</p> You, of course, can do it however you want to. I was simply pointing out that applying text-transform:lowercase before font-variant:small-caps is defeating the purpose of small-caps. edit: Sorry for the edits...I was trying to figure out how to insert an image inside the spoiler tags...got it working! Last edited by Turtle91; 09-02-2022 at 05:30 PM. |
|||
![]() |
![]() |
![]() |
#32 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
Code:
h2 + p::first-line, ... { font-variant: small-caps; font-size: 1.15em; } |
|
![]() |
![]() |
![]() |
#33 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Just a reminder that some devices don't play well with small-caps, or pseudo-elements...that's why those publishers reverted to those spans - for maximum compatibility across the most devices. But if your device works with it (as mine does) then it is a great tool! Also, as mentioned in other locations, if you can embed a font that is a true small-caps font, then things look even better to the discerning eye. I'm not that discerning yet.... Last edited by Turtle91; 09-02-2022 at 06:20 PM. |
|
![]() |
![]() |
![]() |
#34 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
And for the ultimate discussion on all things smallcaps, see many of the posts I linked to here:
Quote:
If the device doesn't support it, too bad! ![]() Quote:
![]() Any reason why Kobo still hasn't included a monospace font? Hasn't this bug/complaint been known about for years and years? Last edited by Tex2002ans; 09-02-2022 at 09:41 PM. |
|||
![]() |
![]() |
![]() |
#35 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Don't use some non-standard font that doesn't work the way most fonts do. That's not good form. |
|
![]() |
![]() |
![]() |
#36 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Making the text lowercase is not defeating the purpose. It's allowing the text to be changed to smallcaps. Uppercase text does not become smallcaps using small-caps. |
|
![]() |
![]() |
![]() |
#37 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,054
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
|
|
![]() |
![]() |
![]() |
#38 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
I am talking about OTF fonts with built-in c2sc and smcp functionality that is often turned off by default but can be turned on with the requisite stylesheet, and font-variant can also be used secondarily for smcp. But I think you aren't really interested in this. Others might be. Last edited by bookman156; 09-03-2022 at 07:26 AM. |
|
![]() |
![]() |
![]() |
#39 | ||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#40 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Short answer: Cost to license one? Not enough demand to include one? Not enough complaints about its absence? Take your pick ![]() Longer answer: Kobo probably think they've already 'fixed it' for those who care enough, i.e. use epub with a sideloaded Courier font. All they needed to do was to fix one of the pre-existing settings in the Adobe-supplied epub reading app. Effort required minimal - nevertheless appreciated by some of us. Fixing it for kepub is another matter entirely. If the user was willing to leave their Kobo selected font permanently at 'Publisher default' then there would be a chance that font-family:monospace; could be directed to use a default mono font, if it existed, in the same way that they currently direct font-family:serif; and font-family:sans-serif; to Georgia and 'Avenir Next' respectively. However, as soon as the user selects a custom font to display main body text in their kepubs then the sledgehammer kepub override CSS for font-family comes into play, namely * { font-family: %1 !important;} Every one of the kepub's CSS styles containing the font-family property will be overridden, i.e. the whole book will be displayed in the single user-selected font, which may, or may not, be what the user really wanted. Kobo *could* make the kepub font-family override CSS less aggressive (there are kobopatches which can do this). It would almost certainly lead to more complaints for their Help Desk when the less aggressive font-family override failed to override in the way the user expected because of the badly-designed CSS found in so many retail books. In summary, for people who care enough and are prepared to put in the effort there are workarounds and Kobo probably know that. For everyone else they have their fallback response as explicitly stated in their Kobo EPUB Guidelines Quote:
|
||
![]() |
![]() |
![]() |
#41 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,054
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Plenty of totally free Courier style / monospace fonts. They already using Linux. There probably is already a monospace font in there.
It's just corporate stupidity more typical of Alphabet, MS or Apple (in a general sense, not regarding a font). |
![]() |
![]() |
![]() |
#42 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I remembered JSWolf talking about the monospace bug + how to work around it years ago. A few years ago, I emailed one of the head QA guys at Kobo about a question I had from his ebookcraft 2018 talk. After answering, since I had him, I pointed him to those monospace threads too. :P He forwarded the info to the QA team, so I assume they are/have been aware of it! Then just a few weeks ago, I finally began applying some custom patches to my Kobo Forma. I saw some of those "rendering fixes" mentioned in the official notes, so I hoped that was one of them! Shame to see nothing has moved on that front, and if anything, they made it harder to work around. (No more easy sideloading monospace fonts.) Quote:
I was trying to find those a few weeks ago, but couldn't. And there was just so much info to dig through... heh. |
||
![]() |
![]() |
![]() |
#43 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#44 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
Un-Force user font-family in KePubs: - Enabled: no - Description: | The KePub reader uses a very heavy-handed method of setting the font selected by the user, overriding all fonts set by the publisher in the book unless "Publisher Default" is selected. This patch lets the font-family set by the publisher in the KePub stylesheet override the font-family selected by the reader from the device in some cases, which allows a mix of user-selected and publisher-selected fonts. Alternatives 1-3 give increasing preference to the publisher-selected fonts. - FindBaseAddressString: "* { font-family: %1 !important; }\n" # # Alternative 1: # * { font-family: %1 !important; }\n # --> div,p{font-family:%1!important; }\n # - ReplaceString: # Find: "* { font-family: %1 !important; }\n" # Replace: "div,p{font-family:%1!important; }\n" # MustMatchLength: yes # # Alternative 2: (Similar to ePub default) # * { font-family: %1 !important; }\n # --> body,p{font-family:%1!important;}\n # - ReplaceString: # Offset: 0 # Find: "* { font-family: %1 !important; }\n" # Replace: "body,p{font-family:%1!important;}\n" # MustMatchLength: yes # # Alternative 3: (similar to ePub with `Un-force font-family override p tags`) # * { font-family: %1 !important; }\n # --> body{font-family:%1 !important; }\n - ReplaceString: Offset: 0 Find: "* { font-family: %1 !important; }\n" Replace: "body{font-family:%1 !important; }\n" MustMatchLength: yes |
|
![]() |
![]() |
![]() |
#45 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Thanks jackie + JSWolf.
I'll mess with it next time I'm poking around on my Kobo. Want to finish a few books + transfer out all my notes just in case I botch the patches. ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Concept] Telegram Bot for converting epubs to kepubs (and transferring) | Tommalka | Kobo Developer's Corner | 2 | 01-01-2022 04:03 AM |
Recipe request: Worcester Telegram | NSILMike | Recipes | 0 | 12-31-2020 08:52 AM |
Worcester Telegram Recipe request | NSILMike | Recipes | 0 | 10-11-2020 07:39 AM |
Green Island - Telegram-channel for authors and writers of books | Phil J. Parker | Self-Promotions by Authors and Publishers | 0 | 06-26-2018 02:23 PM |
E-readers chat (telegram, whatsapp)? | Mochy | Android Devices | 4 | 07-28-2015 08:46 AM |