Offline wiki: Issues in parsing and converting
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
The programs wikiget and wikiconvert are very useful tools to create an offline version or snapshots of the wiki. At the moment, however, there are some issues:
(1) After opening the converted html files in a browser, the entire page behaves like a hyperlink: it has the color defined in the css file for the "a" tags, and reacts upon mouse-over. This is caused by incorrect coding of the hyperlinks between table-of-contents and chapter headers. The attached patch "wikiconvert-a-id" fixes this issue.
(2) Table header cells are not reckognized as such, but used as normal table cells instead. This is fixed in patch "wikiparser-th".
(3) Links to positions in the same document and to other wiki documents are not working.
(4) wiki phrases such as {{MantisLink|...}} or {{Note|...}} are not reckognized.
I'll submit patch for (3) and (4) (and probably some more issues) after these first two patches are applied.
Steps to reproduce:
- Navigate to components/wiki in the Lazarus installation.
- Compile the programs wikiget and wikiconvert.
- To see the issues download a wikipage (e.g. the one of FPSpreadsheet) by calling
wikiget --page=FPSpreadsheet
- Then convert it to html:
wikiconvert --format=html --css=chm\wiki.css wikixml\*.xml
- Open the generated FPSpreadsheet.s00.html file from folder html.
Mantis conversion info:
- Mantis ID: 28274
- Version: 1.5 (SVN)