3 # RST_COMMAND="rst2xml.py --strip-comments --trim-footnote-reference-space"
4 # TEST_COMMAND="docutils_to_fo.sh --noclean --format --valid --pdf --test --strict"
6 files
=`find functional\
7 \! -name 'standard.txt'\
8 \! -name 'standalone_rst_html4css1.txt'\
9 \! -name 'dangerous.txt'\
10 \! -name 'custom_roles.txt'\
11 \! -name 'custom_roles_latex.txt'\
12 \! -name 'standalone_rst_latex.txt'\
13 \! -name 'standalone_rst_pseudoxml.txt'\
14 \! -name 'standalone_rst_s5_html.txt'\
16 \! -name 'list_table.txt'\
17 \! -name 'list_table.txt'\
18 \! -name 'header_footer.txt'\
19 \! -name 'standalone_rst_xetex.txt'\
22 # header_footer.txt has no body, and causes fop to throw exception
23 # serious error with unicode.txt: it crashes with 00AD
24 # standalone_rst_xetex.txt contains latex raw
26 for the_file
in $files
29 echo ========================================================
30 echo working on
file \"$the_file\"
31 DIR
=`dirname $the_file`
32 if [ "$DIR" == "$the_file" ]; then
37 PARENT_DIR
=`basename $DIRNAME`
39 docutils_to_fo.sh
--test $the_file
40 echo ========================================================
43 # special cases for default
45 echo ========================================================
46 echo working on standard.txt
47 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/data
/standard.txt
48 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/standalone_rst_html4css1.txt
49 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/dangerous.txt
50 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/data
/custom_roles.txt
51 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/data
/custom_roles_latex.txt
52 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/standalone_rst_latex.txt
53 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/standalone_rst_pseudoxml.txt
54 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/standalone_rst_s5_html.txt
55 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/data
/latex.txt
56 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/data
/list_table.txt
57 docutils_to_fo.sh
--noclean --format --valid --pdf functional
/input
/standalone_rst_xetex.txt
60 # no body, so needs a special xsl stylesheet
61 docutils_to_fo.sh
--noclean --format --valid --pdf -s test_files
/xsl
/no_body.xsl functional
/input
/data
/header_footer.txt
65 files
=`find test_files -name '*rst'`
66 for the_file
in $files
68 DIR
=`dirname $the_file`
69 if [ "$DIR" == "$the_file" ]; then
74 PARENT_DIR
=`basename $DIRNAME`
76 if [ "$PARENT_DIR" != "custom" ]; then
78 docutils_to_fo.sh
--test $the_file
82 docutils_to_fo.sh
--test -s test_files
/xsl
/endnotes.xsl test_files
/custom
/endnotes.rst
83 docutils_to_fo.sh
--test -s test_files
/xsl
/footnotes_traditional.xsl test_files
/footnotes.rst
84 docutils_to_fo.sh
--test -s test_files
/xsl
/endnotes_traditional.xsl test_files
/custom
/endnotes.rst