w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.5k stars 661 forks source link

[css-text] allow hanging-punctuation to apply to nested quotes #6601

Open robinwhittleton opened 3 years ago

robinwhittleton commented 3 years ago

At the moment, hanging-punctuation applies to a single character (typically a quote). It would be nice if this could be extended to apply to multiple quote characters (possibly interspersed with spacing).

An example:

An example of verse with nested quotes at the start, both of which hang outside the parent box.

This has been replicated in the transcription I’m working on as “ ‘: a left double quotation mark, followed by a hair space, followed by a left single quotation mark. Screenshot from Safari 14.1, showing just the single hanging left double quotation mark:

A screenshot of a transcription of the above scan.
MurakamiShinyu commented 1 year ago

For Japanese text layout, just the single hanging opening punctuation should be allowed, because the hanging opening punctuation is used with 1em paragraph indent and the remaining indent space is necessary for starting a paragraph. If two opening punctuations are placed in the 1em space, the paragraph indent disappears and it does not look like a paragraph start.

Attached a real example of Japanese text using hanging opening punctuation. (screenshots from a Japanese novel 『オービタル・クラウド 上』by 藤井太洋, Kindle edition)

japanese-hang-first-example