-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
64 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# locate saxon jar file | ||
sax_jar=lib/saxon9he.jar | ||
|
||
# locate FOP base directory | ||
fop_lib=lib/fop-1.1 | ||
|
||
# additional options for FOP processing (sent to the java process) | ||
# -d64: optimization for 64 bit processor | ||
# -Xmx3000m: sets the maximum available memory allocation pool to 3000 MB | ||
# Note: It's safe to leave this variable blank | ||
fop_opts="-d64 -Xmx3000m" | ||
|
||
# these variables shouldn't need to be changed, they are relative to fop_lib | ||
fop_bin=${fop_lib}/fop | ||
fop_conf=${fop_lib}/conf/fop.xconf | ||
|
||
fo_obj=output/pdf.fo | ||
pdf_obj=output/pdf.pdf | ||
|
||
tei_xsl=lib/tei2pdf/TEIcorpus_producer.xsl | ||
xslfo_xsl=lib/tei2pdf/xsl-fo-producer.xsl | ||
init_xml=lib/tei2pdf/empty.xml | ||
final_xml=output/Book_Corpus.xml | ||
|
||
# further options that may be useful | ||
|
||
# cleanup transitional files when finished | ||
cleanup=true |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fop* | ||
saxon*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This folder is for holding the FOP Processor. | ||
This folder is for holding the Saxon jar, FOP Processor, and internal library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
#!/bin/bash | ||
|
||
sax_jar=saxon.jar | ||
fop_lib=./lib/fop | ||
fop_bin=${fop_lib}/fop | ||
fop_conf=${fop_lib}/conf/fop.xconf | ||
|
||
fo_obj=pdf.fo | ||
pdf_obj=pdf.pdf | ||
|
||
tei_xsl=TEIcorpus_producer.xsl | ||
xslfo_xsl=xsl-fo-producer.xsl | ||
init_xml=empty.xml | ||
final_xml=Book_Corpus.xml | ||
if [[ -f 'config/config.sh' ]]; then | ||
source config/config.sh | ||
fi | ||
|
||
java -jar "${sax_jar}" "${init_xml}" "${tei_xsl}" > "${final_xml}" && \ | ||
java -jar "${sax_jar}" "${final_xml}" "${xslfo_xsl}" > "${fo_obj}" && \ | ||
"${fop_bin}" -c "${fop_conf}" "${fo_obj}" "${pdf_obj}" | ||
FOP_OPTS="${fop_opts}" "${fop_bin}" -c "${fop_conf}" "${fo_obj}" "${pdf_obj}" | ||
|
||
if "$cleanup"; then | ||
rm -f "${fo_obj}" | ||
rm -f "${final_xml}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
rm -f ../Book_Corpus.xml | ||
rm -f ../pdf.fo | ||
rm -f ../pdf.pdf |