8 {'actions':['print'], 'extension':'pdf', 'label': gettext('print in PDF format')}, |
8 {'actions':['print'], 'extension':'pdf', 'label': gettext('print in PDF format')}, |
9 {'actions':['export'], 'extension':'pdf', 'label': gettext('download portable object format file (.pdf)')}, |
9 {'actions':['export'], 'extension':'pdf', 'label': gettext('download portable object format file (.pdf)')}, |
10 {'actions':['export'], 'extension':'latex', 'label': gettext('download latex file (.tex)')}, |
10 {'actions':['export'], 'extension':'latex', 'label': gettext('download latex file (.tex)')}, |
11 {'actions':['export'], 'extension':'odt', 'label': gettext('download open document file (.odt)')}, |
11 {'actions':['export'], 'extension':'odt', 'label': gettext('download open document file (.odt)')}, |
12 {'actions':['export'], 'extension':'doc', 'label': gettext('download microsoft word file (.doc)')}, |
12 {'actions':['export'], 'extension':'doc', 'label': gettext('download microsoft word file (.doc)')}, |
13 {'actions':['export'], 'extension':'docx', 'label': gettext('download microsoft word 2007 file (.docx)')}, |
13 {'actions':['export'], 'extension':'docx', 'label': gettext('download microsoft word 2007 file (.docx)')} |
14 ]; |
14 ]; |
15 |
15 |
16 var pandoc_version_ary = sv_pandoc_version.split('.'); |
16 var pandoc_version_ary = sv_pandoc_version.split('.'); |
17 if (parseInt(pandoc_version_ary[0]) > 1 || (parseInt(pandoc_version_ary[0]) == 1 && parseInt(pandoc_version_ary[1]) > 8)) { |
17 if (parseInt(pandoc_version_ary[0]) > 1 || (parseInt(pandoc_version_ary[0]) == 1 && parseInt(pandoc_version_ary[1]) > 8)) { |
18 gFormats.push({'actions':['export'], 'extension':'epub', 'label': gettext('download ebook (.epub)')}); |
18 gFormats.push({'actions':['export'], 'extension':'epub', 'label': gettext('download ebook (.epub)')}); |