-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f158e0
commit 514bb13
Showing
22 changed files
with
1,785 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export type CharCategory = { | ||
name: string | ||
alias: string | ||
isBmpLast: boolean | ||
bmp: string | ||
} | ||
|
||
export function match(cats: CharCategory[], extra?: string, neg=false): string { | ||
return `[${neg ? '^' : ''}${cats.map(cat => cat.bmp).join('')}${extra || ''}]` | ||
} | ||
|
||
export const categories: CharCategory[] = require('xregexp/tools/output/categories') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@article{Leung_2012, | ||
author = {Leung, Benjamin and Sun, Qian and Yerino, Christopher and Zhang, Yu and Han, Jung and Hyun Kong, Bo and Koun Cho, Hyung and Liao, Kuan-Yung and Li, Yun-Li}, | ||
year = {2012}, | ||
month = feb, | ||
volume = {341}, | ||
pages = {27--33}, | ||
doi = {10.1016/j.jcrysgro.2011.12.035}, | ||
journal = {Journal of Crystal Growth}, | ||
number = {1}, | ||
title = {Growth Evolution and Microstructural Characterization of Semipolar (11\=22) {{GaN}} Selectively Grown on Etched r-Plane Sapphire} | ||
} |
97 changes: 97 additions & 0 deletions
97
test/tap-snapshots/sentencecase=off^caseprotection=as-needed/other/mid-word-capital.bib.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* IMPORTANT | ||
* This snapshot file is auto-generated, but designed for humans. | ||
* It should be checked into source control and tracked carefully. | ||
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. | ||
* Make sure to inspect the output below. Do not ignore changes! | ||
*/ | ||
'use strict' | ||
exports[`test/all.js > TAP > other=mid-word-capital.bib > must match snapshot 1`] = ` | ||
Object { | ||
"comments": Array [], | ||
"entries": Array [ | ||
Object { | ||
"fields": Object { | ||
"author": Array [ | ||
Object { | ||
"firstName": "Benjamin", | ||
"lastName": "Leung", | ||
}, | ||
Object { | ||
"firstName": "Qian", | ||
"lastName": "Sun", | ||
}, | ||
Object { | ||
"firstName": "Christopher", | ||
"lastName": "Yerino", | ||
}, | ||
Object { | ||
"firstName": "Yu", | ||
"lastName": "Zhang", | ||
}, | ||
Object { | ||
"firstName": "Jung", | ||
"lastName": "Han", | ||
}, | ||
Object { | ||
"firstName": "Bo", | ||
"lastName": "Hyun Kong", | ||
}, | ||
Object { | ||
"firstName": "Hyung", | ||
"lastName": "Koun Cho", | ||
}, | ||
Object { | ||
"firstName": "Kuan-Yung", | ||
"lastName": "Liao", | ||
}, | ||
Object { | ||
"firstName": "Yun-Li", | ||
"lastName": "Li", | ||
}, | ||
], | ||
"doi": "10.1016/j.jcrysgro.2011.12.035", | ||
"journal": "Journal of Crystal Growth", | ||
"month": "2", | ||
"number": "1", | ||
"pages": "27–33", | ||
"title": "Growth Evolution and Microstructural Characterization of Semipolar (112̄2) GaN Selectively Grown on Etched r-Plane Sapphire", | ||
"volume": "341", | ||
"year": "2012", | ||
}, | ||
"input": String( | ||
@article{Leung_2012, | ||
author = {Leung, Benjamin and Sun, Qian and Yerino, Christopher and Zhang, Yu and Han, Jung and Hyun Kong, Bo and Koun Cho, Hyung and Liao, Kuan-Yung and Li, Yun-Li}, | ||
year = {2012}, | ||
month = feb, | ||
volume = {341}, | ||
pages = {27--33}, | ||
doi = {10.1016/j.jcrysgro.2011.12.035}, | ||
journal = {Journal of Crystal Growth}, | ||
number = {1}, | ||
title = {Growth Evolution and Microstructural Characterization of Semipolar (11\\\\=22) {{GaN}} Selectively Grown on Etched r-Plane Sapphire} | ||
} | ||
), | ||
"key": "Leung_2012", | ||
"mode": Object { | ||
"author": "creatorlist", | ||
"doi": "verbatim", | ||
"journal": "literal", | ||
"month": "literal", | ||
"number": "literal", | ||
"pages": "literal", | ||
"title": "title", | ||
"volume": "literal", | ||
"year": "literal", | ||
}, | ||
"type": "article", | ||
}, | ||
], | ||
"errors": Array [], | ||
"jabref": Object { | ||
"groups": Object {}, | ||
"root": Array [], | ||
}, | ||
"preamble": Array [], | ||
"strings": Object {}, | ||
} | ||
` |
97 changes: 97 additions & 0 deletions
97
.../sentencecase=off^caseprotection=as-needed^preservequoted/other/mid-word-capital.bib.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* IMPORTANT | ||
* This snapshot file is auto-generated, but designed for humans. | ||
* It should be checked into source control and tracked carefully. | ||
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. | ||
* Make sure to inspect the output below. Do not ignore changes! | ||
*/ | ||
'use strict' | ||
exports[`test/all.js > TAP > other=mid-word-capital.bib > must match snapshot 1`] = ` | ||
Object { | ||
"comments": Array [], | ||
"entries": Array [ | ||
Object { | ||
"fields": Object { | ||
"author": Array [ | ||
Object { | ||
"firstName": "Benjamin", | ||
"lastName": "Leung", | ||
}, | ||
Object { | ||
"firstName": "Qian", | ||
"lastName": "Sun", | ||
}, | ||
Object { | ||
"firstName": "Christopher", | ||
"lastName": "Yerino", | ||
}, | ||
Object { | ||
"firstName": "Yu", | ||
"lastName": "Zhang", | ||
}, | ||
Object { | ||
"firstName": "Jung", | ||
"lastName": "Han", | ||
}, | ||
Object { | ||
"firstName": "Bo", | ||
"lastName": "Hyun Kong", | ||
}, | ||
Object { | ||
"firstName": "Hyung", | ||
"lastName": "Koun Cho", | ||
}, | ||
Object { | ||
"firstName": "Kuan-Yung", | ||
"lastName": "Liao", | ||
}, | ||
Object { | ||
"firstName": "Yun-Li", | ||
"lastName": "Li", | ||
}, | ||
], | ||
"doi": "10.1016/j.jcrysgro.2011.12.035", | ||
"journal": "Journal of Crystal Growth", | ||
"month": "2", | ||
"number": "1", | ||
"pages": "27–33", | ||
"title": "Growth Evolution and Microstructural Characterization of Semipolar (112̄2) GaN Selectively Grown on Etched r-Plane Sapphire", | ||
"volume": "341", | ||
"year": "2012", | ||
}, | ||
"input": String( | ||
@article{Leung_2012, | ||
author = {Leung, Benjamin and Sun, Qian and Yerino, Christopher and Zhang, Yu and Han, Jung and Hyun Kong, Bo and Koun Cho, Hyung and Liao, Kuan-Yung and Li, Yun-Li}, | ||
year = {2012}, | ||
month = feb, | ||
volume = {341}, | ||
pages = {27--33}, | ||
doi = {10.1016/j.jcrysgro.2011.12.035}, | ||
journal = {Journal of Crystal Growth}, | ||
number = {1}, | ||
title = {Growth Evolution and Microstructural Characterization of Semipolar (11\\\\=22) {{GaN}} Selectively Grown on Etched r-Plane Sapphire} | ||
} | ||
), | ||
"key": "Leung_2012", | ||
"mode": Object { | ||
"author": "creatorlist", | ||
"doi": "verbatim", | ||
"journal": "literal", | ||
"month": "literal", | ||
"number": "literal", | ||
"pages": "literal", | ||
"title": "title", | ||
"volume": "literal", | ||
"year": "literal", | ||
}, | ||
"type": "article", | ||
}, | ||
], | ||
"errors": Array [], | ||
"jabref": Object { | ||
"groups": Object {}, | ||
"root": Array [], | ||
}, | ||
"preamble": Array [], | ||
"strings": Object {}, | ||
} | ||
` |
97 changes: 97 additions & 0 deletions
97
test/tap-snapshots/sentencecase=off^caseprotection=off/other/mid-word-capital.bib.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* IMPORTANT | ||
* This snapshot file is auto-generated, but designed for humans. | ||
* It should be checked into source control and tracked carefully. | ||
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. | ||
* Make sure to inspect the output below. Do not ignore changes! | ||
*/ | ||
'use strict' | ||
exports[`test/all.js > TAP > other=mid-word-capital.bib > must match snapshot 1`] = ` | ||
Object { | ||
"comments": Array [], | ||
"entries": Array [ | ||
Object { | ||
"fields": Object { | ||
"author": Array [ | ||
Object { | ||
"firstName": "Benjamin", | ||
"lastName": "Leung", | ||
}, | ||
Object { | ||
"firstName": "Qian", | ||
"lastName": "Sun", | ||
}, | ||
Object { | ||
"firstName": "Christopher", | ||
"lastName": "Yerino", | ||
}, | ||
Object { | ||
"firstName": "Yu", | ||
"lastName": "Zhang", | ||
}, | ||
Object { | ||
"firstName": "Jung", | ||
"lastName": "Han", | ||
}, | ||
Object { | ||
"firstName": "Bo", | ||
"lastName": "Hyun Kong", | ||
}, | ||
Object { | ||
"firstName": "Hyung", | ||
"lastName": "Koun Cho", | ||
}, | ||
Object { | ||
"firstName": "Kuan-Yung", | ||
"lastName": "Liao", | ||
}, | ||
Object { | ||
"firstName": "Yun-Li", | ||
"lastName": "Li", | ||
}, | ||
], | ||
"doi": "10.1016/j.jcrysgro.2011.12.035", | ||
"journal": "Journal of Crystal Growth", | ||
"month": "2", | ||
"number": "1", | ||
"pages": "27–33", | ||
"title": "Growth Evolution and Microstructural Characterization of Semipolar (112̄2) GaN Selectively Grown on Etched r-Plane Sapphire", | ||
"volume": "341", | ||
"year": "2012", | ||
}, | ||
"input": String( | ||
@article{Leung_2012, | ||
author = {Leung, Benjamin and Sun, Qian and Yerino, Christopher and Zhang, Yu and Han, Jung and Hyun Kong, Bo and Koun Cho, Hyung and Liao, Kuan-Yung and Li, Yun-Li}, | ||
year = {2012}, | ||
month = feb, | ||
volume = {341}, | ||
pages = {27--33}, | ||
doi = {10.1016/j.jcrysgro.2011.12.035}, | ||
journal = {Journal of Crystal Growth}, | ||
number = {1}, | ||
title = {Growth Evolution and Microstructural Characterization of Semipolar (11\\\\=22) {{GaN}} Selectively Grown on Etched r-Plane Sapphire} | ||
} | ||
), | ||
"key": "Leung_2012", | ||
"mode": Object { | ||
"author": "creatorlist", | ||
"doi": "verbatim", | ||
"journal": "literal", | ||
"month": "literal", | ||
"number": "literal", | ||
"pages": "literal", | ||
"title": "title", | ||
"volume": "literal", | ||
"year": "literal", | ||
}, | ||
"type": "article", | ||
}, | ||
], | ||
"errors": Array [], | ||
"jabref": Object { | ||
"groups": Object {}, | ||
"root": Array [], | ||
}, | ||
"preamble": Array [], | ||
"strings": Object {}, | ||
} | ||
` |
Oops, something went wrong.