latex-input
latex-input copied to clipboard
latex.ahk incorrectly handles values above U+FFFF
AHK syntax expects Send {U+nnnn}, so it does not support the 5 digit codepoints correctly.
For example \mathcal{S}
produces 풮 instead of 𝒮 as it ignores the first char of {U+1D4AE}, producing {U+D4AE}.
To support these characters properly, they need to be encoded in surrogate pairs like Send {U+D835}{U+DCAE}