Merge markups: Extend features
Now that we have a new script to marge/remove markups, we want to extend its features.
- Support multi-line markups.
- Requires a different way to read the
.tex
files. Currently the script scans one line at a time. We need to either manually acknowledge line feeds by ourselves, which could cause cross-platform troubles, or use a queue to store the text being processed.
- Requires a different way to read the
- Support nested markups.
- We need a stack (or stack array) to make the script stateful.
- Mooar braces.
- Include braces that are not
changes
markups. - Mix them with line feeds, markup braces, and other braces.
- ¿When there's a lexical error in the input file, should we report an error, or just crash the program?
- Include braces that are not
- Sort markups in the order as they show up in the text, rather than in categories.
- This helps with the queue/stack idea.
- Properly treat
%
comments.
This is an expansion/continuation of Issue #47 (closed), and calls for an example covered by Issue #49.
Edited by Yvon