Skip to content

In unicode-full.yaml, replace individual chars with rangesΒ #575

@NSoiffer

Description

@NSoiffer

Many unicode-full.yaml files have thousands of lines like:

 - "𝔸": [t: "𝔹CL⠁"]             # 0x1d538 
 - "𝔹": [t: "𝔹CLβ ƒ"]             # 0x1d539 
 - "β„‚": [t: "𝔹CLβ ‰"]             # 0x2102 
 - "𝔻": [t: "𝔹CLβ ™"]             # 0x1d53b 
 - "𝔼": [t: "𝔹CLβ ‘"]             # 0x1d53c 

These should be replaced with ranges such as:

 - "𝔸-𝕐":    # 0x1d504 - 0x1d51d ('z' version is reserved)
    - tc: "DC"
    - spell: "translate('.', 'π”Έπ”Ήπ”Ίπ”»π”Όπ”½π”Ύπ”Ώπ•€π•π•‚π•ƒπ•„π•…π•†π•‡π•ˆπ•‰π•Šπ•‹π•Œπ•π•Žπ•π•', 'abcdefghijklmnopqrstuvwxyz')"

This saves a lot of file space and is a little faster to load. You need to be careful about characters such as "β„‚": # 0x2102 which is not in the math alphanumerics. See Braille/UEB/unicode-full.yaml for a file that has been updated.

This is probably a good issue to use AI on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions