Closed jag3773 closed 8 years ago
From @phillip-hopper:
https://door43.org/lib/exe/ajax.php?call=download_obs_template_docx&lang=en&img=1&draft=1
lang => the language/namespace code
img => 1 to include images, 0 to exclude
draft => 1 to use the text from door43, 0 to use the API text
Thus, the correct URL to hit should be added into the OBS publish script: https://github.com/unfoldingWord-dev/tools/blob/master/uw/publish.sh
Correct command here is something like:
curl "https://door43.org/lib/exe/ajax.php?call=download_obs_template_docx&lang=en&img=1&draft=0" > output.docx
This should be a bash script where I can pass in a language code and the script will generate the ODT and DOCX files.
For every language that is published, we need to get the DOCX and ODT files created. The OBS publish script does reference an ODT creator: https://github.com/unfoldingWord-dev/tools/blob/master/uw/publish.sh.
We need to review and verify that the appropriate scripts to create these (see obs/book/odt_export.sh and obs/book/docx_export.sh) are functional and get them integrated into the main publishing script.
Note that unfoldingWord/unfoldingWord.github.io#80 is waiting on this.
Note also that @phillip-hopper's DOCX OBS Get Template exporter thingy should be the format used for the DOCX files.