Wiki2ODT creates from the Wiki source e.g. in Wikiversity or Wikipedia an LibreOffice Document that can be edited.
- download the Wiki Source in an AppLSAC-0 (WebApp with a client side converter in the browser) with wtf_fetch.
- load an ODT template/raw ODT file that defines the layout of the final product. ODT are ZIP files that can be handled with JSZip in an AppLSAC-0.
- convert the source with `wtf_wikipedia` (ToDo: HTML exported exists - ODF output format must be implemented)
- Provide a file output from the browser as an emulated download with FileSaver.js by Eli Grey.
Objective of Learning ResourceEdit
This learning resource focuses on the technical background of ODT generation from Wiki documents. The technical infrastructure supports learning tasks, in which the learner extend an given document with individuals results of the learning progress (e.g. add a snapshot of the learning result, fill a given table with data or create a report of exploration of a specific location (e.g. see Real World Lab). These individual comments and contributions are not meant to be shared on Wikiversity. The document is a private product on the learner and is created on the client computer or mobile device only. To accomplish this goal and respect the privacy of the learner, the given raw document in Wikiversity for a learning task is converted into an ODT document that allows client-side editing, saving and opening of the document without the need to submit the private documents to a server (see also AppLSAC).
This learning resource is about the foundations to create such a WebApp as Wiki Converter for LibreOffice documents. If the HTML5 WebApp is implemented it a allows a client side conversion of Wiki markdown sources into LibreOffice documents.
- first step is already implemented with wtf_fetch
- as parsers into an Abstract Syntax Tree (AST) wtf_wikipedia by Spencer Kelly is available, but it produces currently
- plain text,
- Markdown and
- as output. It is recommended to analyse the syntax of converting files with PanDoc/Try and learn about compilation of text documents.
- AppLSAC - client-side WebApps that use the browser as run-time environment without the need to submit edited documents to remote server (privacy for the learner and his/her created documents).
- Abstract Syntax Tree - representation of documents in an AST
- https://pandoc.org/try/ and https://pandoc.org
- wtf_wikipedia by Spencer Kelly for client side converting of Wiki markdown articles
- Multiformat Export with mediawiki2latex PDF-, LaTeX- and ODT- LibreOffice-Export Wiki Article Collections
- ↑ Spencer Kelly, et. al. (2020) wtf_wikipedia - client side Wiki Markdown processing - GitHub Repository - URL: https://github.com/spencermountain/wtf_wikipedia (accessed 2021/01/05)