tree: 177b7110beabea463a32dffe3e0edd49d1885f99 [path history] [tgz]
  1. .gitignore
  2. LICENSE.md
  3. METADATA
  4. README.md
  5. lib_wc.js
  6. lib_wc_tests.js
  7. ranges.py
libdot/third_party/wcwidth/README.md

This is a port of wcwidth.js (which is a port of wcwidth implemented in C by Markus Kuhn) to the libdot framework.

Upstream details can be found in the METADATA file.

Licensing details can be found in the LICENSE.md file.

Updating

When a new Unicode release is made, it might contain new combining and wide characters, so we'll need to update our tables.

You‘ll first want to grab the latest Unicode release. It’s easiest to grab the entire archive (it's small) and then extract the few files you want. The UNIDATA path below is really a symlink to the latest version.

$ wget http://www.unicode.org/Public/UNIDATA/UCD.zip
$ unzip -u UCD.zip EastAsianWidth.txt PropList.txt UnicodeData.txt

Then use the helper script to update the tables in lib_wc.js.

$ ./ranges.py update

Now you‘ll double check the update to make sure things look sane. G’luck!