@gukhanmun/wasm 0.2.0-dev.95 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -100,11 +100,13 @@ type Segmentation = "lattice" | "eager";
|
|
|
100
100
|
* (`十百千萬億兆京`) using stack-based accumulation and produce Arabic,
|
|
101
101
|
* respecting the Korean convention that bare `十` means 10 not `一十`.
|
|
102
102
|
* Corresponds to Rust `NumeralStrategy::AdditiveArabic`.
|
|
103
|
-
* - `"smart"` — Uses `"additive-arabic"`
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
103
|
+
* - `"smart"` — Uses `"additive-arabic"` for additive numerals that
|
|
104
|
+
* begin with a digit, and for small-place-marker starts (`十`, `百`,
|
|
105
|
+
* `千`) unless the next character is an ambiguous non-unit hanja word
|
|
106
|
+
* character; uses `"positional-arabic"` for pure-digit runs of four or
|
|
107
|
+
* more characters (year convention) or when a unit hanja follows the
|
|
108
|
+
* digit run (`年月日時分秒號世紀` and others); otherwise falls back to
|
|
109
|
+
* `"hangul-phonetic"`. Corresponds to Rust `NumeralStrategy::Smart`.
|
|
108
110
|
*/
|
|
109
111
|
type NumeralStrategy = "hangul-phonetic" | "positional-arabic" | "additive-arabic" | "smart";
|
|
110
112
|
/**
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gukhanmun/wasm",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "WebAssembly implementation of the Gukhanmun hanja-to-hangul converter.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@gukhanmun/types": "*"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@gukhanmun/types": "0.2.0
|
|
48
|
+
"@gukhanmun/types": "0.2.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsdown && node -e \"const fs=require('node:fs'),p=require('node:path');fs.cpSync('wasm','dist/wasm',{recursive:true,force:true,filter:(s)=>p.basename(s)!=='.gitignore'})\""
|