You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by bu...@apache.org on 2012/12/01 07:54:52 UTC
svn commit: r840268 [3/13] - in /websites/staging/xmlgraphics/trunk/content:
./ commons/ fop/ fop/0.95/ fop/1.0/ fop/1.1/ fop/dev/ fop/dev/design/
fop/trunk/
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/configuration.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/configuration.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/configuration.html Sat Dec 1 06:54:40 2012
@@ -342,11 +342,10 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="apachewzxhzdk6-fop-configuration">Apache™ FOP: Configuration</h1>
-<p><version>$Revision: 1298724 $</version></p>
-<h2 id="configuration-file-basics-wzxhzdk9wzxhzdk10">Configuration File Basics <a id="general"></a></h2>
+<h2 id="configuration-file-basics-wzxhzdk7wzxhzdk8">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-wzxhzdk11wzxhzdk12">Making Configuration Available to FOP <a id="general-available"></a></h3>
+<h3 id="making-configuration-available-to-fop-wzxhzdk9wzxhzdk10">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>
@@ -357,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-wzxhzdk13wzxhzdk14">Summary of the General Configuration Options <a id="general-elements"></a></h2>
+<h2 id="summary-of-the-general-configuration-options-wzxhzdk11wzxhzdk12">Summary of the General Configuration Options <a id="general-elements"></a></h2>
<table>
<thead>
<tr>
@@ -467,12 +466,12 @@ $(document).ready(function () {
<default-page-settings height="11in" width="8.26in"/></p>
<p><!-- etc. etc..... -->
</fop></p>
-<h1 id="image-loading-customization-wzxhzdk38wzxhzdk39">Image Loading Customization <a id="image-loading"></a></h1>
+<h1 id="image-loading-customization-wzxhzdk36wzxhzdk37">Image Loading Customization <a id="image-loading"></a></h1>
<p class=".">Apache FOP uses the image loading framework from <a href="http://xmlgraphics.apache.org/commons/">Apache XML Graphics Commons</a> to load images using various plug-ins. Every image loader plug-in has a hard-coded usage penalty that influences which solution is chosen if there are multiple possibilities to load an image. Sometimes, though, these penalties need to be tweaked and this can be done in the FOP configuration. An example:
<fop version="1.0"></p>
<p>The second penalty element sets an "infinite" penalty for the TIFF loader using the internal TIFF codec. This practically disables that plug-in as it will never be chosen as a possible solution.</p>
<p>Negative penalties are possible to promote a plug-in but a negative penalty sum will be treated as zero penalty in most cases. For more details on the image loading framework, please consult the documentation there.</p>
-<h2 id="renderer-configuration-wzxhzdk41wzxhzdk42">Renderer configuration <a id="renderers"></a></h2>
+<h2 id="renderer-configuration-wzxhzdk39wzxhzdk40">Renderer configuration <a id="renderers"></a></h2>
<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>
@@ -498,7 +497,7 @@ $(document).ready(function () {
<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-wzxhzdk61wzxhzdk62">Special Settings for the PDF Renderer <a id="pdf-renderer"></a></h3>
+<h3 id="special-settings-for-the-pdf-renderer-wzxhzdk59wzxhzdk60">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"><renderer</span> <span class="na">mime=</span><span class="s">"application/pdf"</span><span class="nt">></span>
<span class="nt"><filterList></span>
@@ -550,7 +549,7 @@ $(document).ready(function () {
</pre></div>
-<h2 id="special-settings-for-the-postscript-renderer-wzxhzdk63wzxhzdk64">Special Settings for the PostScript Renderer <a id="ps-renderer"></a></h2>
+<h2 id="special-settings-for-the-postscript-renderer-wzxhzdk61wzxhzdk62">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"><renderer</span> <span class="na">mime=</span><span class="s">"application/postscript"</span><span class="nt">></span>
<span class="nt"><auto-rotate-landscape></span>true<span class="nt"></auto-rotate-landscape></span>
@@ -569,7 +568,7 @@ $(document).ready(function () {
</pre></div>
-<h2 id="special-settings-for-the-pcl-renderer-wzxhzdk65wzxhzdk66">Special Settings for the PCL Renderer <a id="pcl-renderer"></a></h2>
+<h2 id="special-settings-for-the-pcl-renderer-wzxhzdk63wzxhzdk64">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">
@@ -578,7 +577,7 @@ $(document).ready(function () {
</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>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>
-<h3 id="special-settings-for-the-afp-renderer-wzxhzdk73wzxhzdk74">Special Settings for the AFP Renderer <a id="afp-renderer"></a></h3>
+<h3 id="special-settings-for-the-afp-renderer-wzxhzdk71wzxhzdk72">Special Settings for the AFP Renderer <a id="afp-renderer"></a></h3>
<p>Additionally, there are certain settings that control how the renderer handles various elements.
<renderer mime="application/x-afp">
<images mode="b+w" bits-per-pixel="8" native="true"/>
@@ -589,7 +588,7 @@ The default value for the "rendering" se
The default value for the images "mode" setting is "b+w" (black and white). When the images "mode" setting is "b+w" a "bits-per-pixel" setting can be provided to aid the grayscale conversion process. With this setting all images referenced in your source document are converted to an IOCA FS45 grayscale bitmap image form. When the setting is "color" all images are converted to an IOCA FS45 color bitmap image form. When "native" setting is "true", all images encountered (TIFF, GIF, JPEG and Encapsulated Postscript etc.) will be embedded directly in the datastream in their native form using a MO:DCA Object Container.</p>
<p>The default value for the "renderer-resolution" is 240 dpi.</p>
<p>By default if there is no configuration definition for "resource-group-file", external resources will be placed in a file called resources.afp.</p>
-<h2 id="when-it-does-not-work-wzxhzdk83wzxhzdk84">When it does not work <a id="When+it+does+not+work"></a></h2>
+<h2 id="when-it-does-not-work-wzxhzdk81wzxhzdk82">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>
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/events.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/events.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/events.html Sat Dec 1 06:54:40 2012
@@ -342,12 +342,11 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="apachewzxhzdk4-fop-eventsprocessing-feedback">Apache™ FOP: Events/Processing Feedback</h1>
-<p><version>$Revision: 1298724 $</version></p>
-<h2 id="introduction-wzxhzdk7wzxhzdk8">Introduction <a id="introduction"></a></h2>
+<h2 id="introduction-wzxhzdk5wzxhzdk6">Introduction <a id="introduction"></a></h2>
<p>In versions until 0.20.5, Apache™ FOP used <a href="http://excalibur.apache.org/framework/index.html">Avalon-style Logging</a> where it was possible to supply a logger per processing run. During the redesign the logging infrastructure was switched over to <a href="http://commons.apache.org/logging/">Commons Logging</a> which is (like Log4J or java.util.logging) a "static" logging framework (the logger is accessed through static variables). This made it very difficult in a multi-threaded system to retrieve information for a single processing run.</p>
<p>With FOP's event subsystem, we'd like to close this gap again and even go further. The first point is to realize that we have two kinds of "logging". Firstly, we have the logging infrastructure for the (FOP) developer who needs to be able to enable finer log messages for certain parts of FOP to track down a certain problem. Secondly, we have the user who would like to be informed about missing images, overflowing lines or substituted fonts. These messages (or events) are targeted at less technical people and may ideally be localized (translated). Furthermore, tool and solution builders would like to integrate FOP into their own solutions. For example, an FO editor should be able to point the user to the right place where a particular problem occurred while developing a document template. Finally, some integrators would like to abort processing if a resource (an image or a font) has not been found, while others would simply continue. The event system allows to react on the
se events.</p>
<p>On this page, we won't discuss logging as such. We will show how the event subsystem can be used for various tasks. We'll first look at the event subsystem from the consumer side. Finally, the production of events inside FOP will be discussed (this is mostly interesting for FOP developers only).</p>
-<h2 id="the-consumer-side-wzxhzdk10wzxhzdk11">The consumer side <a id="consumer"></a></h2>
+<h2 id="the-consumer-side-wzxhzdk8wzxhzdk9">The consumer side <a id="consumer"></a></h2>
<p>The event subsystem is located in the <code>org.apache.fop.events</code> package and its base is the <code>Event</code> class. An instance is created for each event and is sent to a set of <code>EventListener</code> instances by the <code>EventBroadcaster</code> . An <code>Event</code> contains:</p>
<ul>
<li>
@@ -365,7 +364,7 @@ $(document).ready(function () {
</ul>
<p>The <code>EventFormatter</code> class can be used to translate the events into human-readable, localized messages.</p>
<p>A full example of what is shown here can be found in the <code>examples/embedding/java/embedding/events</code> directory in the FOP distribution. The example can also be accessed <a href="http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/events/">via the web</a> .</p>
-<h3 id="writing-an-eventlistener-wzxhzdk12wzxhzdk13">Writing an EventListener <a id="write-listener"></a></h3>
+<h3 id="writing-an-eventlistener-wzxhzdk10wzxhzdk11">Writing an EventListener <a id="write-listener"></a></h3>
<p>The following code sample shows a very simple EventListener. It basically just sends all events to System.out (stdout) or System.err (stderr) depending on the event severity.
import org.apache.fop.events.Event;
import org.apache.fop.events.EventFormatter;
@@ -396,12 +395,12 @@ public class SysOutEventListener impleme
You can see that for every event the method <code>processEvent</code> of the <code>EventListener</code> will be called. Inside this method you can do whatever processing you would like including throwing a <code>RuntimeException</code> , if you want to abort the current processing run.</p>
<p>The code above also shows how you can turn an event into a human-readable, localized message that can be presented to a user. The <code>EventFormatter</code> class does this for you. It provides additional methods if you'd like to explicitly specify the locale.</p>
<p>It is possible to gather all events for a whole processing run so they can be evaluated afterwards. However, care should be taken about memory consumption since the events provide references to objects inside FOP which may themselves have references to other objects. So holding on to these objects may mean that whole object trees cannot be released!</p>
-<h3 id="adding-an-eventlistener-wzxhzdk14wzxhzdk15">Adding an EventListener <a id="add-listener"></a></h3>
+<h3 id="adding-an-eventlistener-wzxhzdk12wzxhzdk13">Adding an EventListener <a id="add-listener"></a></h3>
<p>To register the event listener with FOP, get the <code>EventBroadcaster</code> which is associated with the user agent ( <code>FOUserAgent</code> ) and add it there:
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.getEventBroadcaster().addEventListener(new SysOutEventListener());
Please note that this is done separately for each processing run, i.e. for each new user agent.</p>
-<h3 id="an-additional-listener-example-wzxhzdk16wzxhzdk17">An additional listener example <a id="listener-example1"></a></h3>
+<h3 id="an-additional-listener-example-wzxhzdk14wzxhzdk15">An additional listener example <a id="listener-example1"></a></h3>
<p>Here's an additional example of an event listener:</p>
<p>By default, FOP continues processing even if an image wasn't found. If you have more strict requirements and want FOP to stop if an image is not available, you can do something like the following in the simplest case:
public class MyEventListener implements EventListener {</p>
@@ -437,10 +436,10 @@ public class MyEventListener implements
<p>}
This throws a <code>RuntimeException</code> with the <code>FileNotFoundException</code> as the cause. Further processing effectively stops in FOP. You can catch the exception in your code and react as you see necessary.</p>
-<h2 id="the-producer-side-for-fop-developers-wzxhzdk18wzxhzdk19">The producer side (for FOP developers) <a id="producer"></a></h2>
+<h2 id="the-producer-side-for-fop-developers-wzxhzdk16wzxhzdk17">The producer side (for FOP developers) <a id="producer"></a></h2>
<p>This section is primarily for FOP and FOP plug-in developers. It describes how to use the event subsystem for producing events.
The event package has been designed in order to be theoretically useful for use cases outside FOP. If you think this is interesting independently from FOP, please talk to <a href="mailto:fop-dev@xmlgraphics.apache.org">us</a> .</p>
-<h2 id="producing-and-sending-an-event-wzxhzdk20wzxhzdk21">Producing and sending an event <a id="basic-event-production"></a></h2>
+<h2 id="producing-and-sending-an-event-wzxhzdk18wzxhzdk19">Producing and sending an event <a id="basic-event-production"></a></h2>
<p>The basics are very simple. Just instantiate an <code>Event</code> object and fill it with the necessary parameters. Then pass it to the <code>EventBroadcaster</code> which distributes the events to the interested listeneners. Here's a code example:
Event ev = new Event(this, "complain", EventSeverity.WARN,
Event.paramsBuilder()
@@ -450,7 +449,7 @@ Event ev = new Event(this, "complain", E
EventBroadcaster broadcaster = [get it from somewhere];
broadcaster.broadcastEvent(ev);</p>
<p>The <code>Event.paramsBuilder()</code> is a <a href="http://en.wikipedia.org/wiki/Fluent_interface">fluent interface</a> to help with the build-up of the parameters. You could just as well instantiate a <code>Map</code> ( <code>Map<String, Object></code> ) and fill it with values.</p>
-<h3 id="the-eventproducer-interface-wzxhzdk22wzxhzdk23">The EventProducer interface <a id="event-producer"></a></h3>
+<h3 id="the-eventproducer-interface-wzxhzdk20wzxhzdk21">The EventProducer interface <a id="event-producer"></a></h3>
<p>To simplify event production, the event subsystem provides the <code>EventProducer</code> interface. You can create interfaces which extend <code>EventProducer</code> . These interfaces will contain one method per event to be generated. By contract, each event method must have as its first parameter a parameter named "source" (Type Object) which indicates the object that generated the event. After that come an arbitrary number of parameters of any type as needed by the event.</p>
<p>The event producer interface does not need to have any implementation. The implementation is produced at runtime by a dynamic proxy created by <code>DefaultEventBroadcaster</code> . The dynamic proxy creates <code>Event</code> instances for each method call against the event producer interface. Each parameter (except "source") is added to the event's parameter map.</p>
<p>To simplify the code needed to get an instance of the event producer interface it is suggested to create a public inner provider class inside the interface.</p>
@@ -479,13 +478,13 @@ To produce the same event as in the firs
EventBroadcaster broadcaster = [get it from somewhere];
TestEventProducer producer = TestEventProducer.Provider.get(broadcaster);
producer.complain(this, "I'm tired", 23);</p>
-<h2 id="the-event-model-wzxhzdk24wzxhzdk25">The event model <a id="event-model"></a></h2>
+<h2 id="the-event-model-wzxhzdk22wzxhzdk23">The event model <a id="event-model"></a></h2>
<p>Inside an invocation handler for a dynamic proxy, there's no information about the names of each parameter. The JVM doesn't provide it. The only thing you know is the interface and method name. In order to properly fill the <code>Event</code> 's parameter map we need to know the parameter names. These are retrieved from an event object model. This is found in the <code>org.apache.fop.events.model</code> package. The data for the object model is retrieved from an XML representation of the event model that is loaded as a resource. The XML representation is generated using an Ant task at build time ( <code>ant resourcegen</code> ). The Ant task (found in <code>src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java</code> ) scans FOP's sources for descendants of the <code>EventProducer</code> interface and uses <a href="http://qdox.codehaus.org/">QDox</a> to parse these interfaces.</p>
<p>The event model XML files are generated during build by the Ant task mentioned above when running the "resourcegen" task. So just run <code>"ant resourcegen"</code> if you receive a <code>MissingResourceException</code> at runtime indicating that <code>"event-model.xml"</code> is missing.</p>
<p>Primarily, the QDox-based collector task records the parameters' names and types. Furthermore, it extracts additional attributes embedded as Javadoc comments from the methods. At the moment, the only such attribute is "@event.severity" which indicates the default event severity (which can be changed by event listeners). The example event producer above shows the Javadocs for an event method.</p>
<p>There's one more information that is extracted from the event producer information for the event model: an optional primary exception. The first exception in the "throws" declaration of an event method is noted. It is used to throw an exception from the invocation handler if the event has an event severity of "FATAL" when all listeners have been called (listeners can update the event severity). Please note that an implementation of <code>org.apache.fop.events.EventExceptionManager$ExceptionFactory</code> has to be registered for the <code>EventExceptionManager</code> to be able to construct the exception from an event.</p>
<p>For a given application, there can be multiple event models active at the same time. In FOP, each renderer is considered to be a plug-in and provides its own specific event model. The individual event models are provided through an <code>EventModelFactory</code> . This interface is implemented for each event model and registered through the service provider mechanism (see the <a href="#plug-ins">plug-ins section</a> for details).</p>
-<h3 id="event-severity-wzxhzdk26wzxhzdk27">Event severity <a id="event-severity"></a></h3>
+<h3 id="event-severity-wzxhzdk24wzxhzdk25">Event severity <a id="event-severity"></a></h3>
<p>Four different levels of severity for events has been defined:</p>
<ol>
<li>
@@ -502,7 +501,7 @@ producer.complain(this, "I'm tired", 23)
</li>
</ol>
<p>Event listeners can choose to ignore certain events based on their event severity. Please note that you may recieve an event "twice" in a specific case: if there is a fatal error an event is generated and sent to the listeners. After that an exception is thrown with the same information and processing stops. If the fatal event is shown to the user and the following exception is equally presented to the user it may appear that the event is duplicated. Of course, the same information is just published through two different channels.</p>
-<h3 id="plug-ins-to-the-event-subsystem-wzxhzdk28wzxhzdk29">Plug-ins to the event subsystem <a id="plug-ins"></a></h3>
+<h3 id="plug-ins-to-the-event-subsystem-wzxhzdk26wzxhzdk27">Plug-ins to the event subsystem <a id="plug-ins"></a></h3>
<p>The event subsystem is extensible. There are a number of extension points:</p>
<ul>
<li>
@@ -513,7 +512,7 @@ producer.complain(this, "I'm tired", 23)
</li>
</ul>
<p>The names in bold above are used as filenames for the service provider files that are placed in the <code>META-INF/services</code> directory. That way, they are automatically detected. This is a mechanism defined by the <a href="http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Service%20Provider">JAR file specification</a> .</p>
-<h3 id="localization-l10n-wzxhzdk30wzxhzdk31">Localization (L10n) <a id="l10n"></a></h3>
+<h3 id="localization-l10n-wzxhzdk28wzxhzdk29">Localization (L10n) <a id="l10n"></a></h3>
<p>One goal of the event subsystem was to have localized (translated) event messages. The <code>EventFormatter</code> class can be used to convert an event to a human-readable message. Each <code>EventProducer</code> can provide its own XML-based translation file. If there is none, a central translation file is used, called "EventFormatter.xml" (found in the same directory as the <code>EventFormatter</code> class).</p>
<p>The XML format used by the <code>EventFormatter</code> is the same as <a href="http://cocoon.apache.org/">Apache Cocoon's</a> catalog format. Here's an example:
<?xml version="1.0" encoding="UTF-8"?>
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/extensions.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/extensions.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/extensions.html Sat Dec 1 06:54:40 2012
@@ -342,34 +342,33 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="standard-apachewzxhzdk0-fop-extensions">Standard Apache™ FOP Extensions</h1>
-<p><version>$Revision: 1298724 $</version></p>
<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, Apache™ 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-wzxhzdk4wzxhzdk5">SVG <a id="svg"></a></h1>
+<h1 id="svg-wzxhzdk2wzxhzdk3">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-wzxhzdk6wzxhzdk7">FO Extensions <a id="fo-extensions"></a></h2>
-<h3 id="namespace-wzxhzdk8wzxhzdk9">Namespace <a id="fox-namespace"></a></h3>
+<h2 id="fo-extensions-wzxhzdk4wzxhzdk5">FO Extensions <a id="fo-extensions"></a></h2>
+<h3 id="namespace-wzxhzdk6wzxhzdk7">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-wzxhzdk11wzxhzdk12">PDF Bookmarks <a id="bookmarks"></a></h2>
+<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-wzxhzdk13wzxhzdk14">Anchors or Named Destinations <a id="named-destinations"></a></h3>
+<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.
<fox:destination internal-destination="table-of-contents"/>
...
<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-wzxhzdk20wzxhzdk21">Table Continuation Label <a id="table-continue-label"></a></h2>
+<h2 id="table-continuation-label-wzxhzdk18wzxhzdk19">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-wzxhzdk22wzxhzdk23">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-wzxhzdk20wzxhzdk21">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-wzxhzdk24wzxhzdk25">fox:external-document <a id="external-document"></a></h3>
+<h3 id="foxexternal-document-wzxhzdk22wzxhzdk23">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-wzxhzdk26wzxhzdk27">Specification ## <a id="Specification"></a></h4>
+<h4 id="specification-wzxhzdk24wzxhzdk25">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>
@@ -432,16 +431,16 @@ 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-wzxhzdk30wzxhzdk31">Free-form Transformation for fo:block-container <a id="transform"></a></h2>
+<h2 id="free-form-transformation-for-foblock-container-wzxhzdk28wzxhzdk29">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-wzxhzdk32wzxhzdk33">Color functions <a id="color-functions"></a></h2>
+<h2 id="color-functions-wzxhzdk30wzxhzdk31">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-wzxhzdk34wzxhzdk35">cmyk() ## <a id="color-function-cmyk"></a></h4>
+<h4 id="cmyk-wzxhzdk32wzxhzdk33">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>
-<h4 id="cmyk-pseudo-profile-wzxhzdk36wzxhzdk37">#CMYK pseudo-profile ## <a id="pseudo-color-profiles"></a></h4>
+<h4 id="cmyk-pseudo-profile-wzxhzdk34wzxhzdk35">#CMYK pseudo-profile ## <a id="pseudo-color-profiles"></a></h4>
<p><code>color rgb-icc(numeric, numeric, numeric, #CMYK, numeric, numeric, numeric, numeric)</code> </p>
<p>The <code>rgb-icc</code> function will respond to a pseudo-profile called "#CMYK" which indicates a device-specific CMYK color space. The "#CMYK" profile is implicitely available and doesn't have to be (and cannot be) defined through an <code>fo:color-profile</code> element. It is provided for compatibility with certain commercial XSL-FO implementations. Please note that this is not part of the official specification but rather a convention. The following two color specifications are equivalent:</p>
<ul>
@@ -452,27 +451,27 @@ This extension attribute doesn't work fo
<p><code>rgb-icc(153, 153, 102, #CMYK, 0, 0, 0.2, 0.4)</code> </p>
</li>
</ul>
-<h3 id="prepress-support-wzxhzdk38wzxhzdk39">Prepress Support <a id="prepress"></a></h3>
+<h3 id="prepress-support-wzxhzdk36wzxhzdk37">Prepress Support <a id="prepress"></a></h3>
<p>This section defines a number of extensions related to <a href="http://en.wikipedia.org/wiki/Prepress">prepress</a> support. <code>fox:scale</code> defines a general scale factor for the generated pages. <code>fox:bleed</code> defines the <a href="http://en.wikipedia.org/wiki/Bleed_%28printing%29">bleed area</a> for a page. <code>fox:crop-offset</code> defines the outer edges of the area in which crop marks, registration marks, color bars and page information are placed. For details, please read on below.
Those extensions have been implemented in the PDF and Java2D renderers only.</p>
-<h3 id="foxscale-wzxhzdk40wzxhzdk41">fox:scale ## <a id="scale"></a></h3>
+<h3 id="foxscale-wzxhzdk38wzxhzdk39">fox:scale ## <a id="scale"></a></h3>
<p>Value: <number>{1,2}</p>
<p>Initial: 1</p>
<p>Applies to: fo:simple-page-master</p>
<p>This property specifies a scale factor along resp. the x and y axes. If only one number is provided it is used for both the x and y scales. A scale factor smaller than 1 shrinks the page. A scale factor greater than 1 enlarges the page.</p>
-<h4 id="foxbleed-wzxhzdk43wzxhzdk44">fox:bleed ## <a id="bleed"></a></h4>
+<h4 id="foxbleed-wzxhzdk41wzxhzdk42">fox:bleed ## <a id="bleed"></a></h4>
<p>Value: <length>{1,4}</p>
<p>Initial: 0pt</p>
<p>Applies to: fo:simple-page-master</p>
<p>If there is only one value, it applies to all sides. If there are two values, the top and bottom bleed widths are set to the first value and the right and left bleed widths are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values, they apply to the top, right, bottom, and left, respectively. (Corresponds to <a href="http://www.w3.org/TR/xsl11/#padding">the definition of padding</a> ).</p>
<p>This extension indirectly defines the BleedBox and is calculated by expanding the TrimBox by the bleed widths. The lengths must be non-negative.</p>
-<h4 id="foxcrop-offset-wzxhzdk46wzxhzdk47">fox:crop-offset ## <a id="cropOffset"></a></h4>
+<h4 id="foxcrop-offset-wzxhzdk44wzxhzdk45">fox:crop-offset ## <a id="cropOffset"></a></h4>
<p>Value: <length>{1,4}</p>
<p>Initial: bleed (see below)</p>
<p>Applies to: fo:simple-page-master</p>
<p>Same behaviour as with fox:bleed. The initial value is set to the same values as the fox:bleed property.</p>
<p>This extension indirectly defines the MediaBox and is calculated by expanding the TrimBox by the crop offsets. The lengths must be non-negative.</p>
-<h4 id="foxcrop-box-wzxhzdk49wzxhzdk50">fox:crop-box ## <a id="cropBox"></a></h4>
+<h4 id="foxcrop-box-wzxhzdk47wzxhzdk48">fox:crop-box ## <a id="cropBox"></a></h4>
<p>Value: [trim-box | bleed-box | media-box]</p>
<p>Initial: media-box</p>
<p>Applies to: fo:simple-page-master</p>
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/fonts.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/fonts.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/fonts.html Sat Dec 1 06:54:40 2012
@@ -342,8 +342,8 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="apachewzxhzdk3-fop-fonts">Apache™ FOP: Fonts</h1>
-<p><version>$Revision: 1298724 $</version><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-wzxhzdk16wzxhzdk17">Summary <a id="intro"></a></h2>
+<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-wzxhzdk14wzxhzdk15">Summary <a id="intro"></a></h2>
<p>The following table summarizes the font capabilities of the various Apache™ FOP renderers:</p>
<table>
<thead>
@@ -421,7 +421,7 @@ $(document).ready(function () {
</tr>
</tbody>
</table>
-<h2 id="base-14-fonts-wzxhzdk19wzxhzdk20">Base-14 Fonts <a id="Base-14+Fonts"></a></h2>
+<h2 id="base-14-fonts-wzxhzdk17wzxhzdk18">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>The following font family names are hard-coded into FOP for the Base-14 font set:</p>
<table>
@@ -455,14 +455,14 @@ $(document).ready(function () {
</tbody>
</table>
<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-wzxhzdk21wzxhzdk22">Missing Fonts <a id="missing-fonts"></a></h2>
+<h2 id="missing-fonts-wzxhzdk19wzxhzdk20">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="missing-glyphs-wzxhzdk23wzxhzdk24">Missing Glyphs <a id="missing-glyphs"></a></h2>
+<h2 id="missing-glyphs-wzxhzdk21wzxhzdk22">Missing Glyphs <a id="missing-glyphs"></a></h2>
<p>Every font contains a particular set of <a href="http://en.wikipedia.org/wiki/Glyph">glyphs</a> . If no glyph can be found for a given character, FOP will issue a warning and use the glpyh for "#" (if available) instead. Before it does that, it consults a (currently hard-coded) registry of glyph substitution groups (see Glyphs.java in Apache XML Graphics Commons). This registry can supply alternative glyphs in some cases (like using space when a no-break space is requested). But there's no guarantee that the result will be as expected (for example, in the case of hyphens and similar glyphs). A better way is to use a font that has all the necessary glyphs. This glyph substitution is only a last resort.</p>
-<h2 id="java2dawtoperating-system-fonts-wzxhzdk25wzxhzdk26">Java2D/AWT/Operating System Fonts <a id="awt"></a></h2>
+<h2 id="java2dawtoperating-system-fonts-wzxhzdk23wzxhzdk24">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-wzxhzdk27wzxhzdk28">Custom Fonts <a id="custom"></a></h2>
+<h2 id="custom-fonts-wzxhzdk25wzxhzdk26">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>In earlier FOP versions, 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 may still be necessary for some very special cases as fallback variant while we stabilize font auto-detection.</p>
<p>Basic information about fonts can be found at:</p>
@@ -474,7 +474,7 @@ $(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-wzxhzdk29wzxhzdk30">Basic font configuration <a id="basics"></a></h2>
+<h2 id="basic-font-configuration-wzxhzdk27wzxhzdk28">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><renderers>
<renderer mime="application/pdf">
@@ -492,9 +492,9 @@ $(document).ready(function () {
<p></renderer>
</renderers>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-wzxhzdk39wzxhzdk40">Advanced font configuration <a id="advanced"></a></h1>
+<h1 id="advanced-font-configuration-wzxhzdk37wzxhzdk38">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-wzxhzdk41wzxhzdk42">Type 1 Font Metrics <a id="type1-metrics"></a></h3>
+<h3 id="type-1-font-metrics-wzxhzdk39wzxhzdk40">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
@@ -507,7 +507,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-wzxhzdk43wzxhzdk44">TrueType Font Metrics <a id="truetype-metrics"></a></h2>
+<h2 id="truetype-font-metrics-wzxhzdk41wzxhzdk42">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]
@@ -568,7 +568,7 @@ Alternatively, the individual sub-fonts
<font embed-url="gulim.ttc" sub-font="GulimChe">
<font-triplet name="GulimChe" style="normal" weight="normal"/>
</font></p>
-<h2 id="register-fonts-with-fop-wzxhzdk48wzxhzdk49">Register Fonts with FOP <a id="register"></a></h2>
+<h2 id="register-fonts-with-fop-wzxhzdk46wzxhzdk47">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><renderers>
<renderer mime="application/pdf">
@@ -642,7 +642,7 @@ Alternatively, the individual sub-fonts
<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-embed-feature-wzxhzdk59wzxhzdk60">Auto-Detect and auto-embed feature <a id="autodetect"></a></h3>
+<h3 id="auto-detect-and-auto-embed-feature-wzxhzdk57wzxhzdk58">Auto-Detect and auto-embed 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>
@@ -652,7 +652,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-wzxhzdk61wzxhzdk62">Embedding <a id="embedding"></a></h3>
+<h3 id="embedding-wzxhzdk59wzxhzdk60">Embedding <a id="embedding"></a></h3>
<p>By default, all fonts are embedded if an output format supports font embedding. In some cases, however, it is preferred that some fonts are only referenced. When working with referenced fonts it is important to be in control of the target environment where the produced document is consumed, i.e. the necessary fonts have to be installed there.</p>
<p>There are two different ways how you can specify that a font should be referenced:</p>
<ol>
@@ -691,7 +691,7 @@ At the moment, you can only match fonts
<p>When embedding TrueType fonts (ttf) or TrueType Collections (ttc), a subset of the original font, containing only the glyphs used, is embedded in the output document. That's the default, but if you specify encoding-mode="single-byte" (see above), the complete font is embedded.</p>
</li>
</ul>
-<h3 id="substitution-wzxhzdk71wzxhzdk72">Substitution <a id="substitution"></a></h3>
+<h3 id="substitution-wzxhzdk69wzxhzdk70">Substitution <a id="substitution"></a></h3>
<p>When a <substitutions/> section is defined in the configuration, FOP will re-map any font-family references found in your FO input to a given substitution font.</p>
<ul>
<li>
@@ -716,7 +716,7 @@ At the moment, you can only match fonts
</substitutions>
</fonts>
</fop></p>
-<h1 id="font-selection-strategies-wzxhzdk88wzxhzdk89">Font Selection Strategies <a id="selection"></a></h1>
+<h1 id="font-selection-strategies-wzxhzdk86wzxhzdk87">Font Selection Strategies <a id="selection"></a></h1>
<p>There are two font selection strategies: character-by-character or auto. The default is auto.</p>
<p>Auto selected the first font from the list which is able to display the most characters in a given word. This means (assume font A has characters for abclmn, font B for lnmxyz, fontlist is A,B):</p>
<ul>
@@ -734,7 +734,7 @@ At the moment, you can only match fonts
</li>
</ul>
<p>Character-by-Character is NOT yet supported!</p>
-<h2 id="font-list-command-line-tool-wzxhzdk90wzxhzdk91">Font List Command-Line Tool <a id="font-list"></a></h2>
+<h2 id="font-list-command-line-tool-wzxhzdk88wzxhzdk89">Font List Command-Line Tool <a id="font-list"></a></h2>
<p>FOP contains a small command-line tool that lets you generate a list of all configured fonts. Its class name is: <code>org.apache.fop.tools.fontlist.FontListMain</code> . Run it with the "-?" parameter to get help for the various options.</p></div>
</div>
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/graphics.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/graphics.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/graphics.html Sat Dec 1 06:54:40 2012
@@ -342,8 +342,7 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="apachewzxhzdk0-fop-graphics-formats">Apache™ FOP: Graphics Formats</h1>
-<p><version>$Revision: 1298724 $</version></p>
-<h2 id="introduction-wzxhzdk3wzxhzdk4">Introduction <a id="introduction"></a></h2>
+<h2 id="introduction-wzxhzdk1wzxhzdk2">Introduction <a id="introduction"></a></h2>
<p>Some noteworthy features of the image handling subsystem are:</p>
<ul>
<li>
@@ -357,7 +356,7 @@ $(document).ready(function () {
</li>
</ul>
<p>The actual <a href="http://xmlgraphics.apache.org/commons/image-loader.html">image loading framework</a> does not reside in Apache FOP, but in <a href="http://xmlgraphics.apache.org/commons/">XML Graphics Commons</a> .</p>
-<h2 id="overview-of-graphics-support-wzxhzdk5wzxhzdk6">Overview of Graphics Support <a id="support-overview"></a></h2>
+<h2 id="overview-of-graphics-support-wzxhzdk3wzxhzdk4">Overview of Graphics Support <a id="support-overview"></a></h2>
<p>The table below summarizes the <em>theoretical</em> support for graphical formats within FOP. In other words, within the constraints of the limitations listed here, these formats <em>should</em> work. However, many of them have not been tested, and there may be limitations that have not yet been discovered or documented. The packages needed to support some formats are not included in the FOP distribution and must be installed separately. Follow the links in the "Support Through" columns for more details.</p>
<table>
<thead>
@@ -435,7 +434,7 @@ $(document).ready(function () {
<a href="http://jai-imageio.dev.java.net/">JAI Image I/O Tools</a> is not the same as the <a href="http://java.sun.com/javase/technologies/desktop/media/jai/">JAI library</a> ! The former simply exposes JAI's codecs using the Image I/O API but does not include all the image manipulation functionality.</p>
</li>
</ul>
-<h2 id="map-of-supported-image-formats-by-output-format-wzxhzdk7wzxhzdk8">Map of supported image formats by output format <a id="format-map"></a></h2>
+<h2 id="map-of-supported-image-formats-by-output-format-wzxhzdk5wzxhzdk6">Map of supported image formats by output format <a id="format-map"></a></h2>
<p>Not all image formats are supported for all output formats! For example, while you can use EPS (Encapsulated PostScript) files when you generate PostScript output, this format will not be supported by any other output format. Here's an overview of which image formats are supported by which output format:</p>
<table>
<thead>
@@ -542,12 +541,12 @@ $(document).ready(function () {
<p>[2]: Supported without the need to decode the image, but only for certain subtypes.</p>
</li>
</ul>
-<h2 id="graphics-packages-wzxhzdk9wzxhzdk10">Graphics Packages <a id="packages"></a></h2>
-<h3 id="xml-graphics-commons-native-wzxhzdk11wzxhzdk12">XML Graphics Commons Native <a id="native"></a></h3>
+<h2 id="graphics-packages-wzxhzdk7wzxhzdk8">Graphics Packages <a id="packages"></a></h2>
+<h3 id="xml-graphics-commons-native-wzxhzdk9wzxhzdk10">XML Graphics Commons Native <a id="native"></a></h3>
<p><a href="http://xmlgraphics.apache.org/commons/">XML Graphics Commons</a> supports a number of graphic file formats natively as basic functionality: all bitmap formats for which there are Image I/O codecs available (JPEG, PNG, GIF, TIFF, etc.), EPS and EMF.</p>
-<h3 id="fop-native-wzxhzdk13wzxhzdk14">FOP Native <a id="fop-native"></a></h3>
+<h3 id="fop-native-wzxhzdk11wzxhzdk12">FOP Native <a id="fop-native"></a></h3>
<p>FOP has no native image plug-ins for the image loading framework of its own but currently hosts the Batik-dependent SVG and WMF plug-ins until they can be moved to <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> .</p>
-<h3 id="apache-batik-wzxhzdk15wzxhzdk16">Apache Batik <a id="batik"></a></h3>
+<h3 id="apache-batik-wzxhzdk13wzxhzdk14">Apache Batik <a id="batik"></a></h3>
<p><a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> will later receive the SVG and WMF plug-ins for the image loading framework that are currently hosted inside FOP.</p>
<p>Current FOP distributions include a distribution of the <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> . Because Batik's API changes frequently, it is highly recommended that you use the version that ships with FOP, at least when running FOP.
<warning>Batik must be run in a graphical environment.</warning>
@@ -564,41 +563,41 @@ Batik must be run in a graphical environ
<p>Install a toolkit which emulates AWT without the need for an underlying X server. One example is the <a href="http://www.eteks.com/pja/en">PJA toolkit</a> , which is free and comes with detailed installation instructions.</p>
</li>
</ul>
-<h3 id="image-io-wzxhzdk19wzxhzdk20">Image I/O <a id="imageio"></a></h3>
+<h3 id="image-io-wzxhzdk17wzxhzdk18">Image I/O <a id="imageio"></a></h3>
<p>The image loading framework in <a href="http://xmlgraphics.apache.org/commons/">XML Graphics Commons</a> provides a wrapper to load images through the <a href="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/index.html">JDK's Image I/O API</a> (JSR 015). Image I/O allows to dynamically add additional image codecs. An example of such an add-on library are the <a href="http://java.sun.com/products/java-media/jai/">JAI Image I/O Tools</a> available from Sun.</p>
-<h2 id="details-on-image-formats-wzxhzdk21wzxhzdk22">Details on image formats <a id="image-formats"></a></h2>
-<h3 id="bmp-wzxhzdk23wzxhzdk24">BMP <a id="bmp"></a></h3>
+<h2 id="details-on-image-formats-wzxhzdk19wzxhzdk20">Details on image formats <a id="image-formats"></a></h2>
+<h3 id="bmp-wzxhzdk21wzxhzdk22">BMP <a id="bmp"></a></h3>
<p>BMP images are supported through an Image I/O codec. There may be limitations of the codec which are outside the control of Apache FOP.</p>
-<h3 id="emf-wzxhzdk25wzxhzdk26">EMF <a id="emf"></a></h3>
+<h3 id="emf-wzxhzdk23wzxhzdk24">EMF <a id="emf"></a></h3>
<p>Windows Enhanced Metafiles (EMF) are only supported in RTF output where they are embedded without decoding.</p>
-<h3 id="eps-wzxhzdk27wzxhzdk28">EPS <a id="eps"></a></h3>
+<h3 id="eps-wzxhzdk25wzxhzdk26">EPS <a id="eps"></a></h3>
<p>Apache FOP allows to use EPS files when generating PostScript output only.</p>
<p>Other output targets can't be supported at the moment because FOP lacks a PostScript interpreter. Furthermore, FOP is currently not able to parse the preview bitmaps sometimes contained in EPS files.</p>
-<h3 id="gif-wzxhzdk29wzxhzdk30">GIF <a id="gif"></a></h3>
+<h3 id="gif-wzxhzdk27wzxhzdk28">GIF <a id="gif"></a></h3>
<p>GIF images are supported through an Image I/O codec. Transparency is supported but not guaranteed to work with every output format.</p>
-<h3 id="jpeg-wzxhzdk32wzxhzdk33">JPEG <a id="jpeg"></a></h3>
+<h3 id="jpeg-wzxhzdk30wzxhzdk31">JPEG <a id="jpeg"></a></h3>
<p>FOP native support (i.e. the handling of undecoded images) of JPEG does not include all variants, especially those containing unusual color lookup tables and color profiles. If you have trouble with a JPEG image in FOP, try opening it with an image processing program (such as Photoshop or Gimp) and then saving it. Specifying 24-bit color output may also help. For the PDF and PostScript renderers most JPEG images can be passed through without decompression. User reports indicate that grayscale, RGB, and CMYK color spaces are all rendered properly. However, for other output formats, the JPEG images have to be decompressed. Tests have shown that there are some limitation in some Image I/O codecs concerning images in the CMYK color space. Work-arounds are in place but may not always work as expected.</p>
-<h3 id="png-wzxhzdk35wzxhzdk36">PNG <a id="png"></a></h3>
+<h3 id="png-wzxhzdk33wzxhzdk34">PNG <a id="png"></a></h3>
<p>PNG images are supported through an Image I/O codec. Transparency is supported but not guaranteed to work with every output format.</p>
-<h3 id="svg-wzxhzdk38wzxhzdk39">SVG <a id="svg"></a></h3>
-<h4 id="introduction-wzxhzdk40wzxhzdk41">Introduction ## <a id="svg-intro"></a></h4>
+<h3 id="svg-wzxhzdk36wzxhzdk37">SVG <a id="svg"></a></h3>
+<h4 id="introduction-wzxhzdk38wzxhzdk39">Introduction ## <a id="svg-intro"></a></h4>
<p>FOP uses <a href="#batik">Apache Batik</a> for SVG support. This format can be handled as an <code>fo:instream-foreign-object</code> or in a separate file referenced with <code>fo:external-graphic</code> .
Batik's SVG Rasterizer utility may also be used to convert standalone SVG documents into PDF. For more information please see the <a href="http://xmlgraphics.apache.org/batik/svgrasterizer.html">SVG Rasterizer documentation</a> on the Batik site.</p>
-<h3 id="placing-svg-graphics-into-pdf-wzxhzdk42wzxhzdk43">Placing SVG Graphics into PDF ## <a id="svg-pdf-graphics"></a></h3>
+<h3 id="placing-svg-graphics-into-pdf-wzxhzdk40wzxhzdk41">Placing SVG Graphics into PDF ## <a id="svg-pdf-graphics"></a></h3>
<p>The SVG is rendered into PDF by using PDF commands to draw and fill lines and curves. This means that the graphical objects created with this remain as vector graphics. The same applies to PostScript output. For other output formats the SVG graphic may be converted to a bitmap image.</p>
<p>There are a number of SVG things that cannot be converted directly into PDF. Parts of the graphic such as effects, patterns and images are inserted into the PDF as a raster graphic. The resolution of these raster images can be controlled through the "target resolution" setting in the <a href="configuration.html">configuration</a> .</p>
<p>Currently transparency is limited in PDF so some SVG images that contain effects or graphics with transparent areas may not be displayed correctly.</p>
-<h4 id="placing-svg-text-into-pdf-and-postscript-wzxhzdk44wzxhzdk45">Placing SVG Text into PDF and PostScript ## <a id="svg-pdf-text"></a></h4>
+<h4 id="placing-svg-text-into-pdf-and-postscript-wzxhzdk42wzxhzdk43">Placing SVG Text into PDF and PostScript ## <a id="svg-pdf-text"></a></h4>
<p>If possible, Batik will use normal PDF or PostScript text when inserting text. It does this by checking if the text can be drawn normally and the font is supported. This example svg <a href="../dev/svg/text.svg">text.svg</a> / <a href="../dev/svg/text.pdf">text.pdf</a> / <a href="../dev/svg/text.png">text.png</a> shows how various types and effects with text are handled. Note that SVG font support is not yet implemented. Furthermore, text handling in PostScript output is inferior to PDF output - more text will be painted as shapes in PS than in PDF.</p>
<p>When there's no support to paint text using native text operations, text is converted and drawn as a set of shapes by Batik, using the stroking text painter. This means that a typical character will have about 10 curves (each curve consists of at least 20 characters). This can make the output files large and when it is viewed the viewer may not normally draw those fine curves very well (In Adobe Acrobat, turning on "Smooth Line Art" in the preferences will fix this). Copy/paste functionality will not be supported in this case. If the text is inserted into the output file using the inbuilt text commands it will use a single character.</p>
<p>Note that because SVG text can be rendered as either text or a vector graphic, you may need to consider settings in your viewer for both. The Acrobat viewer has both "smooth line art" and "smooth text" settings that may need to be set for SVG images to be displayed nicely on your screen (see Edit / Preferences / Display). This setting will not affect the printing of your document, which should be OK in any case, but will only affect the quality of the screen display.</p>
-<h4 id="font-selection-notes-wzxhzdk46wzxhzdk47">Font selection notes ## <a id="svg-font-selection"></a></h4>
+<h4 id="font-selection-notes-wzxhzdk44wzxhzdk45">Font selection notes ## <a id="svg-font-selection"></a></h4>
<p>Apache Batik uses the AWT/Java2D subsystem as font source while FOP has its own font subsystem. Great care has been taken that font selection does the best possible choices. But it must be noted when creating PDF or PostScript that a font used in SVG graphics needs to be registered with the operating system as well as in FOP's configuration. By using FOP's font auto-detection, you simply have to install the font in the operating system and not care about anything else. This is less of an issue if you create formats like TIFFs, PNGs or PCL because in these cases SVG graphics are usually rendered to bitmaps which means that on both sides (Batik and FOP), AWT/Java2D is used as the single font source.</p>
<p>Whenever an SVG is converted into a PDF or PostScript file, the font that has been used inside Batik has to be mapped to a font used by the actual output format. Features like font substitution in FOP may need to be taken into account but can also be an advantage when working around font mapping issues. Like for XSL-FO content, you'll get a warning if a particular font could not be found and had to be substituted, or if a particular glyph is missing in a font.</p>
-<h4 id="scaling-wzxhzdk48wzxhzdk49">Scaling ## <a id="svg-scaling"></a></h4>
+<h4 id="scaling-wzxhzdk46wzxhzdk47">Scaling ## <a id="svg-scaling"></a></h4>
<p>Currently, SVG images are rendered with the dimensions specified <em>in the SVG file</em> , within the viewport specified in the fo:external-graphic element. For everything to work properly, the two should be equal. The SVG standard leaves this issue as an implementation detail. Additional scaling options are available through XSL-FO means.</p>
<p>If you use pixels to specify the size of an SVG graphic the "source resolution" setting in the <a href="configuration.html">configuration</a> will be used to determine the size of a pixel. The use of pixels to specify sizes is discouraged as they may be interpreted differently in different environments.</p>
-<h4 id="known-problems-wzxhzdk50wzxhzdk51">Known Problems ## <a id="svg-problems"></a></h4>
+<h4 id="known-problems-wzxhzdk48wzxhzdk49">Known Problems ## <a id="svg-problems"></a></h4>
<ul>
<li>
<p>Soft mask transparency is combined with white so that it looks better on PDF 1.3 viewers but this causes the soft mask to be slightly lighter or darker on PDF 1.4 viewers.</p>
@@ -613,18 +612,18 @@ Batik's SVG Rasterizer utility may also
<p>Uniform transparency for images and other SVG elements that are converted into a raster graphic are not drawn properly in PDF. The image is opaque.</p>
</li>
</ul>
-<h3 id="tiff-wzxhzdk52wzxhzdk53">TIFF <a id="tiff"></a></h3>
+<h3 id="tiff-wzxhzdk50wzxhzdk51">TIFF <a id="tiff"></a></h3>
<p>FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image.</p>
<p>There may be some limitation concerning images in the CMYK color space.</p>
-<h3 id="wmf-wzxhzdk55wzxhzdk56">WMF <a id="wmf"></a></h3>
+<h3 id="wmf-wzxhzdk53wzxhzdk54">WMF <a id="wmf"></a></h3>
<p>Windows Metafiles (WMF) are supported through classes in <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> . At the moment, support for this format is experimental and may not always work as expected.</p>
-<h2 id="graphics-resolution-wzxhzdk57wzxhzdk58">Graphics Resolution <a id="resolution"></a></h2>
+<h2 id="graphics-resolution-wzxhzdk55wzxhzdk56">Graphics Resolution <a id="resolution"></a></h2>
<p>Some bitmapped image file formats store a dots-per-inch (dpi) or other resolution values. FOP tries to use this resolution information whenever possible to determine the image's intrinsic size. This size is used during the layout process when it is not superseded by an explicit size on fo:external-graphic (content-width and content-height properties).</p>
<p>Please note that not all images contain resolution information. If it's not available the source resolution set on the FopFactory (or through the user configuration XML) is used. The default here is 72 dpi.</p>
<p>Bitmap images are generally embedded into the output format at their original resolution (as is). No resampling of the image is performed. Explicit resampling is on our wishlist, but hasn't been implemented, yet. Bitmaps included in SVG graphics may be resampled to the resolution specified in the "target resolution" setting in the <a href="configuration.html">configuration</a> if SVG filters are applied. This can be used as a work-around to resample images in FO documents.</p>
-<h2 id="page-selection-for-multi-page-formats-wzxhzdk59wzxhzdk60">Page selection for multi-page formats <a id="page-selection"></a></h2>
+<h2 id="page-selection-for-multi-page-formats-wzxhzdk57wzxhzdk58">Page selection for multi-page formats <a id="page-selection"></a></h2>
<p>Some image formats such as TIFF support multiple pages/sub-images per file. You can select a particular page using a special URI fragment in the form: <uri>#page=<nr> (for example: <code>http://localhost/images/myimage.tiff#page=3</code> )</p>
-<h2 id="image-caching-wzxhzdk63wzxhzdk64">Image caching <a id="caching"></a></h2>
+<h2 id="image-caching-wzxhzdk61wzxhzdk62">Image caching <a id="caching"></a></h2>
<p>FOP caches images between runs. There is one cache per FopFactory instance. The URI is used as a key to identify images which means that when a particular URI appears again, the image is taken from the cache. If you have a servlet that generates a different image each time it is called with the same URI you need to use a constantly changing dummy parameter on the URI to avoid caching.</p>
<p>The image cache has been improved considerably in the redesigned code. Therefore, resetting the image cache should be a thing of the past. If you still experience OutOfMemoryErrors, please notify us.</p>
<p>If all else fails, the image cache can be cleared like this: <code>fopFactory.getImageManager().getCache().clearCache();</code> </p></div>
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/hyphenation.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/hyphenation.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/hyphenation.html Sat Dec 1 06:54:40 2012
@@ -342,19 +342,18 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="apachewzxhzdk0-fop-hyphenation">Apache™ FOP: Hyphenation</h1>
-<p><version>$Revision: 1298724 $</version></p>
-<h2 id="hyphenation-support-wzxhzdk3wzxhzdk4">Hyphenation Support <a id="support"></a></h2>
-<h3 id="introduction-wzxhzdk5wzxhzdk6">Introduction <a id="intro"></a></h3>
+<h2 id="hyphenation-support-wzxhzdk1wzxhzdk2">Hyphenation Support <a id="support"></a></h2>
+<h3 id="introduction-wzxhzdk3wzxhzdk4">Introduction <a id="intro"></a></h3>
<p>Apache™ FOP uses Liang's hyphenation algorithm, well known from TeX. It needs language specific pattern and other data for operation.</p>
<p>Because of <a href="#license-issues">licensing issues</a> (and for convenience), all hyphenation patterns for FOP are made available through the <a href="http://offo.sourceforge.net/hyphenation/index.html">Objects For Formatting Objects</a> project.
If you have made improvements to an existing FOP hyphenation pattern, or if you have created one from scratch, please consider contributing these to OFFO so that they can benefit other FOP users as well. Please inquire on the <a href="../maillist.html#fop-user">FOP User mailing list</a> .</p>
-<h2 id="license-issues-wzxhzdk8wzxhzdk9">License Issues <a id="license-issues"></a></h2>
+<h2 id="license-issues-wzxhzdk6wzxhzdk7">License Issues <a id="license-issues"></a></h2>
<p>Many of the hyphenation files distributed with TeX and its offspring are licenced under the <a href="http://www.latex-project.org/lppl.html">LaTeX Project Public License (LPPL)</a> , which prevents them from being distributed with Apache software. The LPPL puts restrictions on file names in redistributed derived works which we feel can't guarantee. Some hyphenation pattern files have other or additional restrictions, for example against use for commercial purposes.</p>
<p>Although Apache FOP cannot redistribute hyphenation pattern files that do not conform with its license scheme, that does not necessarily prevent users from using such hyphenation patterns with FOP. However, it does place on the user the responsibility for determining whether the user can rightly use such hyphenation patterns under the hyphenation pattern license.
<warning>The user is responsible to settle license issues for hyphenation pattern files that are obtained from non-Apache sources.</warning></p>
-<h2 id="sources-of-custom-hyphenation-pattern-files-wzxhzdk12wzxhzdk13">Sources of Custom Hyphenation Pattern Files <a id="sources"></a></h2>
+<h2 id="sources-of-custom-hyphenation-pattern-files-wzxhzdk10wzxhzdk11">Sources of Custom Hyphenation Pattern Files <a id="sources"></a></h2>
<p>The most important source of hyphenation pattern files is the <a href="http://www.ctan.org/tex-archive/language/hyphenation/">CTAN TeX Archive</a> .</p>
-<h3 id="installing-custom-hyphenation-patterns-wzxhzdk14wzxhzdk15">Installing Custom Hyphenation Patterns <a id="install"></a></h3>
+<h3 id="installing-custom-hyphenation-patterns-wzxhzdk12wzxhzdk13">Installing Custom Hyphenation Patterns <a id="install"></a></h3>
<p>To install a custom hyphenation pattern for use with FOP:</p>
<ol>
<li>
@@ -393,7 +392,7 @@ and run Ant with build target <code>jar-
</li>
</ol>
<p><warning>Either of these three options will ensure hyphenation is working when using FOP from the command-line. If FOP is being embedded, remember to add the location(s) of the hyphenation JAR(s) to the CLASSPATH (option 1 and 2) or to set the <a href="configuration.html#hyphenation-dir"><hyphenation-dir></a> configuration option programmatically (option 3).</warning></p>
-<h1 id="hyphenation-patterns-wzxhzdk19wzxhzdk20">Hyphenation Patterns <a id="patterns"></a></h1>
+<h1 id="hyphenation-patterns-wzxhzdk17wzxhzdk18">Hyphenation Patterns <a id="patterns"></a></h1>
<p>If you would like to build your own hyphenation pattern files, or modify existing ones, this section will help you understand how to do so. Even when creating a pattern file from scratch, it may be beneficial to start with an existing file and modify it. See <a href="http://offo.sourceforge.net/hyphenation/index.html">OFFO's Hyphenation page</a> for examples. Here is a brief explanation of the contents of FOP's hyphenation patterns:
<warning>The remaining content of this section should be considered "draft" quality. It was drafted from theoretical literature, and has not been tested against actual FOP behavior. It may contain errors or omissions. Do not rely on these instructions without testing everything stated here. If you use these instructions, please provide feedback on the <a href="../maillist.html#fop-user">FOP User mailing list</a> , either confirming their accuracy, or raising specific problems that we can address.</warning></p>
<ul>
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/index.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/index.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/index.html Sat Dec 1 06:54:40 2012
@@ -342,15 +342,14 @@ $(document).ready(function () {
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/1.0/">1.0</a></div> -->
<div class="section-content"><h1 id="apachewzxhzdk0-fop-version-10">Apache™ FOP Version 1.0</h1>
-<p><version>$Revision: 1298724 $</version></p>
-<h2 id="introduction-wzxhzdk3wzxhzdk4">Introduction <a id="intro"></a></h2>
+<h2 id="introduction-wzxhzdk1wzxhzdk2">Introduction <a id="intro"></a></h2>
<p>The Apache™ FOP team is proud to present to you this production quality codebase. FOP 1.0 provides a good subset of the W3C XSL-FO 1.0 and 1.1 Standards. Its stable, 1.0 designation provides added recognition as the productive tool it has been for years.</p>
<p>We remain committed to improving the tool, and we continue to add new features. We welcome any feedback you might have and even more, any other form of help to get the project forward.</p>
<p>This release contains many bug fixes and new features compared to the previous version. To see what has changed since the last release, please visit the <a href="changes_1.0.html">Changes Page</a> and the <a href="releaseNotes_1.0.html">Release Notes</a> .</p>
<p>This release implements a good subset of the W3C XSL-FO 1.0 and 1.1 Standards. For a detailed overview of FOP's compliance, visit the <a href="../compliance-static.html">compliance page</a> .</p>
-<h2 id="upgrading-from-an-earlier-version-wzxhzdk6wzxhzdk7">Upgrading from an earlier version <a id="upgrading"></a></h2>
+<h2 id="upgrading-from-an-earlier-version-wzxhzdk4wzxhzdk5">Upgrading from an earlier version <a id="upgrading"></a></h2>
<p>If you're upgrading to this version from an earlier version of FOP, please read the information contained on the <a href="upgrading.html">Upgrading page</a> !</p>
-<h2 id="download-wzxhzdk8wzxhzdk9">Download <a id="download"></a></h2>
+<h2 id="download-wzxhzdk6wzxhzdk7">Download <a id="download"></a></h2>
<p>To download this version, please visit the <a href="../download.html">download page</a> .</p></div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org