@gukhanmun/types 0.2.0-dev.42 → 0.2.0-dev.92

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +21 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@
17
17
  * disambiguation, and the bundled *Standard Korean Language Dictionary*
18
18
  * (標準國語大辭典). Corresponds to Rust `Preset::KoKr`.
19
19
  * - `"ko-kp"` — North Korean orthography: no initial sound law (래일,
20
- * 류행, 녀자), no bundled dictionary. Corresponds to Rust `Preset::KoKp`.
20
+ * 류행, 녀자), no bundled dictionary data. Corresponds to Rust `Preset::KoKp`.
21
21
  *
22
22
  * Both presets default `rendering` to `"hangul-only"` and `segmentation` to
23
23
  * `"lattice"`. Individual options passed to {@link GukhanmunOptions} override
@@ -362,6 +362,19 @@ interface GukhanmunOptions {
362
362
  * @see {@link ContextWindow}
363
363
  */
364
364
  readonly firstOccurrenceWindow?: ContextWindow;
365
+ /**
366
+ * Whether to collapse redundant parenthetical reading annotations. Defaults
367
+ * to `true`.
368
+ *
369
+ * When enabled, an explicit gloss such as `庫間(곳간)` or `곳간(庫間)` is
370
+ * recognised, the redundant parenthetical is removed, and the annotation is
371
+ * shown in both scripts in every render mode. A parenthetical that pins an
372
+ * alternative reading (for example `數字(수자)`) overrides the dictionary
373
+ * reading for that occurrence. A parenthetical that is a definition rather
374
+ * than a reading (for example `庫間(물건을 간직하여 두는 곳)`) is left
375
+ * untouched.
376
+ */
377
+ readonly collapseRedundantParens?: boolean;
365
378
  /**
366
379
  * Error recovery policy for HTML scanning. Defaults to `"strict"`.
367
380
  * Ignored for non-HTML input formats.
@@ -372,12 +385,14 @@ interface GukhanmunOptions {
372
385
  /**
373
386
  * Ordered list of dictionary sources. Sources are queried in order;
374
387
  * earlier entries take precedence. When omitted (or empty), only the
375
- * fallback Unihan character map is used (no stdict).
388
+ * fallback Unihan character map is used (no bundled dictionaries).
376
389
  *
377
- * Unlike the `"ko-kr"` Rust preset, JavaScript presets do **not**
378
- * automatically include a bundled dictionary. To use the *Standard Korean
379
- * Language Dictionary*, add `@gukhanmun/stdict-fst` or
380
- * `@gukhanmun/stdict-cdb` explicitly.
390
+ * JavaScript presets do **not**
391
+ * automatically include bundled dictionary data. To use the *Standard
392
+ * Korean Language Dictionary*, add `@gukhanmun/stdict-fst` or
393
+ * `@gukhanmun/stdict-cdb` explicitly. To use Open Korean Dictionary
394
+ * categories, add `@gukhanmun/opendict-fst` or
395
+ * `@gukhanmun/opendict-cdb` explicitly.
381
396
  *
382
397
  * @see {@link DictionarySource}
383
398
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gukhanmun/types",
3
- "version": "0.2.0-dev.42",
3
+ "version": "0.2.0-dev.92",
4
4
  "description": "TypeScript API contract for Gukhanmun (type declarations only, no runtime code).",
5
5
  "type": "module",
6
6
  "exports": {