User documentation

There are two ways to use the converter : either by using the website or the linux terminal.

Linux terminal (local conversion)

  1. Download the code.zip ;

  2. Extract code.zip ;

  3. You can either replace wp.xml by your sample or modify the Launch.bat file by changing the first line with:

    call ant -buildfile wp_to_hdoc.ant -DInputPath path_to_your_sample

  4. Lauch the Launch.bat (It will execute the wp_to_hdoc and the html_to_hdoc converter).

A wp_to_hdoc.hdoc is created in the same directory of the wp_to_hdoc converter. This latter is the wp_to_hdoc converter output file. Another one "html_to_hdoc/out/html.hdoc" is created and it is the html_to_hdoc converter output file.

Website (online conversion)

To launch the conversion from the website, follow the steps above :

  1. Go to http://tuxa.sme.utc/~nf29a014/index.html ;

  2. If you don't want to use the wp.wp file already uploaded, you can upload your own xml file exported from WordPress. Just make sure that you changed its extension to .wp ;

  3. Click on the file you have just uploaded in the "Select files" section, then click on "Convert", choose the "hdoc" format and hit "Run conversion". If the conversion is successfully done, your file will appear in the "Select files" section with the extension ".hdoc" 

To download the converted file :

  1. Click on the file ;

  2. Click on "Download" ;

  3. Click on "Download separately" (or Download .zip if you want a zipped version of the file).

Then you have to use the html_to_hdoc converter website in order to finish the conversion. The file you need to submit to this converter is "result_for_html-to-hdoc.html" included in the .hdoc you had downloaded.

Additionnal information

Please refer to the html_to_hdoc converter documentation to see how to use its online converter. The steps might be exactly the same.