unfoldingWord-dev / Door43

old dokuwiki site
GNU General Public License v2.0
6 stars 11 forks source link

OBS ODT and DOCX #246

Closed jag3773 closed 8 years ago

jag3773 commented 9 years ago

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.

jag3773 commented 9 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

jag3773 commented 9 years ago

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

jag3773 commented 9 years ago

This should be a bash script where I can pass in a language code and the script will generate the ODT and DOCX files.