
I love to use pandoc to convert files.
I have found a way to convert Microsoft Word files to a DocBook format that Paligo accepts, although it does leave a lot to be desired.
Bugs that I'm aware of:
- Numbered list entries all have '1' as number
- Images are not imported (no big surprise here, perhaps)
Requirements:
- MS Word
- pandoc
- Web browser
Please feel free to improve on this:
-
Open the HTML that you want to copy in a browser.
-
Select all that you want to copy.
-
Ctrl+C.
-
Open MS Word.
-
Create a new document.
-
Ctrl+V.
-
Save the document in the .docx format. Pick a file name without space characters.
-
Open pandoc.
-
In the folder where you have saved the .docx file, enter:
pandoc -f docx -t docbook -o newfile.dbk --standalone wordfile.docx
Note: swap 'wordfile.docx' for the name of your file.
-
Hit your enter button.
Pandoc has now created the newfile.dbk file.
-
Rename the file to 'newfile.xml'.
-
Compress it to .zip.
-
Open Paligo.
-
Pick a location where you want to import the file.
-
Hover your mouse over the location and select the ellipsis.
-
Select Import content.
-
Select Docbook 4 (.xml).
-
Select Select file and the file that you compressed in step 12.
-
Select OK.
The contents are now imported into a publication. In other words, only a publication will exists and contain content.