You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat(marquee::marquee_parse("->-")$text[2]) # marquee result#> -�E-
cat("-\u0003E-") # same code printed directly#> -�E-
cat("-\u003E-") # correct code for > sign#> ->-
It looks to me like the extra 0 is there consistently throughout the entire lookup table, but I haven't checked systematically. Happy to prepare a PR that removes these zeros, as my first contribution to marquee.
After looking a bit more carefully, I find that things are maybe a bit more complicated. Some codes start with \u1, not \u0. I can't figure those out. They seem to be correct according to a quick google search but don't print the right symbol. For example, Fraktur Capital A, \u1D504 according to this site: https://www.compart.com/en/unicode/U+1D504
is encoded correctly:
Activity
clauswilke commentedon Sep 19, 2025
After looking a bit more carefully, I find that things are maybe a bit more complicated. Some codes start with
\u1, not\u0. I can't figure those out. They seem to be correct according to a quick google search but don't print the right symbol. For example, Fraktur Capital A,\u1D504according to this site: https://www.compart.com/en/unicode/U+1D504is encoded correctly:
marquee/src/named_entities.h
Line 10 in 1a40124
But the symbol doesn't render on my machine.
clauswilke commentedon Sep 19, 2025
Ok, the correct code strings seem to be available here: https://html.spec.whatwg.org/entities.json
For example, for
𝔄it gives this result which looks correct:Not sure how this works, but it does. This table on the same site instead shows the codes that don't work (if we replace
U+with\u): https://html.spec.whatwg.org/multipage/named-characters.htmlFix html entities. Closes r-lib#89.
Fix HTML entities. Closes r-lib#89.