This commit is contained in:
Tutur33
2023-11-24 23:58:26 +01:00
parent 25395c0ee1
commit 938ad9d309
4191 changed files with 41 additions and 518781 deletions
-20
View File
@@ -1,20 +0,0 @@
Copyright Mathias Bynens <https://mathiasbynens.be/>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-70
View File
@@ -1,70 +0,0 @@
# regenerate-unicode-properties [![regenerate-unicode-properties on npm](https://img.shields.io/npm/v/regenerate-unicode-properties)](https://www.npmjs.com/package/regenerate-unicode-properties)
_regenerate-unicode-properties_ is a collection of [Regenerate](https://github.com/mathiasbynens/regenerate) sets for [various Unicode properties](https://github.com/tc39/proposal-regexp-unicode-property-escapes).
## Installation
To use _regenerate-unicode-properties_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):
```bash
$ npm install regenerate-unicode-properties
```
## Usage
To get a map of supported properties and their values:
```js
const properties = require('regenerate-unicode-properties');
```
To get a specific Regenerate set:
```js
// Examples:
const Lu = require('regenerate-unicode-properties/General_Category/Uppercase_Letter.js').characters;
const Greek = require('regenerate-unicode-properties/Script_Extensions/Greek.js').characters;
```
Some properties can also refer to strings rather than single characters:
```js
const { characters, strings } = require('regenerate-unicode-properties/Property_of_Strings/Basic_Emoji.js');
```
To get the Unicode version the data was based on:
```js
const unicodeVersion = require('regenerate-unicode-properties/unicode-version.js');
```
## For maintainers
### How to publish a new release
1. On the `main` branch, bump the version number in `package.json`:
```sh
npm version patch -m 'Release v%s'
```
Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
Note that this produces a Git commit + tag.
1. Push the release commit and tag:
```sh
git push && git push --tags
```
Our CI then automatically publishes the new release to npm.
## Author
| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [Mathias Bynens](https://mathiasbynens.be/) |
## License
_regenerate-unicode-properties_ is available under the [MIT](https://mths.be/mit) license.
-436
View File
@@ -1,436 +0,0 @@
module.exports = new Map([
['General_Category', [
'Cased_Letter',
'Close_Punctuation',
'Connector_Punctuation',
'Control',
'Currency_Symbol',
'Dash_Punctuation',
'Decimal_Number',
'Enclosing_Mark',
'Final_Punctuation',
'Format',
'Initial_Punctuation',
'Letter',
'Letter_Number',
'Line_Separator',
'Lowercase_Letter',
'Mark',
'Math_Symbol',
'Modifier_Letter',
'Modifier_Symbol',
'Nonspacing_Mark',
'Number',
'Open_Punctuation',
'Other',
'Other_Letter',
'Other_Number',
'Other_Punctuation',
'Other_Symbol',
'Paragraph_Separator',
'Private_Use',
'Punctuation',
'Separator',
'Space_Separator',
'Spacing_Mark',
'Surrogate',
'Symbol',
'Titlecase_Letter',
'Unassigned',
'Uppercase_Letter'
]],
['Script', [
'Adlam',
'Ahom',
'Anatolian_Hieroglyphs',
'Arabic',
'Armenian',
'Avestan',
'Balinese',
'Bamum',
'Bassa_Vah',
'Batak',
'Bengali',
'Bhaiksuki',
'Bopomofo',
'Brahmi',
'Braille',
'Buginese',
'Buhid',
'Canadian_Aboriginal',
'Carian',
'Caucasian_Albanian',
'Chakma',
'Cham',
'Cherokee',
'Chorasmian',
'Common',
'Coptic',
'Cuneiform',
'Cypriot',
'Cypro_Minoan',
'Cyrillic',
'Deseret',
'Devanagari',
'Dives_Akuru',
'Dogra',
'Duployan',
'Egyptian_Hieroglyphs',
'Elbasan',
'Elymaic',
'Ethiopic',
'Georgian',
'Glagolitic',
'Gothic',
'Grantha',
'Greek',
'Gujarati',
'Gunjala_Gondi',
'Gurmukhi',
'Han',
'Hangul',
'Hanifi_Rohingya',
'Hanunoo',
'Hatran',
'Hebrew',
'Hiragana',
'Imperial_Aramaic',
'Inherited',
'Inscriptional_Pahlavi',
'Inscriptional_Parthian',
'Javanese',
'Kaithi',
'Kannada',
'Katakana',
'Kawi',
'Kayah_Li',
'Kharoshthi',
'Khitan_Small_Script',
'Khmer',
'Khojki',
'Khudawadi',
'Lao',
'Latin',
'Lepcha',
'Limbu',
'Linear_A',
'Linear_B',
'Lisu',
'Lycian',
'Lydian',
'Mahajani',
'Makasar',
'Malayalam',
'Mandaic',
'Manichaean',
'Marchen',
'Masaram_Gondi',
'Medefaidrin',
'Meetei_Mayek',
'Mende_Kikakui',
'Meroitic_Cursive',
'Meroitic_Hieroglyphs',
'Miao',
'Modi',
'Mongolian',
'Mro',
'Multani',
'Myanmar',
'Nabataean',
'Nag_Mundari',
'Nandinagari',
'New_Tai_Lue',
'Newa',
'Nko',
'Nushu',
'Nyiakeng_Puachue_Hmong',
'Ogham',
'Ol_Chiki',
'Old_Hungarian',
'Old_Italic',
'Old_North_Arabian',
'Old_Permic',
'Old_Persian',
'Old_Sogdian',
'Old_South_Arabian',
'Old_Turkic',
'Old_Uyghur',
'Oriya',
'Osage',
'Osmanya',
'Pahawh_Hmong',
'Palmyrene',
'Pau_Cin_Hau',
'Phags_Pa',
'Phoenician',
'Psalter_Pahlavi',
'Rejang',
'Runic',
'Samaritan',
'Saurashtra',
'Sharada',
'Shavian',
'Siddham',
'SignWriting',
'Sinhala',
'Sogdian',
'Sora_Sompeng',
'Soyombo',
'Sundanese',
'Syloti_Nagri',
'Syriac',
'Tagalog',
'Tagbanwa',
'Tai_Le',
'Tai_Tham',
'Tai_Viet',
'Takri',
'Tamil',
'Tangsa',
'Tangut',
'Telugu',
'Thaana',
'Thai',
'Tibetan',
'Tifinagh',
'Tirhuta',
'Toto',
'Ugaritic',
'Vai',
'Vithkuqi',
'Wancho',
'Warang_Citi',
'Yezidi',
'Yi',
'Zanabazar_Square'
]],
['Script_Extensions', [
'Adlam',
'Ahom',
'Anatolian_Hieroglyphs',
'Arabic',
'Armenian',
'Avestan',
'Balinese',
'Bamum',
'Bassa_Vah',
'Batak',
'Bengali',
'Bhaiksuki',
'Bopomofo',
'Brahmi',
'Braille',
'Buginese',
'Buhid',
'Canadian_Aboriginal',
'Carian',
'Caucasian_Albanian',
'Chakma',
'Cham',
'Cherokee',
'Chorasmian',
'Common',
'Coptic',
'Cuneiform',
'Cypriot',
'Cypro_Minoan',
'Cyrillic',
'Deseret',
'Devanagari',
'Dives_Akuru',
'Dogra',
'Duployan',
'Egyptian_Hieroglyphs',
'Elbasan',
'Elymaic',
'Ethiopic',
'Georgian',
'Glagolitic',
'Gothic',
'Grantha',
'Greek',
'Gujarati',
'Gunjala_Gondi',
'Gurmukhi',
'Han',
'Hangul',
'Hanifi_Rohingya',
'Hanunoo',
'Hatran',
'Hebrew',
'Hiragana',
'Imperial_Aramaic',
'Inherited',
'Inscriptional_Pahlavi',
'Inscriptional_Parthian',
'Javanese',
'Kaithi',
'Kannada',
'Katakana',
'Kawi',
'Kayah_Li',
'Kharoshthi',
'Khitan_Small_Script',
'Khmer',
'Khojki',
'Khudawadi',
'Lao',
'Latin',
'Lepcha',
'Limbu',
'Linear_A',
'Linear_B',
'Lisu',
'Lycian',
'Lydian',
'Mahajani',
'Makasar',
'Malayalam',
'Mandaic',
'Manichaean',
'Marchen',
'Masaram_Gondi',
'Medefaidrin',
'Meetei_Mayek',
'Mende_Kikakui',
'Meroitic_Cursive',
'Meroitic_Hieroglyphs',
'Miao',
'Modi',
'Mongolian',
'Mro',
'Multani',
'Myanmar',
'Nabataean',
'Nag_Mundari',
'Nandinagari',
'New_Tai_Lue',
'Newa',
'Nko',
'Nushu',
'Nyiakeng_Puachue_Hmong',
'Ogham',
'Ol_Chiki',
'Old_Hungarian',
'Old_Italic',
'Old_North_Arabian',
'Old_Permic',
'Old_Persian',
'Old_Sogdian',
'Old_South_Arabian',
'Old_Turkic',
'Old_Uyghur',
'Oriya',
'Osage',
'Osmanya',
'Pahawh_Hmong',
'Palmyrene',
'Pau_Cin_Hau',
'Phags_Pa',
'Phoenician',
'Psalter_Pahlavi',
'Rejang',
'Runic',
'Samaritan',
'Saurashtra',
'Sharada',
'Shavian',
'Siddham',
'SignWriting',
'Sinhala',
'Sogdian',
'Sora_Sompeng',
'Soyombo',
'Sundanese',
'Syloti_Nagri',
'Syriac',
'Tagalog',
'Tagbanwa',
'Tai_Le',
'Tai_Tham',
'Tai_Viet',
'Takri',
'Tamil',
'Tangsa',
'Tangut',
'Telugu',
'Thaana',
'Thai',
'Tibetan',
'Tifinagh',
'Tirhuta',
'Toto',
'Ugaritic',
'Vai',
'Vithkuqi',
'Wancho',
'Warang_Citi',
'Yezidi',
'Yi',
'Zanabazar_Square'
]],
['Binary_Property', [
'ASCII',
'ASCII_Hex_Digit',
'Alphabetic',
'Any',
'Assigned',
'Bidi_Control',
'Bidi_Mirrored',
'Case_Ignorable',
'Cased',
'Changes_When_Casefolded',
'Changes_When_Casemapped',
'Changes_When_Lowercased',
'Changes_When_NFKC_Casefolded',
'Changes_When_Titlecased',
'Changes_When_Uppercased',
'Dash',
'Default_Ignorable_Code_Point',
'Deprecated',
'Diacritic',
'Emoji',
'Emoji_Component',
'Emoji_Modifier',
'Emoji_Modifier_Base',
'Emoji_Presentation',
'Extended_Pictographic',
'Extender',
'Grapheme_Base',
'Grapheme_Extend',
'Hex_Digit',
'IDS_Binary_Operator',
'IDS_Trinary_Operator',
'ID_Continue',
'ID_Start',
'Ideographic',
'Join_Control',
'Logical_Order_Exception',
'Lowercase',
'Math',
'Noncharacter_Code_Point',
'Pattern_Syntax',
'Pattern_White_Space',
'Quotation_Mark',
'Radical',
'Regional_Indicator',
'Sentence_Terminal',
'Soft_Dotted',
'Terminal_Punctuation',
'Unified_Ideograph',
'Uppercase',
'Variation_Selector',
'White_Space',
'XID_Continue',
'XID_Start'
]],
['Property_of_Strings', [
'Basic_Emoji',
'Emoji_Keycap_Sequence',
'RGI_Emoji',
'RGI_Emoji_Flag_Sequence',
'RGI_Emoji_Modifier_Sequence',
'RGI_Emoji_Tag_Sequence',
'RGI_Emoji_ZWJ_Sequence'
]]
]);
-49
View File
@@ -1,49 +0,0 @@
{
"name": "regenerate-unicode-properties",
"version": "10.1.1",
"description": "Regenerate sets for Unicode properties and values.",
"homepage": "https://github.com/mathiasbynens/regenerate-unicode-properties",
"main": "index.js",
"engines": {
"node": ">=4"
},
"files": [
"LICENSE-MIT.txt",
"index.js",
"unicode-version.js",
"Binary_Property",
"General_Category",
"Property_of_Strings",
"Script",
"Script_Extensions"
],
"keywords": [
"unicode",
"unicode-data",
"regenerate"
],
"license": "MIT",
"author": {
"name": "Mathias Bynens",
"url": "https://mathiasbynens.be/"
},
"repository": {
"type": "git",
"url": "https://github.com/mathiasbynens/regenerate-unicode-properties.git"
},
"bugs": "https://github.com/mathiasbynens/regenerate-unicode-properties/issues",
"dependencies": {
"regenerate": "^1.4.2"
},
"devDependencies": {
"ava": "^4.3.3",
"fs-extra": "^10.1.0",
"jsesc": "^3.0.2",
"@unicode/unicode-15.1.0": "^1.5.2",
"unicode-canonical-property-names-ecmascript": "^2.0.0"
},
"scripts": {
"build": "node build.js",
"test": "ava tests/tests.js"
}
}
-1
View File
@@ -1 +0,0 @@
module.exports = '15.1.0';