DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:htmltowiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:htmltowiki [2014-12-23 12:50] – [Convert HTML to DokuWiki] 213.185.164.117tips:htmltowiki [2017-09-27 22:25] (current) Aleksandr
Line 3: Line 3:
 An idea for converting existing documents to text files with [[:DokuWiki]] [[:wiki:syntax]] using an HTML to Text converter.  I've set up a config file for the tool available at http://www.mbayer.de/html2text/ which produces some usable results: {{wiki:text2html.rc}}. An idea for converting existing documents to text files with [[:DokuWiki]] [[:wiki:syntax]] using an HTML to Text converter.  I've set up a config file for the tool available at http://www.mbayer.de/html2text/ which produces some usable results: {{wiki:text2html.rc}}.
  
-Thomas J. Messenger made a Perl module to convert HTML to DokuWiki's syntax available at http://www.citlink.net/~messengertj/ FIXME (see [[bug>81]], too)+  * Thomas J. Messenger made a Perl module to convert HTML to DokuWiki's syntax available at http://www.citlink.net/~messengertj/ FIXME (see [[bug>81]], too)
  
-Or the one at CPAN: http://search.cpan.org/~diberri/HTML-WikiConverter-0.68/lib/HTML/WikiConverter.pm+  * Or the one at CPAN: http://search.cpan.org/~diberri/HTML-WikiConverter-0.68/lib/HTML/WikiConverter.pm 
 +  
 +  * Online HTML to wiki converters (based on WikiConverter?) (paste HTML or fetch URL): 
 +    * [[http://tools.wmflabs.org/magnustools/html2wiki.php|HTML2Wiki Converter]] - Convert HTML text to wiki markup (This is a slightly altered mirror of a script by Borislav Manolov) 
 +  
 +  * A Converter Tool (HTML -> DokuWiki, UTF8, Tablespacing) [[http://runtimebasic.net/Projekt:WikiTool|WikiTool]] (in German)
  
-Online HTML to wiki converters (based on WikiConverter?(paste HTML or fetch URL): +  * **Pandoc:**  
-  * [[http://openfacts2.berlios.de/html2wiki/|HTML::WikiConverter]] FIXME Convert HTML text to wiki markup+    * Webinterface: http://johnmacfarlane.net/pandoc/try/ (Pandoc includes a Haskell library and a standalone command-line program.
 +    Starting in [[http://pandoc.org/releases.html#pandoc-1.13-15-august-2014|version 1.13]], pandoc suports DokuWiki output. Example: <code>pandoc -s -r html https://www.dokuwiki.org/tips:htmltowiki -t dokuwiki > tips.txt</code>
  
-A Converter Tool (HTML>DokuWiki, UTF8, Tablespacing) [[http://runtimebasic.net/Projekt:WikiTool|WikiTool]] 
- 
-**Pandoc:** Webinterface: http://johnmacfarlane.net/pandoc/try/ (Pandoc includes a Haskell library and a standalone command-line program.) 
 ===== Html2DokuWiki Converter GUI for Win32 ===== ===== Html2DokuWiki Converter GUI for Win32 =====
  
Line 32: Line 35:
   * **<DEL>** -> ''<del>''   * **<DEL>** -> ''<del>''
   * **<DL>, <DT>, and <DD>** -> Simulate output as simple unnumbered lists with ''<DT>'' as bold.   * **<DL>, <DT>, and <DD>** -> Simulate output as simple unnumbered lists with ''<DT>'' as bold.
-  * **<H1>** ... **<H5>** -> ''======'' to ''==''+  * **<H1>** ... **<H5>** -> ''%%======%%'' to ''%%==%%''
   * **<I>** -> ''%%//%%''   * **<I>** -> ''%%//%%''
   * **<IMG>** -> images   * **<IMG>** -> images
Line 59: Line 62:
   * Support for alignment in table cells and rows.   * Support for alignment in table cells and rows.
   * Image properties are converted, including alignment, width, and height.   * Image properties are converted, including alignment, width, and height.
-  * Formatting is only applied where accepted by DokuWiki, but not to ''=== ... ==='' and ''<code> ... </code>'', for example.+  * Formatting is only applied where accepted by DokuWiki, but not to ''%%=== ... ===%%'' and ''%%<code> ... </code>%%'', for example.
   * Full Unicode support, with optional UTF-8 input or output encoding.   * Full Unicode support, with optional UTF-8 input or output encoding.
   * Option to hide links from DokuWiki syntax.   * Option to hide links from DokuWiki syntax.
  
-** Author, Contact, and Development **+**Author, Contact, and Development**
  
 Html2DokuWiki is developed by Ralf Junker. You can contact the author via the [[http://www.freelists.org/list/yunqa|Yunqa mailing list]]. Feel free to report praise, bugs, or suggestions about Html2DokuWiki. Html2DokuWiki is developed by Ralf Junker. You can contact the author via the [[http://www.freelists.org/list/yunqa|Yunqa mailing list]]. Feel free to report praise, bugs, or suggestions about Html2DokuWiki.
Line 69: Line 72:
 The converter might also be available as a software library (*.DLL, *.DCU, or Delphi source code). Please get in touch if interested. The converter might also be available as a software library (*.DLL, *.DCU, or Delphi source code). Please get in touch if interested.
  
-** Version History **+**Version History**
  
 // 2007-08-27 // // 2007-08-27 //
Line 92: Line 95:
  
 ===== Workflow Microsoft Word 2 DokuWiki using html2wiki-GUI ===== ===== Workflow Microsoft Word 2 DokuWiki using html2wiki-GUI =====
 +
 I was looking for a way to convert about 150 DOC-files (Microsoft Word2000 or 2003) in our new wiki without too much hassle. I was looking for a way to convert about 150 DOC-files (Microsoft Word2000 or 2003) in our new wiki without too much hassle.
 +
 The macros available didn't work for me. The macros available didn't work for me.
  
Line 111: Line 116:
  
 -> This is still the fastest and most reliable way (2014/09/24 by josh) -> This is still the fastest and most reliable way (2014/09/24 by josh)
 +
 +===== Create HTML in Microsoft Word 2007+ for DokuWiki =====
 +  * Open/Compose Word document
 +  * Click Save As
 +  * Choose **Web Page Filtered** for the Save As Type
 +  * Open the HTML page in a text editor
 +  * Copy all HTML code
 +  * Paste into appropriate place on the wiki page
 +  * if needed change the html tag from ''<html xmlns:n...>'' to simple ''<html>... </html>''
 +
 +-> (2015/05/15 by qtrolazyg)
 +
 +> :!: This will only work if the [[config:htmlok]] config setting was enabled. But that opens up a huge **security risk**. So, please **use this approach only in closed wikis**! Apart from that, the HTML that Word creates is awful... --- [[user>ach|Anika Henke]] //2015-03-15 18:42//
tips/htmltowiki.1419335442.txt.gz · Last modified: 2014-12-23 12:50 by 213.185.164.117

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki