Re: [csswg-drafts] [css-text] Prevent line breaking after explicit hyphens (#3434)

The CSS Working Group just discussed `Prevent line breaking after explicit hyphens`, and agreed to the following:

* `RESOLVED: add a clarifying note to L3 and discuss a potential new value in L4`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Prevent line breaking after explicit hyphens<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/3434<br>
&lt;fantasai> tantek, so does D<br>
&lt;tantek> fantasai, you're proving my point that appendices are in general informative<br>
&lt;fantasai> tantek, E doesn't say anything -- it's normative<br>
&lt;fantasai> tantek, F says it's informative explicitly<br>
&lt;fantasai> etc.<br>
&lt;dael> florian: Not entirely clear to me at least and at least one other impl if hyphens none is meant for only suppressing invisible but leave existing hyphens alone or if it's meant to turn off wrapping opportunity at regular hyphens<br>
&lt;dael> florian: koji and I think fantasai understood to not doing anything to normal hyphens. But I read that it's no breaking at hyphens. either way we should clarify. If we clarify to say it's not suppressed maybe explore a control in the next level<br>
&lt;dael> florian: Current spec is not clear so we should clarify<br>
&lt;dael> florian: Spec says suppresses hyphenation opportunities. Doesn't define a hyphenation opportunity.<br>
&lt;dael> florian: That's where ambig comes from<br>
&lt;dael> dbaron: You'd think hypenation opp is different then breaking opp.<br>
&lt;fantasai> https://drafts.csswg.org/css-text-3/#hyphenation<br>
&lt;dael> florian: Different from wrapping opp. Wrapping opp that's right after a hyphen is different. I can see it's reasonable for the spec to mean it<br>
&lt;dael> AmeliaBR: As an author, I've come across places where I want  to suppress break at hypens. But you can do that by turning off wrapping<br>
&lt;dael> florian: You can do it with extra mark up.<br>
&lt;dael> astearns: Need extra to signal intent. It's not breaking at any breaking opp. in that string. If you have a reg hyphen and words on either side with breaking opp. you don't want those to break either<br>
&lt;myles> ++astearns<br>
&lt;dael> florian: You mean you would allow in other places as well? The automatic hypenation. But in this no auto, go wrapping.<br>
&lt;dael> astearns: You want markup on the special words where you don't want entire term to break<br>
&lt;dael> florian: Not opposed to saying hyphens:none does not disable wrapping at reg hyphens. I think we could use a little clarification<br>
&lt;dael> florian: It does seem that's what spec intends, but was no obvious<br>
&lt;dael> AmeliaBR: I like clarifying hyphenation opp is opp to insert a hyphen. Breaking opp is second to that.<br>
&lt;dael> florian: And we can re-open an issue on L4 to expore if we want an automatic way of doing this.<br>
&lt;dael> dauwhe: We have general rule where we don't want to hyphenate hyphenated phrases and I'd love some css control for that that doesn't involve preprocessing thousands of words. But that's L4<br>
&lt;dael> dauwhe: We don't want to hyphenate words with intrinsic hypens<br>
&lt;dael> florian: That's dealt with. This is a different case.<br>
&lt;dael> dauwhe: I'm phrasing in a differnet way. But yes we don't want line breaks anywhere in those phases as astearns said<br>
&lt;dael> fantasai: Seems really weird that you'd take hyphenated phrase like one in issue, forbid breaking in a long term is unusually strict. I can see not breaking at a point that's not the hyphen, but breaking at hyphen I don't imagine you'd want to suppress.<br>
&lt;bradk> “E-Mail” should not wrap<br>
&lt;dael> fantasai: Case here is someone that doesn't want hyphenation and is getting breaks at hyphens. And they thought they turned off hyphens and think hyphens and breaking is analogous<br>
&lt;dael> AmeliaBR: I think there is a property for hyphen w/o break<br>
&lt;AmeliaBR> s/property/Unicode character/<br>
&lt;dael> fantasai: I think it makes sense suppress hyphens at breaks through hypens prop. Given current state of impl none does not suppress those breaks. Might mean we add a value in L4 that means no really don't break at hyphens or hypenation points<br>
&lt;dael> myles: What's the exampl?<br>
&lt;AmeliaBR> @bradk, I think that would also be covered by hyphenate-limit-chars https://drafts.csswg.org/css-text-4/#hyphenate-char-limits<br>
&lt;dael> florian: bradk 's IRC example. You'd never want e-mail to break<br>
&lt;dael> myles: This is about things like long-term and t-shirt<br>
&lt;dauwhe> https://www.princexml.com/doc-refs/#prop-prince-hyphenate-before<br>
&lt;dael> fantasai: t-shirt could be a case where you don't break if it's less then 2 char on other side. You can control that for hyphenation in L4.<br>
&lt;dael> fantasai: long-term breaking there is less likely to be because each half is too short<br>
&lt;dael> florian: Seems like stylistic choice in this case<br>
&lt;dael> florian: Can we resolve for L3 to clarify as AmeliaBR and I spoke of and leave it open for L4 and hash it out there? Seem reasonable?<br>
&lt;dael> myles: One more thought, in section it says it affects searching and copying. I think affecting copying is a feature not a bug.<br>
&lt;dael> florian: Possibly. Searching is more annoying<br>
&lt;dael> myles: Have to look at searching. Searching is more complex<br>
&lt;dael> fantasai: [missed]<br>
&lt;fantasai> NFK normalization<br>
&lt;dael> florian: There was spec by i18n to help browsers figure out what to do when searching<br>
&lt;dael> myles: Like curly " match striaght "<br>
&lt;dael> myles: We use ICU u search facilities<br>
&lt;dael> florian: I think we're a little off topic. L3 hyphens:none doesn't do what we talked about, open issue in L4?<br>
&lt;dael> fantasai: I think we wouldn't change meaning of none in L4<br>
&lt;dael> florian: We might add a value<br>
&lt;dael> fantasai: fine with me<br>
&lt;bradk> 👍<br>
&lt;dael> Rossen: Any objections to add a clarifying note to L3 and discuss a potential new value in L4?<br>
&lt;dael> RESOLVED: add a clarifying note to L3 and discuss a potential new value in L4<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3434#issuecomment-448680240 using your GitHub account

Received on Wednesday, 19 December 2018 17:33:59 UTC