News for hackers. Stuff that matters.
Re:The `hanging-punctuation property` in CSS by ggm on Monday November 27, 2023 @11:05PM (#38442209)
The point of much punctuation is to help inform the parse, and understanding semantic intent. This is why I find the whole "two spaces after full stop not needed" thing to be a very odd argument: Those spaces aided reading. They had a purpose.

Quote blocks are embedded, nested structure. Sure seems to me like a punctuation model and a layout model which can understand that, is net beneficial.

I always liked the french <<this is a quote>> model. Somehow it felt more like an embedded thing.

Double quotes have the additional burden MICROSOFT WORD I AM LOOKING AT YOU of the random interpolation of what the editor YES MICROSOFT WORD I MEAN YOU thinks it knows you meant to say. Additionally hijacking the text into badly encoded iso-latin1 or utf-8 mis-parsed, as a free gift.

if I mean to say:

  “a quote” (left and right double quotation mark)
I will say it. When I say

  "a quote" (apostrophe, used twice)
please.. leave those quote-marks alone.

(double-dash to em-dash.. same problem: free uplift to UTF you didn't ask for)

Re:The `hanging-punctuation property` in CSS by crazygringo on Monday November 27, 2023 @11:30PM (#38442349)
> Those spaces aided reading. They had a purpose.

Did they though? When I read old books vs new books, I don't notice the difference at all. Especially with justification, spaces are already quite variable per line.

I don't think it aided reading at all. It was just a kind of random convention -- maybe somebody thought there was a logic to it -- that got dropped because it wasn't doing anything. One less rule to worry about.

Re:The `hanging-punctuation property` in CSS by oxygen_crisis on Tuesday November 28, 2023 @12:03AM (#38442525)
A study showed that it's hard to measure any difference in reading speed and there is no difference in comprehension.

The difference in reading speed only applies to people who are used to double-spaces, there is no difference in reading speed single-spaced vs. double-spaced for people who are conditioned to read single-spaced.

> Although the type of spacing following punctuation marks did not seem to have an effect on those individuals who type with one space after a period, those who type with two spaces after a period had greater reading speed when paragraphs were presented in the same way in which they type: with two spaces following periods and one space following commas.

I'd argue this data suggests the double-spaces are a waste of space that accomplishes nothing except slightly handicapping people who become accustomed to it and then read text without it.

https://link.springer.com/article/10.3758/s13414-018-1527-6

Re:The `hanging-punctuation property` in CSS by pixel8account on Tuesday November 28, 2023 @01:43AM (#38443088)
>slightly handicapping people who become accustomed to it and then read text without it.

Or maybe slightly boosting when reading double spaced? (I didn't read the article yet, my plane is just starting).

Re:The `hanging-punctuation property` in CSS by o11c on Tuesday November 28, 2023 @12:18AM (#38442617)
Books are typically not monospace, which is where the two-space rule really applies.
Re:The `hanging-punctuation property` in CSS by Izkata on Tuesday November 28, 2023 @12:55AM (#38442820)
Yep, I use vimwiki where it's all monospace, and two spaces between sentences is a massive readability benefit there. I also type it when making comments here because these input boxes are also monospace, even though the extra space isn't displayed after posting.
Re:The `hanging-punctuation property` in CSS by crazygringo on Tuesday November 28, 2023 @07:47AM (#38445097)
No, the two-space rule was used in books a ~century ago. That's what I'm comparing with.

The habit was adopted for monospace typewriters precisely to try to match book typesetting.

Then the books dropped it, but it persisted in typing habits.

Then once Mac/Windows allowed anyone to use proportional fonts, we were taught to use a single space again.

Re:The `hanging-punctuation property` in CSS by zestyping on Tuesday November 28, 2023 @02:03PM (#38449809)
They do. The end of a sentence is not the same as the space after an abbreviation. There is a semantic difference, and it's useful.
Re:The `hanging-punctuation property` in CSS by pimlottc on Monday November 27, 2023 @11:26PM (#38442326)
> I always liked the french <<this is a quote>> model. Somehow it felt more like an embedded thing.

Those « » characters are called "guillemets" [0]. Fun fact, they're named after an early French typecutter, Guillaume Le Bé!

https://en.wikipedia.org/wiki/Guillemet

Re:The `hanging-punctuation property` in CSS by ahmedfromtunis on Tuesday November 28, 2023 @12:27AM (#38442657)
No, they are the worst.

Guillemets require using space around them («wrong», « correct ») which makes typesetting so hard as you have to hunt for each guillemet that fell to the next line to manually fix it.

And even that's not possible on the web, so you have to get used to dangling punctuation.

Re:The `hanging-punctuation property` in CSS by chrishill89 on Tuesday November 28, 2023 @04:05AM (#38443841)
They don’t require a space around them. That’s a French thing. They don’t require that in Swiss German.

Also not in Norwegian and probably others.

Re:The `hanging-punctuation property` in CSS by eynsham on Tuesday November 28, 2023 @01:45AM (#38443102)
In LaTeX it’s quite easy to change the kerning so that one needn’t leave a space in the plaintext. It’s akin to e.g. east Asian full-width Unicode punctuation marks, or even slightly dated English typography (when there was a little more space before most semi-colons).
Re:The `hanging-punctuation property` in CSS by RHSeeger on Tuesday November 28, 2023 @12:59AM (#38442839)
Could you use non-breaking space instead?
Re:The `hanging-punctuation property` in CSS by uxp8u61q on Tuesday November 28, 2023 @01:24AM (#38442993)
Use non breaking spaces between the content and the guillemet...
Re:The `hanging-punctuation property` in CSS by chrismorgan on Tuesday November 28, 2023 @02:12AM (#38443254)
You should use U+202F NARROW NO-BREAK SPACE for French punctuation spacing.
Re:The `hanging-punctuation property` in CSS by realusername on Tuesday November 28, 2023 @02:00AM (#38443190)
That's also required with every punctuation symbol with two parts in French so : ; ! and ? also require an extra space.
Re:The `hanging-punctuation property` in CSS by andyadams222 on Thursday November 30, 2023 @04:49AM (#38471602)
Number theory homework used to be a puzzle, but with the assistance from this service https://domymathhomeworks.com/number-theory-homework/, it turned into a captivating journey of discovery. The experts not only helped me solve problems but also nurtured my understanding, making number theory a fascinating exploration rather than a daunting task.
Re:The `hanging-punctuation property` in CSS by rjh29 on Tuesday November 28, 2023 @01:53AM (#38443153)
The '. ' is already wider than a normal space though, so personally I find it easy to parse both.
Re:The `hanging-punctuation property` in CSS by Skeime on Tuesday November 28, 2023 @03:13AM (#38443530)
I’m pretty sure there is a setting in Word that allows you to turn off the automatic conversion of quotes. And I think that defaulting to performing the replacement is sane, as most people do just type “"” whenever they need any quotation mark and cases where “curly” quotation marks are appropriate are much more common than straight-quote cases outside of tech-related contexts.