add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions
@@ -0,0 +1,31 @@
import * as MathspeakUtil from './mathspeak_util.js';
export function baselineVerbose(node) {
const baseline = MathspeakUtil.baselineVerbose(node);
baseline[0].speech = baseline[0].speech.replace(/-$/, '');
return baseline;
}
export function baselineBrief(node) {
const baseline = MathspeakUtil.baselineBrief(node);
baseline[0].speech = baseline[0].speech.replace(/-$/, '');
return baseline;
}
export function leftSuperscriptVerbose(node) {
const leftIndex = MathspeakUtil.superscriptVerbose(node);
leftIndex[0].speech = leftIndex[0].speech.replace(/^exposant/, 'exposant gauche');
return leftIndex;
}
export function leftSubscriptVerbose(node) {
const leftIndex = MathspeakUtil.subscriptVerbose(node);
leftIndex[0].speech = leftIndex[0].speech.replace(/^indice/, 'indice gauche');
return leftIndex;
}
export function leftSuperscriptBrief(node) {
const leftIndex = MathspeakUtil.superscriptBrief(node);
leftIndex[0].speech = leftIndex[0].speech.replace(/^sup/, 'sup gauche');
return leftIndex;
}
export function leftSubscriptBrief(node) {
const leftIndex = MathspeakUtil.subscriptBrief(node);
leftIndex[0].speech = leftIndex[0].speech.replace(/^sub/, 'sub gauche');
return leftIndex;
}