Update to new version of [types/hyphen] with new option (#44601)

* Update index.d.ts

Member "locale" of interface "JsonDataHeader" was renamed to "language".

* Update gettext.js-tests.ts

Updated test according to type definition changes.

* Updated version number to 0.8

* Added type definition for hyphen

* Fixed errors in tsconfig.json

* Fixed errors reported by the linter

* Updated tests for module hyphen

* * Revert previous changes in test script
* Added OTHER_FILES.txt to ignore unused declaration files in test script

* Removed index.d.ts from OTHER_FILES.txt as it is the main file used also in the test

* Added index.d.ts to files entry within tsconfig.json

* Optimized parameter types with Readonly

* Renamed common.ts to common.d.ts so that it is included in the npm package on packing.

* Added comments

* Added new option minWordLength for new package version 1.6

* Remove entry from OTHER_FILES.txt

* Fixed variable name

* Add default values in JSDoc syntax

* * Renamed PatternDefinitions interface to PatternsDefinition
* Added comments to patterns and factory files

Co-authored-by: Krisztián Balla <h1tm4n_@web.de>
This commit is contained in:
Krisztián Balla 2020-05-15 17:39:34 +02:00 committed by GitHub
parent 598049c8db
commit 0f43e4cfd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
160 changed files with 842 additions and 329 deletions

View File

@ -91,7 +91,6 @@ patterns/de-1901.d.ts
patterns/de-ch-1901.d.ts
patterns/el-monoton.d.ts
patterns/el-polyton.d.ts
patterns/en-gb.d.ts
patterns/en-us.d.ts
patterns/es.d.ts
patterns/et.d.ts

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,7 +1,7 @@
/**
* Hyphenation patterns and exceptions for a language.
*/
export interface PatternDefinitions {
export interface PatternsDefinition {
/** List of hyphenation patterns. */
patterns: string[];
@ -13,22 +13,37 @@ export interface PatternDefinitions {
* Options for a hyphenation call.
*/
export interface HyphenationOptions {
/** A boolean indicating, if the hyphenation function should output debug info to the console. Default is false. */
/**
* A boolean indicating, if the hyphenation function should output debug info to the console.
* @default false
*/
debug?: boolean;
/** The value of the hyphen character that is inserted into the text. Default is \u00AD. */
/**
* The value of the hyphen character that is inserted into the text.
* @default \u00AD
*/
hyphenChar?: string;
/**
* The minimum length for a word to get hyphenated. Can't be less than 5.
* @default 5
*/
minWordLength?: number;
}
/**
* Synchronous hyphenation function returning the hyphenated text immediately.
* @param text The text to be hyphenated.
* @param options Options for the hyphenation process.
* @returns The hyphenated text.
*/
export type HyphenationFunctionSync = (textToHyphenate: string, options?: Readonly<HyphenationOptions>) => string;
export type HyphenationFunctionSync = (text: string, options?: Readonly<HyphenationOptions>) => string;
/**
* Asynchronous hyphenation function returning a promise for the hyphenated text.
* @param text The text to be hyphenated.
* @param options Options for the hyphenation process.
* @returns A promise of the hyphenated text.
*/
export type HyphenationFunctionAsync = (
textToHyphenate: string,
options?: Readonly<HyphenationOptions>,
) => Promise<string>;
export type HyphenationFunctionAsync = (text: string, options?: Readonly<HyphenationOptions>) => Promise<string>;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,6 +1,7 @@
import createHyphenator = require('hyphen');
import hyphenationPatternsDe1996 = require('hyphen/patterns/de-1996');
import hyphenationPatternsHu = require('hyphen/patterns/hu');
import hyphenationPatternsEnGb = require('hyphen/patterns/en-gb');
import { hyphenate as hyphenateEnGbAsync } from 'hyphen/en-gb';
// Test with HTML
@ -21,3 +22,15 @@ hyphenateEnGbAsync('hyphenation', { hyphenChar: '#' }).then(result => {
throw new Error('Test failed');
}
});
// Test with minWordLength (new option in version 1.6)
const hyphenateEnGbSyncWithMinWordLength = createHyphenator(hyphenationPatternsEnGb, {
hyphenChar: '-',
minWordLength: 11,
});
if (hyphenateEnGbSyncWithMinWordLength('hyphenation') !== 'hy-phen-a-tion') { // hyphenation has 11 chars => hyphenate
throw new Error('Test failed');
}
if (hyphenateEnGbSyncWithMinWordLength('sabotaging') !== 'sabotaging') { // sabotaging has 10 chars => don't hyphenate
throw new Error('Test failed');
}

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,34 +1,52 @@
// Type definitions for hyphen 1.5
// Type definitions for hyphen 1.6
// Project: https://github.com/ytiurin/hyphen
// Definitions by: Krisztián Balla <https://github.com/krisztianb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from './common';
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from './common';
/**
* Options for the hyphenation factory function.
*/
interface FactoryOptions {
/** If true the factory returns an asynchronous hyphenation function. Default is false. */
/**
* If true the factory returns an asynchronous hyphenation function.
* @default false
*/
async?: boolean;
/** A boolean indicating, if the hyphenation function should output debug info to the console. Default is false. */
/**
* A boolean indicating, if the hyphenation function should output debug info to the console.
* @default false
*/
debug?: boolean;
/** The value of the hyphen character that is inserted into the text. Default is \u00AD. */
/**
* The value of the hyphen character that is inserted into the text.
* @default \u00AD
*/
hyphenChar?: string;
/** If true the hyphenation function is going to ignore HTML tags in the text. Default is false. */
/**
* If true the hyphenation function is going to ignore HTML tags in the text.
* @default false
*/
html?: boolean;
/**
* The minimum length for a word to get hyphenated. Can't be less than 5.
* @default 5
*/
minWordLength?: number;
}
/**
* Creates a hyphenation function that can be used to hyphenate text.
* @param patternsDefinition The hyphenation pattern definitions for a language.
* @param patternsDefinition The hyphenation patterns definition for a language.
* @param options Settings for the hyphenation function.
* @returns Depending on the options a synchronous or asynchronous hyphenation function.
*/
declare function createHyphenator(
patternsDefinition: Readonly<PatternDefinitions>,
patternsDefinition: Readonly<PatternsDefinition>,
options?: Readonly<FactoryOptions>,
): HyphenationFunctionAsync | HyphenationFunctionSync;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,11 +1,16 @@
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternDefinitions } from "./common";
import { HyphenationFunctionAsync, HyphenationFunctionSync, PatternsDefinition } from "./common";
/** The asynchronous hyphenation function for this language. */
export const hyphenate: HyphenationFunctionAsync;
/** The asynchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTML: HyphenationFunctionAsync;
/** The synchronous hyphenation function for this language. */
export const hyphenateSync: HyphenationFunctionSync;
/** The synchronous hyphenation function, that skips HTML, for this language. */
export const hyphenateHTMLSync: HyphenationFunctionSync;
export const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
export const patterns: PatternsDefinition;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

View File

@ -1,5 +1,6 @@
import { PatternDefinitions } from "../common";
import { PatternsDefinition } from "../common";
declare const patterns: PatternDefinitions;
/** The hyphenation patterns definition for this language. */
declare const patterns: PatternsDefinition;
export = patterns;

Some files were not shown because too many files have changed in this diff Show More