Skip to content

Commit

Permalink
#56 - Documented additional Docverter file types
Browse files Browse the repository at this point in the history
  • Loading branch information
stackpr committed Nov 30, 2016
1 parent 07f3dd6 commit ad8591b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
49 changes: 26 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,29 @@ This table shows the number of converters configured by default between file ext

fileconverter list extension-table

source | dbk | docx | eml | epub | epub3 | fb2 | html | jpg | man | md | odt | opml | pdf | pdf/grayscale | ps | rtf | txt
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
bib | | | | | | | | | | | | | 1 | | | |
dbk | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | | | 1 | 1
doc | | | | | | | | | | | | | 1 | | | | 1
html | 1 | 1 | 1 | 1 | 1 | 1 | 3 | 1 | 1 | 1 | 1 | 1 | 9 | | | 1 | 1
jpg | | | | | | | | 1 | | | | | | | | |
ltx | | | | | | | | | | | | | 1 | | | |
md | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | | | 1 | 1
opml | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | | | 1 | 1
pdb | | | | | | | | | | | | | 1 | | | |
pdf | | | | | | | | 1 | | | | | 1 | 1 | | |
ps | | | | | | | | | | | | | 1 | | | |
psw | | | | | | | | | | | | | 1 | | | |
rst | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | | | 1 | 1
rtf | | | | | | | | | | | | | 4 | | 2 | |
sdw | | | | | | | | | | | | | 1 | | | |
sxw | | | | | | | | | | | | | 1 | | | |
tex | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | | | 1 | 1
textile | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | | | 1 | 1
txt | 1 | 1 | | 1 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 2 | | | 1 | 1
vor | | | | | | | | | | | | | 1 | | | |
wiki | 1 | 1 | | 1 | 1 | 1 | 2 | | 1 | 2 | 1 | 1 | 1 | | | 1 | 1
source | asciidoc | context | dbk | docbook | docx | eml | epub | epub3 | fb2 | html | jpg | latex | man | markdown | md | mediawiki | mobi | odt | opml | org | pdf | pdf/grayscale | ps | rtf | texinfo | textile | txt
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
bib | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
dbk | | | 1 | | 1 | | 1 | 1 | 1 | 1 | | | 1 | | 1 | | | 1 | 1 | | 1 | | | 1 | | | 1
doc | | | | | | | | | | | | | | | | | | | | | 1 | | | | | | 1
docbook | 1 | 1 | | 1 | 1 | | 1 | | | 1 | | 1 | | 1 | | 1 | 1 | | | 1 | 1 | | | 1 | 1 | 1 |
html | 1 | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 1 | 4 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 9 | | | 2 | 1 | 1 | 1
jpg | | | | | | | | | | | 1 | | | | | | | | | | | | | | | |
latex | 1 | 1 | | 1 | 1 | | 1 | | | 1 | | 1 | | 1 | | 1 | 1 | | | 1 | 1 | | | 1 | 1 | 1 |
ltx | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
markdown | 1 | 1 | | 1 | 1 | | 1 | | | 1 | | 1 | | 1 | | 1 | 1 | | | 1 | 1 | | | 1 | 1 | 1 |
md | | | 1 | | 1 | | 1 | 1 | 1 | 1 | | | 1 | | 1 | | | 1 | 1 | | 1 | | | 1 | | | 1
opml | | | 1 | | 1 | | 1 | 1 | 1 | 1 | | | 1 | | 1 | | | 1 | 1 | | 1 | | | 1 | | | 1
pdb | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
pdf | | | | | | | | | | | 1 | | | | | | | | | | 1 | 1 | | | | |
ps | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
psw | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
rst | 1 | 1 | 1 | 1 | 2 | | 2 | 1 | 1 | 2 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | | | 2 | 1 | 1 | 1
rtf | | | | | | | | | | | | | | | | | | | | | 4 | | 2 | | | |
sdw | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
sxw | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
tex | | | 1 | | 1 | | 1 | 1 | 1 | 1 | | | 1 | | 1 | | | 1 | 1 | | 1 | | | 1 | | | 1
textile | 1 | 1 | 1 | 1 | 2 | | 2 | 1 | 1 | 2 | | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | | | 2 | 1 | 1 | 1
txt | | | 1 | | 1 | | 1 | 1 | 1 | 1 | | | 1 | | 1 | | | 1 | 1 | | 2 | | | 1 | | | 1
vor | | | | | | | | | | | | | | | | | | | | | 1 | | | | | |
wiki | | | 1 | | 1 | | 1 | 1 | 1 | 2 | | | 1 | | 2 | | | 1 | 1 | | 1 | | | 1 | | | 1
12 changes: 7 additions & 5 deletions src/Configuration/ConfigurationDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function __construct(&$settings) {
$lsb = trim(`which lsb_release`);
if ($lsb !== '') {
$lsb = escapeshellarg($lsb);
$settings['operating_system'] = trim(`$lsb -is`);
$settings['operating_system_version'] = trim(`$lsb -rs`);
$settings['operating_system'] = trim(`$lsb -is`);
$settings['operating_system_version'] = trim(`$lsb -rs`);
}
}
elseif ($settings['operating_system'] === 'Windows NT') {
Expand Down Expand Up @@ -76,9 +76,6 @@ public function __construct(&$settings) {
'xhtml2pdf:default' => array(
'#engine' => 'Convert\\Xhtml2Pdf',
),
'docverter:default' => array(
'#engine' => 'Convert\\Docverter',
),
'mpdf:default' => array(
'#engine' => 'Convert\\Mpdf',
),
Expand All @@ -104,6 +101,11 @@ public function __construct(&$settings) {
'chain' => 'wiki->html->md',
),
),
'(html|markdown|textile|rst|docbook|latex)->(pdf|markdown|html|latex|context|mediawiki|textile|org|texinfo|docbook|docx|epub|mobi|asciidoc|rtf)' => array(
'docverter:default' => array(
'#engine' => 'Convert\\Docverter',
),
),
'(html|txt|md|rst|dbk|textile|opml|tex|wiki)->(pdf|html|docx|odt|dbk|md|txt|opml|rtf|epub|epub3|fb2|man)' => array(
'pandoc:default' => array(
'#engine' => 'Convert\\Pandoc',
Expand Down

0 comments on commit ad8591b

Please sign in to comment.