@furifont/core 0.4.0 → 0.4.2

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
@@ -66,7 +66,9 @@ export declare const PREBUILT: {
66
66
  readonly weights: readonly [250, 900];
67
67
  };
68
68
  /** Options set on every prebuilt font over the defaults above, such as `{ take: 20000 }`. */
69
- readonly options: {};
69
+ readonly options: {
70
+ readonly take: 40000;
71
+ };
70
72
  };
71
73
  /**
72
74
  * The sequence, 。 and VS1, a page measures to tell which version of Furifont
@@ -121,7 +123,7 @@ export declare const PlanOptionsSchema: v.ObjectSchema<{
121
123
  readonly family: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.CheckAction<string, "Source is a reserved font name of the base font">]>, "Furifont Sans">;
122
124
  readonly rubyScript: v.OptionalSchema<v.PicklistSchema<readonly ["hiragana", "katakanaOn", "hepburn"], undefined>, "hiragana">;
123
125
  /** The sources whose words get ruby. */
124
- readonly sources: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["jmdict", "ichi", "news", "spec", "gai", "nf", "tatoeba", "place", "mahjong-yaku", "jr-stations", "yojijukugo", "japan-post"], undefined>, undefined>, () => ("mahjong-yaku" | "jr-stations" | "yojijukugo" | "japan-post" | "jmdict" | "ichi" | "news" | "spec" | "gai" | "nf" | "tatoeba" | "place")[]>;
126
+ readonly sources: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["jmdict", "ichi", "news", "spec", "gai", "nf", "tatoeba", "place", "mahjong-yaku", "jr-stations", "yojijukugo", "japan-post"], undefined>, undefined>, () => ("jmdict" | "ichi" | "news" | "spec" | "gai" | "nf" | "tatoeba" | "place" | "mahjong-yaku" | "jr-stations" | "yojijukugo" | "japan-post")[]>;
125
127
  /** The most common words left bare, by score: a reader knows them. Lone kanji count too. */
126
128
  readonly skip: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
127
129
  /** How many words get ruby after those skipped, by score; all of them when left out. */
package/dist/index.mjs CHANGED
@@ -71,7 +71,7 @@ const PREBUILT = {
71
71
  weights: [250, 900]
72
72
  },
73
73
  /** Options set on every prebuilt font over the defaults above, such as `{ take: 20000 }`. */
74
- options: {}
74
+ options: { take: 4e4 }
75
75
  };
76
76
  /**
77
77
  * The sequence, 。 and VS1, a page measures to tell which version of Furifont
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@furifont/core",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.2",
5
5
  "description": "Plan furigana glyphs and OpenType rules from a Japanese dictionary",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",