That looks like it will let me handle more or less anything if the pubs team decides to start marching through Unicode for footnote callouts.
On 25/05/2026 17:03, Graydon Saunders via BaseX-Talk wrote:
>
> I am currently exploring what to do when a footnote callout, which
> will wind up in an xs:ID value, is something like U+2020 DAGGER; one
> obvious way is to use the character name. (So instead of an @id value
> of `Fn1` I'd have `Fndagger` or similar.)
>
> I see that the current draft of XPath 4.0 has new-since-3.0
> `characters()` and `grapheme()` functions, but so far as I may tell it
> does not have a way to get UCD properties for a codepoint.
>
> Is there an XQuery (or BaseX) way to do this?
>
You can call Java
declare namespace character = "java:java.lang.Character";
character:getName(0x2020)