Skip to content

Reading currency like control characters in dictionary #500

Description

@ddehilster

Currencies of the world

$ currency=1 country="United States" name="Dollar"
£ currency=1 country="United Kingdom" name="Pound Sterling"
¥ currency=1 country="Japan" name="Yen"

Activity

  1. ddehilster commented on Jul 6, 2026

    @ddehilster
    MemberAuthor

    Fixed in #685 (merged). Currency/symbol characters ($ £ ¥ €, Unicode category Sc and other symbol categories) were falling through to the PNCTRL control-char bucket in Tok::nextTok and getting a bogus ("CTRL" <lead-byte>) attribute. Added unicu::isSymbol() and now classify them as punct (like $ always was), covering both the tokenize and dicttok passes. Note: the legacy byte-based cmltok tokenizer remains non-Unicode-aware (out of scope).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions