Skip to content

Commit e08a949

Browse files
committed
Release v2.1.1
- expanded unit tests - removed function-less code
1 parent c85f568 commit e08a949

14 files changed

Lines changed: 103 additions & 16 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The custom equations dialog with categories tree
9393
## Known Problems
9494

9595
- A minor problem is a missing update of the language of the data grid paging bar in the *Custom Equations* dialog. This only appears during language change during an actual activation of the dialog.
96-
- The persistence of custom equations can be damaged when an filter is active.
96+
- The persistence of custom equations can be damaged when a filter is active.
9797

9898
## Release Notes
9999

@@ -102,6 +102,7 @@ The custom equations dialog with categories tree
102102
- Removed function-less code.
103103
- Minor bug fixes.
104104
- Added unit tests (still under development).
105+
- MathJax list replaced by a supported Katex functions link.
105106

106107
### 2.1.0
107108

src/assets/formulas/f_SUM_PROD_SYMBOLS.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<tr>
2222
<td colspan=2><a href="#" class=s latex="\sum_{\substack{0 \le i \le m \\ 0 \lt j \lt n}} P(i, j) ">$\sum_{\substack{0 \le i \le m \\ 0 \lt j \lt n}} P(i, j)$</a></td>
2323
<td colspan=2>
24-
<!-- NOT SUPPORTED BY KATEX
25-
<a href="#" class=s latex="\sideset{_{*\,}^{*\,}}{_{*}^{*}}{\prod} " style=padding-bottom:25px>$\sideset{_{*}^{*}}{_{*}^{*}}{\prod}$</a>
26-
-->
24+
<!-- NOT SUPPORTED BY KATEX
25+
<a href="#" class=s latex="\sideset{_{*\,}^{*\,}}{_{*}^{*}}{\prod} " style=padding-bottom:25px>$\sideset{_{*}^{*}}{_{*}^{*}}{\prod}$</a>
26+
-->
2727
</td>
2828
</tr>
2929
</table>

src/assets/information/tVERSION.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
</p>
1010
<table class="inline-table">
1111

12+
<tr>
13+
<td valign=top>
14+
<b>2.1.1&nbsp;&nbsp;</b>
15+
</td>
16+
<td>
17+
&raquo; Conversion of Javascript code to Typescript.
18+
<br/> &raquo; Introduced dependency injection framework InversifyJS.
19+
<br/> &raquo; Expanded unit tests.
20+
<br/>
21+
<br/> Removed function-less code, no added functionality so far.
22+
<br/>
23+
</td>
24+
</tr>
25+
1226
<tr>
1327
<td valign=top>
1428
<b>2.0.1&nbsp;&nbsp;</b>

src/assets/js/dialog.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ class Documentations {
6161
file: "mathml.pdf",
6262
url: "https://www.w3.org/TR/MathML2/mathml-s.pdf",
6363
name: "wMATH_ML_SPECIFICATIONS"
64+
},
65+
KATEX: {
66+
file: "",
67+
url: "https://katex.org/docs/supported",
68+
name: "wKATEX_FUNCTIONS"
6469
}
6570
};
6671

@@ -96,6 +101,10 @@ class Documentations {
96101
return this.showWindow('MATHML');
97102
}
98103

104+
showKatexFunctions() {
105+
return this.showWindow('KATEX');
106+
}
107+
99108
getUrl(key: string) {
100109
let info = this.baseInfo[key];
101110
return this.runLocal ? (this.baseLocation + 'doc/' + info.file) : info.url;
@@ -323,9 +332,12 @@ export class KatexInputHelper implements IKatexInputHelper {
323332
await this.localizer.initialiseLanguageChoice(this.localType); // Progress dialog uses localized text
324333

325334
$.messager.progress({
326-
title: "VisualMathEditor",
335+
title: "Katex Input Helper",
327336
text: vme.getLocalText("WAIT_FOR_EDITOR_DOWNLOAD"),
328-
msg: "<center>&copy; <a href='mailto:contact@equatheque.com?subject=VisualMathEditor' target='_blank' class='bt' >David Grima</a> - <a href='http://www.equatheque.net' target='_blank' class='bt' >EquaThEque</a><br/><br/></center>",
337+
msg: "<center>&copy; " +
338+
"<a href='mailto:juergen@habelt-jena.de?subject=Katex%20Input%20Helper' target='_blank' class='bt' >Jürgen Habelt</a> -" +
339+
"<a href='https://github.com/Mick2nd/Katex-Input-Helper' target='_blank' class='bt' >A Joplin plug-in</a><br/><br/>" +
340+
"</center>",
329341
interval: 300
330342
});
331343
$('#form').hide();
@@ -510,7 +522,7 @@ export class KatexInputHelper implements IKatexInputHelper {
510522
//case "mMATH_ML": vme.viewMathML(vme.mathVisualOutput.id); break;
511523
// TODO: complete transfer of functionality to Panels
512524
case "mUNICODES_LIST": await vme.panels.showWindowDI(unicodeWindowId, 'wUNICODES_LIST', vme.initialiseSymbolContent.bind(vme)); break;
513-
case "mLATEX_CODES_LIST": await vme.openWindow('wLATEX_CODES_LIST'); await vme.initialiseLatexMathjaxCodesList(); break;
525+
case "mLATEX_CODES_LIST": vme.documentations.showKatexFunctions(); break;
514526
case "mLANG_RESSOURCE_LIST": await vme.openWindow('wLANGUAGE_LIST'); await vme.initialiseLangRessourcesList(); break;
515527
case "mLATEX_DOCUMENTATION": vme.documentations.showLatexDocumentation(); break;
516528
case "mMHCHEM_DOCUMENTATION": vme.documentations.showMhchemDocumentation(); break;

src/assets/js/localization/ar/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ERROR_SET_EQUATION": "لم يتم نداء المحرر بواسطة حقل خارجي.",
3131
"MATH_ML": "و MathML مصدر",
3232
"UNICODES_LIST": "قائمة ترميز يونيكود",
33-
"LATEX_CODES_LIST": "قائمة ترميز LaTeX MathJax",
33+
"LATEX_CODES_LIST": "وظائف KaTeX المدعومة",
3434
"ASCIIMATH_CODES_LIST": "قائمة ترميز AsciiMath",
3535
"LANGUAGE_LIST": "الموارد اللغوية",
3636
"ASCIIMATH_SYMBOLS": "رموز AsciiMath!",

src/assets/js/localization/de_DE/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ERROR_SET_EQUATION": "Der Editor nicht durch ein externes Feld genannt.",
3131
"MATH_ML": "MathML Übersetzung",
3232
"UNICODES_LIST": "Liste der Unicode Codes",
33-
"LATEX_CODES_LIST": "Liste der MathJax LaTeX Codes",
33+
"LATEX_CODES_LIST": "Unterstützte KaTeX Funktionen",
3434
"ASCIIMATH_CODES_LIST": "Liste der AsciiMath Codes",
3535
"LANGUAGE_LIST": "Sprachressourcen",
3636
"ASCIIMATH_SYMBOLS": "AsciiMath Symbole!",

src/assets/js/localization/en_US/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ERROR_SET_EQUATION": "The editor has not been called by an external field.",
3131
"MATH_ML": "MathML translation",
3232
"UNICODES_LIST": "List of Unicode codes",
33-
"LATEX_CODES_LIST": "List of MathJax LaTeX codes",
33+
"LATEX_CODES_LIST": "Supported KaTeX functions",
3434
"ASCIIMATH_CODES_LIST": "List of AsciiMath codes",
3535
"LANGUAGE_LIST": "Language resources",
3636
"ASCIIMATH_SYMBOLS": "AsciiMath symbols!",

src/assets/js/localization/es_ES/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ERROR_SET_EQUATION": "El editor no ha sido llamado por un campo externo.",
3131
"MATH_ML": "Traducción MathML",
3232
"UNICODES_LIST": "Lista de códigos de Unicode",
33-
"LATEX_CODES_LIST": "Lista de códigos de LaTeX MathJax",
33+
"LATEX_CODES_LIST": "Funciones KaTeX compatibles",
3434
"ASCIIMATH_CODES_LIST": "Lista de códigos de ASCIIMath",
3535
"LANGUAGE_LIST": "Los recursos lingüísticos",
3636
"ASCIIMATH_SYMBOLS": "Símbolos ASCIIMath!",

src/assets/js/localization/fr_FR/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ERROR_SET_EQUATION": "L'éditeur n'a pas été appelé par un champ externe.",
3131
"MATH_ML": "Source MathML",
3232
"UNICODES_LIST": "Liste des codes Unicode",
33-
"LATEX_CODES_LIST": "Liste des codes MathJax LaTeX",
33+
"LATEX_CODES_LIST": "Fonctions KaTeX prises en charge",
3434
"ASCIIMATH_CODES_LIST": "Liste des codes AsciiMath",
3535
"LANGUAGE_LIST": "Ressources linguistiques",
3636
"ASCIIMATH_SYMBOLS": "symboles AsciiMath !",

src/assets/js/localization/ru/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ERROR_SET_EQUATION": "Редактор не был вызван внешним полем.",
3131
"MATH_ML": "MathML перевод",
3232
"UNICODES_LIST": "Список символов Unicode",
33-
"LATEX_CODES_LIST": "Список кодов MathJax LaTeX",
33+
"LATEX_CODES_LIST": "Поддерживаемые функции KaTeX",
3434
"ASCIIMATH_CODES_LIST": "Список кодов AsciiMath",
3535
"ASCIIMATH_SYMBOLS": "AsciiMath символов!",
3636
"LANGUAGE_LIST": "Лингвистические ресурсы",

0 commit comments

Comments
 (0)