View Single Post
Old 02-13-2024, 10:06 AM   #166
paperwhite13
Zealot
paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.paperwhite13 can eat soup with a fork.
 
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
Quote:
Originally Posted by JSWolf View Post
When you do your testing can you please also test the following code? It does work in calibre. I created a second CSS with just that code and it's the second stylesheet listed in the HTML. So if it fails, it won't cause a problem. It does not work in Thorium Reader (2.3.0) for Windows.

Code:
@supports (font-variant: small-caps) {
small {
  font-size: 1em;
  font-variant: small-caps;
  text-transform: lowercase;
}
Thank you! I've tried it and it works on some, I didn't have time to do a full testing. One thing of note, the TTS wasn't tripped by the mixed tagging regular+small caps, it only read the ARIA labels (like page breaks labeled as such etc.).

Also, the fixed font height for the fake small caps worked better in some cases than others -- ideally, small caps are always x-height, but the x-height varies from font to font.
paperwhite13 is offline   Reply With Quote