Skip to content

Commit

Permalink
Merge pull request #731 from Speech-Rule-Engine/euro_braille
Browse files Browse the repository at this point in the history
Euro braille
  • Loading branch information
zorkow authored Sep 26, 2023
2 parents 572f069 + 6c73d52 commit 6dcdc1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sre-tests
Submodule sre-tests updated 298 files
4 changes: 2 additions & 2 deletions ts/semantic_tree/semantic_mathml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ export class SemanticMathml extends SemanticAbstractParser<Element> {
);
// TODO (Euro): This should be safed earlier together with other attributes,
// before processing is even called!
if (mml.hasAttribute('latex')) {
SemanticMap.LatexCommands.set(mml.getAttribute('latex'), mml.textContent);
if (mml.hasAttribute('data-latex')) {
SemanticMap.LatexCommands.set(mml.getAttribute('data-latex'), mml.textContent);
}
return node;
}
Expand Down
2 changes: 1 addition & 1 deletion ts/semantic_tree/semantic_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function addAttributes(to: SemanticNode, from: Element) {
if (key.match(/texclass$/)) {
to.attributes['texclass'] = attrs[i].value;
}
if (key.toLowerCase() === 'latex') {
if (key.toLowerCase() === 'data-latex') {
to.attributes['latex'] = attrs[i].value;
}
if (key === 'href') {
Expand Down

0 comments on commit 6dcdc1b

Please sign in to comment.