Skip to content

Move lexer punctuation confusables list to unicode-security crate and sync it with newest Unicode version. #70002

Open

Description

@crlf0710

Now that Unicode 13 is released, maybe we should bump the unicode version.

Activity

  1. jonas-schievink commented on Mar 14, 2020

    @jonas-schievink
    Contributor
  2. added
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    T-libs-api[DEPRECATED; DO NOT USE]
    on Mar 14, 2020
  3. Mark-Simulacrum commented on Mar 14, 2020

    @Mark-Simulacrum
    Member

    cc @estebank @rust-lang/wg-diagnostics re:confusables list

  4. est31 commented on Mar 14, 2020

    @est31
    Member

    It's a bit tough because that list isn't automatically generated, or it has been at a point in the past but since then it has been manually edited and changed. Those amendments are valuable and should not be lost by an automatic regeneration. One could think about having two lists though, one automatically generated, the other with the rust-specific edits/improvements.

  5. crlf0710 commented on Apr 30, 2020

    @crlf0710
    MemberAuthor

    As i've recently got a crate that has confusables.txt data in it. I made a small analysis on existing items in fore-mentioned list. There're 178 items that are already covered by confusables.txt, 85 items not covered, and one duplicate item (Canadian Syllabics Final Middle Dot).

  6. crlf0710 commented on Apr 30, 2020

    @crlf0710
    MemberAuthor

    The former two lists are here. Also cc @Manishearth to see whether the second list is of some value to further development of UTS39.

  7. Manishearth commented on Apr 30, 2020

    @Manishearth
    Member

    The in-tree list is specifically about things which are confusable with rust syntax

  8. crlf0710 commented on May 1, 2020

    @crlf0710
    MemberAuthor

    Yes, and rust syntax here means most of ASCII punctuation characters.

    I saw one major difference between this list and the UTS39 one is that most of the items here are just unintentional, and not for security reasons. For example,

    (',', "Fullwidth Comma", ','),
    

    I'm using an IME daily, and a single shift key press toggles between Latin mode and Han mode, where the comma key corresponds to these two characters in each mode. And it's really easy to unintentionally get them wrong. So while this item is not in UTS39 list, it is practically quite useful.

  9. changed the title [-]Update to Unicode 13.[/-] [+]Move lexer punctuation confusables list to `unicode-security` crate.[/+] on Mar 26, 2021
  10. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Mar 26, 2021
  11. changed the title [-]Move lexer punctuation confusables list to `unicode-security` crate.[/-] [+]Move lexer punctuation confusables list to `unicode-security` crate and sync it with newest Unicode version.[/+] on Mar 26, 2021
  12. crlf0710 commented on Mar 26, 2021

    @crlf0710
    MemberAuthor

    Updated the issue title to reflect the actual discussion topic here - the libs part is already done in #69929.

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

    A-UnicodeArea: UnicodeC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions