xslfo schedule: kleinere fonts fu"r datenspuren 2008

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@1381 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2008-06-06 22:18:28 +00:00
parent 4c61315ce0
commit 35deecc383
3 changed files with 21 additions and 16 deletions

View File

@ -1,26 +1,31 @@
EXPORT_URL=http://www.datenspuren.de/fahrplan/ EXPORT_DIR=../../../content/static/datenspuren/fahrplan
FOP=~/programs/fop/fop FOP=~/programs/fop/fop
FOP_FLAGS=-d
XSLT=xsltproc XSLT=xsltproc
XSLT_FLAGS=--novalid XSLT_FLAGS=--novalid
XEP=~/Java/XEP/xep XEP=~/Java/XEP/xep
KEEP=day_1.de.html day_2.de.html
FOP_FILES=day_1.pdf day_2.pdf FOP_FILES=day_2008-06-07.pdf day_2008-06-08.pdf
XEP_FILES=day_1-xep.pdf day_2-xep.pdf XEP_FILES=day_1-xep.pdf day_2-xep.pdf
all: $(FOP_FILES) $(XEP_FILES) $(KEEP) all: $(FOP_FILES) #$(XEP_FILES) $(KEEP)
day_%.de.html: day_%.de.html: $(EXPORT_DIR)/day_%.de.html
wget -O $@ $(EXPORT_URL)/$@ cp $< $@
schedule.de.xml: schedule.de.xml: $(EXPORT_DIR)/schedule.de.xml
wget -O $@ $(EXPORT_URL)/$@ cp $< $@
day_%.xml: day_%.de.html day_schedule.xsl schedule.de.xml day_%.xml: day_%.de.html day_schedule.xsl schedule.de.xml
$(XSLT) $(XSLT_FLAGS) day_schedule.xsl $<|ruby schedule_add_spans.rb > $@ $(XSLT) $(XSLT_FLAGS) day_schedule.xsl $<|ruby schedule_add_spans.rb > $@
day_%.fo: day_%.xml schedule-fo.xsl day_%_hyphenated.xml: day_%.xml
sed -e 's/Festplattenverschlüsselung/Festplatten-verschlüsselung/' \
-e 's/datenschutzfreundlicher/datenschutz-freundlicher/' \
< $< > $@
day_%.fo: day_%_hyphenated.xml schedule-fo.xsl
$(XSLT) $(XSLT_FLAGS) -o $@ schedule-fo.xsl $< $(XSLT) $(XSLT_FLAGS) -o $@ schedule-fo.xsl $<
day_%-xep.pdf: day_%.fo day_%-xep.pdf: day_%.fo

View File

@ -25,7 +25,7 @@
</layout-master-set> </layout-master-set>
<page-sequence master-reference="FullPage"> <page-sequence master-reference="FullPage">
<flow flow-name="xsl-region-body" font-size="18pt"> <flow flow-name="xsl-region-body" font-size="14pt">
<block text-align="right" font-size="8pt"> <block text-align="right" font-size="8pt">
Release <xsl:value-of select="@version"/>, Release <xsl:value-of select="@version"/>,
@ -67,13 +67,13 @@
</xsl:template> </xsl:template>
<xsl:template match="title"> <xsl:template match="title">
<block font-size="36pt" text-align="center" font-weight="bold" margin-top="5mm" margin-bottom="5mm"> <block font-size="24pt" text-align="center" font-weight="bold" margin-top="5mm" margin-bottom="5mm">
<xsl:apply-templates/> <xsl:apply-templates/>
</block> </block>
</xsl:template> </xsl:template>
<xsl:template match="subtitle"> <xsl:template match="subtitle">
<block font-size="26pt" text-align="center" font-weight="bold" margin-bottom="10mm"> <block font-size="20pt" text-align="center" font-weight="bold" margin-bottom="10mm">
<xsl:apply-templates/> <xsl:apply-templates/>
</block> </block>
</xsl:template> </xsl:template>
@ -92,7 +92,7 @@
<xsl:message>== <xsl:value-of select="$previous-timeslot/@time"/> ++ <xsl:value-of select="@time"/> ==</xsl:message> <xsl:message>== <xsl:value-of select="$previous-timeslot/@time"/> ++ <xsl:value-of select="@time"/> ==</xsl:message>
<table-row> <table-row>
<table-cell display-align="center"> <table-cell display-align="center">
<block text-align="center" font-size="12pt"> <block text-align="center" font-size="12pt" padding-bottom="0.5em">
<xsl:variable name="posteventempty"> <xsl:variable name="posteventempty">
<xsl:for-each select="*"> <xsl:for-each select="*">
@ -132,10 +132,10 @@
<block font-weight="bold"> <block font-weight="bold">
<xsl:value-of select="title"/> <xsl:value-of select="title"/>
</block> </block>
<block font-style="italic" font-size="16pt"> <block font-style="italic" font-size="12pt">
<xsl:value-of select="subtitle"/> <xsl:value-of select="subtitle"/>
</block> </block>
<block display-align="after" font-size="16pt"> <block display-align="after" font-size="14pt">
<xsl:for-each select="persons/person[string(.) != '&lt;&lt;&lt;/&gt;&gt; Network']"> <xsl:for-each select="persons/person[string(.) != '&lt;&lt;&lt;/&gt;&gt; Network']">
<xsl:if test="position() &gt; 1"> <xsl:if test="position() &gt; 1">
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>

View File

@ -29,4 +29,4 @@ matrix.each_element('table/timeslot') { |timeslot|
} }
$stderr.puts "Stale elements: #{events.inspect}" if events.size > 0 $stderr.puts "Stale elements: #{events.inspect}" if events.size > 0
} }
matrix.write($stdout, 0) puts matrix.to_s