@vue-pdf-viewer/viewer
Version:
The PDF Viewer component for Vue 3 and Nuxt
17 lines (16 loc) • 483 B
TypeScript
declare enum CharacterType {
SPACE = 0,
ALPHA_LETTER = 1,
PUNCTUATION = 2,
HAN_LETTER = 3,
KATAKANA_LETTER = 4,
HIRAGANA_LETTER = 5,
HALF_WIDTH_KATAKANA_LETTER = 6,
THAI_LETTER = 7
}
/**
* This function is based on the word-break detection implemented in:
* https://hg.mozilla.org/mozilla-central/file/tip/intl/lwbrk/WordBreaker.cpp
*/
declare function getCharacterType(charCode: number): CharacterType;
export { CharacterType, getCharacterType };