# standards-data

The subfolders of this directory contain data from various standards
that are used in Keyman. If you update any files, be sure to update
the version data in this file also.

## Current Versions

See [minimum-versions.md](../../docs/minimum-versions.md)

Unversioned data:

| data                       | version     |
|----------------------------|-------------|
| ethnologue                 | ?           |
| windows-lcid-to-bcp-47     | ?           |

## File Sources

### Ethnologue

This data comes from https://www.ethnologue.com/#resources, LanguageIndex.tab. It has been hand-converted from TSV to CSV, and the header line has been replaced.


### iso639-3

The file can be updated with:

```bash
wget https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab -O iso639-3/iso639-3.tab
```

### langtags

The file is retrieved from <https://ldml.api.sil.org/langtags.json>:

```bash
wget https://ldml.api.sil.org/langtags.json -O langtags/langtags.json
```

See also [langtags/readme.md](langtags/readme.md).

### language-subtag-registry

The file can be updated with:

```bash
wget https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry \
  -O language-subtag-registry/language-subtag-registry
```

### ldml-keyboards

This data is from <https://github.com/unicode-org/cldr.git>

See also [ldml-keyboards/readme.md](ldml-keyboards/readme.md).

### unicode-character-database

Data from <https://www.unicode.org/Public/17.0.0/ucd/>:

See [download.sh](./unicode-character-database/download.sh)

### windows-lcid-to-bcp-47

See [readme.md](windows-lcid-to-bcp-47/readme.md).
