Re: [csswg-drafts] [css-text-4] hyphenate-character doesn't just put hyphen at end of line (#2975)

Given the point of hyphenate-character is to allow overriding the current language's default hyphen, I'm not sure you can just rely on the language to do the right thing.

* in english, `hyphenate-character: auto` will add U+002D to the end of the first line.
* in mongolian, `hyphenate-character: auto` will add U+1806 tp the start of the second line.
* what do I do if the language is english and I specify `hyphenate-character: "\1806"`?

But I really like @crissov's (low-key) idea of using a newline. If the hyphenate-character has a newline, split at the first newline and put the first half and the end of the first line, and the second half at the start of the second line. If not, it goes at the end of the first line. Covers every situation, and no new property required.

```
p { hyphens: auto; hyphenate-character: "…\A…" }
<p>Welcome to Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch!</p>
```

Welcome to Llanfair...
...pwllgwyngyllgoge...
...rychwyrndrobwllll...
...antysiliogogogoch!


-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2975#issuecomment-499219243 using your GitHub account

Received on Wednesday, 5 June 2019 19:19:23 UTC