On Sat, Feb 06, 2021 at 11:09:55PM +0100, Christian Grün scripsit:
Hi Graydon,
$menuMatch gets stripped out of the Word because it's added by processing, rather than being present in the source file which generates the other half of the compare. (It's currently U+1405, ᐅ, though I devoutly hope this doesn't matter!)
You’ll need to remove the single quotes from $menuMatch (it yields 'ᐅ'). Apart from that, $stringTidy can possibly be simplified:
ARGH.
Thank you!
let $stringTidy := function($in) { $in => string-join(' ') => replace($menuMatch, '') => normalize-space() => replace(' ([,.;:])', '$1') }
Yes. When I started it wasn't clear if I wanted all of normalize-space() or not, and then it just grew.
Much appreciated!
-- Graydon