Ignore:
Timestamp:
2008-10-08T13:59:48+13:00 (16 years ago)
Author:
anna
Message:

Updated tutorials and associated files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/manuals/README.html

    r13863 r17494  
    180180<ol>
    181181    <li>Find an appropriate font file (in .PFM or .TTF format) that contains the
    182     necessary fonts, and run to
    183     generate an XML file</li>
    184     <li>Register to FOP by adding a new entry in the userconfig.xml file</li>
    185     <li>In fo-common.xsl, add a new language-value pair for the <code>font</code><i>
    186     </i>variable.</li>
     182    necessary fonts;</li>
     183    <li>Go to the FOP installation, and run TTFReader to
     184    generate an XML file for the font, eg. <br/>
     185    <blockquote>
     186    <p><code><font size="2">java -cp .:/research/lh92/greenstone/documentation/modules/shared/fop/build/fop.jar:/research/lh92/greenstone/documentation/modules/shared/fop/lib/avalon-framework.jar:/research/lh92/greenstone/documentation/modules/shared/fop/lib/xml-apis.jar:/research/lh92/greenstone/documentation/modules/shared/fop/lib/xercesImpl.jar:/research/lh92/greenstone/documentation/modules/shared/fop/lib/xalan.jar org.apache.fop.fonts.apps.TTFReader /research/lh92/packages/fonts/ae_Arab.ttf /research/lh92/greenstone/documentation/modules/shared/fop/conf/Arab.xml</font></code></p>
     187    </blockquote>
     188    </li>
     189    <li>Register to FOP by adding a new entry in the userconfig.xml file, see below for an example</li>
     190    <li>In fo-common.xsl, add a new language-value pair for the <code>font</code> variable, and make sure the <code>lang</code> attribute in the source xml file is set properly.</li>
    187191</ol>
    188192
     
    207211</blockquote>
    208212<p>Then run fop with <code>-c userconfig.xml</code> option to use the new
    209 configuration.</p>
    210 
     213configuration. Preferably, use the generate-pdf script because this already
     214uses the option.</p>
     215<p>Note: when you see the <code>[Fatal Error] :1:1: Content is not allowed in prolog</code> exception, please check
     216whether the filepaths of the configuration file (xml) and the font file (.ttf) are correct.</p>
     217
     218<p>
    211219<a name="todo"/>
    212220<h2>ToDo list</h2>
Note: See TracChangeset for help on using the changeset viewer.