News for hackers. Stuff that matters.
Re:Always paste without formatting on macOS by crazygringo on Saturday November 04, 2023 @01:30PM (#38143213)
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.

Re:Always paste without formatting on macOS by Wowfunhappy on Saturday November 04, 2023 @01:57PM (#38143511)
To 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.

Re:Always paste without formatting on macOS by snoopen on Saturday November 04, 2023 @04:48PM (#38144983)
I 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.

Re:Always paste without formatting on macOS by Wowfunhappy on Saturday November 04, 2023 @06:36PM (#38145927)
> 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!

Re:Always paste without formatting on macOS by nnf on Sunday November 05, 2023 @12:36AM (#38148269)
One 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.

Re:Always paste without formatting on macOS by Wowfunhappy on Sunday November 05, 2023 @07:28AM (#38150556)
LOL, where is this from? This is almost[1] word-for-word what popped up last night when I asked ChatGPT for a sentence "that will have a different meaning depending on which word is italicized." I knew italics could alter meaning, but I couldn't think of a good example off the top of my head.

I liked ChatGPT's example, but I thought it was a bit too subtle, so I changed it to the sentence I used in the GP. I didn't realize ChatGPT's example was plagiarized.

---

1: ChatGPT wrote "I didn't say I took her money."

Re:Always paste without formatting on macOS by Wowfunhappy on Sunday November 05, 2023 @01:11PM (#38153793)
As 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.

Re:Always paste without formatting on macOS by vehemenz on Sunday November 05, 2023 @02:15PM (#38154554)
> 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.