W3C home > Mailing lists > Public > www-style@w3.org > June 2015

Re: [css-text][css-conditional] language specific support for hyphenation and justification

From: Florian Rivoal <florian@rivoal.net>
Date: Thu, 18 Jun 2015 13:07:27 +0200
Cc: www-style <www-style@w3.org>, wwwintl <www-international@w3.org>
Message-Id: <D376A1CB-9C0D-42CD-B6D5-B14F581A7090@rivoal.net>
To: Andrew Cunningham <lang.support@gmail.com>

> On 18 Jun 2015, at 12:19, Andrew Cunningham <lang.support@gmail.com> wrote:
> 
> Florian,
> On 16 Jun 2015 10:25 pm, "Florian Rivoal" <florian@rivoal.net <mailto:florian@rivoal.net>> wrote:
> >
> 
> >
> > Problem 2 can be handled by authors using :lang() selectors, so it is less of an issue. However, for stylesheets meant to be used over an open ended set of languages, being exhaustive is really tedious, and authors are unlikely to have the linguistic knowledge to do this properly.
> >
> 
> I would argue that if you are developing a stylesheet to be used over an open ended set of languages, there is no point using hyphenation. Such stylesheets will be suboptimal for many languages and will most likely fail for some languages.
> 

Wouldn't something like that be fine?

p {
  text-align: left;
}
p:supports-hyphenation {
  hypens: auto;
  text-align: justify;
}
p:not(:supports-hyphenation):nice-justification {
  text-align: justify;
}


 - Florian
Received on Thursday, 18 June 2015 11:07:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC