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/