Open Crissov opened 8 years ago
Ok, I can see that having some kind of language dependency in @counter-style could be useful. Right now it can be done by creating a different counter style per language and assigning them accordingly, but that is admittedly awkward. I imagine this would go into Counter Styles L4, though.
Sure thing, I didn’t expect it for level 3 at all.
I’ve been fooling around with
@counter-style
lately (see repository, which is in an early stage of development). Maybe I’m abusing the technology there, but I think I’ve hit the limitations of thespeak-as
descriptor.For instance,
spell-out
makes absolute sense forelement-symbols
…… although one may be tempted to also provide an
element-names
counter style, which would be language-dependent. Withplanets
, however,speak-as: words
would be desired, but the Unicode Names for Venus and Mars default to ‘Female Symbol’ and ‘Male Symbol’, respectively, so we would need to define another, language-dependent style just for speech synthesis, i.e. we‘ll probably never use it:That’s of course now language dependent. It becomes even more apparent if we’re using astronomic symbols for the days of the week, where we’d want to be able to use something like
:lang()
:There are also ideas where we’d want no translation or change of pronunciation, e.g. international (military)
spelling
:With graphic symbols, whether from Unicode (or emoji) or image files, you’d almost always want to be able to specify an
alt
text, which may or may not have a fixed language.I’m not exactly sure what would be a better solution (e.g.
symbols: alt(url(image), '\1234', 'literal') …
), but if authors actually adopted@counter-style
, which is currently only available in Mozilla Firefox and Antenna House Formatter as far as I know, they would probably want to do even crazier things than I’ve done and then run into this problem.