X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fgbtoepub.pl;fp=common%2Fscripts%2Fgbtoepub.pl;h=d8cb66f52f71f43b93e9778efb20f23edcee2f85;hp=810b5e69b77df846598dec00d64463488f7236bd;hb=136c029d5ac24456b74498f504ad487b1243670a;hpb=03ec0fd5dad95fee11b4442c90edcb0cb6a1957d diff --git a/common/scripts/gbtoepub.pl b/common/scripts/gbtoepub.pl index 810b5e6..d8cb66f 100755 --- a/common/scripts/gbtoepub.pl +++ b/common/scripts/gbtoepub.pl @@ -17,7 +17,8 @@ my $TAR = qx{which tar}; my $ZIP = qx{which zip}; my $BZIP2 = qx{which bzip2}; my $JAVA = qx{which java}; -my $XALAN_JAR = '/usr/share/java/xalan2.jar'; +#my $XALAN_JAR = '/usr/share/java/xalan2.jar'; +my $XALAN_JAR = '/usr/share/ant/lib/xalan.jar'; my $RM = qx{which rm}; my $CHMOD = qx{which chmod}; @@ -64,7 +65,7 @@ my $ncxXSL = 'common/xsl/epub-ncx.xsl'; my $epubXSL = 'common/xsl/epub-xhtml.xsl'; my $metadataXSL = 'common/xsl/epub-opf-metadata.xsl'; my $spineXSL = 'common/xsl/epub-opf-spine.xsl'; -my $fontFiles = "$ENV{'HOME'}${FILENAME_SEPARATOR}souvenir"; +my $fontFiles = "common/fonts"; my $language = 'en'; my $verbose = 0; @@ -233,7 +234,7 @@ foreach my $cssTemplate (split( /:/, $rulesHash{'csst'} )) { unless( -e $fontFiles && -d $fontFiles ) { die "$PROGRAM_NAME: font files directory does not exist or is not a directory \"$fontFiles\": $!\n"; } -print qx{$CP $fontFiles${FILENAME_SEPARATOR}*.otf $outPath{'oebps'}}; +print qx{$CP $fontFiles${FILENAME_SEPARATOR}*tf $outPath{'oebps'}}; ### write NCX file