02-12-2024, 09:01 AM | #121 | |
Resident Curmudgeon
Posts: 74,398
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
One thing I cannot find is how to do a media query for small-caps. I don't think it can be done. I would not mind being proved wrong in this case. So it looks like you either use the font-variant and some will not get Death correct or you use a font-size and everyone will get Death correct. |
|
02-12-2024, 09:06 AM | #122 | |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Code:
<small>HAVE HEARD</small> |
|
Advert | |
|
02-12-2024, 09:08 AM | #123 | |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
<p><small>SO I HAVE HEARD</small>, said Death.</p> |
|
02-12-2024, 09:12 AM | #124 |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I actually wasn’t responding to you, but to JSWolf. I don’t try to force my opinions/techniques on others. I give advice and examples. It’s up to the reader to use it, or not.
|
02-12-2024, 09:13 AM | #125 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
|
Advert | |
|
02-12-2024, 09:14 AM | #126 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
But just to say this, everyone should forget about that comment (quoted by JSWolf), I did say it's bad
|
02-12-2024, 09:15 AM | #127 | |
the rook, bossing Never.
Posts: 11,384
Karma: 87013929
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
https://xkcd.com/393/ |
|
02-12-2024, 09:19 AM | #128 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
I'd be really grateful if someone explained to me why did JSWolf say that in the quoted scenario I'm losing the caps, I'd like to understand.
|
02-12-2024, 09:20 AM | #129 |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Soooo just wait a minute now… in that comic EVERYONE is talking in all caps… WTH?!?!!!
|
02-12-2024, 09:22 AM | #130 | |
Resident Curmudgeon
Posts: 74,398
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-12-2024, 09:24 AM | #131 |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
My response in #122 was asking why he kept the space outside of the <small> tags. Hopefully he will answer.
In general, the technique is used to simulate small-caps… where capital letters would still be displayed larger than the lower case letters. That is done automatically using the font-variant:small-caps on devices that support it. |
02-12-2024, 09:25 AM | #132 | |
Resident Curmudgeon
Posts: 74,398
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The problem is that <small> is too large for smallcaps. So you have to set a size for <small> to work properly (in this case). |
|
02-12-2024, 09:28 AM | #133 |
Resident Curmudgeon
Posts: 74,398
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you use font-variant: small-caps, a space is a full size space. If you use <small>, a space will be smaller then it should be. So if you want a correct size space, you have to do it as I did it.
|
02-12-2024, 09:39 AM | #134 | |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
I understand about <small>, but I tried it without redefining it, with the Random in Death font-size: 85%, and your own 0.8333em, and I failed to see a difference with the naked eye. I will keep it in mind and test it further, though. |
|
02-12-2024, 09:55 AM | #135 |
Resident Curmudgeon
Posts: 74,398
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Back to the topic of IDs. This is actual code from an eBook where the <a> should be removed if it's not being used.
Code:
lit<a id="page10"></a>tle world |
Tags |
indesign, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any Addons that aid in Library Cleanup and/or metadata repair/cleanup? | Meido | Calibre | 2 | 01-17-2018 03:49 AM |
Adobe InDesign and poor code | JSWolf | ePub | 15 | 01-18-2017 01:02 PM |
HTML cleanup on epub conversion | Lofwyr23 | Conversion | 4 | 06-06-2014 04:56 PM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 10:23 AM |
InDesign and epub | FredD | ePub | 2 | 04-13-2009 08:38 PM |