<a className="gh-badge" href="https://datahub.io/core/unicode-characters"><img src="https://badgen.net/badge/icon/View%20on%20datahub.io/orange?icon=https://datahub.io/datahub-cube-badge-icon.svg&label&scale=1.25" alt="badge" /></a>

## Description

Character-property records derived from the Unicode Consortium's UnicodeData.txt. Updated monthly: a GitHub Action refreshes the data from unicode.org.

## What stands out

The file has 41,341 records at the last check, including 22 First/Last pairs standing in for whole ranges (for example CJK ideographs), so it does not list every code point individually.

## Data

`data/unicode-characters.csv` contains UnicodeData records with 15 fields per record, described in `datapackage.json`. Code points are hexadecimal strings (for example `0041` is U+0041, decimal 65). Some code-point ranges are represented by First/Last endpoint records rather than individual rows. Character-name values include range labels and control placeholders such as `<control>`.

The updater fetches https://www.unicode.org/Public/UNIDATA/UnicodeData.txt. `archive/source.csv` is a converted CSV whose first source record is used as the header, with empty fields in that header replaced by generated `Unnamed` labels.

> Note: a GitHub Actions workflow refreshes the data at 00:00 UTC on the first day of each month.

## Preparation

Use Python 3.12, matching the repository's GitHub Actions workflow.

To update the data run the process script locally:
```bash
# To run locally you should do this
# Install using requirements
pip install -r scripts/requirements.txt
python3 scripts/process.py
```

## Automation

The Unicode Characters data package is available on DataHub:  
https://datahub.io/core/unicode-characters

## Source and licence

Source: the Unicode Consortium's UnicodeData.txt.

The source specifies that the data can be used as is without any warranty. Given size and factual nature of the data and its source from a US company would imagine this was public domain and as such have licensed the Data Package under the Public Domain Dedication and License (PDDL).
