File tree 1 file changed +4
-0
lines changed
CSharpMath.Rendering/Text
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ string BreakText(string text, string seperator = "|")
38
38
}
39
39
BreakText(@"Here are some text $1 + 12 \frac23 \sqrt4$ $$Display$$ text")
40
40
*/
41
+ /// <summary>Handle additional languages</summary>
42
+ public static List < BreakingEngine > AdditionalBreakingEngines { get ; } = new ( ) ;
41
43
public static Result < TextAtom > TextAtomFromLaTeX ( string latexSource ) {
42
44
if ( string . IsNullOrEmpty ( latexSource ) )
43
45
return new TextAtom . List ( Array . Empty < TextAtom > ( ) ) ;
@@ -54,6 +56,8 @@ public static Result<TextAtom> TextAtomFromLaTeX(string latexSource) {
54
56
BreakNumberAfterText = true ,
55
57
ThrowIfCharOutOfRange = false
56
58
} ;
59
+ foreach ( var engine in AdditionalBreakingEngines )
60
+ breaker . AddBreakingEngine ( engine ) ;
57
61
breaker . BreakWords ( latexSource ) ;
58
62
59
63
Result CheckDollarCount ( int startAt , ref int endAt , TextAtomListBuilder atoms ) {
You can’t perform that action at this time.
0 commit comments