Introduce CSpell
This commit is contained in:
30
.cspell.json
Normal file
30
.cspell.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
// cSpell Settings
|
||||||
|
{
|
||||||
|
// Version of the setting file. Always 0.2
|
||||||
|
"version": "0.2",
|
||||||
|
// language - current active spelling language
|
||||||
|
"language": "en_US",
|
||||||
|
"dictionaries": ["en_US", "typescript", "softwareTerms", "fonts"],
|
||||||
|
// words - list of words to be always considered correct
|
||||||
|
"words": [
|
||||||
|
"Xmlable",
|
||||||
|
"twip",
|
||||||
|
"twips",
|
||||||
|
"jsonify",
|
||||||
|
"Media",
|
||||||
|
"falsey",
|
||||||
|
"aiueo",
|
||||||
|
"iroha",
|
||||||
|
"aiueo",
|
||||||
|
"iroha",
|
||||||
|
"chosung",
|
||||||
|
"Abjad",
|
||||||
|
"Initializable"
|
||||||
|
],
|
||||||
|
"ignoreRegExpList": ["/w:.+/", "/s:.+/", "/a:.+/", "/pic:.+/", "/xmlns:.+/", "/[^\\s]{40,}/", "/<xsd:.+/>/", "/[A-Z_]+ = \".+\"/", "/XmlAttributeComponent<{(.|\\n| )+}>/"],
|
||||||
|
"allowCompoundWords": true,
|
||||||
|
// flagWords - list of words to be always considered incorrect
|
||||||
|
// This is useful for offensive words and common spelling errors.
|
||||||
|
// For example "hte" should be "the"
|
||||||
|
"flagWords": ["hte"]
|
||||||
|
}
|
1860
package-lock.json
generated
1860
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -16,6 +16,7 @@
|
|||||||
"typedoc": "rimraf ./build && typedoc src/index.ts --tsconfig tsconfig.typedoc.json",
|
"typedoc": "rimraf ./build && typedoc src/index.ts --tsconfig tsconfig.typedoc.json",
|
||||||
"style": "prettier -l \"src/**/*.ts\"",
|
"style": "prettier -l \"src/**/*.ts\"",
|
||||||
"style.fix": "npm run style -- --write",
|
"style.fix": "npm run style -- --write",
|
||||||
|
"cspell": "cspell \"/**/*.{ts,scss,html}\"",
|
||||||
"fix-types": "ts-node --skip-project scripts/types-absolute-fixer.ts",
|
"fix-types": "ts-node --skip-project scripts/types-absolute-fixer.ts",
|
||||||
"e2e": "ts-node scripts/e2e.ts",
|
"e2e": "ts-node scripts/e2e.ts",
|
||||||
"serve.docs": "cd docs && docsify serve",
|
"serve.docs": "cd docs && docsify serve",
|
||||||
@ -73,6 +74,7 @@
|
|||||||
"@types/webpack": "^5.0.0",
|
"@types/webpack": "^5.0.0",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
|
"cspell": "^6.2.2",
|
||||||
"docsify-cli": "^4.3.0",
|
"docsify-cli": "^4.3.0",
|
||||||
"glob": "^8.0.1",
|
"glob": "^8.0.1",
|
||||||
"jszip": "^3.1.5",
|
"jszip": "^3.1.5",
|
||||||
|
@ -90,25 +90,25 @@ export interface ITableFloatOptions {
|
|||||||
readonly relativeVerticalPosition?: RelativeVerticalPosition;
|
readonly relativeVerticalPosition?: RelativeVerticalPosition;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the minimun distance to be maintained between the table and the top of text in the paragraph
|
* Specifies the minimum distance to be maintained between the table and the top of text in the paragraph
|
||||||
* below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
* below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
||||||
*/
|
*/
|
||||||
readonly bottomFromText?: number | string;
|
readonly bottomFromText?: number | string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the minimun distance to be maintained between the table and the bottom edge of text in the paragraph
|
* Specifies the minimum distance to be maintained between the table and the bottom edge of text in the paragraph
|
||||||
* above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
* above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
||||||
*/
|
*/
|
||||||
readonly topFromText?: number | string;
|
readonly topFromText?: number | string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the minimun distance to be maintained between the table and the edge of text in the paragraph
|
* Specifies the minimum distance to be maintained between the table and the edge of text in the paragraph
|
||||||
* to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
* to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
||||||
*/
|
*/
|
||||||
readonly leftFromText?: number | string;
|
readonly leftFromText?: number | string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the minimun distance to be maintained between the table and the edge of text in the paragraph
|
* Specifies the minimum distance to be maintained between the table and the edge of text in the paragraph
|
||||||
* to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
* to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
|
||||||
*/
|
*/
|
||||||
readonly rightFromText?: number | string;
|
readonly rightFromText?: number | string;
|
||||||
|
@ -13,7 +13,7 @@ describe("Deleted Page", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("Delted NumberOfPages", () => {
|
describe("Deleted NumberOfPages", () => {
|
||||||
describe("#constructor()", () => {
|
describe("#constructor()", () => {
|
||||||
it("uses the font name for both ascii and hAnsi", () => {
|
it("uses the font name for both ascii and hAnsi", () => {
|
||||||
const tree = new Formatter().format(new DeletedNumberOfPages());
|
const tree = new Formatter().format(new DeletedNumberOfPages());
|
||||||
|
@ -141,12 +141,12 @@ export class ImportDotx {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async addRelationshipToWrapper(
|
private async addRelationshipToWrapper(
|
||||||
relationhipFile: IRelationshipFileInfo,
|
relationshipFile: IRelationshipFileInfo,
|
||||||
zipContent: JSZip,
|
zipContent: JSZip,
|
||||||
wrapper: HeaderWrapper | FooterWrapper,
|
wrapper: HeaderWrapper | FooterWrapper,
|
||||||
media: Media,
|
media: Media,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const refFile = zipContent.files[`word/_rels/${relationhipFile.target}.rels`];
|
const refFile = zipContent.files[`word/_rels/${relationshipFile.target}.rels`];
|
||||||
|
|
||||||
if (!refFile) {
|
if (!refFile) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user