Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
This uppercase is *not* working when the full language code is specified, eg: lang='el-GR' (tested in firefox 23) Example: http://www.ispania.gr/tests.html I think that it should be working for any combination of the first two chars matching the correct lang code... -- View this message in context: http://css.2040035.n2.nabble.com/non-English-characters-omit-accents-when-using-text-transform-uppercase-tp7580157p7581645.html Sent from the css-discuss mailing list archive at Nabble.com. __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
On Wednesday 2013-08-14 13:36 -0700, mijalis wrote: This uppercase is *not* working when the full language code is specified, eg: lang='el-GR' (tested in firefox 23) Example: http://www.ispania.gr/tests.html I think that it should be working for any combination of the first two chars matching the correct lang code... I filed https://bugzilla.mozilla.org/show_bug.cgi?id=905381 on this problem. Thanks for pointing it out. -David -- 턞 L. David Baron http://dbaron.org/ 턂 턢 Mozilla https://www.mozilla.org/ 턂 Before I built a wall I'd ask to know What I was walling in or walling out, And to whom I was like to give offense. - Robert Frost, Mending Wall (1914) __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Yes. Thank you, Philippe, Robert, and Philip :) __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Hmm. It works for me. Oh, but I have a nightly Firefox build, not the release build (which version is the latest ?). After a quick look though the MDC docs, it appears you'll have to wait for Firefox 15 to have it work correctly. Yes, it works with on the latest Firefox Nightly. Is this something we'll see in CSS3 or just a Mozilla thing? __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
How many blocks of Greek text is this needed for? Are the accented letters a different Unicode codepoint from the same letter unaccented or is it unaccented letter followed by the accent? If so, you can just use find/replace to do the conversion of the text in the HTML. I'm not sure I understand. All text is UTF-8. The HTML file is UTF-8 encoded and the meta charset is set to utf-8. Is this what you mean? One way that this may work is if you can duplicate the text in both lower and upper case and then just use span with class tags to mark each version. Use style=hide to not display the version you want. You mean display:none? __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Le 23 juil. 2012 à 21:40, sweepslate a écrit : Is this something we'll see in CSS3 or just a Mozilla thing? CSS 2.1 ? [quote] The actual transformation in each case is written language dependent [/quote] http://www.w3.org/TR/CSS21/text.html#propdef-text-transform (who wrote that sentence… so hard to read) CSS 3 text is a little more verbose http://dev.w3.org/csswg/css3-text/#transforming Other browsers will have to update their implementation at one point. Philippe -- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
sweepslate wrote: I want to text-transform:uppercase a piece of text writen in Greek. The Greek language requires that: a. in lower case text, some letters need to have accents --and b. in full upper case text, LIKE THIS, have no accents at all [...] I could write the text using upper case characters, inside the HTML, and omit the accents - but using upper case in this webpage is a decision of style, not content, so I'd rather do it with CSS. Off-hand, no, but could you clarify : are you speaking of polytonic (classical) Greek or modern (monotonic) Greek ? Philip Taylor __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Philip TAYLOR wrote: Off-hand, no, but could you clarify : are you speaking of polytonic (classical) Greek or modern (monotonic) Greek ? Incidentally, Mozilla claim to do it properly : https://developer.mozilla.org/en/CSS/text-transform which reads (in part) : In Greek (gr), accented letters lose their accent when capitalized (ά/Α) and first-vowel accented diphthongs transforms both the accent and its position (άι/ΑΪ). In Greek (gr), there are two forms of the lowercase sigma characters: σ and ς. The second one is the final form of the letter and is used only when the sigma terminates a word (and doesn't start it). The text-transform: lowercase must choose the right lowercase sigma from the context when applied to an uppercase sigma (Σ). Philip Taylor __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Off-hand, no, but could you clarify : are you speaking of polytonic (classical) Greek or modern (monotonic) Greek ? Modern, monotonic Greek. Beeing able to do this in classical, polytonic Greek would be a great bonus though! __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Beeing able to have the user agent figure that out would be a great solution. I checked on Firefox 14, and it didn't work. Check yourself if you'd like: http://geocities.ws/sweepslate/greek-accenting/greek-accenting.html __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
sweepslate wrote: Beeing able to have the user agent figure that out would be a great solution. I checked on Firefox 14, and it didn't work. Check yourself if you'd like: http://geocities.ws/sweepslate/greek-accenting/greek-accenting.html Oh dear. Also true in Seamonkey 2.11. Well, Mozilla clearly know what /should/ happen : I wonder why it does not ? Philip Taylor __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Le 22 juil. 2012 à 20:59, sweepslate a écrit : Beeing able to have the user agent figure that out would be a great solution. I checked on Firefox 14, and it didn't work. Check yourself if you'd like: http://geocities.ws/sweepslate/greek-accenting/greek-accenting.html Yes, the property is context (language) sensitive. But you have to specify the language in use. Your test file specifies that the language used is english (e.g. through the lang attribute on the html element [1]). Gecko does it indeed correctly (I think), once the language is specified (lang='el' for greek). Unfortunately, WebKit and Opera fail (tested OS X Lion). http://dev.l-c-n.com/_temp/up-gr.html [1] you could also specify it on a specific element, like div lang='fr' in case you have a poly-lingual document Philippe -- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
I tried your example, and the upper case letters still have accents. I tried adding lang=el myself, on html and on p, but the accents are still there: http://geocities.ws/sweepslate/greek-accenting/lang_el1.html http://geocities.ws/sweepslate/greek-accenting/lang_el2.html __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
Le 22 juil. 2012 à 22:21, sweepslate a écrit : I tried your example, and the upper case letters still have accents. Hmm. It works for me. Oh, but I have a nightly Firefox build, not the release build (which version is the latest ?). After a quick look though the MDC docs, it appears you'll have to wait for Firefox 15 to have it work correctly. Philippe -- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] non-English characters: omit accents when using text-transform:uppercase
At 14:11 +0300 on 07/22/2012, sweepslate wrote about [css-d] non-English characters: omit accents when using tex: I want to text-transform:uppercase a piece of text writen in Greek. The Greek language requires that: a. in lower case text, some letters need to have accents --and b. in full upper case text, LIKE THIS, have no accents at all My problem is: if I use the uppercase property I will end up with upper case accented text, which is a typographical error. I could write the text, inside the HTML, in lower case and omit the accents - but that would make it a typographical error when viewed without CSS. I could write the text using upper case characters, inside the HTML, and omit the accents - but using upper case in this webpage is a decision of style, not content, so I'd rather do it with CSS. Any ideas? How many blocks of Greek text is this needed for? Are the accented letters a different Unicode codepoint from the same letter unaccented or is it unaccented letter followed by the accent? If so, you can just use find/replace to do the conversion of the text in the HTML. One way that this may work is if you can duplicate the text in both lower and upper case and then just use span with class tags to mark each version. Use style=hide to not display the version you want. I may be misunderstanding your needs so this advice might not be what need. __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/