guidex 0.3.3 → 0.5.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/README.md +266 -37
  3. package/dist/lib/app/StaffSettings.d.ts +1 -0
  4. package/dist/lib/app/editorState.d.ts +32 -23
  5. package/dist/lib/app/shareLink.d.ts +2 -3
  6. package/dist/lib/{chantLayout-CVVuJUJl.js → chantLayout-BrCQUOhp.js} +980 -1142
  7. package/dist/lib/chantLayout.d.ts +32 -3
  8. package/dist/lib/chantMarkup.d.ts +63 -20
  9. package/dist/lib/drawnStaff.d.ts +130 -0
  10. package/dist/lib/editorStorage.d.ts +44 -4
  11. package/dist/lib/embed/core.d.ts +26 -4
  12. package/dist/lib/embed/index.js +1 -1
  13. package/dist/lib/embed/manual.d.ts +9 -3
  14. package/dist/lib/embed/manual.js +16 -49
  15. package/dist/lib/fonts/guidohu-staffless.woff2 +0 -0
  16. package/dist/lib/guidex.css +27 -0
  17. package/dist/lib/guidoRender.d.ts +22 -4
  18. package/dist/lib/guidoScript.d.ts +60 -23
  19. package/dist/lib/guidoScriptTransforms.d.ts +0 -18
  20. package/dist/lib/guidoStyles.d.ts +85 -74
  21. package/dist/lib/react/GuidexScore.d.ts +18 -6
  22. package/dist/lib/react/index.d.ts +2 -0
  23. package/dist/lib/react/index.js +47 -4
  24. package/dist/lib/recitationSegments.d.ts +93 -0
  25. package/dist/lib/scoreImage-B2SGdROL.js +8391 -0
  26. package/dist/lib/staffGlyphs.d.ts +12 -0
  27. package/dist/lib/stanzas.d.ts +6 -3
  28. package/dist/lib/textMarkup.d.ts +67 -0
  29. package/dist/lib/word/index.js +1 -1
  30. package/dist/lib/{wordChecker-DG09l_ol.js → wordChecker-CjYl2yof.js} +40 -13
  31. package/dist/lib/wordExport.d.ts +23 -4
  32. package/dist-embed/fonts/guidohu-staffless.woff2 +0 -0
  33. package/dist-embed/guidex-embed.min.css +1 -1
  34. package/dist-embed/guidex-embed.min.js +1 -1
  35. package/package.json +3 -2
  36. package/dist/lib/scoreImage-lvOrTbG-.js +0 -1009
@@ -0,0 +1,12 @@
1
+ /** Guido HU's units per em. */
2
+ export declare const GUIDO_UNITS_PER_EM = 1000;
3
+ /** The five staff lines, bottom to top: [bottom, top] in font units
4
+ * above the baseline. */
5
+ export declare const STAFF_BANDS: readonly (readonly [number, number])[];
6
+ /** Advance width of every glyph, in font units (the staffless font keeps
7
+ * them all). */
8
+ export declare const GLYPH_ADVANCES: Readonly<Record<string, number>>;
9
+ /** Where each glyph of Guido HU draws staff: [line index (0 = bottom),
10
+ * x0, x1] in font units from the glyph's origin. A glyph missing here
11
+ * draws no staff. */
12
+ export declare const STAFF_SPANS: Readonly<Record<string, readonly (readonly [number, number, number])[]>>;
@@ -7,6 +7,9 @@ export type StanzaSyllable = {
7
7
  kind: 'syllable';
8
8
  text: string;
9
9
  wordEnd: boolean;
10
+ /** The syllable in script notation, when `text` alone would
11
+ * lose an escaped markup character (`\_`, `\*`) */
12
+ source?: string;
10
13
  } | {
11
14
  kind: 'hold';
12
15
  } | {
@@ -68,14 +71,14 @@ export declare const STANZA_PLACEHOLDER = "_\u2026_";
68
71
  * - a lone `~` is an empty slot; `~` inside a syllable is a
69
72
  * non-breaking space;
70
73
  * - a backslash makes the next character literal (`\-`, `\~`, `\=`,
71
- * `\(`, `\\`).
74
+ * `\(`, `\\`), markup characters included (`\_`, `\*`).
72
75
  *
73
76
  * There are no `_` extenders: `_…_`, `__…__` and `*…*` stay the
74
77
  * syllable formatting of the script notation.
75
78
  */
76
79
  export declare function parseStanza(text: string): StanzaSyllable[];
77
- /** Whether a token opens a slot: a syllable with notes that are not all
78
- * markers. */
80
+ /** Whether a token opens a slot: a sung syllable with notes that are not
81
+ * all markers. Labels and signs are never slots. */
79
82
  export declare function isSlot(tok: ScriptToken): boolean;
80
83
  /** The number of slots (note groups that take a stanza syllable). */
81
84
  export declare function slotCount(script: GuidoScript | string): number;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * The markup of syllable text, as written in the script: `{marks:…}` spans,
3
+ * which may cross syllables and words, and their sugar inside one syllable,
4
+ * the `__…__` and `_…_` wrappers, the `*…*` initial, the `**` star and the
5
+ * `*`/`†` signs. Import-free, so the parser and the style sets can share it
6
+ * without an import cycle.
7
+ *
8
+ * Markup is recognised on the text as written, before escapes fold, so an
9
+ * escaped character is a literal one and never markup. This is the only
10
+ * place that reads markup: everything else reads the parsed `TextRun`s.
11
+ */
12
+ /** A mark on a run of text: a built-in one (see `MARK_ARGUMENTS` and the
13
+ * sugar below), or a name a style set or score registers. The sugar's are
14
+ * `liturgy` (`__…__`), `rubric` (`_…_`), `initial` (`*…*`), `star` (`**`),
15
+ * `marker` (the `*`/`†` glyphs) and `plus` (a Liturgy run's `+`). */
16
+ export type Mark = string;
17
+ /** One run of syllable text: its characters, with no markup in them, and
18
+ * the marks on it, in the order they apply (later marks win). */
19
+ export interface TextRun {
20
+ text: string;
21
+ marks: Mark[];
22
+ }
23
+ /** A problem with a `{…}` span: it renders plainly, and warns. */
24
+ export interface SpanProblem {
25
+ kind: 'span';
26
+ text: string;
27
+ message: string;
28
+ }
29
+ /** The pause-marker characters: they split off into runs of their own. */
30
+ export declare const MARKER_CHARS: Set<string>;
31
+ /** The marks that take an argument, written `size:0.8`. */
32
+ export declare const MARK_ARGUMENTS: Set<string>;
33
+ /**
34
+ * Parses text with no `{…}` span in it into the runs it draws: the
35
+ * whole-syllable `**` star (drawn as ∗), a `__…__` or `_…_` wrapper around
36
+ * all of it, paired `*` markers around any part of it (`*sam*ple` → "sam"
37
+ * and "ple"), and the marker characters and a Liturgy run's `+` split off.
38
+ * The wrapper characters are dropped; escaped characters are literal.
39
+ */
40
+ export declare function parseTextRuns(written: string): TextRun[];
41
+ /** The text to read from text with no span in it: every unescaped markup
42
+ * character and sign gone, escapes folded. Empty for a sign alone. */
43
+ export declare function plainText(written: string): string;
44
+ /** One piece of text with its spans resolved (see `resolveSpans`). */
45
+ export interface ResolvedText {
46
+ /** The piece with its braces gone, for the whitespace rules */
47
+ bare: string;
48
+ /** The piece as written, trimmed, standing on its own: a span that
49
+ * reaches past the piece is closed and reopened within it */
50
+ source: string;
51
+ runs: TextRun[];
52
+ /** The text to read */
53
+ text: string;
54
+ /** The span marks the hyphen after this piece takes: the ones its last
55
+ * visible character shares with the next piece's first */
56
+ hyphen?: Mark[];
57
+ }
58
+ /**
59
+ * Resolves the `{…}` spans of consecutive pieces of text, which may open in
60
+ * one piece and close in a later one. A malformed span, a span never closed
61
+ * and a stray `}` are reported in `problems`; their text stays, plain, and
62
+ * their braces go, so no punctuation prints.
63
+ */
64
+ export declare function resolveSpans(pieces: readonly string[]): {
65
+ pieces: ResolvedText[];
66
+ problems: SpanProblem[];
67
+ };
@@ -1,2 +1,2 @@
1
- import { a as DEFAULT_TAB_INTERVAL_PT, c as toWordHtml, i as DEFAULT_SPACER, l as toWordText, n as copyWordHtml, o as SpacerMeter, r as copyWordPlainText, s as layoutForWord, t as checkWordHtml, u as wordLayoutText } from "../wordChecker-DG09l_ol.js";
1
+ import { a as DEFAULT_TAB_INTERVAL_PT, c as toWordHtml, i as DEFAULT_SPACER, l as toWordText, n as copyWordHtml, o as SpacerMeter, r as copyWordPlainText, s as layoutForWord, t as checkWordHtml, u as wordLayoutText } from "../wordChecker-CjYl2yof.js";
2
2
  export { DEFAULT_SPACER, DEFAULT_TAB_INTERVAL_PT, SpacerMeter, checkWordHtml, copyWordHtml, copyWordPlainText, layoutForWord, toWordHtml, toWordText, wordLayoutText };
@@ -1,4 +1,4 @@
1
- import { M as SCORE_MARKERS, V as CLEF_GLYPHS, c as measurementFont, i as measure, n as SPECIAL_NOTES, r as layoutScore, t as NOTE_MODIFIERS } from "./chantLayout-CVVuJUJl.js";
1
+ import { A as CLEF_GLYPHS, O as SCORE_MARKERS, d as measurementFont, i as measure, n as SPECIAL_NOTES, o as SMALL_CAP_SCALE, r as layoutScore, t as NOTE_MODIFIERS } from "./chantLayout-BrCQUOhp.js";
2
2
  //#region src/wordExport.ts
3
3
  /**
4
4
  * Word-compatible export: turns the shared layout (chantLayout.ts) into
@@ -201,6 +201,11 @@ function firstFontFamily(stack) {
201
201
  function fmtPt(pt) {
202
202
  return String(parseFloat(pt.toFixed(2)));
203
203
  }
204
+ /** A run's size in Word: real small caps take the full size, and Word
205
+ * draws the small capitals itself. */
206
+ function wordScale(style) {
207
+ return style.smallCaps ? (style.scale ?? 1) / SMALL_CAP_SCALE : style.scale;
208
+ }
204
209
  /** One syllable run as Word HTML: a `<b>` wrapper for weight, inline
205
210
  * styles for family, size, color, and raise. Characters with no glyph in
206
211
  * the destination fonts (the `**` star) ride the Symbol font as their
@@ -210,7 +215,10 @@ function partHtml(part, textPx) {
210
215
  const css = [];
211
216
  if (style.fontFamily) css.push(`font-family:'${firstFontFamily(style.fontFamily)}'`);
212
217
  if (style.italic) css.push("font-style:italic");
213
- if (style.scale !== void 0 && style.scale !== 1) css.push(`font-size:${fmtPt(textPx * style.scale * PT_PER_PX)}pt`);
218
+ const scale = wordScale(style);
219
+ if (scale !== void 0 && scale !== 1) css.push(`font-size:${fmtPt(textPx * scale * PT_PER_PX)}pt`);
220
+ if (style.smallCaps) css.push("font-variant:small-caps");
221
+ else if (style.uppercase) css.push("text-transform:uppercase");
214
222
  const color = resolveColor(style.color);
215
223
  if (color) css.push(`color:${color}`);
216
224
  if (style.raise) css.push(`vertical-align:${fmtPt(textPx * style.raise * PT_PER_PX)}pt`);
@@ -248,7 +256,7 @@ function walkTextLine(line, meter, pieces) {
248
256
  break;
249
257
  case "connector":
250
258
  spacerTo(seg.dashStartPx);
251
- out += pieces.dash();
259
+ out += pieces.dash(seg.parts);
252
260
  emitted += seg.dashWidth;
253
261
  spacerTo(seg.nextAnchorPx);
254
262
  break;
@@ -262,7 +270,7 @@ function walkTextLine(line, meter, pieces) {
262
270
  break;
263
271
  case "line-end-dash":
264
272
  spacerTo(seg.dashStartPx);
265
- out += pieces.dash();
273
+ out += pieces.dash(seg.parts);
266
274
  emitted += seg.dashWidth;
267
275
  spacerTo(seg.trailEndPx);
268
276
  }
@@ -303,9 +311,20 @@ function resolveSizing(options) {
303
311
  textPx: textPt !== void 0 ? textPt * PX_PER_PT : options.textPx,
304
312
  notesPx: notesPt !== void 0 ? notesPt * PX_PER_PT : options.notesPx,
305
313
  maxWidthPx: options.maxWidthPt !== void 0 ? options.maxWidthPt * PX_PER_PT : options.maxWidthPx,
306
- junctionDashes: options.junctionDashes
314
+ junctionDashes: options.junctionDashes,
315
+ marks: options.marks,
316
+ staffFill: options.staffFill,
317
+ staffFillSnapPx: options.staffFillSnapPx,
318
+ twoSyllableRecitationsToPlain: options.twoSyllableRecitationsToPlain,
319
+ plainRunsToRecitation: options.plainRunsToRecitation
307
320
  };
308
321
  }
322
+ /** A broken line's break marker stop, in px: its right edge. Most lines
323
+ * share the layout's star target, which the paragraph style carries. */
324
+ function markerStopPx(layout, line) {
325
+ const stop = line.staffEnd + line.breakMarkerLeftPx + layout.starWidth;
326
+ return Math.abs(stop - layout.starTarget) < .01 ? layout.starTarget : stop;
327
+ }
309
328
  /**
310
329
  * Renders the score as Word-flavoured HTML: one `nota` paragraph (notes)
311
330
  * followed by one `textus` paragraph (text) per rendered line, the
@@ -345,12 +364,13 @@ async function toWordHtml(source, options = {}) {
345
364
  };
346
365
  const paragraphs = [];
347
366
  for (const line of layout.lines) {
348
- const markerStop = line.breakMarkerLeftPx !== void 0 && layout.maxWidthPx === Infinity ? ` style="tab-stops:right ${fmtPt((line.notesEnd + line.breakMarkerLeftPx + layout.starWidth) * PT_PER_PX)}pt"` : "";
367
+ const stopPx = line.breakMarkerLeftPx !== void 0 ? markerStopPx(layout, line) : layout.starTarget;
368
+ const markerStop = stopPx !== layout.starTarget ? ` style="tab-stops:right ${fmtPt(stopPx * PT_PER_PX)}pt"` : "";
349
369
  const marker = line.breakMarkerLeftPx !== void 0 ? `<span style="mso-tab-count:1">${" ".repeat(Math.max(1, Math.round((line.breakMarkerLeftPx + layout.starWidth) / spacePx)))}</span>*` : "";
350
370
  paragraphs.push(`<p class="${notaClass}"${markerStop}><span style="letter-spacing:-.1pt">${escapeHtml(notesText(line))}</span>${marker}</p>`);
351
371
  for (const text of line.texts) paragraphs.push(`<p class="${textusClass}">` + walkTextLine(text, meter, {
352
372
  spacer: spacerHtml,
353
- dash: () => "-",
373
+ dash: (parts) => parts ? partHtml(parts[0], layout.textPx) : "-",
354
374
  syl: (seg) => sylHtml(seg, layout.textPx)
355
375
  }) + "</p>");
356
376
  }
@@ -395,7 +415,10 @@ function wordRuns(part, textPx) {
395
415
  italic: !!style.italic
396
416
  };
397
417
  if (style.fontFamily) base.fontFamily = firstFontFamily(style.fontFamily);
398
- if (style.scale !== void 0 && style.scale !== 1) base.sizePt = textPx * style.scale * PT_PER_PX;
418
+ const scale = wordScale(style);
419
+ if (scale !== void 0 && scale !== 1) base.sizePt = textPx * scale * PT_PER_PX;
420
+ if (style.smallCaps) base.smallCaps = true;
421
+ else if (style.uppercase) base.allCaps = true;
399
422
  const color = resolveColor(style.color);
400
423
  if (color) base.color = color;
401
424
  if (style.raise) base.raisePt = textPx * style.raise * PT_PER_PX;
@@ -466,7 +489,10 @@ async function layoutForWord(source, options = {}) {
466
489
  case "connector":
467
490
  case "line-end-dash":
468
491
  spacerTo(seg.dashStartPx);
469
- text.push({ type: "dash" });
492
+ text.push(seg.parts ? {
493
+ type: "dash",
494
+ run: wordRuns(seg.parts[0], layout.textPx)[0]
495
+ } : { type: "dash" });
470
496
  emitted += seg.dashWidth;
471
497
  spacerTo(seg.kind === "connector" ? seg.nextAnchorPx : seg.trailEndPx);
472
498
  break;
@@ -492,7 +518,7 @@ async function layoutForWord(source, options = {}) {
492
518
  text: texts[0],
493
519
  texts
494
520
  };
495
- if (line.breakMarkerLeftPx !== void 0) out.breakMarkerTabStopPt = finite ? layout.starTarget * PT_PER_PX : (line.notesEnd + line.breakMarkerLeftPx + layout.starWidth) * PT_PER_PX;
521
+ if (line.breakMarkerLeftPx !== void 0) out.breakMarkerTabStopPt = markerStopPx(layout, line) * PT_PER_PX;
496
522
  return out;
497
523
  }),
498
524
  style: layout.styleName,
@@ -980,7 +1006,8 @@ function checkWordHtml(html) {
980
1006
  const next = paragraphs[i + 1];
981
1007
  if (next === void 0 || next.kind !== "textus") error(`Paragraph ${i + 1} is a notes line without a text line after it — every notes line pairs with a text line`, i);
982
1008
  });
983
- for (const para of paragraphs) if (para.kind === "nota") checkNotesParagraph(para, error, warn);
1009
+ const lastNota = paragraphs.findLast((para) => para.kind === "nota");
1010
+ for (const para of paragraphs) if (para.kind === "nota") checkNotesParagraph(para, para === lastNota, error, warn);
984
1011
  else if (para.kind === "textus") checkTextParagraph(para, error, warn);
985
1012
  const gapMap = /* @__PURE__ */ new Map();
986
1013
  let letterSpacingPt = null;
@@ -1031,7 +1058,7 @@ function checkWordHtml(html) {
1031
1058
  }
1032
1059
  };
1033
1060
  }
1034
- function checkNotesParagraph(para, error, warn) {
1061
+ function checkNotesParagraph(para, last, error, warn) {
1035
1062
  const text = para.text;
1036
1063
  if (text.length === 0) {
1037
1064
  warn("Empty notes line", para.index);
@@ -1067,7 +1094,7 @@ function checkNotesParagraph(para, error, warn) {
1067
1094
  if (last?.kind !== "text" || !last.text.endsWith(NOTES_MARKER)) warn("Break marker found in an unexpected token position", para.index);
1068
1095
  else if (!beforeIsTab) error("The line-end break marker must follow a tab (the right-aligned tab stop)", para.index);
1069
1096
  }
1070
- if (/-{4,}/.test(text) && !text.endsWith(NOTES_MARKER)) warn("More than three consecutive staff dashes — staff fill dashes belong on broken lines only", para.index);
1097
+ if (/-{4,}/.test(text) && !text.endsWith(NOTES_MARKER) && !last) warn("More than three consecutive staff dashes — staff fill dashes belong on broken lines and the last line only", para.index);
1071
1098
  }
1072
1099
  function checkTextParagraph(para, error, warn) {
1073
1100
  let offset = 0;
@@ -1,5 +1,5 @@
1
- import { ChantRunKind, StyleSetName } from './guidoStyles';
2
- import { LayoutSource } from './chantLayout';
1
+ import { ChantRunKind, MarkDefinitions, StyleSetName } from './guidoStyles';
2
+ import { LayoutSource, StaffFill } from './chantLayout';
3
3
  /** The spacer character faking every horizontal gap. A custom character
4
4
  * (any non-empty string) is emitted verbatim. */
5
5
  export type SpacerChar = 'tab' | 'en' | 'em' | 'nbsp' | 'space' | (string & {});
@@ -47,8 +47,10 @@ export interface WordStyleNames {
47
47
  textusChar: string;
48
48
  }
49
49
  export interface WordExportOptions {
50
- /** Named style set from STYLE_SETS (default: BNS) */
50
+ /** Named style set (default: BNS) */
51
51
  style?: StyleSetName;
52
+ /** Marks this score adds to its style set's */
53
+ marks?: MarkDefinitions;
52
54
  /** Export all text bold, measurements included */
53
55
  bold?: boolean;
54
56
  /** Text line size in px (default 18; 13.5pt in Word) */
@@ -62,6 +64,17 @@ export interface WordExportOptions {
62
64
  maxWidthPx?: number;
63
65
  /** Dashes in a normal junction between note groups, in steps of a third (default 3) */
64
66
  junctionDashes?: number;
67
+ /** How far each staff line runs (default `all-but-last`) */
68
+ staffFill?: StaffFill;
69
+ /** With `staffFill: 'longest'`: the distance from the available width
70
+ * within which every line runs to it instead (default 0) */
71
+ staffFillSnapPx?: number;
72
+ /** Render a recitation that covers exactly 2 syllables on a line as
73
+ * plain notes of the same pitch (default true, issue #21) */
74
+ twoSyllableRecitationsToPlain?: boolean;
75
+ /** Render 3 or more syllables on one plain note with a reciting glyph
76
+ * (`1`–`9`, `ö`, `ü`) on a line as a recitation (default false) */
77
+ plainRunsToRecitation?: boolean;
65
78
  /** Text line size in pt at the DESTINATION document (default: none —
66
79
  * textPx governs). Takes precedence over textPx; notes default to
67
80
  * twice the text size (the established BNS ratio). Laying out at the
@@ -138,6 +151,10 @@ export interface WordRun {
138
151
  sizePt?: number;
139
152
  /** Resolved color literal (CSS variables already resolved) */
140
153
  color?: string;
154
+ /** Word's All Caps: the text stays as written */
155
+ allCaps?: boolean;
156
+ /** Word's Small Caps: the text stays as written */
157
+ smallCaps?: boolean;
141
158
  /** Raise above the baseline, pt */
142
159
  raisePt?: number;
143
160
  /** Set when the text has no glyph in the destination fonts: emit
@@ -168,9 +185,11 @@ export type WordTextPiece =
168
185
  type: 'run';
169
186
  run: WordRun;
170
187
  }
171
- /** The connector / line-end hyphen, plain text style */
188
+ /** The connector / line-end hyphen: plain text style, unless a `{…}`
189
+ * span runs on across it */
172
190
  | {
173
191
  type: 'dash';
192
+ run?: WordRun;
174
193
  }
175
194
  /** A word-end space, plain text style */
176
195
  | {
@@ -1,2 +1,2 @@
1
- @font-face{font-family:Book Antiqua;src:url(./fonts/bkant.ttf)format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Book Antiqua;src:url(./fonts/antquai.ttf)format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Book Antiqua;src:url(./fonts/antquab.ttf)format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Book Antiqua;src:url(./fonts/antquabi.ttf)format("truetype");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Guidohu;src:url(./fonts/guidohu.ttf)format("truetype");font-display:swap}@font-face{font-family:Liturgy;src:url(./fonts/liturgy.ttf)format("truetype");font-weight:400;font-display:swap}.guidex-render{--red:#d40000;--text:#2b2b2b;--text-h:#1a1a1a;color:var(--text);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;grid-template-columns:minmax(0,1fr);align-content:start;display:grid}.guidex-render[data-fixed-width]{min-width:max-content}@media (prefers-color-scheme:dark){.guidex-render{--red:#ff4d4d;--text:#d4cdc7;--text-h:#f5f0ea}}.guidex-render .guido{color:var(--text-h);white-space:nowrap;padding-block:.3em;font-family:Guidohu,Book Antiqua,Palatino Linotype,Palatino,Georgia,serif;font-size:200%;line-height:120%;position:relative}.guidex-render p{white-space:nowrap;margin:0;line-height:normal}.guidex-render p:first-letter{color:inherit;font-weight:inherit;float:none}.guidex-render .syl,.guidex-render .guido-break{position:relative}.guidex-render .guidex-error{color:var(--red);white-space:normal;margin:0;font:14px/1.4 Book Antiqua,Palatino Linotype,Palatino,Georgia,serif}
1
+ @font-face{font-family:Book Antiqua;src:url(./fonts/bkant.ttf)format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Book Antiqua;src:url(./fonts/antquai.ttf)format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Book Antiqua;src:url(./fonts/antquab.ttf)format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Book Antiqua;src:url(./fonts/antquabi.ttf)format("truetype");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Guidohu;src:url(./fonts/guidohu.ttf)format("truetype");font-display:swap}@font-face{font-family:Guidohu Staffless;src:url(./fonts/guidohu-staffless.woff2)format("woff2");font-display:swap}@font-face{font-family:Liturgy;src:url(./fonts/liturgy.ttf)format("truetype");font-weight:400;font-display:swap}.guidex-render{--red:#d40000;--text:#2b2b2b;--text-h:#1a1a1a;color:var(--text);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;grid-template-columns:minmax(0,1fr);align-content:start;display:grid}.guidex-render[data-fixed-width]{min-width:max-content}@media (prefers-color-scheme:dark){.guidex-render{--red:#ff4d4d;--text:#d4cdc7;--text-h:#f5f0ea}}.guidex-render .guido{color:var(--text-h);white-space:nowrap;padding-block:.3em;font-family:Guidohu,Book Antiqua,Palatino Linotype,Palatino,Georgia,serif;font-size:200%;line-height:120%;position:relative}.guidex-staff-line{background-color:var(--guidex-staff-light,currentColor)}@media (prefers-color-scheme:dark){:root:not(.light) .guidex-staff-line{background-color:var(--guidex-staff-dark,var(--guidex-staff-light,currentColor))}}:root.dark .guidex-staff-line{background-color:var(--guidex-staff-dark,var(--guidex-staff-light,currentColor))}.guidex-render p{white-space:nowrap;margin:0;line-height:normal}.guidex-render p:first-letter{color:inherit;font-weight:inherit;float:none}.guidex-render .syl,.guidex-render .guido-break{position:relative}.guidex-render .guidex-error{color:var(--red);white-space:normal;margin:0;font:14px/1.4 Book Antiqua,Palatino Linotype,Palatino,Georgia,serif}
2
2
  /*$vite$:1*/