Stephen J. Turnbull wrote:
>>>>>"Ben" == Ben Wing <ben(a)666.com>
Ben> but we can create all charsets with the proper indices and
Ben> have `split-char' and `char-octet' generate the old, wrong
Ben> indices and a new function do it right. suggestions for a
Ben> new api to replace `make-char' and `split-char'?
Why do we want this interface at all, aside from backward
compatibility with legacy Mule? With Unicode inside, a
`get-char-components' function must be set-valued or nondeterministic
(it depends on some global precedence list), and
(eq (list cs o1 o2)
(get-char-components (make-char-from-components cs o1 o2)))
is mostly false. `charset-of-char' and `octet-of-char' don't make
sense as separate APIs, they must be generated together.
As far as I can see, this is not something that can be done right.
There are only different ways to do it wrong, none of which are very
attractive to me.
ok. assume we need such a function, and that it takes an optional
precedence list. what should it be called? and what should the
function be called to generate a character from charset codepoints?