w2l is thought to elaborate wiki pages which do not contain LaTeX code. Now, in wikifm.org we use LaTeX code: this generates lots of bugs. Fortunately all LaTeX code is used inside specific tags:
- \begin{equation} <-> \end{equation}
- \begin{environ} <-> \end{environ} with environ = multiline, gather, array, align.
- $$ <-> $$
- <math> <-> </math> (for inline code)
- others??
Our purpose is, simply, to avoid w2l to run on this code and copy and paste it, as it is, in the .tex file.
The idea is to mask LaTeX code before the Parser acts on it, in this way contents will be skipped by the other functions.
Why LaTeX text in a wiki page? Because of MathJax (mediawiki extension).
- The Namespace LaTeX is undefined, can it be useful? User can define templates.
- The documentation comments are used also to signal relevant parts of code which need corrections.
- [CSS] '#w2lFmFormer' is the id of the form in the w2llatexform page and '.w2lLogOutput' is the class of the textareas in the onpdf page.
- Translate w2l messages in w2lMessages.php, translate in italian and restore english.
- look at code:other things @todo are here.
- Mediawiki TOC is simply ignored by w2l, what to do?
- Check links.
- FIX $this->addSimpleReplace("...","{\dots}") in w2lParser::initParsing() & w2lPserse::doSpecialChars()
- Check messages...there is the need for a strong code rearrangement.
- FIXED verbatim before heading makes heading recognition fails. (preProcessing removed extra \n)
- FIXED asterisk substitution
- maskLatexCommandChars: is str_replace correct??
- maybe the 'insert_includeonly' and 'leave_noinclude' config values should be user defined, now their values are defined in the class itself.
- FIXED HORRIBLE HACK in Wiki2LaTeXParser::doCurlyBraces() fix it.
- If you want to handle noinclude, includeonly, onlyinclude give a look at w2lParser::preprocessString();
- FIXED(now an empty space is left bewteen dollars)open and close will produce $$, which is interpreted by LaTeX
- FIXED LaTeX code in transcluded page is handled correctly.
- act like other LaTeX code inside a wiki page for \begin{multline} \begin{align}