xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840438 [1/6] - in /websites/staging/xmlgraphics/trunk/content: ./ fop/ fop/0.95/ fop/1.0/ fop/1.1/ fop/dev/ fop/dev/design/
Date Mon, 03 Dec 2012 04:59:21 GMT
Author: buildbot
Date: Mon Dec  3 04:59:19 2012
New Revision: 840438

Log:
Staging update by buildbot for xmlgraphics

Modified:
    websites/staging/xmlgraphics/trunk/content/   (props changed)
    websites/staging/xmlgraphics/trunk/content/fop/0.95/anttask.html
    websites/staging/xmlgraphics/trunk/content/fop/0.95/configuration.html
    websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html
    websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.html
    websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html
    websites/staging/xmlgraphics/trunk/content/fop/0.95/output.html
    websites/staging/xmlgraphics/trunk/content/fop/1.0/accessibility.html
    websites/staging/xmlgraphics/trunk/content/fop/1.0/anttask.html
    websites/staging/xmlgraphics/trunk/content/fop/1.0/configuration.html
    websites/staging/xmlgraphics/trunk/content/fop/1.0/extensions.html
    websites/staging/xmlgraphics/trunk/content/fop/1.0/fonts.html
    websites/staging/xmlgraphics/trunk/content/fop/1.0/metadata.html
    websites/staging/xmlgraphics/trunk/content/fop/1.1/anttask.html
    websites/staging/xmlgraphics/trunk/content/fop/1.1/complexscripts.html
    websites/staging/xmlgraphics/trunk/content/fop/1.1/configuration.html
    websites/staging/xmlgraphics/trunk/content/fop/1.1/metadata.html
    websites/staging/xmlgraphics/trunk/content/fop/dev/conventions.html
    websites/staging/xmlgraphics/trunk/content/fop/dev/design/embedding.html
    websites/staging/xmlgraphics/trunk/content/fop/dev/doc.html
    websites/staging/xmlgraphics/trunk/content/fop/dev/release.html
    websites/staging/xmlgraphics/trunk/content/fop/dev/testing.html
    websites/staging/xmlgraphics/trunk/content/fop/dev/tools.html
    websites/staging/xmlgraphics/trunk/content/fop/fo.html
    websites/staging/xmlgraphics/trunk/content/fop/fop-pdf-images.html
    websites/staging/xmlgraphics/trunk/content/fop/license.html
    websites/staging/xmlgraphics/trunk/content/fop/maillist.html
    websites/staging/xmlgraphics/trunk/content/fop/quickstartguide.html
    websites/staging/xmlgraphics/trunk/content/fop/resources.html

Propchange: websites/staging/xmlgraphics/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Dec  3 04:59:19 2012
@@ -1 +1 @@
-1416346
+1416347

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/anttask.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/anttask.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/anttask.html Mon Dec  3 04:59:19 2012
@@ -386,23 +386,23 @@ Then create FOP tasks within your Ant bu
 
 The following example converts a single XSL-FO file to a PDF document:
 
-<target name="generate-pdf" description="Generates a single PDF file">
-   <fop format="application/pdf" 
-        fofile="c:\working\foDirectory\foDocument.fo"
-        outfile="c:\working\pdfDirectory\pdfDocument.pdf" />
-</target>
+    <target name="generate-pdf" description="Generates a single PDF file">
+       <fop format="application/pdf" 
+            fofile="c:\working\foDirectory\foDocument.fo"
+            outfile="c:\working\pdfDirectory\pdfDocument.pdf" />
+    </target>
 
 This example converts all XSL-FO files within an entire directory to PostScript:
 
-<target name="generate-multiple-ps" 
-        description="Generates multiple PostScript files">
-   <fop format="application/postscript" 
-        outdir="${build.dir}" messagelevel="debug">
-        <fileset dir="${fo.examples.dir}">
-           <include name="*.fo"/>
-        </fileset>
-   </fop>
-</target></div>
+    <target name="generate-multiple-ps" 
+            description="Generates multiple PostScript files">
+       <fop format="application/postscript" 
+            outdir="${build.dir}" messagelevel="debug">
+            <fileset dir="${fo.examples.dir}">
+               <include name="*.fo"/>
+            </fileset>
+       </fop>
+    </target></div>
       </div>
       
       <div class="clear"></div>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/configuration.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/configuration.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/configuration.html Mon Dec  3 04:59:19 2012
@@ -341,11 +341,11 @@ $(document).ready(function () {
         <div id="items">
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/0.95/">0.95</a></div> -->
-      	<div class="section-content"><h1 id="apachewzxhzdk5-fop-configuration">Apache&trade; FOP: Configuration</h1>
-<h2 id="configuration-file-basics-wzxhzdk6wzxhzdk7">Configuration File Basics <a id="general"></a></h2>
+      	<div class="section-content"><h1 id="apachewzxhzdk7-fop-configuration">Apache&trade; FOP: Configuration</h1>
+<h2 id="configuration-file-basics-wzxhzdk8wzxhzdk9">Configuration File Basics <a id="general"></a></h2>
 <p>The FOP configuration file is an XML file containing a variety of settings that are useful for controlling FOP's behavior, and for helping it find resources that you wish it to use.</p>
 <p>The easiest way to get started using a FOP configuration file is to copy the sample found at <code>{fop-dir}/conf/fop.xconf</code> to a location of your choice, and then to edit it according to your needs. It contains templates for the various configuration options, most of which are commented out. Remove the comments and change the settings for entries that you wish to use. Be sure to follow any instructions, including comments which specify the value range. Also, since the configuration file is XML, be sure to keep it well-formed.</p>
-<h3 id="making-configuration-available-to-fop-wzxhzdk8wzxhzdk9">Making Configuration Available to FOP <a id="general-available"></a></h3>
+<h3 id="making-configuration-available-to-fop-wzxhzdk10wzxhzdk11">Making Configuration Available to FOP <a id="general-available"></a></h3>
 <p>After creating your configuration file, you must tell FOP how to find it:</p>
 <ul>
 <li>
@@ -356,7 +356,7 @@ $(document).ready(function () {
 </li>
 </ul>
 <p>See <a href="embedding.html#config-internal">Setting the Configuration Programmatically</a> for instructions on how to do so in an embedded environment.</p>
-<h2 id="summary-of-the-general-configuration-options-wzxhzdk10wzxhzdk11">Summary of the General Configuration Options <a id="general-elements"></a></h2>
+<h2 id="summary-of-the-general-configuration-options-wzxhzdk12wzxhzdk13">Summary of the General Configuration Options <a id="general-elements"></a></h2>
 <table>
 <thead>
 <tr>
@@ -442,117 +442,131 @@ $(document).ready(function () {
 </tbody>
 </table>
 <p>This is an excerpt from the example configuration file coming with FOP:</p>
-<p><fop version="1.0"></p>
-<p><!-- Strict user configuration -->
-  <strict-configuration>true</strict-configuration></p>
-<p><!-- Strict FO validation -->
-  <strict-validation>true</strict-validation></p>
-<p><!-- Base URL for resolving relative URLs -->
-  <base>./</base></p>
-<p><!-- Font Base URL for resolving relative font URLs -->
-  <font-base>./</font-base></p>
-<p><!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
-  <source-resolution>72</source-resolution>
-  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
-  <target-resolution>72</target-resolution></p>
-<p><!-- default page-height and page-width, in case
-       value is specified as auto -->
-  <default-page-settings height="11in" width="8.26in"/></p>
-<p><!-- etc. etc..... -->
-</fop></p>
-<h1 id="renderer-configuration-wzxhzdk35wzxhzdk36">Renderer configuration <a id="renderers"></a></h1>
+<div class="codehilite"><pre><span class="nt">&lt;fop</span> <span class="na">version=</span><span class="s">&quot;1.0&quot;</span><span class="nt">&gt;</span>
+
+  <span class="c">&lt;!-- Strict user configuration --&gt;</span>
+  <span class="nt">&lt;strict-configuration&gt;</span>true<span class="nt">&lt;/strict-configuration&gt;</span>
+
+  <span class="c">&lt;!-- Strict FO validation --&gt;</span>
+  <span class="nt">&lt;strict-validation&gt;</span>true<span class="nt">&lt;/strict-validation&gt;</span>
+
+  <span class="c">&lt;!-- Base URL for resolving relative URLs --&gt;</span>
+  <span class="nt">&lt;base&gt;</span>./<span class="nt">&lt;/base&gt;</span>
+
+  <span class="c">&lt;!-- Font Base URL for resolving relative font URLs --&gt;</span>
+  <span class="nt">&lt;font-base&gt;</span>./<span class="nt">&lt;/font-base&gt;</span>
+
+  <span class="c">&lt;!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi --&gt;</span>
+  <span class="nt">&lt;source-resolution&gt;</span>72<span class="nt">&lt;/source-resolution&gt;</span>
+  <span class="c">&lt;!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi --&gt;</span>
+  <span class="nt">&lt;target-resolution&gt;</span>72<span class="nt">&lt;/target-resolution&gt;</span>
+
+  <span class="c">&lt;!-- default page-height and page-width, in case</span>
+<span class="c">       value is specified as auto --&gt;</span>
+  <span class="nt">&lt;default-page-settings</span> <span class="na">height=</span><span class="s">&quot;11in&quot;</span> <span class="na">width=</span><span class="s">&quot;8.26in&quot;</span><span class="nt">/&gt;</span>
+
+  <span class="c">&lt;!-- etc. etc..... --&gt;</span>
+<span class="nt">&lt;/fop&gt;</span>
+</pre></div>
+
+
+<h1 id="renderer-configuration-wzxhzdk14wzxhzdk15">Renderer configuration <a id="renderers"></a></h1>
 <p>Each Renderer has its own configuration section which is identified by the MIME type the Renderer is written for, ex. "application/pdf" for the PDF Renderer.</p>
 <p>The configuration for the PDF Renderer could look like this:</p>
-<p><renderers>
-    <renderer mime="application/pdf">
-      <filterList>
-        <!-- provides compression using zlib flate (default is on) -->
-        <value>flate</value>
-      </filterList>
-      <fonts>
-        <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
-          <font-triplet name="Arial" style="normal" weight="normal"/>
-          <font-triplet name="ArialMT" style="normal" weight="normal"/>
-        </font>
-        <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
-          <font-triplet name="Arial" style="normal" weight="bold"/>
-          <font-triplet name="ArialMT" style="normal" weight="bold"/>
-        </font>
-      </fonts>
-    </renderer></p>
-<div class="codehilite"><pre><span class="o">&lt;</span><span class="n">renderer</span> <span class="n">mime</span><span class="o">=</span><span class="s">&quot;application/postscript&quot;</span><span class="o">&gt;</span>
-<span class="o">&lt;!--</span> <span class="n">etc</span><span class="o">.</span> <span class="n">etc</span><span class="o">.....</span> <span class="o">--&gt;</span>
+<div class="codehilite"><pre>  <span class="nt">&lt;renderers&gt;</span>
+    <span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;filterList&gt;</span>
+        <span class="c">&lt;!-- provides compression using zlib flate (default is on) --&gt;</span>
+        <span class="nt">&lt;value&gt;</span>flate<span class="nt">&lt;/value&gt;</span>
+      <span class="nt">&lt;/filterList&gt;</span>
+      <span class="nt">&lt;fonts&gt;</span>
+        <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;arial.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span> <span class="na">embed-url=</span><span class="s">&quot;arial.ttf&quot;</span><span class="nt">&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Arial&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;ArialMT&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+        <span class="nt">&lt;/font&gt;</span>
+        <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;arialb.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span> <span class="na">embed-url=</span><span class="s">&quot;arialb.ttf&quot;</span><span class="nt">&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Arial&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;bold&quot;</span><span class="nt">/&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;ArialMT&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;bold&quot;</span><span class="nt">/&gt;</span>
+        <span class="nt">&lt;/font&gt;</span>
+      <span class="nt">&lt;/fonts&gt;</span>
+    <span class="nt">&lt;/renderer&gt;</span>
+
+    <span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/postscript&quot;</span><span class="nt">&gt;</span>
+    <span class="c">&lt;!-- etc. etc..... --&gt;</span>
 </pre></div>
 
 
 <p>The details on the font configuration can be found on the separate <a href="fonts.html">Fonts</a> page. Note especially the section entitled <a href="fonts.html#register">Register Fonts with FOP</a> .</p>
-<h3 id="special-settings-for-the-pdf-renderer-wzxhzdk55wzxhzdk56">Special Settings for the PDF Renderer <a id="pdf-renderer"></a></h3>
+<h3 id="special-settings-for-the-pdf-renderer-wzxhzdk16wzxhzdk17">Special Settings for the PDF Renderer <a id="pdf-renderer"></a></h3>
 <p>The configuration element for the PDF renderer contains two elements. One is for the font configuration (please follow the link above) and one is for the "filter list". The filter list controls how the individual objects in a PDF file are encoded. By default, all objects get "flate" encoded (i.e. simply compressed with the same algorithm that is also used in ZIP files). Most users don't need to change that setting. For debugging purposes, it may be desired not to compress the internal objects at all so the generated PDF commands can be read. In that case, you can simply use the following filter list. The second filter list (type="image") ensures that all images still get compressed but also ASCII-85 encoded so the produced PDF file is still easily readable in a text editor.</p>
-<div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
-  <span class="nt">&lt;filterList&gt;</span>
-    <span class="nt">&lt;value&gt;</span>null<span class="nt">&lt;/value&gt;</span>
-  <span class="nt">&lt;/filterList&gt;</span>
-  <span class="nt">&lt;filterList</span> <span class="na">type=</span><span class="s">&quot;image&quot;</span><span class="nt">&gt;</span>
-    <span class="nt">&lt;value&gt;</span>flate<span class="nt">&lt;/value&gt;</span>
-    <span class="nt">&lt;value&gt;</span>ascii-85<span class="nt">&lt;/value&gt;</span>
-  <span class="nt">&lt;/filterList&gt;</span>
+<div class="codehilite"><pre>    <span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;filterList&gt;</span>
+        <span class="nt">&lt;value&gt;</span>null<span class="nt">&lt;/value&gt;</span>
+      <span class="nt">&lt;/filterList&gt;</span>
+      <span class="nt">&lt;filterList</span> <span class="na">type=</span><span class="s">&quot;image&quot;</span><span class="nt">&gt;</span>
+        <span class="nt">&lt;value&gt;</span>flate<span class="nt">&lt;/value&gt;</span>
+        <span class="nt">&lt;value&gt;</span>ascii-85<span class="nt">&lt;/value&gt;</span>
+      <span class="nt">&lt;/filterList&gt;</span>
 
-  <span class="nt">&lt;fonts....</span>
-<span class="err">&lt;/renderer</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;fonts....</span>
+    <span class="err">&lt;/renderer</span><span class="nt">&gt;</span>
 </pre></div>
 
 
 <p>Another (optional) setting specific to the PDF Renderer is an output color profile, an ICC color profile which indicates the target color space the PDF file is generated for. This setting is mainly used in conjunction with the <a href="pdfx.html">PDF/X</a> feature. An example:</p>
-<div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
-  <span class="nt">&lt;filterList...</span>
+<div class="codehilite"><pre>    <span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;filterList...</span>
 
-  <span class="err">&lt;output-profile</span><span class="nt">&gt;</span>C:\FOP\Color\EuropeISOCoatedFOGRA27.icc<span class="nt">&lt;/output-profile&gt;</span>
+      <span class="err">&lt;output-profile</span><span class="nt">&gt;</span>C:\FOP\Color\EuropeISOCoatedFOGRA27.icc<span class="nt">&lt;/output-profile&gt;</span>
 
-  <span class="nt">&lt;fonts....</span>
-  <span class="err">&lt;/renderer</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;fonts....</span>
+      <span class="err">&lt;/renderer</span><span class="nt">&gt;</span>
 </pre></div>
 
 
 <p>Some people don't have high requirements on color fidelity but instead want the smallest PDF file sizes possible. In this case it's possible to disable the default sRGB color space which XSL-FO requires. This will cause RGB colors to be generated as device-specific RGB. Please note that this option is unavailable (and will cause an error) if you enable PDF/A or PDF/X functionality or if you specify an output profile. This setting will make the PDF about 4KB smaller. To disable the sRGB color space add the following setting:</p>
-<div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
-  <span class="nt">&lt;filterList...</span>
+<div class="codehilite"><pre>    <span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;filterList...</span>
 
-  <span class="err">&lt;disable-srgb-colorspace</span><span class="nt">&gt;</span>true<span class="nt">&lt;/disable-srgb-colorspace&gt;</span>
+      <span class="err">&lt;disable-srgb-colorspace</span><span class="nt">&gt;</span>true<span class="nt">&lt;/disable-srgb-colorspace&gt;</span>
 
-  <span class="nt">&lt;fonts....</span>
-  <span class="err">&lt;/renderer</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;fonts....</span>
+      <span class="err">&lt;/renderer</span><span class="nt">&gt;</span>
 </pre></div>
 
 
-<h2 id="special-settings-for-the-postscript-renderer-wzxhzdk57wzxhzdk58">Special Settings for the PostScript Renderer <a id="ps-renderer"></a></h2>
+<h2 id="special-settings-for-the-postscript-renderer-wzxhzdk18wzxhzdk19">Special Settings for the PostScript Renderer <a id="ps-renderer"></a></h2>
 <p>Besides the normal font configuration (the same "fonts" element as for the PDF renderer) the PostScript renderer has an additional setting to force landscape pages to be rotated to fit on a page inserted into the printer in portrait mode. Set the value to "true" to activate this feature. The default is "false". Example:</p>
-<div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/postscript&quot;</span><span class="nt">&gt;</span>
-  <span class="nt">&lt;auto-rotate-landscape&gt;</span>true<span class="nt">&lt;/auto-rotate-landscape&gt;</span>
+<div class="codehilite"><pre>    <span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/postscript&quot;</span><span class="nt">&gt;</span>
+      <span class="nt">&lt;auto-rotate-landscape&gt;</span>true<span class="nt">&lt;/auto-rotate-landscape&gt;</span>
 
-  <span class="nt">&lt;fonts&gt;</span>
-    <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;arial.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span> <span class="na">embed-url=</span><span class="s">&quot;arial.ttf&quot;</span><span class="nt">&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Arial&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;ArialMT&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
-    <span class="nt">&lt;/font&gt;</span>
-    <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;arialb.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span> <span class="na">embed-url=</span><span class="s">&quot;arialb.ttf&quot;</span><span class="nt">&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Arial&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;bold&quot;</span><span class="nt">/&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;ArialMT&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;bold&quot;</span><span class="nt">/&gt;</span>
-    <span class="nt">&lt;/font&gt;</span>
-  <span class="nt">&lt;/fonts&gt;</span>
-<span class="nt">&lt;/renderer&gt;</span>
+      <span class="nt">&lt;fonts&gt;</span>
+        <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;arial.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span> <span class="na">embed-url=</span><span class="s">&quot;arial.ttf&quot;</span><span class="nt">&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Arial&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;ArialMT&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+        <span class="nt">&lt;/font&gt;</span>
+        <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;arialb.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span> <span class="na">embed-url=</span><span class="s">&quot;arialb.ttf&quot;</span><span class="nt">&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Arial&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;bold&quot;</span><span class="nt">/&gt;</span>
+          <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;ArialMT&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;bold&quot;</span><span class="nt">/&gt;</span>
+        <span class="nt">&lt;/font&gt;</span>
+      <span class="nt">&lt;/fonts&gt;</span>
+    <span class="nt">&lt;/renderer&gt;</span>
 </pre></div>
 
 
-<h2 id="special-settings-for-the-pcl-renderer-wzxhzdk59wzxhzdk60">Special Settings for the PCL Renderer <a id="pcl-renderer"></a></h2>
+<h2 id="special-settings-for-the-pcl-renderer-wzxhzdk20wzxhzdk21">Special Settings for the PCL Renderer <a id="pcl-renderer"></a></h2>
 <p>Non-standard fonts for the PCL renderer are made available through the Java2D subsystem which means that you don't have to do any custom font configuration in this case but you have to use the font names offered by Java.</p>
-<p>Additionally, there are certain settings that control how the renderer handles various elements.
-<renderer mime="application/vnd.hp-PCL">
-  <rendering>quality</rendering>
-  <text-rendering>bitmap</text-rendering>
-</renderer>
-The default value for the "rendering" setting is "speed" which causes borders to be painted as plain rectangles. In this mode, no special borders (dotted, dashed etc.) are available. If you want support for all border modes, set the value to "quality" as indicated above. This will cause the borders to be painted as bitmaps.</p>
+<p>Additionally, there are certain settings that control how the renderer handles various elements.</p>
+<div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/vnd.hp-PCL&quot;</span><span class="nt">&gt;</span>
+  <span class="nt">&lt;rendering&gt;</span>quality<span class="nt">&lt;/rendering&gt;</span>
+  <span class="nt">&lt;text-rendering&gt;</span>bitmap<span class="nt">&lt;/text-rendering&gt;</span>
+<span class="nt">&lt;/renderer&gt;</span>
+</pre></div>
+
+
+<p>The default value for the "rendering" setting is "speed" which causes borders to be painted as plain rectangles. In this mode, no special borders (dotted, dashed etc.) are available. If you want support for all border modes, set the value to "quality" as indicated above. This will cause the borders to be painted as bitmaps.</p>
 <p>The default value for the "text-rendering" setting is "auto" which paints the base fonts using PCL fonts. Non-base fonts are painted as bitmaps through Java2D. If the mix of painting methods results in unwelcome output, you can set this to "bitmap" which causes all text to be rendered as bitmaps.</p>
-<h2 id="when-it-does-not-work-wzxhzdk67wzxhzdk68">When it does not work <a id="When+it+does+not+work"></a></h2>
+<h2 id="when-it-does-not-work-wzxhzdk22wzxhzdk23">When it does not work <a id="When+it+does+not+work"></a></h2>
 <p>FOP searches the configuration file for the information it expects, at the position it expects. When that information is not present, FOP will not complain, it will just continue. When there is other information in the file, FOP will not complain, it will just ignore it. That means that when your configuration information is in the file but in a different XML element, or in a different XML path, than FOP expects, it will be silently ignored.</p>
 <p>Check the following possibilities:</p>
 <ul>
@@ -560,15 +574,16 @@ The default value for the "rendering" se
 <p>The format of the configuration file has changed considerably between FOP 0.20.5 and FOP 1.0 and its beta versions. Did you convert your file to the new format?</p>
 </li>
 <li>
-<p>The FOP distribution contains a schema for configuration files, at src/foschema/fop-configuration.xsd. Did you validate your configuration file against it? Add the following schema location to the <code>schema</code> element:<fop
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:noNamespaceSchemaLocation=
-"http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/foschema/fop-configuration.xsd?view=co">
-and run the configuration file through a validating schema parser. Note that the schema cannot detect all errors, and that it is stricter about the order of some elements than FOP itself is.</p>
-</li>
-<li>
-<p>Run FOP in debug mode (command line option <code>-d</code> ). This makes FOP report which configuration information it finds. Check if FOP finds what you expect.</p>
+<p>The FOP distribution contains a schema for configuration files, at src/foschema/fop-configuration.xsd. Did you validate your configuration file against it? Add the following schema location to the <code>schema</code> element:</p>
+<p><fop
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:noNamespaceSchemaLocation=
+    "http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/foschema/fop-configuration.xsd?view=co"></p>
 </li>
+</ul>
+<p>and run the configuration file through a validating schema parser. Note that the schema cannot detect all errors, and that it is stricter about the order of some elements than FOP itself is.</p>
+<ul>
+<li>Run FOP in debug mode (command line option <code>-d</code> ). This makes FOP report which configuration information it finds. Check if FOP finds what you expect.</li>
 </ul></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html Mon Dec  3 04:59:19 2012
@@ -341,34 +341,40 @@ $(document).ready(function () {
         <div id="items">
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/0.95/">0.95</a></div> -->
-      	<div class="section-content"><h1 id="standard-apachewzxhzdk0-fop-extensions">Standard Apache&trade; FOP Extensions</h1>
+      	<div class="section-content"><h1 id="standard-apachewzxhzdk2-fop-extensions">Standard Apache&trade; FOP Extensions</h1>
 <p>By "extension", we mean any data that can be placed in the input XML document that is not addressed by the XSL-FO standard. By having a mechanism for supporting extensions, FOP is able to add features that are not covered in the specification.</p>
 <p>The extensions documented here are included with FOP, and are automatically available to you. If you wish to add an extension of your own to FOP, please see the <a href="../dev/extensions.html">Developers' Extension Page</a> .
 All extensions require the correct use of an appropriate namespace in your input document.</p>
-<h1 id="svg-wzxhzdk1wzxhzdk2">SVG <a id="svg"></a></h1>
+<h1 id="svg-wzxhzdk3wzxhzdk4">SVG <a id="svg"></a></h1>
 <p>Please see the <a href="graphics.html#svg">SVG documentation</a> for more details.</p>
-<h2 id="fo-extensions-wzxhzdk3wzxhzdk4">FO Extensions <a id="fo-extensions"></a></h2>
-<h3 id="namespace-wzxhzdk5wzxhzdk6">Namespace <a id="fox-namespace"></a></h3>
-<p>By convention, FO extensions in FOP use the "fox" namespace prefix. To use any of the FO extensions, add a namespace entry for <code>http://xmlgraphics.apache.org/fop/extensions</code> to the root element:
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
-               xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"></p>
-<h2 id="pdf-bookmarks-wzxhzdk8wzxhzdk9">PDF Bookmarks <a id="bookmarks"></a></h2>
+<h2 id="fo-extensions-wzxhzdk5wzxhzdk6">FO Extensions <a id="fo-extensions"></a></h2>
+<h3 id="namespace-wzxhzdk7wzxhzdk8">Namespace <a id="fox-namespace"></a></h3>
+<p>By convention, FO extensions in FOP use the "fox" namespace prefix. To use any of the FO extensions, add a namespace entry for <code>http://xmlgraphics.apache.org/fop/extensions</code> to the root element:</p>
+<div class="codehilite"><pre><span class="o">&lt;</span><span class="n">fo:root</span> <span class="n">xmlns:fo</span><span class="o">=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
+           <span class="n">xmlns:fox</span><span class="o">=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions&quot;</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<h2 id="pdf-bookmarks-wzxhzdk9wzxhzdk10">PDF Bookmarks <a id="bookmarks"></a></h2>
 <p>In previous versions of Apache FOP there was a <code>fox:outline</code> element which was used to create outlines in PDF files. The redesigned code makes use of the new <a href="http://www.w3.org/TR/xsl11/#fo_bookmark-tree">bookmark feature defined in the latest XSL 1.1 working draft</a> .</p>
-<h3 id="anchors-or-named-destinations-wzxhzdk10wzxhzdk11">Anchors or Named Destinations <a id="named-destinations"></a></h3>
-<p>Use the fox:destination element to define "named destinations" inside a PDF document. These are useful as fragment identifiers, e.g. "http://server/document.pdf#anchor-name". fox:destination elements can be placed almost anywhere in the fo document, including a child of root, a block-level element, or an inline-level element. For the destination to actually work, it must correspond to an "id" attribute on some fo element within the document. In other words, the "id" attribute actually creates the "view" within the PDF document. The fox:destination simply gives that view an independent name.
-<fox:destination internal-destination="table-of-contents"/>
+<h3 id="anchors-or-named-destinations-wzxhzdk11wzxhzdk12">Anchors or Named Destinations <a id="named-destinations"></a></h3>
+<p>Use the fox:destination element to define "named destinations" inside a PDF document. These are useful as fragment identifiers, e.g. "http://server/document.pdf#anchor-name". fox:destination elements can be placed almost anywhere in the fo document, including a child of root, a block-level element, or an inline-level element. For the destination to actually work, it must correspond to an "id" attribute on some fo element within the document. In other words, the "id" attribute actually creates the "view" within the PDF document. The fox:destination simply gives that view an independent name.</p>
+<div class="codehilite"><pre><span class="nt">&lt;fox:destination</span> <span class="na">internal-destination=</span><span class="s">&quot;table-of-contents&quot;</span><span class="nt">/&gt;</span>
 ...
-<fo:block id="table-of-contents">Table of Contents</fo:block><warning>It is possible that in some future release of FOP, <em>all</em> elements with "id" attributes will generate named-destinations, which will eliminate the need for fox:destination.</warning></p>
-<h2 id="table-continuation-label-wzxhzdk17wzxhzdk18">Table Continuation Label <a id="table-continue-label"></a></h2>
+<span class="nt">&lt;fo:block</span> <span class="na">id=</span><span class="s">&quot;table-of-contents&quot;</span><span class="nt">&gt;</span>Table of Contents<span class="nt">&lt;/fo:block&gt;&lt;warning&gt;</span>It is possible that in some future release of FOP, *all* elements with &quot;id&quot; attributes will generate named-destinations, which will eliminate the need for fox:destination.<span class="nt">&lt;/warning&gt;</span>
+</pre></div>
+
+
+<h2 id="table-continuation-label-wzxhzdk13wzxhzdk14">Table Continuation Label <a id="table-continue-label"></a></h2>
 <p>This extension element hasn't been reimplemented for the redesigned code, yet.</p>
-<h3 id="foxorphan-content-limit-and-foxwidow-content-limit-wzxhzdk19wzxhzdk20">fox:orphan-content-limit and fox:widow-content-limit <a id="widow-orphan-content-limit"></a></h3>
+<h3 id="foxorphan-content-limit-and-foxwidow-content-limit-wzxhzdk15wzxhzdk16">fox:orphan-content-limit and fox:widow-content-limit <a id="widow-orphan-content-limit"></a></h3>
 <p>The two proprietary extension properties, fox:orphan-content-limit and fox:widow-content-limit, are used to improve the layout of list-blocks and tables. If you have a table with many entries, you don't want a single row to be left over on a page. You will want to make sure that at least two or three lines are kept together. The properties take an absolute length which specifies the area at the beginning (fox:widow-content-limit) or at the end (fox:orphan-content-limit) of a table or list-block. The properties are inherited and only have an effect on fo:table and fo:list-block. An example: fox:widow-content-limit="3 * 1.2em" would make sure the you'll have at least three lines (assuming line-height="1.2") together on a table or list-block.</p>
-<h3 id="foxexternal-document-wzxhzdk21wzxhzdk22">fox:external-document <a id="external-document"></a></h3>
+<h3 id="foxexternal-document-wzxhzdk17wzxhzdk18">fox:external-document <a id="external-document"></a></h3>
 <p>This feature is incomplete. Support for multi-page documents will be added shortly. At the moment, only single-page images will work. And this will not work with RTF output.
 This is a proprietary extension element which allows to add whole images as pages to an FO document. For example, if you have a scanned document or a fax as multi-page TIFF file, you can append or insert this document using the <code>fox:external-document</code> element. Each page of the external document will create one full page in the target format.</p>
 <p>The <code>fox:external-document</code> element is structurally a peer to <code>fo:page-sequence</code> , so wherever you can put an <code>fo:page-sequence</code> you could also place a <code>fox:external-document</code> . Therefore, the specified contents for <code>fo:root</code> change to:</p>
 <p><code>(layout-master-set, declarations?, bookmark-tree?, (page-sequence|page-sequence-wrapper|fox:external-document|fox:destination)+)</code> </p>
-<h4 id="specification-wzxhzdk23wzxhzdk24">Specification ## <a id="Specification"></a></h4>
+<h4 id="specification-wzxhzdk19wzxhzdk20">Specification ## <a id="Specification"></a></h4>
 <p>The <code>fox:external-document</code> extension formatting object is used to specify how to create a (sub-)sequence of pages within a document. The content of these pages comes from the individual subimages/pages of an image or paged document (for example: multi-page TIFF in the form of faxes or scanned documents, or PDF files). The formatting object creates the necessary areas to display one image per page.</p>
 <p>In terms of page numbers, the behaviour is the same as for <code>fo:page-sequence</code> . The placement of the image inside the page is similar to that of <code>fo:external-graphic</code> or <code>fo:instream-foreign-object</code> , i.e. the viewport (and therefore the page size) is defined by either the intrinsic size of the image or by the size properties that apply to this formatting object.</p>
 <p>Content: EMPTY</p>
@@ -431,13 +437,13 @@ This is a proprietary extension element 
 </ul>
 <p>Datatype "page-set": Value: auto | <integer-range>, Default: "auto" which means all pages/subimages of the document. <integer-range> allows values such as "7" or "1-3"
  <code>fox:external-document</code> is not suitable for concatenating FO documents. For this, XInclude is recommended.</p>
-<h2 id="free-form-transformation-for-foblock-container-wzxhzdk27wzxhzdk28">Free-form Transformation for fo:block-container <a id="transform"></a></h2>
+<h2 id="free-form-transformation-for-foblock-container-wzxhzdk23wzxhzdk24">Free-form Transformation for fo:block-container <a id="transform"></a></h2>
 <p>For <code>fo:block-container</code> elements whose <code>absolute-position</code> set to "absolute" or "fixed" you can use the extension attribute <code>fox:transform</code> to apply a free-form transformation to the whole block-container. The content of the <code>fox:transform</code> attribute is the same as for <a href="http://www.w3.org/TR/SVG/coords.html#TransformAttribute">SVG's transform attribute</a> . The transformation specified here is performed in addition to other implicit transformations of the block-container (resulting from top, left and other properties) and after them.</p>
 <p>Examples: <code>fox:transform="rotate(45)"</code> would rotate the block-container by 45 degrees clock-wise around its upper-left corner. <code>fox:transform="translate(10000,0)"</code> would move the block-container to the right by 10 points (=10000 millipoints, FOP uses millipoints internally!).
 This extension attribute doesn't work for all output formats! It's currently only supported for PDF, PS and Java2D-based renderers.</p>
-<h2 id="color-functions-wzxhzdk29wzxhzdk30">Color functions <a id="color-functions"></a></h2>
+<h2 id="color-functions-wzxhzdk25wzxhzdk26">Color functions <a id="color-functions"></a></h2>
 <p>XSL-FO supports specifying color using the rgb(), rgb-icc() and system-color() functions. Apache FOP provides additional color functions for special use cases. Please note that using these functions compromises the interoperability of an FO document.</p>
-<h4 id="cmyk-wzxhzdk31wzxhzdk32">cmyk() ## <a id="color-function-cmyk"></a></h4>
+<h4 id="cmyk-wzxhzdk27wzxhzdk28">cmyk() ## <a id="color-function-cmyk"></a></h4>
 <p><code>color cmyk(numeric, numeric, numeric, numeric)</code> </p>
 <p>This function will construct a color in device-specific CMYK color space. The numbers must be between 0.0 and 1.0. For output formats that don't support device-specific color space the CMYK value is converted to an sRGB value.</p></div>
       </div>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.html Mon Dec  3 04:59:19 2012
@@ -341,9 +341,9 @@ $(document).ready(function () {
         <div id="items">
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/0.95/">0.95</a></div> -->
-      	<div class="section-content"><h1 id="apachewzxhzdk1-fop-fonts">Apache&trade; FOP: Fonts</h1>
+      	<div class="section-content"><h1 id="apachewzxhzdk3-fop-fonts">Apache&trade; FOP: Fonts</h1>
 <p><authors><person email="" name="Jeremias Märki"></person><person email="" name="Tore Engvig"></person><person email="" name="Adrian Cumiskey"></person><person email="" name="Max Berger"></person></authors></p>
-<h2 id="summary-wzxhzdk12wzxhzdk13">Summary <a id="intro"></a></h2>
+<h2 id="summary-wzxhzdk14wzxhzdk15">Summary <a id="intro"></a></h2>
 <p>The following table summarizes the font capabilities of the various FOP renderers:</p>
 <table>
 <thead>
@@ -421,15 +421,15 @@ $(document).ready(function () {
 </tr>
 </tbody>
 </table>
-<h2 id="base-14-fonts-wzxhzdk14wzxhzdk15">Base-14 Fonts <a id="Base-14+Fonts"></a></h2>
+<h2 id="base-14-fonts-wzxhzdk16wzxhzdk17">Base-14 Fonts <a id="Base-14+Fonts"></a></h2>
 <p>The Adobe PostScript and PDF Specification specify a set of 14 fonts that must be available to every PostScript interpreter and PDF reader: Helvetica (normal, bold, italic, bold italic), Times (normal, bold, italic, bold italic), Courier (normal, bold, italic, bold italic), Symbol and ZapfDingbats.</p>
 <p>Please note that recent versions of Adobe Acrobat Reader replace "Helvetica" with "Arial" and "Times" with "Times New Roman" internally. GhostScript replaces "Helvetica" with "Nimbus Sans L" and "Times" with "Nimbus Roman No9 L". Other document viewers may do similar font substitutions. If you need to make sure that there are no such substitutions, you need to specify an explicit font and embed it in the target document.</p>
-<h2 id="missing-fonts-wzxhzdk16wzxhzdk17">Missing Fonts <a id="Missing+Fonts"></a></h2>
+<h2 id="missing-fonts-wzxhzdk18wzxhzdk19">Missing Fonts <a id="Missing+Fonts"></a></h2>
 <p>When FOP does not have a specific font at its disposal (because it's not installed in the operating system or set up in FOP's configuration), the font is replaced with "any". "any" is internally mapped to the Base-14 font "Times" (see above).</p>
-<h2 id="java2dawtoperating-system-fonts-wzxhzdk18wzxhzdk19">Java2D/AWT/Operating System Fonts <a id="awt"></a></h2>
+<h2 id="java2dawtoperating-system-fonts-wzxhzdk20wzxhzdk21">Java2D/AWT/Operating System Fonts <a id="awt"></a></h2>
 <p>The Java2D family of renderers (Java2D, AWT, Print, TIFF, PNG), use the Java AWT subsystem for font metric information. Through operating system registration, the AWT subsystem knows what fonts are available on the system, and the font metrics for each one.</p>
 <p>When working with one of these output formats and you're missing a font, just install it in your operating system and they should be available for these renderers. Please note that this is not true for other output formats such as PDF or PostScript.</p>
-<h2 id="custom-fonts-wzxhzdk20wzxhzdk21">Custom Fonts <a id="custom"></a></h2>
+<h2 id="custom-fonts-wzxhzdk22wzxhzdk23">Custom Fonts <a id="custom"></a></h2>
 <p>Support for custom fonts is highly output format dependent (see above table). This section shows how to add Type 1 and TrueType fonts to the PDF, PostScript and Java2D-based renderers. Other renderers (like AFP) support other font formats. Details in this case can be found on the page about <a href="output.html">output formats</a> .</p>
 <p>Prior to FOP version 0.94, it was always necessary to create an XML font metrics file if you wanted to add a custom font. This unconvenient step has been removed and in addition to that, FOP supports auto-registration of fonts, i.e. FOP can find fonts installed in your operating system or can scan user-specified directories for fonts. Font registration via XML font metrics file is still supported and is still necessary if you want to use a TrueType Collection (*.ttc). Direct support for TrueType collections may be added later. Furthermore, the XML font metrics files are still required if you don't want to embed, but only reference a font.</p>
 <p>Basic information about fonts can be found at:</p>
@@ -441,20 +441,26 @@ $(document).ready(function () {
 <p><a href="http://partners.adobe.com/asn/developer/technotes/fonts.html">Adobe Font Technote</a> </p>
 </li>
 </ul>
-<h2 id="basic-font-configuration-wzxhzdk22wzxhzdk23">Basic font configuration <a id="basics"></a></h2>
+<h2 id="basic-font-configuration-wzxhzdk24wzxhzdk25">Basic font configuration <a id="basics"></a></h2>
 <p>If you want FOP to use custom fonts, you need to tell it where to find them. This is done in the configuration file and once per renderer (because each output format is a little different). In the basic form, you can either tell FOP to find your operating system fonts or you can specify directories that it will search for support fonts. These fonts will then automatically be registered.</p>
-<p><fonts>
-  <!-- register all the fonts found in a directory -->
-  <directory>C:\MyFonts1</directory></p>
-<p><!-- register all the fonts found in a directory
-       and all of its sub directories (use with care) -->
-  <directory recursive="true">C:\MyFonts2</directory></p>
-<p><!-- automatically detect operating system installed fonts -->
-  <auto-detect/><br />
-</fonts>Review the documentation for <a href="configuration.html">FOP Configuration</a> for instructions on making the FOP configuration available to FOP when it runs. Otherwise, FOP has no way of finding your custom font information. It is currently not possible to easily configure fonts from Java code.</p>
-<h1 id="advanced-font-configuration-wzxhzdk34wzxhzdk35">Advanced font configuration <a id="advanced"></a></h1>
+<div class="codehilite"><pre><span class="nt">&lt;fonts&gt;</span>
+  <span class="c">&lt;!-- register all the fonts found in a directory --&gt;</span>
+  <span class="nt">&lt;directory&gt;</span>C:\MyFonts1<span class="nt">&lt;/directory&gt;</span>
+
+  <span class="c">&lt;!-- register all the fonts found in a directory</span>
+<span class="c">       and all of its sub directories (use with care) --&gt;</span>
+  <span class="nt">&lt;directory</span> <span class="na">recursive=</span><span class="s">&quot;true&quot;</span><span class="nt">&gt;</span>C:\MyFonts2<span class="nt">&lt;/directory&gt;</span>
+
+  <span class="c">&lt;!-- automatically detect operating system installed fonts --&gt;</span>
+  <span class="nt">&lt;auto-detect/&gt;</span>  
+<span class="nt">&lt;/fonts&gt;</span>
+</pre></div>
+
+
+<p>Review the documentation for <a href="configuration.html">FOP Configuration</a> for instructions on making the FOP configuration available to FOP when it runs. Otherwise, FOP has no way of finding your custom font information. It is currently not possible to easily configure fonts from Java code.</p>
+<h1 id="advanced-font-configuration-wzxhzdk26wzxhzdk27">Advanced font configuration <a id="advanced"></a></h1>
 <p>The instructions found above should be sufficient for most users. Below are some additional instructions in case the basic font configuration doesn't lead to the desired results.</p>
-<h3 id="type-1-font-metrics-wzxhzdk36wzxhzdk37">Type 1 Font Metrics <a id="type1-metrics"></a></h3>
+<h3 id="type-1-font-metrics-wzxhzdk28wzxhzdk29">Type 1 Font Metrics <a id="type1-metrics"></a></h3>
 <p>FOP includes PFMReader, which reads the PFM file that normally comes with a Type 1 font, and generates an appropriate font metrics file for it. To use it, run the class org.apache.fop.fonts.apps.PFMReader:</p>
 <p>Windows:
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
@@ -467,7 +473,7 @@ PFMReader [options]:</p>
 <li><strong>-fn <fontname></strong> By default, FOP uses the fontname from the .pfm file when embedding the font. Use the "-fn" option to override this name with one you have chosen. This may be useful in some cases to ensure that applications using the output document (Acrobat Reader for example) use the embedded font instead of a local font with the same name.
 The classpath in the above example has been simplified for readability. You will have to adjust the classpath to the names of the actual JAR files in the lib directory. xml-apis.jar, xercesImpl.jar, xalan.jar and serializer.jar are not necessary for JDK version 1.4 or later.The tool will construct some values (FontBBox, StemV and ItalicAngle) based on assumptions and calculations which are only an approximation to the real values. FontBBox and Italic Angle can be found in the human-readable part of the PFB file or in the AFM file. The PFMReader tool does not yet interpret PFB or AFM files, so if you want to be correct, you may have to adjust the values in the XML file manually. The constructed values however appear to have no visible influence.</li>
 </ul>
-<h2 id="truetype-font-metrics-wzxhzdk38wzxhzdk39">TrueType Font Metrics <a id="truetype-metrics"></a></h2>
+<h2 id="truetype-font-metrics-wzxhzdk30wzxhzdk31">TrueType Font Metrics <a id="truetype-metrics"></a></h2>
 <p>FOP includes TTFReader, which reads the TTF file and generates an appropriate font metrics file for it. Use it in a similar manner to PFMReader. For example, to create such a metrics file in Windows from the TrueType font at c:\myfonts\cmr10.ttf:
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
           org.apache.fop.fonts.apps.TTFReader [options]
@@ -524,22 +530,28 @@ TTFReader [options]:</p>
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
           org.apache.fop.fonts.apps.TTFReader -ttcname "MS Mincho"
           msmincho.ttc msminch.xml</p>
-<h2 id="register-fonts-with-fop-wzxhzdk40wzxhzdk41">Register Fonts with FOP <a id="register"></a></h2>
+<h2 id="register-fonts-with-fop-wzxhzdk32wzxhzdk33">Register Fonts with FOP <a id="register"></a></h2>
 <p>You must tell FOP how to find and use the font metrics files by registering them in the <a href="configuration.html">FOP Configuration</a> . Add entries for your custom fonts, regardless of font type, to the configuration file in a manner similar to the following:</p>
-<p><fonts>
-  <!-- register a particular font -->
-  <font metrics-url="file:///C:/myfonts/FTL_____.xml" kerning="yes"
-      embed-url="file:///C:/myfonts/FTL_____.pfb">
-     <font-triplet name="FrutigerLight" style="normal" weight="normal"/>
-  </font></p>
-<p><!-- register all the fonts found in a directory -->
-  <directory>C:\MyFonts1</directory></p>
-<p><!-- register all the fonts found in a directory
-       and all of its sub directories (use with care) -->
-  <directory recursive="true">C:\MyFonts2</directory></p>
-<p><!-- automatically detect operating system installed fonts -->
-  <auto-detect/><br />
-</fonts></p>
+<div class="codehilite"><pre><span class="nt">&lt;fonts&gt;</span>
+  <span class="c">&lt;!-- register a particular font --&gt;</span>
+  <span class="nt">&lt;font</span> <span class="na">metrics-url=</span><span class="s">&quot;file:///C:/myfonts/FTL_____.xml&quot;</span> <span class="na">kerning=</span><span class="s">&quot;yes&quot;</span>
+      <span class="na">embed-url=</span><span class="s">&quot;file:///C:/myfonts/FTL_____.pfb&quot;</span><span class="nt">&gt;</span>
+     <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;FrutigerLight&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;/font&gt;</span>
+
+  <span class="c">&lt;!-- register all the fonts found in a directory --&gt;</span>
+  <span class="nt">&lt;directory&gt;</span>C:\MyFonts1<span class="nt">&lt;/directory&gt;</span>
+
+  <span class="c">&lt;!-- register all the fonts found in a directory</span>
+<span class="c">       and all of its sub directories (use with care) --&gt;</span>
+  <span class="nt">&lt;directory</span> <span class="na">recursive=</span><span class="s">&quot;true&quot;</span><span class="nt">&gt;</span>C:\MyFonts2<span class="nt">&lt;/directory&gt;</span>
+
+  <span class="c">&lt;!-- automatically detect operating system installed fonts --&gt;</span>
+  <span class="nt">&lt;auto-detect/&gt;</span>  
+<span class="nt">&lt;/fonts&gt;</span>
+</pre></div>
+
+
 <ul>
 <li>
 <p>URLs are used to access the font metric and font files. Relative URLs are resolved relative to the font-base property (or base) if available. See <a href="configuration.html">FOP: Configuration</a> for more information.</p>
@@ -575,7 +587,7 @@ java -cp build\fop.jar;lib\avalon-framew
 <p>If relative URLs are specified, they are evaluated relative to the value of the "font-base" setting. If there is no "font-base" setting, the fonts are evaluated relative to the base directory.</p>
 </li>
 </ul>
-<h3 id="auto-detect-and-auto-embedd-feature-wzxhzdk56wzxhzdk57">Auto-Detect and auto-embedd feature <a id="autodetect"></a></h3>
+<h3 id="auto-detect-and-auto-embedd-feature-wzxhzdk34wzxhzdk35">Auto-Detect and auto-embedd feature <a id="autodetect"></a></h3>
 <p>When the "auto-detect" flag is set in the configuration, FOP will automatically search for fonts in the default paths for your operating system.</p>
 <p>FOP will also auto-detect fonts which are available in the classpath, if they are described as "application/x-font" in the MANIFEST.MF file. For example, if your .jar file contains font/myfont.ttf:
 Manifest-Version: 1.0</p>
@@ -585,7 +597,7 @@ Manifest-Version: 1.0</p>
 
 
 <p>This feature allows you to create JAR files containing fonts. The JAR files can be added to fop by providem them in the classpath, e.g. copying them into the lib/ directory.</p>
-<h3 id="embedding-wzxhzdk58wzxhzdk59">Embedding <a id="embedding"></a></h3>
+<h3 id="embedding-wzxhzdk36wzxhzdk37">Embedding <a id="embedding"></a></h3>
 <p>The PostScript renderer does not yet support TrueType fonts, but can embed Type 1 fonts.The font is simply embedded into the PDF file, it is not converted.
 Font embedding is enabled in the userconfig.xml file and controlled by the embed-url attribute. If you don't specify the embed-url attribute the font will not be embedded, but will only be referenced.
 <warning>Omitting the embed-url attribute for CID-encoded TrueType fonts will currently produce invalid PDF files! If you create the XML font metric file using the "-enc ansi" option, you can omit the embed-url attribute for TrueType fonts but you're restricted to the WinAnsi character set.</warning>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html Mon Dec  3 04:59:19 2012
@@ -341,15 +341,39 @@ $(document).ready(function () {
         <div id="items">
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/0.95/">0.95</a></div> -->
-      	<div class="section-content"><h1 id="apachewzxhzdk0-fop-metadata">Apache&trade; FOP: Metadata</h1>
-<h2 id="overview-wzxhzdk1wzxhzdk2">Overview <a id="overview"></a></h2>
+      	<div class="section-content"><h1 id="apachewzxhzdk1-fop-metadata">Apache&trade; FOP: Metadata</h1>
+<h2 id="overview-wzxhzdk2wzxhzdk3">Overview <a id="overview"></a></h2>
 <p>Document metadata is an important tool for categorizing and finding documents. Various formats support different kinds of metadata representation and to different levels. One of the more popular and flexible means of representing document or object metadata is <a href="http://www.adobe.com/products/xmp/">XMP (eXtensible Metadata Platform, specified by Adobe)</a> . PDF 1.4 introduced the use of XMP. The XMP specification lists recommendation for embedding XMP metdata in other document and image formats. Given its flexibility it makes sense to make use this approach in the XSL-FO context. Unfortunately, unlike SVG which also refers to XMP, XSL-FO doesn't recommend a preferred way of specifying document and object metadata. Therefore, there's no portable way to represent metadata in XSL-FO documents. Each implementation does it differently.</p>
-<h2 id="embedding-xmp-in-an-xsl-fo-document-wzxhzdk3wzxhzdk4">Embedding XMP in an XSL-FO document <a id="xmp-in-fo"></a></h2>
+<h2 id="embedding-xmp-in-an-xsl-fo-document-wzxhzdk4wzxhzdk5">Embedding XMP in an XSL-FO document <a id="xmp-in-fo"></a></h2>
 <p>As noted above, there's no officially recommended way to embed metadata in XSL-FO. Apache&trade; FOP supports embedding XMP in XSL-FO. Currently, only support for document-level metadata is implemented. Object-level metadata will be implemented when there's interest.</p>
 <p>Document-level metadata can be specified in the <code>fo:declarations</code> element. XMP specification recommends to use <code>x:xmpmeta</code> , <code>rdf:RDF</code> , and <code>rdf:Description</code> elements as shown in example below. Both <code>x:xmpmeta</code> and <code>rdf:RDF</code> elements are recognized as the top-level element introducing an XMP fragment (as per the XMP specification).</p>
-<h3 id="example-wzxhzdk6wzxhzdk7">Example <a id="xmp-example"></a></h3>
-<p class="."></p>
-<h1 id="implementation-in-apache-fop-wzxhzdk8wzxhzdk9">Implementation in Apache FOP <a id="xmp-impl-in-fop"></a></h1>
+<h3 id="example-wzxhzdk7wzxhzdk8">Example <a id="xmp-example"></a></h3>
+<div class="codehilite"><pre><span class="k">[..]</span>
+<span class="err">&lt;/fo:layout-master-set&gt;</span>
+<span class="err">&lt;fo:declarations&gt;</span>
+  <span class="na">&lt;x:xmpmeta xmlns:x</span><span class="o">=</span><span class="s">&quot;adobe:ns:meta/&quot;&gt;</span>
+<span class="s">    &lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;&gt;</span>
+<span class="s">      &lt;rdf:Description rdf:about=&quot;&quot;</span>
+<span class="s">          xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot;&gt;</span>
+<span class="s">        &lt;!-- Dublin Core properties go here --&gt;</span>
+<span class="s">        &lt;dc:title&gt;Document title&lt;/dc:title&gt;</span>
+<span class="s">        &lt;dc:creator&gt;Document author&lt;/dc:creator&gt;</span>
+<span class="s">        &lt;dc:description&gt;Document subject&lt;/dc:description&gt;</span>
+<span class="s">      &lt;/rdf:Description&gt;</span>
+<span class="s">      &lt;rdf:Description rdf:about=&quot;&quot;</span>
+<span class="s">          xmlns:xmp=&quot;http://ns.adobe.com/xap/1.0/&quot;&gt;</span>
+<span class="s">        &lt;!-- XMP properties go here --&gt;</span>
+<span class="s">        &lt;xmp:CreatorTool&gt;Tool used to make the PDF&lt;/xmp:CreatorTool&gt;</span>
+<span class="s">      &lt;/rdf:Description&gt;</span>
+<span class="s">    &lt;/rdf:RDF&gt;</span>
+<span class="s">  &lt;/x:xmpmeta&gt;</span>
+<span class="err">&lt;/fo:declarations&gt;</span>
+<span class="err">&lt;fo:page-sequence</span> <span class="err">...</span>
+<span class="err">[..]</span> <span class="err">`fo:declarations`</span>  <span class="err">**must**</span> <span class="err">be</span> <span class="err">declared</span> <span class="err">after</span> <span class="err">`fo:layout-master-set`</span> <span class="err">and</span> <span class="err">before</span> <span class="err">the</span> <span class="err">first</span> <span class="err">`page-sequence`</span> <span class="err">.</span>
+</pre></div>
+
+
+<h1 id="implementation-in-apache-fop-wzxhzdk9wzxhzdk10">Implementation in Apache FOP <a id="xmp-impl-in-fop"></a></h1>
 <p>Currently, XMP support is only available for PDF output.</p>
 <p>Originally, you could set some metadata information through FOP's FOUserAgent by using its set*() methods (like setTitle(String) or setAuthor(String). These values are directly used to set value in the PDF Info object. Since PDF 1.4, adding metadata as an XMP document to a PDF is possible. That means that there are now two mechanisms in PDF that hold metadata.</p>
 <p>Apache FOP now synchronizes the Info and the Metadata object in PDF, i.e. when you set the title and the author through the FOUserAgent, the two values will end up in the (old) Info object and in the new Metadata object as XMP content. If instead of FOUserAgent, you embed XMP metadata in the XSL-FO document (as shown above), the XMP metadata will be used as-is in the PDF Metadata object and some values from the XMP metadata will be copied to the Info object to maintain backwards-compatibility for PDF readers that don't support XMP metadata.</p>
@@ -442,7 +466,7 @@ $(document).ready(function () {
 </table>
 <p>Please refer to the <a href="http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.pdf">XMP Specification</a> for information on other metadata namespaces.</p>
 <p>Property sets (Namespaces) not listed here are simply passed through to the final document (if supported). That is useful if you want to specify a custom metadata schema.</p>
-<h2 id="links-wzxhzdk10wzxhzdk11">Links <a id="links"></a></h2>
+<h2 id="links-wzxhzdk11wzxhzdk12">Links <a id="links"></a></h2>
 <ul>
 <li>
 <p><a href="http://www.adobe.com/products/xmp/">Adobe's Extensible Metadata Platform (XMP) website</a> </p>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message