Skip to content

Add ArabicShaping table #101

Description

@1ec5

I’d like to suggest adding ArabicShaping.txt to the package. This resource is essential for implementing Arabic text support in conjunction with an implementation of the Unicode Bidirectional Algorithm such as bidi-js. For example, this would enable maplibre/maplibre-gl-js#8343 to continue depending on this package instead of rolling its own UCD downloader.

As far as I can tell, this would be a matter of adding an entry to the list of resources, then implementing a parse-*.mjs file that parses each line of the downloaded file into an object.

This will add some heft to the package, but #99 (comment) notes that there’s plenty of additional space for new tables these days.

Activity

  1. added a commit that references this issue on Sep 9, 2026
    144669f
  2. HarelM commented on Sep 9, 2026

    @HarelM

    Oh, wow, that was fast. thanks!
    I'll post a new issue with all the relevant data I need from this package in order to fully automate some of the hard coded stuff we currently do in our code generation unicode related script here:
    https://github.com/maplibre/maplibre-gl-js/blob/54dfab1e186e72fc43bc319cab97c5427f80a0f3/build/generate-unicode-data.ts

    I'm trying to remove all the hard coded list from there and only use stuff that are in this package.

  3. mathiasbynens commented on Sep 9, 2026

    @mathiasbynens
    Collaborator

    I’d like to suggest adding ArabicShaping.txt to the package.

    Thanks to @FekyBaz’s patch, this is now available in v2.0.4 of the published packages.

    I'll post a new issue with all the relevant data I need from this package in order to fully automate some of the hard coded stuff we currently do in our code generation unicode related script here:
    https://github.com/maplibre/maplibre-gl-js/blob/54dfab1e186e72fc43bc319cab97c5427f80a0f3/build/generate-unicode-data.ts

    I'm trying to remove all the hard coded list from there and only use stuff that are in this package.

    Please do! This is exactly the kind of use case node-unicode-data was created for.

  4. HarelM commented on Sep 9, 2026

    @HarelM

    I filled the following issue:

    Let me know if it makes sense...

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions