summaryrefslogtreecommitdiff
path: root/testdata
AgeCommit message (Collapse)AuthorFiles
2018-08-05Improve inter-version compatibilitySergey Poznyakoff1
* WikiTrans/wiki2html.py (HtmlTextNode): Use quote=False to make sure same output is obtained in Python 2.7 and 3.x * testdata/headings.html: Update
2018-08-04Add testsuite for texi translatorSergey Poznyakoff20
2018-08-02Re-implement testsuiteSergey Poznyakoff5
2018-08-01Fix wiki2textSergey Poznyakoff20
* WikiTrans/wiki2html.py (HtmlTextNode): Escape html entities * WikiTrans/wiki2text.py: Remove the format method. * testdata/headings.html: Fix. * testdata/nowiki-tag.html: Fix. * tests/test.py: Rename to tests/test-html.py * tests/test-text.py: New file. * testdata/bold.text: New file. * testdata/boldit1.text: New file. * testdata/boldit2.text: New file. * testdata/boldit3.text: New file. * testdata/colon.text: New file. * testdata/deflist.text: New file. * testdata/headings.text: New file. * testdata/hz.text: New file. * testdata/it.text: New file. * testdata/itbold1.text: New file. * testdata/itbold2.text: New file. * testdata/itbold3.text: New file. * testdata/nowiki-ind.text: New file. * testdata/nowiki-tag.text: New file. * testdata/nowiki.text: New file. * testdata/numlist.text: New file. * testdata/para.text: New file. * testdata/unlist.text: New file.
2015-07-22Major rewriteSergey Poznyakoff8
Use dedicated classes, instead of dictionaries, to represent markup tokens * WikiTrans/wikitoken.py: New file. Defines Wiki markup tokens. * WikiTrans/wikimarkup.py: Rewrite. * WikiTrans/wiki2html.py: Update. * WikiTrans/wiki2texi.py: Update. * WikiTrans/wiki2text.py: Update. * bin/wikitrans: Update
2015-07-20Fix parsing of headers. Add more tests.Sergey Poznyakoff7
* WikiTrans/wikimarkup.py (delim): Use [ \t] instead of \s. (parse0): Undo c41c19ff. * testdata/headings.html: Update. * testdata/nowiki-ind.html: New file. * testdata/nowiki-ind.wiki: New file. * testdata/nowiki-tag.html: New file. * testdata/nowiki-tag.wiki: New file. * testdata/nowiki.html: New file. * testdata/nowiki.wiki: New file. * tests/test.py: Add new files.
2015-07-16Restructure the package.Sergey Poznyakoff1
The idea is to switch from using this project as a git submodule to having it distributed via PyPI. Since the name 'wit' is already registered there, the package is renamed to 'wikitrans'. * setup.py: Use setuptools Rename package to wikitrans. * wikicvt.py: Remove. Replaced with: * bin/wikitrans: New file. * __init__.py: Move to WikiTrans/__init__.py * wiki2html.py: Move to WikiTrans/wiki2html.py * wiki2texi.py: Move to WikiTrans/wiki2texi.py * wiki2text.py: Move to WikiTrans/wiki2text.py * wikimarkup.py: Move to WikiTrans/wikimarkup.py * wikins.py: Move to WikiTrans/wikins.py * test.py: Move to tests/test.py * MANIFEST.in: New file. * README.rst: New file. * .gitignore: Update.
2015-07-14Fix processing of environments (numbered/unnumbered lists, definition lists) ↵Sergey Poznyakoff4
and indented strings. * wikimarkup.py (tokread): Always add 'continuation' key to DELIM entries. Delete whitespace following environment delimiters. (peektkn): Take an optional offset argument. (parse0): Handle indentations. * wiki2html.py (str_ind): Use <dl> to produce indentations. * wiki2texi.py (str_ind): End text with a newline. * testdata/colon.html: Update. * testdata/deflist.html: Update. * testdata/numlist.html: Update. * testdata/unlist.html: Update.
2015-07-07Handle ambiguities between italic and bold markers, add more tests.Sergey Poznyakoff17
* wikimarkup.py (tokenize): Handle the three possible ambiguities in placing italic and bold markers. Redefine unresolved markers as text. * test.py: Add new tests. * testdata/boldit1.wiki: Rewrite. * testdata/boldit2.wiki: Rewrite. * testdata/boldit3.wiki: Rewrite. * testdata/boldit4.wiki: Remove. * testdata/boldit5.wiki: Remove, * testdata/bold.html: New file. * testdata/boldit0.html: New file. * testdata/boldit1.html: New file. * testdata/boldit3.html: New file. * testdata/it.html: New file. * testdata/itbold1.html: New file. * testdata/itbold1.wiki: New file. * testdata/itbold2.html: New file. * testdata/itbold2.wiki: New file. * testdata/itbold3.html: New file. * testdata/itbold3.wiki: New file. * testdata/para.html: New file.
2015-07-05Fix most testcases.Sergey Poznyakoff7
* wikimarkup.py (envtypes): Redo as a dictionary. (ELT): New item type (BaseWikiMarkup): Fix list parsing. (parse): Comment out changes introduced by 9c42879. Must be rewritten. * wiki2html.py (HtmlWikiMarkup): Change handling of lists. * wiki2text.py: Likewise. * testdata/deflist.wiki: New testcase. * testdata/deflist.html: Likewise. * testdata/colon.html: Update. * testdata/headings.html: Update. * testdata/hz.html: Update. * testdata/numlist.html: Update. * testdata/unlist.html: Update.
2009-03-03Add two new testcases (both fail)Sergey Poznyakoff2
2009-03-03Quick & dirty fixSergey Poznyakoff1
2009-03-03Rewrite from scratch. Text conversion almost(TM) worksSergey Poznyakoff10
2008-11-26Initial commitSergey Poznyakoff15

Return to:

Send suggestions and report system problems to the System administrator.