|
|
#31 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 555
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
Code:
<p><span class="smaller">BORN</span>: <span class="smaller">Dec</span>. 15, 1948</p> As I said at the outset, this was my original solution, but i was wondering if there was a way to automatically isolate sizing to a specific type of character. (Which RbnJrg demonstrated, albeit strictly in a epub3 context) Last edited by ElMiko; 04-01-2026 at 08:34 PM. |
|
|
|
|
|
|
#32 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,480
Karma: 21000001
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
|
Another option is to use small-caps css
Code:
.sc {font-variant:small-caps}
<p class="sc">BORN: Dec. 15, 1948 / DIED: Oct. 10, 1984 / A MOTHER, A SISTER, A DAUGHTER; LOVED BY ALL.</p>
I also think it leaves the font-size of the numbers alone… so you can play around with that. Some people don’t like using it, and I’m sure they’ll jump on here and say "it’s an ePub3 thing so don’t use it"… but that is just not true. There may be devices/apps that don’t do it "perfectly", but it’ll look great for most and acceptable for anyone else. |
|
|
|
| Advert | |
|
|
|
|
#33 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 555
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
Small caps won't change the height of the capital letters. As I've said a couple of times, the original question was about modifying ALL letters—uppercase and lowercase—to be smaller without numbers or punctuation being affected. Second, unfortunately, small caps is less reliable than you might think. NeoReader, for example, is very inconsistent in recognizing them. Trust me on this, small-caps does not solve this issue. Period. Particularly because if it fails on all lower-case text it will be be really disruptive (e.g. <span class="sc">no exit</span> hung over the door.) Are there other workarounds? Sure. I could just leave all the text in caps without stylizing further at all. Or deciding that it's okay to shrink the numbers and punctuation. But that's solving the problem by deciding that you don't want to solve the problem. I already know how to do that. From what I can see, the only solutions to making the text look the way I said in the original post are a) swiss cheese <span>s, and b) RbnJrg's targeted Unicode approach. Last edited by ElMiko; Yesterday at 10:26 PM. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moon+ Reader your favorite font and font size? | loodio | Android Devices | 6 | 01-30-2016 06:50 PM |
| Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM |
| Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 03:35 PM |
| PRS-300 Med font size too big, but small font size too small | eli2k | Sony Reader | 4 | 05-28-2010 09:47 AM |