From b86144ca84a5e702570d6accfada40a73d55dc34 Mon Sep 17 00:00:00 2001 From: Alexandre Nunes Date: Sat, 19 Sep 2020 14:16:23 -0300 Subject: [PATCH] refactor: group syntax files to single one --- .../mathml-tag-to-latex/mathml-tags/MI.ts | 3 +-- .../mathml-tag-to-latex/mathml-tags/MO.ts | 3 +-- src/syntax/index.ts | 5 +++++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 src/syntax/index.ts diff --git a/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MI.ts b/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MI.ts index c9f4740..d3bfa12 100755 --- a/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MI.ts +++ b/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MI.ts @@ -1,6 +1,5 @@ import { MathMLTag } from './MathMLTag'; -import { allMathSymbolsByChar } from '../../../../syntax/allMathSymbolsByChar'; -import { allMathSymbolsByGlyph } from '../../../../syntax/allMathSymbolsByGlyph'; +import { allMathSymbolsByChar, allMathSymbolsByGlyph } from '../../../../syntax'; export class MI extends MathMLTag { constructor(value: string, attributes: Record, children: MathMLTag[]) { diff --git a/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MO.ts b/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MO.ts index e664211..1b3ef3d 100755 --- a/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MO.ts +++ b/src/converters/mathml-interfaces-to-latex/mathml-tag-to-latex/mathml-tags/MO.ts @@ -1,6 +1,5 @@ import { MathMLTag } from './MathMLTag'; -import { allMathOperatorsByChar } from '../../../../syntax/allMathOperatorsByChar'; -import { allMathOperatorsByGlyph } from '../../../../syntax/allMathOperatorsByGlyph'; +import { allMathOperatorsByChar, allMathOperatorsByGlyph } from '../../../../syntax'; export class MO extends MathMLTag { constructor(value: string, attributes: Record, children: MathMLTag[]) { diff --git a/src/syntax/index.ts b/src/syntax/index.ts new file mode 100644 index 0000000..25e6c34 --- /dev/null +++ b/src/syntax/index.ts @@ -0,0 +1,5 @@ +export * from './allMathOperatorsByChar'; +export * from './allMathOperatorsByGlyph'; +export * from './allMathSymbolsByChar'; +export * from './allMathSymbolsByGlyph'; +export * from './latexAccents';