4 ms·
In CSS, `text-transform: uppercase;` is able to separate case from styling. I've used it frequently in the past, since you often want to experiment with all-cap
by crazygringo 3y ago
In CSS, `text-transform: uppercase;` is able to separate case from styling. I've used it frequently in the past, since you often want to experiment with all-caps for short headings, captions, subtitles, etc. Whereas if you hard-code the all-caps in text, you can't go back.
In Chrome, if you copy CSS-all-caps text to the clipboard, it is copied as uppercase.
Intriguingly, in Firefox, it is copied as the original (mixed case) source HTML text.
I do like the idea treating all-caps as a style, just like small caps. The problem, of course, is that it makes it kind of impossible to type within it, since there's no feedback as to when you're typing capital letters at the starts of sentences or not.
- Wowfunhappy 3y agoTo be clear, my assertion is that most user-facing text editors should have the opposite of all-caps as a style! I think italics should be treated the way we treat capitalization. Pressing ⌘I (or using the UI equivalent) should act like the italics version of caps lock.
- snoopen 3y agoI much prefer the approach of applying emphasis, be it italics, bold, all-caps etc, on top of plain text. To me this is the most versatile approach and I think is better for accessibility. A sentence with italics or any other emphasis should read exactly the same without that emphasis. Where the same isn't true of capitalisation.
- Wowfunhappy 3y ago> A sentence with italics or any other emphasis should read exactly the same without that emphasis. But it doesn't, that's the thing! The word you italicize can alter the meaning of a sentence. For instance: > "I didn't steal Sally's necklace!" > "I didn't steal Sally's necklace!" > "I didn't steal Sally's necklace!"
- nnf 3y agoOne of my favorites: I didn’t say I took the money. I didn’t say I took the money. I didn’t say I took the money. I didn’t say I took the money. I didn’t say I took the money. I didn’t say I took the money.
- deleted 3y ago[deleted]
- Wowfunhappy 3y agoAs of this writing my parent comment is downvoted, so maybe the difference between the three sentences is less obvious than I thought. While all three sentences assert that I didn't steal Sally's necklace: • The first version implies that I acquired Sally's necklace via other means. • The second version implies that I stole someone else's necklace. • The last version implies that I stole something else from Sally.
- vehemenz 3y ago> A sentence with italics or any other emphasis should read exactly the same without that emphasis. Not true. In conventional English, it is typical (if not expected) to add verbal emphasis to italicized words while reading aloud.