You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/02/19 20:08:34 UTC

svn commit: r509302 - in /incubator/uima/uimaj/trunk/uima-docbooks/src: docbook/tutorials_and_users_guides/tug.application.xml styles/pdf/custom.xsl

Author: schor
Date: Mon Feb 19 11:08:33 2007
New Revision: 509302

URL: http://svn.apache.org/viewvc?view=rev&rev=509302
Log:
No Jira. Add ability to shrink the font size used (in PDF) in
<literal> by following it with 
<?db-font-size 70% ?> (to get 70% of current font size), and
use this to shrink long literal path names so they fit on 
one line.

Also fix the spec on where to get the sample code that comes
with the Semantic Search Engine - had some path elements reversed.

Modified:
    incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.application.xml
    incubator/uima/uimaj/trunk/uima-docbooks/src/styles/pdf/custom.xsl

Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.application.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.application.xml?view=diff&rev=509302&r1=509301&r2=509302
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.application.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.application.xml Mon Feb 19 11:08:33 2007
@@ -866,7 +866,13 @@
           <listitem>
             <para>Analysis Engine: include both of these; one produces tokens/sentences, required by the indexer
               in all cases and the other produces the meeting annotations of interest.
-              
+              <itemizedlist spacing="compact">
+                <listitem><para><literal><?db-font-size 70% ?>%UIMA_HOME%/examples/descriptors/analysis_engine/SimpleTokenAndSentenceAnnotator.xml</literal></para></listitem>
+                <listitem><para><literal><?db-font-size 70% ?>%UIMA_HOME%/examples/descriptors/tutorial/ex6/UIMAMeetingDetectorTAE.xml</literal></para></listitem>
+              </itemizedlist>
+            </para>
+          </listitem>
+<!--              
               
               <literallayout>%UIMA_HOME%/examples/descriptors/analysis_engine/
 SimpleTokenAndSentenceAnnotator.xml</literallayout></para>
@@ -876,16 +882,22 @@
             <para><literal> and %UIMA_HOME%/examples/descriptors/tutorial/ex6/
               UIMAMeetingDetectorTAE.xml</literal></para>
           </listitem>
+  -->
           
           <listitem>
             <para>Two CAS Consumers:
-              
-              
+              <itemizedlist spacing="compact">
+                <listitem><para><literal><?db-font-size 70% ?>%UIMA_HOME%/examples/descriptors/cas_consumer/SemanticSearchCasIndexer.xml</literal></para></listitem>
+                <listitem><para><literal><?db-font-size 70% ?>%UIMA_HOME%/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml</literal></para></listitem>
+              </itemizedlist>  
+ <!--             
               <literallayout>%UIMA_HOME%/examples/descriptors/cas_consumer/
   SemanticSearchCasIndexer.xml
 
 %UIMA_HOME%/examples/descriptors/cas_consumer/ 
-  XmiWriterCasConsumer.xml</literallayout></para>
+  XmiWriterCasConsumer.xml</literallayout>
+   -->
+            </para>
           </listitem>
         </itemizedlist>
         
@@ -982,9 +994,9 @@
         Viewer.</para>
       
       <para>The source code for the Semantic Search query program is in
-        <literal>examples/src/com/ibm/uima/examples/search/SemanticSearchGUI.java</literal> . A simple
+        <literal>examples/src/com/ibm/apache-uima/search/examples/SemanticSearchGUI.java</literal> . A simple
         command-line query program is also provided in
-        <literal>examples/src/com/ibm/uima/examples/search/SemanticSearch.java</literal> . Using these
+        <literal>examples/src/com/ibm/apache-uima/search/examples/SemanticSearch.java</literal> . Using these
         as a model, you can build a query interface from your own application. For details on the Semantic Search
         Engine query language and interface, see the documentation for the semantic search engine component on
           <ulink url="http://www.alphaworks.ibm.com/tech/uima"/>.</para>

Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/styles/pdf/custom.xsl
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/styles/pdf/custom.xsl?view=diff&rev=509302&r1=509301&r2=509302
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/styles/pdf/custom.xsl (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/styles/pdf/custom.xsl Mon Feb 19 11:08:33 2007
@@ -21,6 +21,7 @@
                 version='1.0'>
   
   <xsl:param name="body.font.family"  select="'Palatino'"/>
+<!--  <xsl:param name="body.font.family"  select="'Arial'"/> -->
   <xsl:param name="body.font.master"    select="'10.5'"/>
   <xsl:attribute-set name="root.properties">
       <xsl:attribute name="text-align">left</xsl:attribute>
@@ -45,7 +46,14 @@
     ################################################### -->
   
   <xsl:attribute-set name="monospace.properties">
-    <xsl:attribute name="font-size">9.5pt</xsl:attribute>
+    <xsl:attribute name="font-size">
+      <xsl:choose>
+        <xsl:when test="processing-instruction('db-font-size')">
+          <xsl:value-of select="processing-instruction('db-font-size')"/>
+        </xsl:when>
+        <xsl:otherwise>9.5pt</xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
   </xsl:attribute-set>
  
   <xsl:attribute-set name="monospace.verbatim.properties">
@@ -75,13 +83,26 @@
                       Page margins
     ################################################### -->   
   <xsl:param name="page.margin.top" select="'1cm'"/>
+  <!-- region.before.extent = height of the header -->
   <xsl:param name="region.before.extent" select="'1cm'"/>
   <xsl:param name="body.margin.top" select="'1.5cm'"/>
 
   <xsl:param name="body.margin.bottom" select="'1.5cm'"/>
+  <!-- region.after.extent = height of area where footers are printed -->
   <xsl:param name="region.after.extent" select="'1cm'"/>
   <xsl:param name="page.margin.bottom" select="'1cm'"/>
-  <xsl:param name="title.margin.left" select="'-4pc'"/>
+  <xsl:param name="title.margin.left">
+    <xsl:choose>
+      <xsl:when test="$fop.extensions != 0">-4pc</xsl:when>
+      <xsl:otherwise>0pt</xsl:otherwise>
+    </xsl:choose>
+  </xsl:param>
+  <xsl:param name="body.start.indent">
+    <xsl:choose>
+      <xsl:when test="$fop.extensions != 0">0pt</xsl:when>
+      <xsl:otherwise>4pc</xsl:otherwise>
+    </xsl:choose>
+  </xsl:param>
   
   <xsl:param name="page.margin.inner" select="'1.3in'"/>
   <xsl:param name="page.margin.outer" select="'.70in'"/>
@@ -90,18 +111,27 @@
     ################################################### -->
 
     <!-- More space in the center header for long text -->
+    <xsl:param name="header.column.widths">1 90 1</xsl:param>
     <xsl:attribute-set name="header.content.properties">
         <xsl:attribute name="font-family">
             <xsl:value-of select="$body.font.family"/>
         </xsl:attribute>
-        <xsl:attribute name="margin-left">-5em</xsl:attribute>
-        <xsl:attribute name="margin-right">-5em</xsl:attribute>
+        <xsl:attribute name="margin-left">0em</xsl:attribute>
+        <xsl:attribute name="margin-right">0em</xsl:attribute>
     </xsl:attribute-set>
 
 <!--###################################################
                       Custom Footer
     ################################################### -->
-    <!-- width specifications: inside, center, outside -->
+    <xsl:attribute-set name="footer.content.properties">
+        <xsl:attribute name="font-family">
+            <xsl:value-of select="$body.font.family"/>
+        </xsl:attribute>
+        <xsl:attribute name="margin-left">0em</xsl:attribute>
+        <xsl:attribute name="margin-right">0em</xsl:attribute>
+    </xsl:attribute-set>
+
+      <!-- width specifications: inside, center, outside -->
     <xsl:param name="footer.column.widths">2 6 1</xsl:param>
   
     <xsl:template name="footer.content">
@@ -230,8 +260,10 @@
     </xsl:attribute-set>
 
     <!-- Only hairlines as frame and cell borders in tables -->
-    <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
-    <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
+    <!-- note that 72 pt = 1 in, and values like 0.1pt cause problems
+         in FOP 0.93 but work in FOP 0.20.5 -->
+    <xsl:param name="table.frame.border.thickness">.7pt</xsl:param>
+    <xsl:param name="table.cell.border.thickness">.7pt</xsl:param>
 
 <!--###################################################
                          Labels