enrich_attr.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930
  1. import { SemanticNode } from '../semantic_tree/semantic_node.js';
  2. export declare enum Attribute {
  3. ADDED = "data-semantic-added",
  4. ALTERNATIVE = "data-semantic-alternative",
  5. CHILDREN = "data-semantic-children",
  6. COLLAPSED = "data-semantic-collapsed",
  7. CONTENT = "data-semantic-content",
  8. EMBELLISHED = "data-semantic-embellished",
  9. FENCEPOINTER = "data-semantic-fencepointer",
  10. FONT = "data-semantic-font",
  11. ID = "data-semantic-id",
  12. ANNOTATION = "data-semantic-annotation",
  13. ATTRIBUTES = "data-semantic-attributes",
  14. OPERATOR = "data-semantic-operator",
  15. OWNS = "data-semantic-owns",
  16. PARENT = "data-semantic-parent",
  17. POSTFIX = "data-semantic-postfix",
  18. PREFIX = "data-semantic-prefix",
  19. ROLE = "data-semantic-role",
  20. SPEECH = "data-semantic-speech",
  21. STRUCTURE = "data-semantic-structure",
  22. SUMMARY = "data-semantic-summary",
  23. TYPE = "data-semantic-type"
  24. }
  25. export declare const EnrichAttributes: string[];
  26. export declare function makeIdList(nodes: SemanticNode[]): string;
  27. export declare function setAttributes(mml: Element, semantic: SemanticNode): void;
  28. export declare function removeAttributePrefix(mml: string): string;
  29. export declare function addPrefix(attr: string): Attribute;
  30. export declare function addMrow(): Element;