Hi Hans, On Mon, 2026-09-14 at 16:20 +0200, Hans Hagen via ntg-context wrote: > On 9/14/2026 3:41 PM, Aditya Mahajan wrote: > > If I understand, the rational is the following. Unicode (for better > > or worse) decided that 0x338 (the glyph corresponding to \not) must > > come after the binary relation; so if I type > > > > 0x3C + 0x338 > > > > it should show up as > > > > 0x226E > > > > [...] > > but then, we have unicode math for a reason ...
On Sun, 2026-09-13 at 10:55 +0200, Hans Hagen via ntg-context wrote: > On 9/13/2026 9:37 AM, Mikael Sundqvist wrote: > > I do not claim it has to be as it currently is, but see the order in > > https://www.unicode.org/reports/tr25/tr25-15.pdf, Table 2.8. The 338 > > is seen as a modifier to the previous glyph. (I personally never use > > \not, and I do not remember discussing these with Hans.) > > i think we decided it to be an relic and moved on to unicode instead of > either depending on the font to nicely overlay or making it some foreard > scanning macro that would center over the next and spoil it being a real > symbol Unicode always puts combining characters after the letter they apply to, but that's almost always backwards from the input order. For example, if I switch to the French keyboard, to type "â" I need to press the keys <̂◌> <a> but the codepoint sequence that that produces is <U+0061> <U+0302> Or if I switch to the Greek keyboard, to type "ώ" I need to press the keys <́◌> <ω> but the Unicode codepoint sequence that that produces is <U+03C9> <U+0301> The same applies to most keyboard layouts and Unicode combining characters, so I would say that the Unicode codepoint order has no relation to a logical input order. If you think that "\subset\not" makes more sense in TeX than "\not\subset", then fair enough; I'm just arguing that the Unicode codepoint order should have no bearing on how ConTeXt accepts its input. (But since Plain TeX uses "\not\subset", the precomposed macro is written as "\nsubset" and not "\subsetn", and in English most people read that symbol as "is not a subset of" are all also arguments in favour "\not\subset".) On Mon, 2026-09-14 at 16:20 +0200, Hans Hagen via ntg-context wrote: > redefining \not is not possible because we protect all math character > definitions against overload On Mon, 2026-09-14 at 17:28 +0200, Hans Hagen via ntg-context wrote: > Btw, an example of undesired redefinition is \wedge in tikz which need > to be fixed there as one wants that to be math. So that's a file that > fails in the test suite. Perhaps you should define these characters as "\frozen" (or no protection at all) instead of "\permanent". I think that it's good that macros like "\setuplayout", "\processcommalist", and "\gobbleoneargument" are defined as "\permanent": those are core macros, other core ConTeXt macros use them internally, redefining them will lead to lots of issues, and it's easy enough for users to pick another name. But I think that users should be allowed to redefine the math characters if they want: none of the other ConTeXt macros use them internally (and if they do, users will want the redefined version to be used), it's not easy for users to pick another name (a combination of muscle memory for the old names plus the fact that "\not" or "\Delta" really are the only sensible names for those characters), and redefining these shouldn't ever break anything. The main argument against this is that it's bad style, but I don't think that that's really a good reason to forbid it. Plus, users want to be able to write things like \aliased\let\oldDelta=\Delta \define\Delta{{\color[red]{\oldDelta}}} \startTEXpage[offset=1ex] $a b \Delta c d$ \stopTEXpage so my worry is that they'll just start to preemptively wrap _everything_ in "\pushoverloadmode"/"\popoverloadmode" or to ignore ConTeXt's overload warnings entirely, and then they'll miss the warnings when they redefine important/core macros. I guess my argument here is to not mix the warnings about minor stylistic issues with the ones about important technical ones: I certainly wouldn't recommend that users redefine "\not" to something weird, but that's fairly harmless; whereas redefining something like "\lettonothing" is almost certain to break things, so conflating these two cases seems like it will just lead to confusion. Thanks, -- Max ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
