@sushichan044/kg-core 0.11.2 → 0.12.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.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as ManuscriptResult, c as DiagnosticSeverity, d as ManuscriptRangeInput, i as ParsedManuscript, l as DiagnosticOrigin, n as ValidationIssue, o as ManuscriptDiagnostic, r as NamespacedId, s as ManuscriptDiagnosticInput, t as ComposedManuscript, u as ManuscriptRange } from "./composed-manuscript-C0f3mxKs.mjs";
2
- import { d as PaperSizeId, f as ManuscriptComposer, i as novelComposer, l as NovelLayout, n as NovelComposedManuscript, p as ManuscriptParser, t as PresentationKind, u as NovelCompositionSettings } from "./presentation-kind-DnJkvxHU.mjs";
2
+ import { d as PaperSizeId, f as ManuscriptComposer, i as novelComposer, l as NovelLayout, n as NovelComposedManuscript, p as ManuscriptParser, t as PresentationKind, u as NovelCompositionSettings } from "./presentation-kind-B9FtjZvc.mjs";
3
3
  import * as v from "valibot";
4
4
  //#region src/parser/parse-error.d.ts
5
5
  /**
@@ -1814,25 +1814,25 @@ export declare const ManuscriptOffsets: {
1814
1814
  declare const ManuscriptAppearanceSettingsSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1815
1815
  readonly paperSize: v.PicklistSchema<["a4", "a5", "a6", "jis-b5", "jis-b6", "shinsho"], undefined>;
1816
1816
  readonly fontSizeQ: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
1817
- readonly fontPreset: v.PicklistSchema<["mincho", "gothic"], undefined>;
1817
+ readonly fontPreset: v.PicklistSchema<["mincho", "gothic", "genei-koburi"], undefined>;
1818
1818
  }, undefined>, v.ReadonlyAction<{
1819
1819
  paperSize: "a4" | "a5" | "a6" | "jis-b5" | "jis-b6" | "shinsho";
1820
1820
  fontSizeQ: number;
1821
- fontPreset: "gothic" | "mincho";
1821
+ fontPreset: "genei-koburi" | "gothic" | "mincho";
1822
1822
  }>]>;
1823
1823
  /**
1824
- * Everything that changes the physical dimensions of a page, but not how text fills the grid.
1824
+ * Page dimensions and the typography profile used to prepare and measure text.
1825
1825
  */
1826
1826
  export type ManuscriptAppearanceSettings = v.InferOutput<typeof ManuscriptAppearanceSettingsSchema>;
1827
1827
  export declare const ManuscriptAppearanceSettings: {
1828
1828
  readonly schema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1829
1829
  readonly paperSize: v.PicklistSchema<["a4", "a5", "a6", "jis-b5", "jis-b6", "shinsho"], undefined>;
1830
1830
  readonly fontSizeQ: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
1831
- readonly fontPreset: v.PicklistSchema<["mincho", "gothic"], undefined>;
1831
+ readonly fontPreset: v.PicklistSchema<["mincho", "gothic", "genei-koburi"], undefined>;
1832
1832
  }, undefined>, v.ReadonlyAction<{
1833
1833
  paperSize: "a4" | "a5" | "a6" | "jis-b5" | "jis-b6" | "shinsho";
1834
1834
  fontSizeQ: number;
1835
- fontPreset: "gothic" | "mincho";
1835
+ fontPreset: "genei-koburi" | "gothic" | "mincho";
1836
1836
  }>]>;
1837
1837
  readonly defaults: {
1838
1838
  readonly paperSize: "a5";
@@ -1952,32 +1952,59 @@ export declare const ManuscriptGeometry: {
1952
1952
  };
1953
1953
  //#endregion
1954
1954
  //#region src/appearance/font-preset-id.d.ts
1955
- declare const FontPresetIdSchema: v.PicklistSchema<["mincho", "gothic"], undefined>;
1955
+ declare const FontPresetIdSchema: v.PicklistSchema<["mincho", "gothic", "genei-koburi"], undefined>;
1956
1956
  /**
1957
- * The two typeface families Japanese body text is set in: 明朝体, the serifed face a novel is normally
1958
- * set in, and ゴシック体, its sans-serif counterpart.
1957
+ * Built-in typography profiles. The persisted mincho ID selects Rin Mincho.
1959
1958
  */
1960
1959
  export type FontPresetId = v.InferOutput<typeof FontPresetIdSchema>;
1961
1960
  export declare const FontPresetId: {
1962
- readonly schema: v.PicklistSchema<["mincho", "gothic"], undefined>;
1961
+ readonly schema: v.PicklistSchema<["mincho", "gothic", "genei-koburi"], undefined>;
1963
1962
  readonly is: (value: unknown) => value is FontPresetId;
1964
1963
  };
1965
1964
  //#endregion
1966
1965
  //#region src/appearance/font-preset.d.ts
1966
+ type FontTextTransform = "combine-kana-voicing-marks";
1967
1967
  export type FontPreset = Readonly<{
1968
1968
  id: FontPresetId;
1969
1969
  label: string;
1970
+ fontName: string;
1970
1971
  family: string;
1972
+ textTransforms: readonly FontTextTransform[];
1973
+ measurement: "logical" | "browser-shaped";
1974
+ rendering: Readonly<{
1975
+ features: Readonly<Record<string, number>>;
1976
+ westernKerning: "normal" | "none";
1977
+ synthesis: "weight style" | "style";
1978
+ }>;
1971
1979
  }>;
1972
1980
  export declare const FontPreset: {
1973
1981
  readonly of: (id: FontPresetId) => FontPreset;
1974
1982
  readonly all: readonly Readonly<{
1975
1983
  id: FontPresetId;
1976
1984
  label: string;
1985
+ fontName: string;
1977
1986
  family: string;
1987
+ textTransforms: readonly FontTextTransform[];
1988
+ measurement: "logical" | "browser-shaped";
1989
+ rendering: Readonly<{
1990
+ features: Readonly<Record<string, number>>;
1991
+ westernKerning: "normal" | "none";
1992
+ synthesis: "weight style" | "style";
1993
+ }>;
1978
1994
  }>[];
1979
1995
  };
1980
1996
  //#endregion
1997
+ //#region src/appearance/font-preparation.d.ts
1998
+ type PreparedFontManuscript = Readonly<{
1999
+ parsed: ParsedManuscript;
2000
+ mapRange: (range: ManuscriptRange) => ManuscriptRange;
2001
+ }>;
2002
+ export declare function prepareTextForFont(text: string, fontPreset: FontPresetId): string;
2003
+ /**
2004
+ * Prepare display text after parsing; source and UTF-16 offsets remain unchanged.
2005
+ */
2006
+ export declare function prepareManuscriptForFont(parsed: ParsedManuscript, fontPreset: FontPresetId): PreparedFontManuscript;
2007
+ //#endregion
1981
2008
  //#region src/appearance/font-size-q.d.ts
1982
2009
  declare const FontSizeQSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
1983
2010
  /**
@@ -3330,57 +3357,6 @@ declare const NovelLineSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<reado
3330
3357
  }>;
3331
3358
  reason: "question-or-exclamation-gap";
3332
3359
  }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
3333
- kind: "glue";
3334
- origin: "generated";
3335
- offsetEm: number;
3336
- widthEm: number;
3337
- naturalWidthEm: number;
3338
- adjustment: "natural" | "shrunk" | "stretched";
3339
- }> | Readonly<{
3340
- kind: "glue";
3341
- origin: "source";
3342
- value: string;
3343
- readonly range: Readonly<{
3344
- source: Readonly<{
3345
- start: number;
3346
- end: number;
3347
- }> & v.Brand<"SourceRange">;
3348
- display: Readonly<{
3349
- start: number;
3350
- end: number;
3351
- }> & v.Brand<"DisplayRange">;
3352
- graphemes: Readonly<{
3353
- start: number;
3354
- end: number;
3355
- }> & v.Brand<"GraphemeRange">;
3356
- }>;
3357
- offsetEm: number;
3358
- widthEm: number;
3359
- naturalWidthEm: number;
3360
- adjustment: "natural" | "shrunk" | "stretched";
3361
- }> | Readonly<{
3362
- kind: "kern";
3363
- offsetEm: number;
3364
- widthEm: number;
3365
- }> | Readonly<{
3366
- kind: "suppressed";
3367
- value: string;
3368
- readonly range: Readonly<{
3369
- source: Readonly<{
3370
- start: number;
3371
- end: number;
3372
- }> & v.Brand<"SourceRange">;
3373
- display: Readonly<{
3374
- start: number;
3375
- end: number;
3376
- }> & v.Brand<"DisplayRange">;
3377
- graphemes: Readonly<{
3378
- start: number;
3379
- end: number;
3380
- }> & v.Brand<"GraphemeRange">;
3381
- }>;
3382
- reason: "question-or-exclamation-gap";
3383
- }> | Readonly<{
3384
3360
  value: string;
3385
3361
  readonly range: Readonly<{
3386
3362
  source: Readonly<{
@@ -3516,6 +3492,57 @@ declare const NovelLineSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<reado
3516
3492
  kind: "combined-glyph";
3517
3493
  presentation: "sideways" | "tate-chu-yoko";
3518
3494
  disposition: "placed";
3495
+ }> | Readonly<{
3496
+ kind: "glue";
3497
+ origin: "generated";
3498
+ offsetEm: number;
3499
+ widthEm: number;
3500
+ naturalWidthEm: number;
3501
+ adjustment: "natural" | "shrunk" | "stretched";
3502
+ }> | Readonly<{
3503
+ kind: "glue";
3504
+ origin: "source";
3505
+ value: string;
3506
+ readonly range: Readonly<{
3507
+ source: Readonly<{
3508
+ start: number;
3509
+ end: number;
3510
+ }> & v.Brand<"SourceRange">;
3511
+ display: Readonly<{
3512
+ start: number;
3513
+ end: number;
3514
+ }> & v.Brand<"DisplayRange">;
3515
+ graphemes: Readonly<{
3516
+ start: number;
3517
+ end: number;
3518
+ }> & v.Brand<"GraphemeRange">;
3519
+ }>;
3520
+ offsetEm: number;
3521
+ widthEm: number;
3522
+ naturalWidthEm: number;
3523
+ adjustment: "natural" | "shrunk" | "stretched";
3524
+ }> | Readonly<{
3525
+ kind: "kern";
3526
+ offsetEm: number;
3527
+ widthEm: number;
3528
+ }> | Readonly<{
3529
+ kind: "suppressed";
3530
+ value: string;
3531
+ readonly range: Readonly<{
3532
+ source: Readonly<{
3533
+ start: number;
3534
+ end: number;
3535
+ }> & v.Brand<"SourceRange">;
3536
+ display: Readonly<{
3537
+ start: number;
3538
+ end: number;
3539
+ }> & v.Brand<"DisplayRange">;
3540
+ graphemes: Readonly<{
3541
+ start: number;
3542
+ end: number;
3543
+ }> & v.Brand<"GraphemeRange">;
3544
+ }>;
3545
+ reason: "question-or-exclamation-gap";
3519
3546
  }>)[]>]>;
3520
3547
  readonly break: v.VariantSchema<"kind", [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
3521
3548
  readonly kind: v.LiteralSchema<"natural", undefined>;
@@ -4557,57 +4584,6 @@ declare const NovelLineSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<reado
4557
4584
  }> | null;
4558
4585
  inlineSizeEm: number;
4559
4586
  readonly items: readonly (Readonly<{
4560
- kind: "glue";
4561
- origin: "generated";
4562
- offsetEm: number;
4563
- widthEm: number;
4564
- naturalWidthEm: number;
4565
- adjustment: "natural" | "shrunk" | "stretched";
4566
- }> | Readonly<{
4567
- kind: "glue";
4568
- origin: "source";
4569
- value: string;
4570
- readonly range: Readonly<{
4571
- source: Readonly<{
4572
- start: number;
4573
- end: number;
4574
- }> & v.Brand<"SourceRange">;
4575
- display: Readonly<{
4576
- start: number;
4577
- end: number;
4578
- }> & v.Brand<"DisplayRange">;
4579
- graphemes: Readonly<{
4580
- start: number;
4581
- end: number;
4582
- }> & v.Brand<"GraphemeRange">;
4583
- }>;
4584
- offsetEm: number;
4585
- widthEm: number;
4586
- naturalWidthEm: number;
4587
- adjustment: "natural" | "shrunk" | "stretched";
4588
- }> | Readonly<{
4589
- kind: "kern";
4590
- offsetEm: number;
4591
- widthEm: number;
4592
- }> | Readonly<{
4593
- kind: "suppressed";
4594
- value: string;
4595
- readonly range: Readonly<{
4596
- source: Readonly<{
4597
- start: number;
4598
- end: number;
4599
- }> & v.Brand<"SourceRange">;
4600
- display: Readonly<{
4601
- start: number;
4602
- end: number;
4603
- }> & v.Brand<"DisplayRange">;
4604
- graphemes: Readonly<{
4605
- start: number;
4606
- end: number;
4607
- }> & v.Brand<"GraphemeRange">;
4608
- }>;
4609
- reason: "question-or-exclamation-gap";
4610
- }> | Readonly<{
4611
4587
  value: string;
4612
4588
  readonly range: Readonly<{
4613
4589
  source: Readonly<{
@@ -4743,6 +4719,57 @@ declare const NovelLineSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<reado
4743
4719
  kind: "combined-glyph";
4744
4720
  presentation: "sideways" | "tate-chu-yoko";
4745
4721
  disposition: "placed";
4722
+ }> | Readonly<{
4723
+ kind: "glue";
4724
+ origin: "generated";
4725
+ offsetEm: number;
4726
+ widthEm: number;
4727
+ naturalWidthEm: number;
4728
+ adjustment: "natural" | "shrunk" | "stretched";
4729
+ }> | Readonly<{
4730
+ kind: "glue";
4731
+ origin: "source";
4732
+ value: string;
4733
+ readonly range: Readonly<{
4734
+ source: Readonly<{
4735
+ start: number;
4736
+ end: number;
4737
+ }> & v.Brand<"SourceRange">;
4738
+ display: Readonly<{
4739
+ start: number;
4740
+ end: number;
4741
+ }> & v.Brand<"DisplayRange">;
4742
+ graphemes: Readonly<{
4743
+ start: number;
4744
+ end: number;
4745
+ }> & v.Brand<"GraphemeRange">;
4746
+ }>;
4747
+ offsetEm: number;
4748
+ widthEm: number;
4749
+ naturalWidthEm: number;
4750
+ adjustment: "natural" | "shrunk" | "stretched";
4751
+ }> | Readonly<{
4752
+ kind: "kern";
4753
+ offsetEm: number;
4754
+ widthEm: number;
4755
+ }> | Readonly<{
4756
+ kind: "suppressed";
4757
+ value: string;
4758
+ readonly range: Readonly<{
4759
+ source: Readonly<{
4760
+ start: number;
4761
+ end: number;
4762
+ }> & v.Brand<"SourceRange">;
4763
+ display: Readonly<{
4764
+ start: number;
4765
+ end: number;
4766
+ }> & v.Brand<"DisplayRange">;
4767
+ graphemes: Readonly<{
4768
+ start: number;
4769
+ end: number;
4770
+ }> & v.Brand<"GraphemeRange">;
4771
+ }>;
4772
+ reason: "question-or-exclamation-gap";
4746
4773
  }>)[];
4747
4774
  break: Readonly<{
4748
4775
  kind: "natural";
@@ -4927,57 +4954,6 @@ declare const NovelLineSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<reado
4927
4954
  }> | null;
4928
4955
  inlineSizeEm: number;
4929
4956
  readonly items: readonly (Readonly<{
4930
- kind: "glue";
4931
- origin: "generated";
4932
- offsetEm: number;
4933
- widthEm: number;
4934
- naturalWidthEm: number;
4935
- adjustment: "natural" | "shrunk" | "stretched";
4936
- }> | Readonly<{
4937
- kind: "glue";
4938
- origin: "source";
4939
- value: string;
4940
- readonly range: Readonly<{
4941
- source: Readonly<{
4942
- start: number;
4943
- end: number;
4944
- }> & v.Brand<"SourceRange">;
4945
- display: Readonly<{
4946
- start: number;
4947
- end: number;
4948
- }> & v.Brand<"DisplayRange">;
4949
- graphemes: Readonly<{
4950
- start: number;
4951
- end: number;
4952
- }> & v.Brand<"GraphemeRange">;
4953
- }>;
4954
- offsetEm: number;
4955
- widthEm: number;
4956
- naturalWidthEm: number;
4957
- adjustment: "natural" | "shrunk" | "stretched";
4958
- }> | Readonly<{
4959
- kind: "kern";
4960
- offsetEm: number;
4961
- widthEm: number;
4962
- }> | Readonly<{
4963
- kind: "suppressed";
4964
- value: string;
4965
- readonly range: Readonly<{
4966
- source: Readonly<{
4967
- start: number;
4968
- end: number;
4969
- }> & v.Brand<"SourceRange">;
4970
- display: Readonly<{
4971
- start: number;
4972
- end: number;
4973
- }> & v.Brand<"DisplayRange">;
4974
- graphemes: Readonly<{
4975
- start: number;
4976
- end: number;
4977
- }> & v.Brand<"GraphemeRange">;
4978
- }>;
4979
- reason: "question-or-exclamation-gap";
4980
- }> | Readonly<{
4981
4957
  value: string;
4982
4958
  readonly range: Readonly<{
4983
4959
  source: Readonly<{
@@ -5113,6 +5089,57 @@ declare const NovelLineSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<reado
5113
5089
  kind: "combined-glyph";
5114
5090
  presentation: "sideways" | "tate-chu-yoko";
5115
5091
  disposition: "placed";
5092
+ }> | Readonly<{
5093
+ kind: "glue";
5094
+ origin: "generated";
5095
+ offsetEm: number;
5096
+ widthEm: number;
5097
+ naturalWidthEm: number;
5098
+ adjustment: "natural" | "shrunk" | "stretched";
5099
+ }> | Readonly<{
5100
+ kind: "glue";
5101
+ origin: "source";
5102
+ value: string;
5103
+ readonly range: Readonly<{
5104
+ source: Readonly<{
5105
+ start: number;
5106
+ end: number;
5107
+ }> & v.Brand<"SourceRange">;
5108
+ display: Readonly<{
5109
+ start: number;
5110
+ end: number;
5111
+ }> & v.Brand<"DisplayRange">;
5112
+ graphemes: Readonly<{
5113
+ start: number;
5114
+ end: number;
5115
+ }> & v.Brand<"GraphemeRange">;
5116
+ }>;
5117
+ offsetEm: number;
5118
+ widthEm: number;
5119
+ naturalWidthEm: number;
5120
+ adjustment: "natural" | "shrunk" | "stretched";
5121
+ }> | Readonly<{
5122
+ kind: "kern";
5123
+ offsetEm: number;
5124
+ widthEm: number;
5125
+ }> | Readonly<{
5126
+ kind: "suppressed";
5127
+ value: string;
5128
+ readonly range: Readonly<{
5129
+ source: Readonly<{
5130
+ start: number;
5131
+ end: number;
5132
+ }> & v.Brand<"SourceRange">;
5133
+ display: Readonly<{
5134
+ start: number;
5135
+ end: number;
5136
+ }> & v.Brand<"DisplayRange">;
5137
+ graphemes: Readonly<{
5138
+ start: number;
5139
+ end: number;
5140
+ }> & v.Brand<"GraphemeRange">;
5141
+ }>;
5142
+ reason: "question-or-exclamation-gap";
5116
5143
  }>)[];
5117
5144
  break: Readonly<{
5118
5145
  kind: "natural";
@@ -6606,57 +6633,6 @@ declare const NovelLine: {
6606
6633
  }>;
6607
6634
  reason: "question-or-exclamation-gap";
6608
6635
  }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
6609
- kind: "glue";
6610
- origin: "generated";
6611
- offsetEm: number;
6612
- widthEm: number;
6613
- naturalWidthEm: number;
6614
- adjustment: "natural" | "shrunk" | "stretched";
6615
- }> | Readonly<{
6616
- kind: "glue";
6617
- origin: "source";
6618
- value: string;
6619
- readonly range: Readonly<{
6620
- source: Readonly<{
6621
- start: number;
6622
- end: number;
6623
- }> & v.Brand<"SourceRange">;
6624
- display: Readonly<{
6625
- start: number;
6626
- end: number;
6627
- }> & v.Brand<"DisplayRange">;
6628
- graphemes: Readonly<{
6629
- start: number;
6630
- end: number;
6631
- }> & v.Brand<"GraphemeRange">;
6632
- }>;
6633
- offsetEm: number;
6634
- widthEm: number;
6635
- naturalWidthEm: number;
6636
- adjustment: "natural" | "shrunk" | "stretched";
6637
- }> | Readonly<{
6638
- kind: "kern";
6639
- offsetEm: number;
6640
- widthEm: number;
6641
- }> | Readonly<{
6642
- kind: "suppressed";
6643
- value: string;
6644
- readonly range: Readonly<{
6645
- source: Readonly<{
6646
- start: number;
6647
- end: number;
6648
- }> & v.Brand<"SourceRange">;
6649
- display: Readonly<{
6650
- start: number;
6651
- end: number;
6652
- }> & v.Brand<"DisplayRange">;
6653
- graphemes: Readonly<{
6654
- start: number;
6655
- end: number;
6656
- }> & v.Brand<"GraphemeRange">;
6657
- }>;
6658
- reason: "question-or-exclamation-gap";
6659
- }> | Readonly<{
6660
6636
  value: string;
6661
6637
  readonly range: Readonly<{
6662
6638
  source: Readonly<{
@@ -6792,6 +6768,57 @@ declare const NovelLine: {
6792
6768
  kind: "combined-glyph";
6793
6769
  presentation: "sideways" | "tate-chu-yoko";
6794
6770
  disposition: "placed";
6771
+ }> | Readonly<{
6772
+ kind: "glue";
6773
+ origin: "generated";
6774
+ offsetEm: number;
6775
+ widthEm: number;
6776
+ naturalWidthEm: number;
6777
+ adjustment: "natural" | "shrunk" | "stretched";
6778
+ }> | Readonly<{
6779
+ kind: "glue";
6780
+ origin: "source";
6781
+ value: string;
6782
+ readonly range: Readonly<{
6783
+ source: Readonly<{
6784
+ start: number;
6785
+ end: number;
6786
+ }> & v.Brand<"SourceRange">;
6787
+ display: Readonly<{
6788
+ start: number;
6789
+ end: number;
6790
+ }> & v.Brand<"DisplayRange">;
6791
+ graphemes: Readonly<{
6792
+ start: number;
6793
+ end: number;
6794
+ }> & v.Brand<"GraphemeRange">;
6795
+ }>;
6796
+ offsetEm: number;
6797
+ widthEm: number;
6798
+ naturalWidthEm: number;
6799
+ adjustment: "natural" | "shrunk" | "stretched";
6800
+ }> | Readonly<{
6801
+ kind: "kern";
6802
+ offsetEm: number;
6803
+ widthEm: number;
6804
+ }> | Readonly<{
6805
+ kind: "suppressed";
6806
+ value: string;
6807
+ readonly range: Readonly<{
6808
+ source: Readonly<{
6809
+ start: number;
6810
+ end: number;
6811
+ }> & v.Brand<"SourceRange">;
6812
+ display: Readonly<{
6813
+ start: number;
6814
+ end: number;
6815
+ }> & v.Brand<"DisplayRange">;
6816
+ graphemes: Readonly<{
6817
+ start: number;
6818
+ end: number;
6819
+ }> & v.Brand<"GraphemeRange">;
6820
+ }>;
6821
+ reason: "question-or-exclamation-gap";
6795
6822
  }>)[]>]>;
6796
6823
  readonly break: v.VariantSchema<"kind", [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
6797
6824
  readonly kind: v.LiteralSchema<"natural", undefined>;
@@ -7833,57 +7860,6 @@ declare const NovelLine: {
7833
7860
  }> | null;
7834
7861
  inlineSizeEm: number;
7835
7862
  readonly items: readonly (Readonly<{
7836
- kind: "glue";
7837
- origin: "generated";
7838
- offsetEm: number;
7839
- widthEm: number;
7840
- naturalWidthEm: number;
7841
- adjustment: "natural" | "shrunk" | "stretched";
7842
- }> | Readonly<{
7843
- kind: "glue";
7844
- origin: "source";
7845
- value: string;
7846
- readonly range: Readonly<{
7847
- source: Readonly<{
7848
- start: number;
7849
- end: number;
7850
- }> & v.Brand<"SourceRange">;
7851
- display: Readonly<{
7852
- start: number;
7853
- end: number;
7854
- }> & v.Brand<"DisplayRange">;
7855
- graphemes: Readonly<{
7856
- start: number;
7857
- end: number;
7858
- }> & v.Brand<"GraphemeRange">;
7859
- }>;
7860
- offsetEm: number;
7861
- widthEm: number;
7862
- naturalWidthEm: number;
7863
- adjustment: "natural" | "shrunk" | "stretched";
7864
- }> | Readonly<{
7865
- kind: "kern";
7866
- offsetEm: number;
7867
- widthEm: number;
7868
- }> | Readonly<{
7869
- kind: "suppressed";
7870
- value: string;
7871
- readonly range: Readonly<{
7872
- source: Readonly<{
7873
- start: number;
7874
- end: number;
7875
- }> & v.Brand<"SourceRange">;
7876
- display: Readonly<{
7877
- start: number;
7878
- end: number;
7879
- }> & v.Brand<"DisplayRange">;
7880
- graphemes: Readonly<{
7881
- start: number;
7882
- end: number;
7883
- }> & v.Brand<"GraphemeRange">;
7884
- }>;
7885
- reason: "question-or-exclamation-gap";
7886
- }> | Readonly<{
7887
7863
  value: string;
7888
7864
  readonly range: Readonly<{
7889
7865
  source: Readonly<{
@@ -8019,6 +7995,57 @@ declare const NovelLine: {
8019
7995
  kind: "combined-glyph";
8020
7996
  presentation: "sideways" | "tate-chu-yoko";
8021
7997
  disposition: "placed";
7998
+ }> | Readonly<{
7999
+ kind: "glue";
8000
+ origin: "generated";
8001
+ offsetEm: number;
8002
+ widthEm: number;
8003
+ naturalWidthEm: number;
8004
+ adjustment: "natural" | "shrunk" | "stretched";
8005
+ }> | Readonly<{
8006
+ kind: "glue";
8007
+ origin: "source";
8008
+ value: string;
8009
+ readonly range: Readonly<{
8010
+ source: Readonly<{
8011
+ start: number;
8012
+ end: number;
8013
+ }> & v.Brand<"SourceRange">;
8014
+ display: Readonly<{
8015
+ start: number;
8016
+ end: number;
8017
+ }> & v.Brand<"DisplayRange">;
8018
+ graphemes: Readonly<{
8019
+ start: number;
8020
+ end: number;
8021
+ }> & v.Brand<"GraphemeRange">;
8022
+ }>;
8023
+ offsetEm: number;
8024
+ widthEm: number;
8025
+ naturalWidthEm: number;
8026
+ adjustment: "natural" | "shrunk" | "stretched";
8027
+ }> | Readonly<{
8028
+ kind: "kern";
8029
+ offsetEm: number;
8030
+ widthEm: number;
8031
+ }> | Readonly<{
8032
+ kind: "suppressed";
8033
+ value: string;
8034
+ readonly range: Readonly<{
8035
+ source: Readonly<{
8036
+ start: number;
8037
+ end: number;
8038
+ }> & v.Brand<"SourceRange">;
8039
+ display: Readonly<{
8040
+ start: number;
8041
+ end: number;
8042
+ }> & v.Brand<"DisplayRange">;
8043
+ graphemes: Readonly<{
8044
+ start: number;
8045
+ end: number;
8046
+ }> & v.Brand<"GraphemeRange">;
8047
+ }>;
8048
+ reason: "question-or-exclamation-gap";
8022
8049
  }>)[];
8023
8050
  break: Readonly<{
8024
8051
  kind: "natural";
@@ -8203,57 +8230,6 @@ declare const NovelLine: {
8203
8230
  }> | null;
8204
8231
  inlineSizeEm: number;
8205
8232
  readonly items: readonly (Readonly<{
8206
- kind: "glue";
8207
- origin: "generated";
8208
- offsetEm: number;
8209
- widthEm: number;
8210
- naturalWidthEm: number;
8211
- adjustment: "natural" | "shrunk" | "stretched";
8212
- }> | Readonly<{
8213
- kind: "glue";
8214
- origin: "source";
8215
- value: string;
8216
- readonly range: Readonly<{
8217
- source: Readonly<{
8218
- start: number;
8219
- end: number;
8220
- }> & v.Brand<"SourceRange">;
8221
- display: Readonly<{
8222
- start: number;
8223
- end: number;
8224
- }> & v.Brand<"DisplayRange">;
8225
- graphemes: Readonly<{
8226
- start: number;
8227
- end: number;
8228
- }> & v.Brand<"GraphemeRange">;
8229
- }>;
8230
- offsetEm: number;
8231
- widthEm: number;
8232
- naturalWidthEm: number;
8233
- adjustment: "natural" | "shrunk" | "stretched";
8234
- }> | Readonly<{
8235
- kind: "kern";
8236
- offsetEm: number;
8237
- widthEm: number;
8238
- }> | Readonly<{
8239
- kind: "suppressed";
8240
- value: string;
8241
- readonly range: Readonly<{
8242
- source: Readonly<{
8243
- start: number;
8244
- end: number;
8245
- }> & v.Brand<"SourceRange">;
8246
- display: Readonly<{
8247
- start: number;
8248
- end: number;
8249
- }> & v.Brand<"DisplayRange">;
8250
- graphemes: Readonly<{
8251
- start: number;
8252
- end: number;
8253
- }> & v.Brand<"GraphemeRange">;
8254
- }>;
8255
- reason: "question-or-exclamation-gap";
8256
- }> | Readonly<{
8257
8233
  value: string;
8258
8234
  readonly range: Readonly<{
8259
8235
  source: Readonly<{
@@ -8389,6 +8365,57 @@ declare const NovelLine: {
8389
8365
  kind: "combined-glyph";
8390
8366
  presentation: "sideways" | "tate-chu-yoko";
8391
8367
  disposition: "placed";
8368
+ }> | Readonly<{
8369
+ kind: "glue";
8370
+ origin: "generated";
8371
+ offsetEm: number;
8372
+ widthEm: number;
8373
+ naturalWidthEm: number;
8374
+ adjustment: "natural" | "shrunk" | "stretched";
8375
+ }> | Readonly<{
8376
+ kind: "glue";
8377
+ origin: "source";
8378
+ value: string;
8379
+ readonly range: Readonly<{
8380
+ source: Readonly<{
8381
+ start: number;
8382
+ end: number;
8383
+ }> & v.Brand<"SourceRange">;
8384
+ display: Readonly<{
8385
+ start: number;
8386
+ end: number;
8387
+ }> & v.Brand<"DisplayRange">;
8388
+ graphemes: Readonly<{
8389
+ start: number;
8390
+ end: number;
8391
+ }> & v.Brand<"GraphemeRange">;
8392
+ }>;
8393
+ offsetEm: number;
8394
+ widthEm: number;
8395
+ naturalWidthEm: number;
8396
+ adjustment: "natural" | "shrunk" | "stretched";
8397
+ }> | Readonly<{
8398
+ kind: "kern";
8399
+ offsetEm: number;
8400
+ widthEm: number;
8401
+ }> | Readonly<{
8402
+ kind: "suppressed";
8403
+ value: string;
8404
+ readonly range: Readonly<{
8405
+ source: Readonly<{
8406
+ start: number;
8407
+ end: number;
8408
+ }> & v.Brand<"SourceRange">;
8409
+ display: Readonly<{
8410
+ start: number;
8411
+ end: number;
8412
+ }> & v.Brand<"DisplayRange">;
8413
+ graphemes: Readonly<{
8414
+ start: number;
8415
+ end: number;
8416
+ }> & v.Brand<"GraphemeRange">;
8417
+ }>;
8418
+ reason: "question-or-exclamation-gap";
8392
8419
  }>)[];
8393
8420
  break: Readonly<{
8394
8421
  kind: "natural";
@@ -34198,4 +34225,4 @@ declare const TextRange: {
34198
34225
  }>, "range end must not precede its start">]>;
34199
34226
  };
34200
34227
  //#endregion
34201
- export { type AnnotationPlacement, type BoldAnnotation, type CombinedGlyphUnit, type ComposeManuscriptOptions, type ComposedAnnotationFragment, type ComposedGlue, type ComposedKern, type ComposedManuscript, type CompositionStatistics, type DiagnosticOrigin, type DiagnosticSeverity, type DisplayRange, type EmphasisAnnotation, type GraphemeRange, type InlineSpan, type ItalicAnnotation, type LineBreakResult, type LineOffset, type ManuscriptAnnotation, ManuscriptDiagnostic, type ManuscriptDiagnosticInput, ManuscriptRange, type ManuscriptRangeInput, ManuscriptResult, type NovelComposedManuscript, NovelCompositionSettings, type NovelLayout, type NovelLine, type NovelPage, type NovelStage, PaperSizeId, type ParseManuscriptOptions, type ParsedGrapheme, type ParsedManuscript, type PositionedInlineItem, type PresentationKind, type RubyAnnotation, type RubyKind, type RubyReading, type SingleGlyphUnit, type SourcePlacement, type SourcePosition, type SourceRange, type SuppressedInlineItem, type TextRange, novelComposer };
34228
+ export { type AnnotationPlacement, type BoldAnnotation, type CombinedGlyphUnit, type ComposeManuscriptOptions, type ComposedAnnotationFragment, type ComposedGlue, type ComposedKern, type ComposedManuscript, type CompositionStatistics, type DiagnosticOrigin, type DiagnosticSeverity, type DisplayRange, type EmphasisAnnotation, type GraphemeRange, type InlineSpan, type ItalicAnnotation, type LineBreakResult, type LineOffset, type ManuscriptAnnotation, ManuscriptDiagnostic, type ManuscriptDiagnosticInput, ManuscriptRange, type ManuscriptRangeInput, ManuscriptResult, type NovelComposedManuscript, NovelCompositionSettings, type NovelLayout, type NovelLine, type NovelPage, type NovelStage, PaperSizeId, type ParseManuscriptOptions, type ParsedGrapheme, type ParsedManuscript, type PositionedInlineItem, type PreparedFontManuscript, type PresentationKind, type RubyAnnotation, type RubyKind, type RubyReading, type SingleGlyphUnit, type SourcePlacement, type SourcePosition, type SourceRange, type SuppressedInlineItem, type TextRange, novelComposer };