WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

254
node_modules/character-entities-html4/index.json generated vendored Normal file
View File

@ -0,0 +1,254 @@
{
"nbsp": " ",
"iexcl": "¡",
"cent": "¢",
"pound": "£",
"curren": "¤",
"yen": "¥",
"brvbar": "¦",
"sect": "§",
"uml": "¨",
"copy": "©",
"ordf": "ª",
"laquo": "«",
"not": "¬",
"shy": "­",
"reg": "®",
"macr": "¯",
"deg": "°",
"plusmn": "±",
"sup2": "²",
"sup3": "³",
"acute": "´",
"micro": "µ",
"para": "¶",
"middot": "·",
"cedil": "¸",
"sup1": "¹",
"ordm": "º",
"raquo": "»",
"frac14": "¼",
"frac12": "½",
"frac34": "¾",
"iquest": "¿",
"Agrave": "À",
"Aacute": "Á",
"Acirc": "Â",
"Atilde": "Ã",
"Auml": "Ä",
"Aring": "Å",
"AElig": "Æ",
"Ccedil": "Ç",
"Egrave": "È",
"Eacute": "É",
"Ecirc": "Ê",
"Euml": "Ë",
"Igrave": "Ì",
"Iacute": "Í",
"Icirc": "Î",
"Iuml": "Ï",
"ETH": "Ð",
"Ntilde": "Ñ",
"Ograve": "Ò",
"Oacute": "Ó",
"Ocirc": "Ô",
"Otilde": "Õ",
"Ouml": "Ö",
"times": "×",
"Oslash": "Ø",
"Ugrave": "Ù",
"Uacute": "Ú",
"Ucirc": "Û",
"Uuml": "Ü",
"Yacute": "Ý",
"THORN": "Þ",
"szlig": "ß",
"agrave": "à",
"aacute": "á",
"acirc": "â",
"atilde": "ã",
"auml": "ä",
"aring": "å",
"aelig": "æ",
"ccedil": "ç",
"egrave": "è",
"eacute": "é",
"ecirc": "ê",
"euml": "ë",
"igrave": "ì",
"iacute": "í",
"icirc": "î",
"iuml": "ï",
"eth": "ð",
"ntilde": "ñ",
"ograve": "ò",
"oacute": "ó",
"ocirc": "ô",
"otilde": "õ",
"ouml": "ö",
"divide": "÷",
"oslash": "ø",
"ugrave": "ù",
"uacute": "ú",
"ucirc": "û",
"uuml": "ü",
"yacute": "ý",
"thorn": "þ",
"yuml": "ÿ",
"fnof": "ƒ",
"Alpha": "Α",
"Beta": "Β",
"Gamma": "Γ",
"Delta": "Δ",
"Epsilon": "Ε",
"Zeta": "Ζ",
"Eta": "Η",
"Theta": "Θ",
"Iota": "Ι",
"Kappa": "Κ",
"Lambda": "Λ",
"Mu": "Μ",
"Nu": "Ν",
"Xi": "Ξ",
"Omicron": "Ο",
"Pi": "Π",
"Rho": "Ρ",
"Sigma": "Σ",
"Tau": "Τ",
"Upsilon": "Υ",
"Phi": "Φ",
"Chi": "Χ",
"Psi": "Ψ",
"Omega": "Ω",
"alpha": "α",
"beta": "β",
"gamma": "γ",
"delta": "δ",
"epsilon": "ε",
"zeta": "ζ",
"eta": "η",
"theta": "θ",
"iota": "ι",
"kappa": "κ",
"lambda": "λ",
"mu": "μ",
"nu": "ν",
"xi": "ξ",
"omicron": "ο",
"pi": "π",
"rho": "ρ",
"sigmaf": "ς",
"sigma": "σ",
"tau": "τ",
"upsilon": "υ",
"phi": "φ",
"chi": "χ",
"psi": "ψ",
"omega": "ω",
"thetasym": "ϑ",
"upsih": "ϒ",
"piv": "ϖ",
"bull": "•",
"hellip": "…",
"prime": "",
"Prime": "″",
"oline": "‾",
"frasl": "",
"weierp": "℘",
"image": "",
"real": "",
"trade": "™",
"alefsym": "ℵ",
"larr": "←",
"uarr": "↑",
"rarr": "→",
"darr": "↓",
"harr": "↔",
"crarr": "↵",
"lArr": "⇐",
"uArr": "⇑",
"rArr": "⇒",
"dArr": "⇓",
"hArr": "⇔",
"forall": "∀",
"part": "∂",
"exist": "∃",
"empty": "∅",
"nabla": "∇",
"isin": "∈",
"notin": "∉",
"ni": "∋",
"prod": "∏",
"sum": "∑",
"minus": "",
"lowast": "",
"radic": "√",
"prop": "∝",
"infin": "∞",
"ang": "∠",
"and": "∧",
"or": "",
"cap": "∩",
"cup": "",
"int": "∫",
"there4": "∴",
"sim": "",
"cong": "≅",
"asymp": "≈",
"ne": "≠",
"equiv": "≡",
"le": "≤",
"ge": "≥",
"sub": "⊂",
"sup": "⊃",
"nsub": "⊄",
"sube": "⊆",
"supe": "⊇",
"oplus": "⊕",
"otimes": "⊗",
"perp": "⊥",
"sdot": "⋅",
"lceil": "⌈",
"rceil": "⌉",
"lfloor": "⌊",
"rfloor": "⌋",
"lang": "〈",
"rang": "〉",
"loz": "◊",
"spades": "♠",
"clubs": "♣",
"hearts": "♥",
"diams": "♦",
"quot": "\"",
"amp": "&",
"lt": "<",
"gt": ">",
"OElig": "Œ",
"oelig": "œ",
"Scaron": "Š",
"scaron": "š",
"Yuml": "Ÿ",
"circ": "ˆ",
"tilde": "˜",
"ensp": "",
"emsp": "",
"thinsp": "",
"zwnj": "",
"zwj": "",
"lrm": "",
"rlm": "",
"ndash": "",
"mdash": "—",
"lsquo": "",
"rsquo": "",
"sbquo": "",
"ldquo": "“",
"rdquo": "”",
"bdquo": "„",
"dagger": "†",
"Dagger": "‡",
"permil": "‰",
"lsaquo": "",
"rsaquo": "",
"euro": "€"
}

22
node_modules/character-entities-html4/license generated vendored Normal file
View File

@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
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.

106
node_modules/character-entities-html4/package.json generated vendored Normal file
View File

@ -0,0 +1,106 @@
{
"_from": "character-entities-html4@^1.0.0",
"_id": "character-entities-html4@1.1.3",
"_inBundle": false,
"_integrity": "sha512-SwnyZ7jQBCRHELk9zf2CN5AnGEc2nA+uKMZLHvcqhpPprjkYhiLn0DywMHgN5ttFZuITMATbh68M6VIVKwJbcg==",
"_location": "/character-entities-html4",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "character-entities-html4@^1.0.0",
"name": "character-entities-html4",
"escapedName": "character-entities-html4",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/stringify-entities"
],
"_resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-1.1.3.tgz",
"_shasum": "5ce6e01618e47048ac22f34f7f39db5c6fd679ef",
"_spec": "character-entities-html4@^1.0.0",
"_where": "/Users/stefanfejes/Projects/30-seconds-of-python-code/node_modules/stringify-entities",
"author": {
"name": "Titus Wormer",
"email": "tituswormer@gmail.com",
"url": "https://wooorm.com"
},
"bugs": {
"url": "https://github.com/wooorm/character-entities-html4/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Titus Wormer",
"email": "tituswormer@gmail.com",
"url": "https://wooorm.com"
}
],
"dependencies": {},
"deprecated": false,
"description": "HTML4 character entity information",
"devDependencies": {
"bail": "^1.0.1",
"browserify": "^16.0.0",
"concat-stream": "^2.0.0",
"prettier": "^1.12.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.0.0",
"tinyify": "^2.5.0",
"xo": "^0.24.0"
},
"files": [
"index.json"
],
"homepage": "https://github.com/wooorm/character-entities-html4#readme",
"keywords": [
"html",
"html4",
"entity",
"entities",
"character",
"reference",
"name",
"replacement"
],
"license": "MIT",
"main": "index.json",
"name": "character-entities-html4",
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/wooorm/character-entities-html4.git"
},
"scripts": {
"build": "npm run build-bundle && npm run build-mangle",
"build-bundle": "browserify index.json -s characterEntitiesHTML4 -o character-entities-html4.js",
"build-mangle": "browserify index.json -s characterEntitiesHTML4 -p tinyify -o character-entities-html4.js",
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"generate": "node build",
"test": "npm run generate && npm run format && npm run build && npm run test-api",
"test-api": "node test"
},
"version": "1.1.3",
"xo": {
"prettier": true,
"esnext": false,
"ignores": [
"character-entities-html4.js"
]
}
}

73
node_modules/character-entities-html4/readme.md generated vendored Normal file
View File

@ -0,0 +1,73 @@
# character-entities-html4
[![Build][build-badge]][build]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
HTML4 character entity information.
## Installation
[npm][]:
```bash
npm install character-entities-html4
```
## Usage
```js
var characterEntities = require('character-entities-html4')
console.log(characterEntities.AElig) // => 'Æ'
console.log(characterEntities.aelig) // => 'æ'
console.log(characterEntities.amp) // => '&'
console.log(characterEntities.apos) // => undefined
```
## API
### `characterEntitiesHTML4`
Mapping between (case-sensitive) character entity names to replacements.
## Support
See [w3.org][html].
## Related
* [`character-entities`](https://github.com/wooorm/character-entities)
— HTML character entity info
* [`character-entities-legacy`](https://github.com/wooorm/character-entities-legacy)
— Legacy character entity info
* [`parse-entities`](https://github.com/wooorm/parse-entities)
— Parse HTML character references
* [`stringify-entities`](https://github.com/wooorm/stringify-entities)
— Stringify HTML character references
## License
[MIT][license] © [Titus Wormer][author]
<!-- Definitions -->
[build-badge]: https://img.shields.io/travis/wooorm/character-entities-html4.svg
[build]: https://travis-ci.org/wooorm/character-entities-html4
[downloads-badge]: https://img.shields.io/npm/dm/character-entities-html4.svg
[downloads]: https://www.npmjs.com/package/character-entities-html4
[size-badge]: https://img.shields.io/bundlephobia/minzip/character-entities-html4.svg
[size]: https://bundlephobia.com/result?p=character-entities-html4
[npm]: https://docs.npmjs.com/cli/install
[license]: license
[author]: https://wooorm.com
[html]: https://www.w3.org/TR/html4/sgml/entities.html