FOPRunXSLTExt/examples/balisage2014.sh
author Tony Graham
Tue, 29 Jul 2014 17:32:20 +0100
changeset 57 cd5b574e550c
parent 53 606c85f64e78
permissions -rwxr-xr-x
Embed all but the base fonts into PDF (lesson learnt).
44
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
     1
#!/bin/bash
49
57c323205824 Shell script for making Balisage 2014 poster. Assumes availability of Pygments formatter for xsl-fo output from https://bitbucket.org/sratcliffe/pygments-xslfo-formatter.
Tony Graham
parents: 44
diff changeset
     2
57c323205824 Shell script for making Balisage 2014 poster. Assumes availability of Pygments formatter for xsl-fo output from https://bitbucket.org/sratcliffe/pygments-xslfo-formatter.
Tony Graham
parents: 44
diff changeset
     3
# Pygments formatter for xsl-fo output
57c323205824 Shell script for making Balisage 2014 poster. Assumes availability of Pygments formatter for xsl-fo output from https://bitbucket.org/sratcliffe/pygments-xslfo-formatter.
Tony Graham
parents: 44
diff changeset
     4
# https://bitbucket.org/sratcliffe/pygments-xslfo-formatter
53
606c85f64e78 Using 'manni' Pygments style.
Tony Graham
parents: 49
diff changeset
     5
pygmentize -f xslfo -l xml -O style=manni balisage2014.xml > balisage2014.xml.fo
606c85f64e78 Using 'manni' Pygments style.
Tony Graham
parents: 49
diff changeset
     6
pygmentize -f xslfo -l xslt -O style=manni balisage2014.xsl > balisage2014.xsl.fo
44
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
     7
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
     8
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
     9
AHF61_64_HOME="/usr/AHFormatterV61_64"
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    10
export AHF61_64_HOME
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    11
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    12
AHF61_64_LIB_FOLDER=${AHF61_64_HOME}/lib
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    13
AHF61_64_BIN_FOLDER=${AHF61_64_HOME}/bin
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    14
AHF61_64_ETC_FOLDER=${AHF61_64_HOME}/etc
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    15
AHF61_64_SDATA_FOLDER=${AHF61_64_HOME}/sdata
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    16
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    17
LD_LIBRARY_PATH=${AHF61_64_LIB_FOLDER}:${LD_LIBRARY_PATH}
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    18
export LD_LIBRARY_PATH
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    19
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    20
AHF61_64_LIC_PATH=${AHF61_64_ETC_FOLDER}
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    21
export AHF61_64_LIC_PATH
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    22
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    23
AHF61_64_HYPDIC_PATH=${AHF61_64_ETC_FOLDER}/hyphenation
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    24
export AHF61_64_HYPDIC_PATH
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    25
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    26
AHF61_64_DMC_TBLPATH=${AHF61_64_SDATA_FOLDER}/base2
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    27
export AHF61_64_DMC_TBLPATH
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    28
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    29
AHF61_64_DEFAULT_HTML_CSS=${AHF61_64_ETC_FOLDER}/html.css
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    30
export AHF61_64_DEFAULT_HTML_CSS
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    31
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    32
AHF61_64_FONT_CONFIGFILE=${AHF61_64_ETC_FOLDER}/font-config.xml
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    33
export AHF61_64_FONT_CONFIGFILE
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    34
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    35
SAXON=/usr/local/share/saxon/saxon9he.jar
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    36
AHF=/usr/AHFormatterV61_64/lib/XfoJavaCtl.jar
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    37
CP=$SAXON:/usr/AHFormatterV61_64/lib/XfoJavaCtl.jar
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    38
CP=$CP:/usr/local/src/pplcg/hg/FOPRunXSLTExt/dist/FOPRunXSLTExt.jar
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    39
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    40
java -cp $CP net.sf.saxon.Transform -init:org.w3c.ppl.xslt.ext.ahf.saxon.RunAHFExtInitializer -s:balisage2014.xml -xsl:balisage2014.xsl -o:balisage2014.fo -it:main  ppl-formatter=ahf pygmentize=yes
902a8c95ed31 Using 'pygmentize' to style the markup. Improved one list.
Tony Graham
parents:
diff changeset
    41
57
cd5b574e550c Embed all but the base fonts into PDF (lesson learnt).
Tony Graham
parents: 53
diff changeset
    42
/usr/AHFormatterV61_64/run.sh -peb 1 -d balisage2014.fo -o out/balisage2014.pdf