mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-08-09 01:40:28 -04:00
In general, we want each Stylistic Set to be constructed out of a collection of Character Variants. At the moment, this is fairly simple, but if I start putting variants of more characters into these features (for example, adding questiondown.open to go with question.open), it will get awkward keeping them in sync. But the two kinds of lookup want different XML, so they can't just be copied as-is. One approach would be to have a C data structure that gets used to generate both sets of lookups, but an alternative is to extend the existing pre-processor magic to use X macros to construct the two lookups. This is what I've done. At the moment, this is just using the existing macros that generate XML, but driving them from another set of macros, one for each Character Variant feature. The Stylistic Sets then invoke all the macros for the Character Variants they include. There are a couple of open problems. One is the (single, so far) case where there are two variants of a character, namely 'D'. This should be dealt with by paramaterising the variant macro, but I've not got around to that yet. The other is that the macro names are largely horrible.
Description
No description provided
Languages
C
79.4%
HTML
6.6%
Python
6.2%
PostScript
4.4%
CSS
1.9%
Other
1.5%