speech_generator.d.ts 763 B

123456789101112131415161718
  1. import { Attribute } from '../enrich_mathml/enrich_attr.js';
  2. import { AxisMap } from '../rule_engine/dynamic_cstr.js';
  3. import { RebuildStree } from '../walker/rebuild_stree.js';
  4. export interface SpeechGenerator {
  5. modality: Attribute;
  6. getSpeech(node: Element, xml: Element, root?: Element): string;
  7. generateSpeech(node: Element, xml: Element): string;
  8. getRebuilt(): RebuildStree;
  9. setRebuilt(rebuilt: RebuildStree): void;
  10. computeRebuilt(xml: Element, force?: boolean): RebuildStree;
  11. setOptions(options: AxisMap): void;
  12. setOption(key: string, value: string): void;
  13. getOptions(): AxisMap;
  14. nextRules(): void;
  15. nextStyle(id: string): void;
  16. getActionable(actionable: number): string;
  17. getLevel(depth: string): string;
  18. }