xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840806 [3/19] - in /websites/staging/xmlgraphics/trunk/content: ./ batik/ batik/dev/ batik/tools/ batik/using/ batik/using/scripting/ commons/ fop/ fop/0.95/ fop/1.0/ fop/1.1/ fop/dev/ fop/dev/design/ fop/trunk/
Date Wed, 05 Dec 2012 08:23:58 GMT
Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html Wed Dec  5 08:23:47 2012
@@ -179,12 +179,12 @@ java -jar batik-squiggle.jar
 You can pass options on the command line:
 java -jar batik-squiggle.jar [-font-sizefont-size] [URIs]
 where:</p>
-<dl>
-<dt><strong>-font-size</strong>  <em>font-size</em></dt>
-<dd>specifies the font size to use in windows and menus, and</dd>
-<dt><em>[URIs]</em></dt>
-<dd>specifies the URIs for the SVG documents the browser should open when it starts.</dd>
-</dl>
+<p><strong>-font-size</strong>  <em>font-size</em>
+:
+specifies the font size to use in windows and menus, and</p>
+<p><em>[URIs]</em>
+:
+specifies the URIs for the SVG documents the browser should open when it starts.</p>
 <p>For example:
 java -jar batik-squiggle.jar -font-size 10
 starts the browser with a small widget text font size, and:
@@ -201,14 +201,13 @@ starts the browser with the <code>batikL
 <li>
 <p>Open a command line window and change to the <code>xml-batik</code> or <code>batik- <em>version</em></code> directory where the Batik distribution was expanded</p>
 </li>
-<li>
-<p>For Windows, type the following at the command prompt:
+</ul>
+<p>-
+For Windows, type the following at the command prompt:
 build squiggle
 and for Unix and Mac OS X:
 ./build.sh squiggle
 This will start the browser.</p>
-</li>
-</ul>
 <p>You can pass options to the browser as follows, for Windows:
 build squiggle [-font-sizefont-size] [URIs]
 and for Unix:
@@ -223,19 +222,19 @@ Refer to <a href="#starting-binary">â€
 <p>The browser has several features to view and browse SVG documents:</p>
 <ul>
 <li>
-<p><a href="#localFile">Opening a local SVG file</a> </p>
+<p><a href="#localFile">Opening a local SVG file</a></p>
 </li>
 <li>
-<p><a href="#urlFile">Opening an SVG file from the web</a> </p>
+<p><a href="#urlFile">Opening an SVG file from the web</a></p>
 </li>
 <li>
-<p><a href="#locationBar">Using the location text field to view an SVG file</a> </p>
+<p><a href="#locationBar">Using the location text field to view an SVG file</a></p>
 </li>
 <li>
-<p><a href="#browsing">Browsing SVG files</a> </p>
+<p><a href="#browsing">Browsing SVG files</a></p>
 </li>
 <li>
-<p><a href="#viewingMultiple">Viewing multiple SVG files</a> </p>
+<p><a href="#viewingMultiple">Viewing multiple SVG files</a></p>
 </li>
 </ul>
 <h3 id="opening-a-local-svg-file-wzxhzdk18wzxhzdk19">Opening a local SVG file <a id="localFile"></a></h3>
@@ -248,17 +247,18 @@ Refer to <a href="#starting-binary">â€
 <p>When you know the URL of the document you want to view, you can enter it directly in the location bar text field at the top of Squiggle, the same way you can enter a URL in an HTML browser.
 <div class="figure"> <img alt="Screenshot of Squiggle showing the location bar" src="images/svgviewerLocationBar.png" title="" /> </div></p>
 <h2 id="browsing-svg-files-wzxhzdk30wzxhzdk31">Browsing SVG files <a id="browsing"></a></h2>
-<p>As with HTML content, it is common to navigate back and forth between SVG files (remember that SVG files contain hyperlinks, just like HTML does) and, as described later in this document, it is possible to <a href="#zoomInOut">zoom</a> into SVG documents, <a href="#panning">pan</a> and <a href="#rotating">rotate</a> .
+<p>As with HTML content, it is common to navigate back and forth between SVG files (remember that SVG files contain hyperlinks, just like HTML does) and, as described later in this document, it is possible to <a href="#zoomInOut">zoom</a> into SVG documents, <a href="#panning">pan</a> and <a href="#rotating">rotate</a>.
 <div class="figure"> <img alt="Screnshot of Squiggle showing the 'Go' menu" src="images/svgviewerBrowsing.png" title="" /> </div>
 Squiggle offers multiple features to help you browse SVG files:</p>
-<dl>
-<dt>Navigating between files</dt>
-<dd>The <strong>Go→Back</strong> menu item (or the <strong>Ctrl-left arrow</strong> keyboard accelerator) and the <strong>Go→Forward</strong> menu item (or the <strong>Ctrl-right arrow</strong> keyboard accelerator) let you move to the previous and next visited SVG documents.</dd>
-<dt>History</dt>
-<dd>The <strong>Go</strong> menu also contains a list of previously viewed SVG documents, which gives you a way to randomly access any document you have already visited.</dd>
-<dt>Navigating between views</dt>
-<dd>The <strong>View→Previous Transform</strong> menu item ( <strong>Ctrl-K</strong> ) and the <strong>View→Next Transform</strong> menu item ( <strong>Ctrl-L</strong> ) let you go to the previous or next view of the document. This is useful when, for example, you <a href="#panning">pan</a> or <a href="#rotating">rotate</a> the document and want to go back to the previous view you had of the document (i.e., before you panned or rotated it).</dd>
-</dl>
+<p>Navigating between files
+:
+The <strong>Go→Back</strong> menu item (or the <strong>Ctrl-left arrow</strong> keyboard accelerator) and the <strong>Go→Forward</strong> menu item (or the <strong>Ctrl-right arrow</strong> keyboard accelerator) let you move to the previous and next visited SVG documents.</p>
+<p>History
+:
+The <strong>Go</strong> menu also contains a list of previously viewed SVG documents, which gives you a way to randomly access any document you have already visited.</p>
+<p>Navigating between views
+:
+The <strong>View→Previous Transform</strong> menu item ( <strong>Ctrl-K</strong> ) and the <strong>View→Next Transform</strong> menu item ( <strong>Ctrl-L</strong> ) let you go to the previous or next view of the document. This is useful when, for example, you <a href="#panning">pan</a> or <a href="#rotating">rotate</a> the document and want to go back to the previous view you had of the document (i.e., before you panned or rotated it).</p>
 <h3 id="viewing-multiple-svg-files-wzxhzdk34wzxhzdk35">Viewing multiple SVG files <a id="viewingMultiple"></a></h3>
 <p><div class="figure"> <img alt="Screenshot of Squiggle with two windows open" src="images/svgviewerMultipleFiles.png" title="" /> </div>
 Squiggle can display multiple files simultaneously in different windows. To view a new file in a separate window, simply select the <strong>File→New Window</strong> menu item or use the <strong>Ctrl-N</strong> keyboard accelerator.</p>
@@ -268,7 +268,7 @@ Squiggle can display multiple files simu
 <p>The <strong>File→Print</strong> menu item or <strong>Ctrl-P</strong> will print the currently displayed SVG document.</p>
 <p>The <strong>File→Export As</strong> menu item offers the option to export the currently displayed SVG document to various raster formats. Currently, the browser supports the <abbr title="Portable Network Graphics">PNG</abbr>, <abbr title="Joint Photographic Expert Group">JPEG</abbr> and <abbr title="Tagged Image File Format">TIFF</abbr> formats.</p>
 <h2 id="inspecting-the-svg-source-wzxhzdk48wzxhzdk49">Inspecting the SVG source <a id="inspecting"></a></h2>
-<p>The browser offers two ways to inspect the source of an SVG document: <a href="#viewingSource">viewing the plain source</a> or <a href="#viewingTree">viewing the document tree</a> . Both are explained below.</p>
+<p>The browser offers two ways to inspect the source of an SVG document: <a href="#viewingSource">viewing the plain source</a> or <a href="#viewingTree">viewing the document tree</a>. Both are explained below.</p>
 <h3 id="viewing-the-source-wzxhzdk50wzxhzdk51">Viewing the source <a id="viewingSource"></a></h3>
 <div class="figure"> ![Screenshot of Squiggle showing the 'View→View Source' menu item and the source window](images/svgviewerViewSource.png "") </div>
 
@@ -281,9 +281,10 @@ Squiggle can display multiple files simu
 <p>The <strong>Edit→Preferences</strong> menu item or <strong>Ctrl-G</strong> brings up the dialog box shown in the following figure.
 <div class="figure"> <img alt="Screenshot of Squiggle with the Preferences window open" src="images/svgviewerPreferences.png" title="" /> </div>
 This dialog contains several types of options, which can be selected with the left-hand side list. For each type of option, a panel lets you configure various browser parameters:</p>
+<p>General panel
+:
+This panel lets you choose some optional behavior:</p>
 <dl>
-<dt>General panel</dt>
-<dd>This panel lets you choose some optional behavior:</dd>
 <dt>Enable double buffering</dt>
 <dd>When on, the browser uses additional memory resources which improves the quality of effects such as zooming and panning.</dd>
 <dt>Show Rendering</dt>
@@ -296,32 +297,37 @@ This dialog contains several types of op
 <dd>When on, some debug messages will be printed to the standard output. This is will likely interest only developers.</dd>
 <dt>Use a validating XML parser</dt>
 <dd>When on, the XML parser used to load documents will be in validating mode. This means that the document will be validated against the DTD when it is loaded, and external DTD subsets will be fetched.</dd>
-<dt>Security panel</dt>
-<dd>This panel has options relating to the script and resource access in documents.</dd>
-<dt>Language panel</dt>
-<dd>This is the panel shown in the above figure. That panel lets you select your languages. The user language can be used in SVG documents to choose between alternate contents. For example, open the <code>samples/moonPhases.svg</code> example. Then, change the user language to French and <a href="#reloading">reload</a> the document ( <strong>Ctrl-R</strong> ). You will see that the text is now displayed in French. You can do the same with Japanese and the text will be shown in Japanese.</dd>
+</dl>
+<p>Security panel
+:
+This panel has options relating to the script and resource access in documents.</p>
+<p>Language panel
+:
+This is the panel shown in the above figure. That panel lets you select your languages. The user language can be used in SVG documents to choose between alternate contents. For example, open the <code>samples/moonPhases.svg</code> example. Then, change the user language to French and <a href="#reloading">reload</a> the document ( <strong>Ctrl-R</strong> ). You will see that the text is now displayed in French. You can do the same with Japanese and the text will be shown in Japanese.</p>
+<dl>
 <dt>Stylesheet panel</dt>
 <dd>This panel lets you specify a user stylesheet which can override some of the default settings in viewed SVG documents. This might be useful if you want, for example, to override the font size used in text elements.</dd>
-<dt>Network panel</dt>
-<dd>This panel lets you configure the proxy server to use if you are working from behind a firewall.</dd>
 </dl>
+<p>Network panel
+:
+This panel lets you configure the proxy server to use if you are working from behind a firewall.</p>
 <h2 id="navigating-svg-documents-zooming-panning-rotating-transform-and-thumbnail-wzxhzdk58wzxhzdk59">Navigating SVG documents: zooming, panning, rotating, transform and thumbnail <a id="zooming"></a></h2>
 <p>The Batik browser offers multiple way to navigate SVG documents:</p>
 <ul>
 <li>
-<p><a href="#zoomInOut">Zooming in and out</a> </p>
+<p><a href="#zoomInOut">Zooming in and out</a></p>
 </li>
 <li>
-<p><a href="#panning">Panning</a> </p>
+<p><a href="#panning">Panning</a></p>
 </li>
 <li>
-<p><a href="#rotating">Rotating</a> </p>
+<p><a href="#rotating">Rotating</a></p>
 </li>
 <li>
-<p><a href="#transform">Arbitrary transforms</a> </p>
+<p><a href="#transform">Arbitrary transforms</a></p>
 </li>
 <li>
-<p><a href="#thumbnail">Thumbnail</a> </p>
+<p><a href="#thumbnail">Thumbnail</a></p>
 </li>
 </ul>
 <h3 id="zooming-in-and-out-wzxhzdk60wzxhzdk61">Zooming in and out <a id="zoomInOut"></a></h3>
@@ -358,7 +364,7 @@ This dialog contains several types of op
 <h2 id="rotating-a-document-wzxhzdk64wzxhzdk65">Rotating a document <a id="rotating"></a></h2>
 <p>It is sometimes useful to be able to rotate a document (maps for example). You can do this in the Batik browser by first pressing the <strong>Ctrl key</strong> and then <strong>clicking and dragging the right mouse button</strong> to a new location. The browser will dynamically rotate the image as you move your cursor. When you are satisfied with that angle, you can release the mouse button and the document will be displayed with that new angle.</p>
 <h3 id="using-the-transform-dialog-wzxhzdk66wzxhzdk67">Using the Transform dialog <a id="transform"></a></h3>
-<p>While the mouse and keyboard interactions give interactive way to navigate an SVG document, it is sometimes desirable to be able to define precisely the amount of <a href="#zoomInOut">zoom</a> , <a href="#panning">pan</a> or <a href="#rotating">rotation</a> desired. The Transform dialog, available through the <strong>View→Transform</strong> menu ( <strong>Ctrl-E</strong> ) offers that feature.</p>
+<p>While the mouse and keyboard interactions give interactive way to navigate an SVG document, it is sometimes desirable to be able to define precisely the amount of <a href="#zoomInOut">zoom</a>, <a href="#panning">pan</a> or <a href="#rotating">rotation</a> desired. The Transform dialog, available through the <strong>View→Transform</strong> menu ( <strong>Ctrl-E</strong> ) offers that feature.</p>
 <h3 id="thumbnail-wzxhzdk68wzxhzdk69">Thumbnail <a id="thumbnail"></a></h3>
 <p>Panning in the document window can be difficult after you have zoomed into a document because you cannot see the whole document. Panning on large documents (or with a large zoom factor) is made easy by the thumbnail that you can bring up through the <strong>View→Thumbnail</strong> menu item or the <strong>Ctrl-Y</strong> keyboard accelerator. The thumbnail shows a rectangular marker that represents the “Area of Interest”, i.e., the region currently displayed in the window (the visible portion of the document). You can <strong>drag out a rectangular marker with the left mouse button pushed down</strong> to select a new area of interest which will then be shown in the main window.
 <div class="figure"> <img alt="Screenshot of Squiggle showing the Thumbnail window" src="images/svgviewerThumbnail.png" title="" /> </div></p></div>

Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/font-converter.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/font-converter.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/font-converter.html Wed Dec  5 08:23:47 2012
@@ -176,25 +176,30 @@ build ttf2svg OPTIONS
 In both cases, the options are the same:
 ttf-path[-lrange-begin] [-hrange-end] [-autorange] [-ascii] [-idid] [-ooutput-path] [-testcard]
 where:</p>
-<dl>
-<dt><em>ttf-path</em></dt>
-<dd>specifies the TrueType Font file containing the characters to be converted,</dd>
-<dt><strong>-l</strong>  <em>range-begin</em>  <strong>-h</strong>  <em>range-end</em></dt>
-<dd>specifies the range of characters (by codepoint, in decimal) to be converted,</dd>
-<dt><strong>-autorange</strong></dt>
-<dd>automatically determines the available character range, instead of using the default, ASCII printable characters (ranging from 32 to 126),</dd>
-<dt><strong>-ascii</strong></dt>
-<dd>forces usage of the ASCII character map in the font, instead of the Unicode character map,</dd>
-<dt><strong>-id</strong>  <em>id</em></dt>
-<dd>specifies the value for the <code>id</code> attribute of the generated <code>font</code> element,</dd>
-<dt><strong>-o</strong>  <em>output-path</em></dt>
-<dd>specifies the pathname of the output SVG document containing the generated SVG font, and</dd>
-<dt><strong>-testcard</strong></dt>
-<dd>specifies that a sequence of SVG <code>text</code> elements should be appended to the output SVG file to test the characters in the SVG font, providing an easy way to validate that generated SVG font visually.</dd>
-</dl>
+<p><em>ttf-path</em>
+:
+specifies the TrueType Font file containing the characters to be converted,</p>
+<p><strong>-l</strong>  <em>range-begin</em>  <strong>-h</strong>  <em>range-end</em>
+:
+specifies the range of characters (by codepoint, in decimal) to be converted,</p>
+<p><strong>-autorange</strong>
+:
+automatically determines the available character range, instead of using the default, ASCII printable characters (ranging from 32 to 126),</p>
+<p><strong>-ascii</strong>
+:
+forces usage of the ASCII character map in the font, instead of the Unicode character map,</p>
+<p><strong>-id</strong>  <em>id</em>
+:
+specifies the value for the <code>id</code> attribute of the generated <code>font</code> element,</p>
+<p><strong>-o</strong>  <em>output-path</em>
+:
+specifies the pathname of the output SVG document containing the generated SVG font, and</p>
+<p><strong>-testcard</strong>
+:
+specifies that a sequence of SVG <code>text</code> elements should be appended to the output SVG file to test the characters in the SVG font, providing an easy way to validate that generated SVG font visually.</p>
 <p>For example:
 java -jar batik-ttf2svg.jar /usr/home/myFont.ttf -l 48 -h 57 -id MySVGFont -o mySVGFont.svg -testcard
-will convert characters 48 to 57, i.e., <code>'0'</code> to <code>'9'</code> , in the <code>myFont.ttf</code> file into their SVG equivalent in the <code>mySVGFont.svg</code> file, appending a test card so that the font can be visualized.</p>
+will convert characters 48 to 57, i.e., <code>'0'</code> to <code>'9'</code>, in the <code>myFont.ttf</code> file into their SVG equivalent in the <code>mySVGFont.svg</code> file, appending a test card so that the font can be visualized.</p>
 <h1 id="use-cases-wzxhzdk2wzxhzdk3">Use cases <a id="use-cases"></a></h1>
 <p>The TrueType Font converter application is helpful to be able to embed font definitions in SVG files. This will ensure that the SVG document will look exactly the same on all platform by not relying on system fonts.</p>
 <p>Note that users of the tool should make sure that they have the right to embed the font before embedding it in an SVG file and should refer to the font license for information. Note that TrueType Font files contain a flag that defines the “embeddability” of a font and there are tools for checking that flag.</p></div>

Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html Wed Dec  5 08:23:47 2012
@@ -173,30 +173,36 @@ $(document).ready(function () {
 <h2 id="pretty-printing-an-svg-file-wzxhzdk2wzxhzdk3">Pretty printing an SVG file <a id="using"></a></h2>
 <p>The method for starting the pretty-printer depends on the distribution of Batik that you chose to download. The following describes how to run the pretty printer for each distribution.</p>
 <h3 id="using-the-binary-distribution-wzxhzdk4wzxhzdk5">Using the binary distribution <a id="using-binary"></a></h3>
-<p>If you downloaded the binary distribution of Batik, you should have a file called <code>batik-1.6.zip</code> (or similar), and, after expanding that file, a jar file called <code>batik-svgpp.jar</code> . To start the pretty printer, open a console, change to the directory where you expanded the distribution (and where <code>batik-svgpp.jar</code> is located) and simply type the following at the command prompt:
+<p>If you downloaded the binary distribution of Batik, you should have a file called <code>batik-1.6.zip</code> (or similar), and, after expanding that file, a jar file called <code>batik-svgpp.jar</code>. To start the pretty printer, open a console, change to the directory where you expanded the distribution (and where <code>batik-svgpp.jar</code> is located) and simply type the following at the command prompt:
 java -jar batik-svgpp.jar [OPTIONS] FILES
 For example, if you type:</p>
-<p><code>java -jar batik-svgpp.jar samples/batikFX.svg</code> </p>
+<p><code>java -jar batik-svgpp.jar samples/batikFX.svg</code></p>
 <p>you will see the indented document written to standard output.</p>
 <p>For the options:</p>
-<dl>
-<dt><strong>-newline cr</strong>  <em>|</em>  <strong>cr-lf</strong>  <em>|</em>  <strong>lf</strong></dt>
-<dd>specifies the newline character(s) generated in the printed document, the default being <code>lf</code> (Unix-style newlines),</dd>
-<dt><strong>-tab-width</strong>  <em>number</em></dt>
-<dd>specifies the tabulation width, the default being 4,</dd>
-<dt><strong>-doc-width</strong>  <em>number</em></dt>
-<dd>specifies the maximum number of columns for the whole document, the default being 80,</dd>
-<dt><strong>-no-format</strong></dt>
-<dd>specifies that the current indentation should be preserved, useful for performing doctype or newline substitutions,</dd>
-<dt><strong>-xml-decl</strong>  <em>string</em></dt>
-<dd>specifies the XML declaration,</dd>
-<dt><strong>-doctype change</strong>  <em>|</em>  <strong>remove</strong></dt>
-<dd>specifies whether the doctype should be changed or removed,</dd>
-<dt><strong>-publid-id</strong>  <em>string</em></dt>
-<dd>specifies the public ID to in the doctype declaration, when <code>-doctype change</code> is specified, and</dd>
-<dt><strong>-system-id</strong>  <em>string</em></dt>
-<dd>specifies the system ID to in the doctype declaration, when <code>-doctype change</code> is specified.</dd>
-</dl>
+<p><strong>-newline cr</strong>  <em>|</em>  <strong>cr-lf</strong>  <em>|</em>  <strong>lf</strong>
+:
+specifies the newline character(s) generated in the printed document, the default being <code>lf</code> (Unix-style newlines),</p>
+<p><strong>-tab-width</strong>  <em>number</em>
+:
+specifies the tabulation width, the default being 4,</p>
+<p><strong>-doc-width</strong>  <em>number</em>
+:
+specifies the maximum number of columns for the whole document, the default being 80,</p>
+<p><strong>-no-format</strong>
+:
+specifies that the current indentation should be preserved, useful for performing doctype or newline substitutions,</p>
+<p><strong>-xml-decl</strong>  <em>string</em>
+:
+specifies the XML declaration,</p>
+<p><strong>-doctype change</strong>  <em>|</em>  <strong>remove</strong>
+:
+specifies whether the doctype should be changed or removed,</p>
+<p><strong>-publid-id</strong>  <em>string</em>
+:
+specifies the public ID to in the doctype declaration, when <code>-doctype change</code> is specified, and</p>
+<p><strong>-system-id</strong>  <em>string</em>
+:
+specifies the system ID to in the doctype declaration, when <code>-doctype change</code> is specified.</p>
 <p>For example:
 java -jar batik-svgpp.jar -tab-width 2 -newline cr-lf src.svg dest.svg
 will format <code>src.svg</code> and write it to <code>dest.svg</code> using a tabulation width of 2 and Windows-style newlines, and:
@@ -206,21 +212,16 @@ will format <code>src.svg</code> and wri
 <h3 id="using-the-source-distribution-wzxhzdk6wzxhzdk7">Using the source distribution <a id="using-source"></a></h3>
 <p>If you downloaded the source distribution of Batik, you will have a zip or tar file that expanded into a directory called <code>xml-batik</code> or<code>batik- <em>version</em> </code>. In that directory, you can find build scripts for the platform you are running on. For example, there is a <code>build.bat</code> script for users of the Windows platform and there is a <code>build.sh</code> script for UNIX users.</p>
 <p>To start the pretty printer you should:</p>
-<ul>
-<li>
-<p>Make sure that your <code>JAVA_HOME</code> environment variable is set to your JDK installation directory.</p>
-</li>
-<li>
-<p>Open a command line window and go to the <code>xml-batik</code> or<code>batik- <em>version</em> </code>directory where the Batik distribution was expanded.</p>
-</li>
-<li>
-<p>For windows, type the following at the command prompt:
+<p>-
+Make sure that your <code>JAVA_HOME</code> environment variable is set to your JDK installation directory.</p>
+<p>-
+Open a command line window and go to the <code>xml-batik</code> or<code>batik- <em>version</em> </code>directory where the Batik distribution was expanded.</p>
+<p>-
+For windows, type the following at the command prompt:
 build svgpp
 and for Unix:
 ./build.sh svgpp
 This will print out a help message for the pretty printer.</p>
-</li>
-</ul>
 <p>You can pass options to the rasterizer as follows, for Windows:
 build svgpp [OPTIONS] FILES
 and for Unix:

Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html Wed Dec  5 08:23:47 2012
@@ -173,7 +173,7 @@ $(document).ready(function () {
 <h2 id="rasterizing-one-or-several-svg-files-wzxhzdk13wzxhzdk14">Rasterizing one or several SVG files <a id="using"></a></h2>
 <p>The method for starting the rasterizer depends on the distribution of Batik that you chose to download. The following describes how to start the viewer for each distribution.</p>
 <h3 id="using-the-binary-distribution-wzxhzdk15wzxhzdk16">Using the binary distribution <a id="using-binary"></a></h3>
-<p>If you downloaded the binary distribution of Batik, you should have a file called <code>batik-1.6.zip</code> (or similar), and, after expanding that file, a jar file called <code>batik-rasterizer.jar</code> . To start the rasterizer, open a console, go to the directory where you expanded the distribution (and where <code>batik-rasterizer.jar</code> is located) and simply type the following at the command prompt:</p>
+<p>If you downloaded the binary distribution of Batik, you should have a file called <code>batik-1.6.zip</code> (or similar), and, after expanding that file, a jar file called <code>batik-rasterizer.jar</code>. To start the rasterizer, open a console, go to the directory where you expanded the distribution (and where <code>batik-rasterizer.jar</code> is located) and simply type the following at the command prompt:</p>
 <p>java -jar batik-rasterizer.jar FILES</p>
 <p>For example, if you type:</p>
 <p>java -jar batik-rasterizer.jar samples/batikFX.svg</p>
@@ -188,7 +188,7 @@ Once the conversion is complete, you wil
 specifies the output directory, or the output file if there is only a single input file,</p>
 <p><strong>-m</strong>  <em>mime-type</em>
 :
-specifies the output MIME type, which should be one of <code>image/png</code> , <code>image/jpeg</code> , <code>image/tiff</code> or <code>application/pdf</code> ,</p>
+specifies the output MIME type, which should be one of <code>image/png</code>, <code>image/jpeg</code>, <code>image/tiff</code> or <code>application/pdf</code>,</p>
 <p><strong>-w</strong>  <em>width</em>
 :
 specifies the output width as a floating point value,</p>
@@ -253,7 +253,7 @@ specifies a list of script types (i.e., 
 <p>java -jar batik-rasterizer.jar -d myDir -m image/jpeg samples/*.svg</p>
 <p>will generate JPEG images for all the SVG files found in the samples directory.</p>
 <h3 id="using-the-source-distribution-wzxhzdk17wzxhzdk18">Using the source distribution <a id="usingSource"></a></h3>
-<p>If you downloaded the source distribution of Batik, you got a zip or tar file that expanded into a directory called <code>xml-batik</code> or <code>batik- <em>version</em></code> . In that directory, you can find build scripts for the platform you are running on. For example, there is a <code>build.bat</code> script for users of the Windows platform and there is a <code>build.sh</code> script for UNIX users.</p>
+<p>If you downloaded the source distribution of Batik, you got a zip or tar file that expanded into a directory called <code>xml-batik</code> or <code>batik- *version*</code>. In that directory, you can find build scripts for the platform you are running on. For example, there is a <code>build.bat</code> script for users of the Windows platform and there is a <code>build.sh</code> script for UNIX users.</p>
 <p>To start the rasterizer you should:</p>
 <ul>
 <li>
@@ -274,12 +274,12 @@ For windows, type the following at the c
 <p>and for Unix:</p>
 <p>./build.sh svgrasterizer [OPTIONS] FILES</p>
 <p>Refer to <a href="#using-binary">“Using the binary distribution”</a> for an explanation of the options.</p>
-<h2 id="rasterizer-ant-task-wzxhzdk21wzxhzdk22">Rasterizer Ant task <a id="task"></a></h2>
+<h2 id="rasterizer-ant-task-wzxhzdk19wzxhzdk20">Rasterizer Ant task <a id="task"></a></h2>
 <p>The Rasterizer task is an <a href="http://ant.apache.org/">Ant</a> version of the rasterizer utility. It fulfills the same basic purpose as the utility but has a different syntax and a slightly different set of features.</p>
 <p>The task is able to produce four raster formats: <abbr title="Portable Network Graphics">PNG</abbr>, <abbr title="Joint Photographic Expert Group">JPEG</abbr>, <abbr title="Tagged Image File Format">TIFF</abbr> and <abbr title="Portable Document Format">PDF</abbr>.</p>
-<h3 id="using-the-rasterizer-task-wzxhzdk31wzxhzdk32">Using the rasterizer task <a id="initTask"></a></h3>
+<h3 id="using-the-rasterizer-task-wzxhzdk29wzxhzdk30">Using the rasterizer task <a id="initTask"></a></h3>
 <p>The first thing to do is to compile rasterizer task classes. Download the source distribution of Batik and see the <code>README</code> file in the <code>contrib/rasterizertask</code> directory for more instructions. The build procedure works the same way as when building Batik itself.</p>
-<p>After building, ensure that the generated <code>batik-rasterizer.jar</code> and the classes (or jar file) of the rasterizer task are in your <code>CLASSPATH</code> .</p>
+<p>After building, ensure that the generated <code>batik-rasterizer.jar</code> and the classes (or jar file) of the rasterizer task are in your <code>CLASSPATH</code>.</p>
 <p>Next you have to define the task in your Ant project. To do this, add the following line either after the <code>project</code> start tag or after the <code>target</code> start tag in the target you are using the rasterizer task:</p>
 <div class="codehilite"><pre><span class="nt">&lt;taskdef</span> <span class="na">name=</span><span class="s">&quot;rasterize&quot;</span>
        <span class="na">classname=</span><span class="s">&quot;org.apache.tools.ant.taskdefs.optional.RasterizerTask&quot;</span><span class="nt">/&gt;</span>
@@ -287,7 +287,7 @@ For windows, type the following at the c
 
 
 <p>Now you can use the rasterizer task in your project. See the <a href="#taskParameters">parameters section</a> for an explanation of the available parameters or the <a href="#taskExamples">examples section</a> to see few usage examples.</p>
-<h3 id="parameters-of-the-ant-task-wzxhzdk33wzxhzdk34">Parameters of the Ant task <a id="taskParameters"></a></h3>
+<h3 id="parameters-of-the-ant-task-wzxhzdk31wzxhzdk32">Parameters of the Ant task <a id="taskParameters"></a></h3>
 <p>The following table lists the attributes that may be specified on the <code>rasterize</code> task element.</p>
 <table>
 <thead>
@@ -300,7 +300,7 @@ For windows, type the following at the c
 <tbody>
 <tr>
 <td>result</td>
-<td>Sets the type of the result image. Only one of the following values must be used: <code>image/png</code> , <code>image/jpeg</code> , <code>image/tiff</code> and <code>application/pdf</code> . The value must be in lowercase letters.</td>
+<td>Sets the type of the result image. Only one of the following values must be used: <code>image/png</code>, <code>image/jpeg</code>, <code>image/tiff</code> and <code>application/pdf</code>. The value must be in lowercase letters.</td>
 <td>Yes</td>
 </tr>
 <tr>
@@ -330,7 +330,7 @@ For windows, type the following at the c
 </tr>
 <tr>
 <td>area</td>
-<td>Defines the area in the SVG file which will be rasterized. Parts outside this area are discarded and don’t show in the result image. The area attribute value has four integers separated by commas. The first two integers set the x and y coordinates of the upper left corner of the area, respectively. The last two integers set the width and height of the area, respectively. For example, <code>10, 20, 100, 200</code> sets the rectangular area from point <code>10, 10</code> to point <code>110, 220</code> . The specified area is applied to all images if more than one file is rasterized during one task.</td>
+<td>Defines the area in the SVG file which will be rasterized. Parts outside this area are discarded and don’t show in the result image. The area attribute value has four integers separated by commas. The first two integers set the x and y coordinates of the upper left corner of the area, respectively. The last two integers set the width and height of the area, respectively. For example, <code>10, 20, 100, 200</code> sets the rectangular area from point <code>10, 10</code> to point <code>110, 220</code>. The specified area is applied to all images if more than one file is rasterized during one task.</td>
 <td>No</td>
 </tr>
 <tr>
@@ -340,7 +340,7 @@ For windows, type the following at the c
 </tr>
 <tr>
 <td>media</td>
-<td>CSS media type that is used to select a CSS stylesheet. The selected stylesheet is then used to rasterize the SVG files. Only the visual media group is supported (see the <a href="http://www.w3.org/TR/REC-CSS2/">CSS2 specification</a> for more information about media groups). The default value is <code>screen</code> .</td>
+<td>CSS media type that is used to select a CSS stylesheet. The selected stylesheet is then used to rasterize the SVG files. Only the visual media group is supported (see the <a href="http://www.w3.org/TR/REC-CSS2/">CSS2 specification</a> for more information about media groups). The default value is <code>screen</code>.</td>
 <td>No</td>
 </tr>
 <tr>
@@ -350,7 +350,7 @@ For windows, type the following at the c
 </tr>
 <tr>
 <td>lang</td>
-<td>Language which is used select language specific areas from the SVG file during the rasterizing process. The valid values are defined in <a href="http://www.faqs.org/rfcs/rfc3066.html">RFC3066</a> . The default value is <code>en</code> .</td>
+<td>Language which is used select language specific areas from the SVG file during the rasterizing process. The valid values are defined in <a href="http://www.faqs.org/rfcs/rfc3066.html">RFC3066</a>. The default value is <code>en</code>.</td>
 <td>No</td>
 </tr>
 <tr>
@@ -365,7 +365,7 @@ For windows, type the following at the c
 </tr>
 <tr>
 <td>srcdir</td>
-<td>Name of the input directory. <code>srcdir</code> and <code>fileset</code> elements can be combined and <code>srcdir</code> can be omitted if there is at least one <code>fileset</code> child element. <code>srcdir</code> file selection can be controlled with <code>include</code> , <code>exclude</code> , etc. child elements. Note that without control parameters the task tries to rasterize <em>all</em> files in the given directory.</td>
+<td>Name of the input directory. <code>srcdir</code> and <code>fileset</code> elements can be combined and <code>srcdir</code> can be omitted if there is at least one <code>fileset</code> child element. <code>srcdir</code> file selection can be controlled with <code>include</code>, <code>exclude</code>, etc. child elements. Note that without control parameters the task tries to rasterize <em>all</em> files in the given directory.</td>
 <td>One of the following is required: <code>src</code> attribute, <code>srcdir</code> attribute or <code>fileset</code> element(s).</td>
 </tr>
 <tr>
@@ -375,13 +375,13 @@ For windows, type the following at the c
 </tr>
 <tr>
 <td>classname</td>
-<td>Class name of the XML parser used to parse SVG images. The value can be either the complete classname with package information included or the special name <code>jaxp</code> , which means any available parser in the <code>CLASSPATH</code> that supports JAXP. See the Batik code for the default value.</td>
+<td>Class name of the XML parser used to parse SVG images. The value can be either the complete classname with package information included or the special name <code>jaxp</code>, which means any available parser in the <code>CLASSPATH</code> that supports JAXP. See the Batik code for the default value.</td>
 <td>No</td>
 </tr>
 </tbody>
 </table>
-<p>You can use <code>fileset</code> elements to select input files and directories. See the <a href="http://ant.apache.org/">Ant</a> documentation to learn how to use <a href="http://ant.apache.org/manual/CoreTypes/fileset.html">filesets</a> .</p>
-<h3 id="examples-of-using-the-rasterizer-task-wzxhzdk35wzxhzdk36">Examples of using the rasterizer task <a id="taskExamples"></a></h3>
+<p>You can use <code>fileset</code> elements to select input files and directories. See the <a href="http://ant.apache.org/">Ant</a> documentation to learn how to use <a href="http://ant.apache.org/manual/CoreTypes/fileset.html">filesets</a>.</p>
+<h3 id="examples-of-using-the-rasterizer-task-wzxhzdk33wzxhzdk34">Examples of using the rasterizer task <a id="taskExamples"></a></h3>
 <p>The following example is the complete Ant project that converts an SVG image (called <code>input.svg</code> ) to a PNG image (called <code>output.png</code> ):</p>
 <div class="codehilite"><pre><span class="cp">&lt;?xml version=&quot;1.0&quot;?&gt;</span>
 <span class="nt">&lt;project</span> <span class="na">name=</span><span class="s">&quot;RasterizerExample&quot;</span> <span class="na">default=</span><span class="s">&quot;main&quot;</span> <span class="na">basedir=</span><span class="s">&quot;.&quot;</span><span class="nt">&gt;</span>

Modified: websites/staging/xmlgraphics/trunk/content/batik/uses.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/uses.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/uses.html Wed Dec  5 08:23:47 2012
@@ -185,7 +185,7 @@ $(document).ready(function () {
 <p><a href="http://xmlgraphics.apache.org/fop/">The Apache FOP project</a> uses Batik to handle SVG images. It uses the SVG rasterizer and extends the Batik transcoder architecture to offer SVG to PDF conversion.</p>
 </li>
 <li>
-<p><a href="http://www.exurbi.com/">eDoc Studio</a> , a page layout package, uses the Batik SVG generator to export pages to SVG.</p>
+<p><a href="http://www.exurbi.com/">eDoc Studio</a>, a page layout package, uses the Batik SVG generator to export pages to SVG.</p>
 </li>
 <li>
 <p><a href="http://www.elixirtech.com/ElixirReport">ElixirTech’s ElixirReport</a> uses Batik for charting and for its SVG component.</p>
@@ -194,25 +194,25 @@ $(document).ready(function () {
 <p><a href="http://glipssvgeditor.sourceforge.net/">GLIPS Graffiti</a> is an Open Source Extensible Full Feature Native SVG Editor.</p>
 </li>
 <li>
-<p><a href="http://www2.ilog.com/preview/Discovery/">ILOG Discovery Preview</a> , a free visual data analysis tool letting you visualize and edit data sets in a very wide variety of views (2D graphs and charts, various kinds of treemaps, parallel coordinates, parallel histograms and much more), uses the Batik SVG export module.</p>
+<p><a href="http://www2.ilog.com/preview/Discovery/">ILOG Discovery Preview</a>, a free visual data analysis tool letting you visualize and edit data sets in a very wide variety of views (2D graphs and charts, various kinds of treemaps, parallel coordinates, parallel histograms and much more), uses the Batik SVG export module.</p>
 </li>
 <li>
-<p><a href="http://www.ilog.com/products/jviews">ILOG JViews Component Suite</a> , a product for advanced visualization, uses and extends the Batik SVG export module.</p>
+<p><a href="http://www.ilog.com/products/jviews">ILOG JViews Component Suite</a>, a product for advanced visualization, uses and extends the Batik SVG export module.</p>
 </li>
 <li>
 <p><a href="http://www.object-refinery.com/jfreechart/index.html">The JFreeChart Project</a> uses Batik to export charts in the SVG format.</p>
 </li>
 <li>
-<p><a href="http://lagoon.sourceforge.net/">Lagoon</a> , an XML-based framework for web site maintenance, uses the Batik SVG Rasterizer to render SVG as bitmap graphics for web publishing.</p>
+<p><a href="http://lagoon.sourceforge.net/">Lagoon</a>, an XML-based framework for web site maintenance, uses the Batik SVG Rasterizer to render SVG as bitmap graphics for web publishing.</p>
 </li>
 <li>
 <p><a href="http://www.throneworld.com/lords/gms/dev.html">Lords Map</a> is a program to allow players and visitors to view the current map of various campaigns. Lords Map uses Batik’s SVG DOM and SVG Generator.</p>
 </li>
 <li>
-<p><a href="http://luxor-xul.sourceforge.net/index.html">Luxor XUL</a> is a free, open-source XML User Interface Language (XUL) toolkit in Java released under the GNU GPL that supports hand-picked Mozilla XUL goodies and also includes a ultra-lightweight, multi-threaded web server, a portal engine, a scripting engine, a template engine and much more. Gerard Bauer, the Luxor project lead, has written an extensive <a href="http://luxor-xul.sourceforge.net/talk/jug-nov-2002/slides.html">SVG presentation</a> .</p>
+<p><a href="http://luxor-xul.sourceforge.net/index.html">Luxor XUL</a> is a free, open-source XML User Interface Language (XUL) toolkit in Java released under the GNU GPL that supports hand-picked Mozilla XUL goodies and also includes a ultra-lightweight, multi-threaded web server, a portal engine, a scripting engine, a template engine and much more. Gerard Bauer, the Luxor project lead, has written an extensive <a href="http://luxor-xul.sourceforge.net/talk/jug-nov-2002/slides.html">SVG presentation</a>.</p>
 </li>
 <li>
-<p><a href="http://www.optimalj.com">OptimalJ</a> , a UML Class Diagram Editor for NetBeans, uses Batik to export SVG.</p>
+<p><a href="http://www.optimalj.com">OptimalJ</a>, a UML Class Diagram Editor for NetBeans, uses Batik to export SVG.</p>
 </li>
 <li>
 <p><a href="http://otn.oracle.com/products/jdev/content.html">Oracle Corp.’s JDeveloper10i</a> uses Batik to export class diagrams in SVG. It uses the SVG export module.</p>
@@ -221,16 +221,16 @@ $(document).ready(function () {
 <p><a href="http://www.kiyut.com/">Sketsa</a> is a vector drawing application based on Batik. With Sketsa, you can create vector graphics that can be scaled and printed at any resolution, without losing detail or clarity.</p>
 </li>
 <li>
-<p><a href="http://dannyayers.com/2005/10/18/svolgo-redux/">Svolgo</a> , a Graph Visualisation/Transformation Framework for the Semantic Web Cross-model transformation, node and arc diagrams, representation in SVG. This project uses Batik’s SVG DOM implementation.</p>
+<p><a href="http://dannyayers.com/2005/10/18/svolgo-redux/">Svolgo</a>, a Graph Visualisation/Transformation Framework for the Semantic Web Cross-model transformation, node and arc diagrams, representation in SVG. This project uses Batik’s SVG DOM implementation.</p>
 </li>
 <li>
-<p><a href="http://volity.net/">Volity</a> is an open platform for Internet-based multiplayer casual gaming. Its official client, <a href="http://volity.org/projects/gamut/">Gamut</a> , uses Batik, allowing developers to create game UI files that use ECMAScript-driven SVG.</p>
+<p><a href="http://volity.net/">Volity</a> is an open platform for Internet-based multiplayer casual gaming. Its official client, <a href="http://volity.org/projects/gamut/">Gamut</a>, uses Batik, allowing developers to create game UI files that use ECMAScript-driven SVG.</p>
 </li>
 <li>
 <p><a href="http://pear.php.net/package/XML_svg2image">XML_svg2image</a> is a PHP class which translates SVG files to PNG or JPEG using Batik.</p>
 </li>
 <li>
-<p><a href="http://xweb.sf.net">XWeb</a> , a tool to create websites automatically out of XML input. Uses the Batik SVG Rasterizer.</p>
+<p><a href="http://xweb.sf.net">XWeb</a>, a tool to create websites automatically out of XML input. Uses the Batik SVG Rasterizer.</p>
 </li>
 </ul></div>
       </div>

Modified: websites/staging/xmlgraphics/trunk/content/batik/using/architecture.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/using/architecture.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/using/architecture.html Wed Dec  5 08:23:47 2012
@@ -167,7 +167,7 @@ $(document).ready(function () {
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/batik/">Batik</a>&nbsp;&raquo&nbsp;<a href="/batik/using/">Using</a></div> -->
       	<div class="section-content"><h1 id="architecture-overview">Architecture overview</h1>
-<p>This document briefly describes the Batik architecture and the role of each of its modules. For detailed module design, you can refer to the Batik UML diagrams <a href="http://opensource.objectsbydesign.com/batik/index.html">Object by Design</a> or <a href="http://www.yworks.com/products/yDoc/showcase/batik-1.5/">yWorks</a> .</p>
+<p>This document briefly describes the Batik architecture and the role of each of its modules. For detailed module design, you can refer to the Batik UML diagrams <a href="http://opensource.objectsbydesign.com/batik/index.html">Object by Design</a> or <a href="http://www.yworks.com/products/yDoc/showcase/batik-1.5/">yWorks</a>.</p>
 <p>The Batik modules are of one of three types: application modules, core modules and low level modules. The following figure illustrates these three module types.
 <div class="figure"> <img alt="Batik Architecture" src="images/HighLevelArchitecture.png" title="" /> </div>
  <a href="#applicationComponents">Application modules</a> illustrate how to use the core modules and let users evaluate the Batik software by experimenting with its features.</p>

Modified: websites/staging/xmlgraphics/trunk/content/batik/using/dom-api.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/using/dom-api.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/using/dom-api.html Wed Dec  5 08:23:47 2012
@@ -169,8 +169,8 @@ $(document).ready(function () {
       	<div class="section-content"><h1 id="svg-dom-api">SVG DOM API</h1>
 <p>The <a href="http://www.w3.org/dom/">Document Object Model</a> (DOM) is an API for XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. This page shows how to create an SVG document using the DOM API.</p>
 <h2 id="getting-started-wzxhzdk5wzxhzdk6">Getting started <a id="gettingStarted"></a></h2>
-<p>The DOM API defines an interface called <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/DOMImplementation.html">DOMImplementation</a> , which represents the bootstrap of any DOM implementation. The role of this class is to bootstrap a particular implementation of the DOM by providing a method to create a <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Document.html">Document</a> . Then, the concrete <code>Document</code> represents an XML document and also acts like a factory for the various DOM objects such as <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Element.html">Element</a> , <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Attr.html">Attr</a> and <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Text.html">Text</a> .</p>
-<p>How to get an instance of the <code>DOMImplementation</code> interface depends on the DOM implementation you are using. In Batik, the DOM implementation is located in the package <code>org.apache.batik.dom.svg</code> and the class is named <a href="http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/dom/svg/SVGDOMImplementation.html">SVGDOMImplementation</a> . The following example shows how to get a concrete <code>DOMImplementation</code> object.</p>
+<p>The DOM API defines an interface called <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/DOMImplementation.html">DOMImplementation</a>, which represents the bootstrap of any DOM implementation. The role of this class is to bootstrap a particular implementation of the DOM by providing a method to create a <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Document.html">Document</a>. Then, the concrete <code>Document</code> represents an XML document and also acts like a factory for the various DOM objects such as <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Element.html">Element</a>, <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Attr.html">Attr</a> and <a href="http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Text.html">Text</a>.</p>
+<p>How to get an instance of the <code>DOMImplementation</code> interface depends on the DOM implementation you are using. In Batik, the DOM implementation is located in the package <code>org.apache.batik.dom.svg</code> and the class is named <a href="http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/dom/svg/SVGDOMImplementation.html">SVGDOMImplementation</a>. The following example shows how to get a concrete <code>DOMImplementation</code> object.</p>
 <div class="codehilite"><pre><span class="kn">import</span> <span class="nn">org.w3c.dom.DOMImplementation</span><span class="o">;</span>
 <span class="kn">import</span> <span class="nn">org.apache.batik.dom.svg.SVGDOMImplementation</span><span class="o">;</span>
 
@@ -178,9 +178,9 @@ $(document).ready(function () {
 </pre></div>
 
 
-<p>Once you have an instance of a <code>DOMImplementation</code> , you are not relying on Batik-specific code any more and ready to use the DOM API.</p>
+<p>Once you have an instance of a <code>DOMImplementation</code>, you are not relying on Batik-specific code any more and ready to use the DOM API.</p>
 <h2 id="creating-a-document-wzxhzdk7wzxhzdk8">Creating a Document <a id="creating"></a></h2>
-<p>Using the <code>DOMImplementation</code> , you are now able to create a <code>Document</code> . The following example illustrates how to create an SVG document. Note that the Batik’s DOM implementation can be used to represent either an SVG document fragment or any kind of XML document. Note that by choosing the namespace URI and the local name of the root element of SVG, we are creating an SVG document.</p>
+<p>Using the <code>DOMImplementation</code>, you are now able to create a <code>Document</code>. The following example illustrates how to create an SVG document. Note that the Batik’s DOM implementation can be used to represent either an SVG document fragment or any kind of XML document. Note that by choosing the namespace URI and the local name of the root element of SVG, we are creating an SVG document.</p>
 <div class="codehilite"><pre><span class="kn">import</span> <span class="nn">org.apache.batik.dom.svg.SVGDOMImplementation</span><span class="o">;</span>
 <span class="kn">import</span> <span class="nn">org.w3c.dom.Document</span><span class="o">;</span>
 
@@ -192,7 +192,7 @@ $(document).ready(function () {
 </pre></div>
 
 
-<p>As we have created an SVG <code>Document</code> , we can cast this document to an <a href="../javadoc/org/w3c/dom/svg/SVGDocument.html">SVGDocument</a> (defined in the <code>org.w3c.dom.svg</code> package) if needed.</p>
+<p>As we have created an SVG <code>Document</code>, we can cast this document to an <a href="../javadoc/org/w3c/dom/svg/SVGDocument.html">SVGDocument</a> (defined in the <code>org.w3c.dom.svg</code> package) if needed.</p>
 <h2 id="building-an-svg-document-wzxhzdk9wzxhzdk10">Building an SVG Document <a id="buildsvgdoc"></a></h2>
 <p>Finally, using the <code>Document</code> object, we are now able to construct SVG content. Note that the document created before supports both generic XML and SVG. Though the DOM implementation of Batik is an SVG DOM implementation, the SVG-specific methods that rely on the document having been rendered (particularly geometry related methods, such as <a href="../javadoc/org/w3c/dom/svg/SVGLocatable.html#getBBox()">SVGLocatable.getBBox</a> ) cannot be used at this point.</p>
 <p>The document can be built using DOM Level 2 Core methods. The following example shows how to create a red rectangle located at (10, 20), with a size of (100, 50) placed in a (400, 450) SVG canvas:</p>
@@ -232,7 +232,7 @@ $(document).ready(function () {
 
 
 <h1 id="creating-a-document-from-an-svg-file-wzxhzdk11wzxhzdk12">Creating a Document from an SVG file <a id="createdocfromsvgfile"></a></h1>
-<p>With Batik, you can also create an SVG DOM tree from a URI, an <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html">InputStream</a> , or a <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Reader.html">Reader</a> , using the <a href="../javadoc/org/apache/batik/dom/util/SAXDocumentFactory.html">SAXSVGDocumentFactory</a> . The following example illustrates how to create an SVG document from a URI using the <code>SAXSVGDocumentFactory</code> class.</p>
+<p>With Batik, you can also create an SVG DOM tree from a URI, an <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html">InputStream</a>, or a <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Reader.html">Reader</a>, using the <a href="../javadoc/org/apache/batik/dom/util/SAXDocumentFactory.html">SAXSVGDocumentFactory</a>. The following example illustrates how to create an SVG document from a URI using the <code>SAXSVGDocumentFactory</code> class.</p>
 <div class="codehilite"><pre><span class="kn">import</span> <span class="nn">java.io.IOException</span><span class="o">;</span>
 
 <span class="kn">import</span> <span class="nn">org.apache.batik.dom.svg.SAXSVGDocumentFactory</span><span class="o">;</span>
@@ -251,15 +251,15 @@ $(document).ready(function () {
 </pre></div>
 
 
-<p>As we have created an SVG <code>Document</code> , we can cast this document to an <code>SVGDocument</code> (defined in the <code>org.w3c.dom.svg</code> package) if needed.</p>
+<p>As we have created an SVG <code>Document</code>, we can cast this document to an <code>SVGDocument</code> (defined in the <code>org.w3c.dom.svg</code> package) if needed.</p>
 <h2 id="rendering-an-svg-document-wzxhzdk13wzxhzdk14">Rendering an SVG Document <a id="rendering"></a></h2>
 <p>Batik provides several ways to use an SVG DOM tree. Two modules can be immediately used to render your SVG document.</p>
 <p>JSVGCanvas
 :
-The <a href="../javadoc/org/apache/batik/swing/JSVGCanvas.html">JSVGCanvas</a> is a Swing component that can display SVG document. A SVG document can be specified using a URI or an SVG DOM tree (using the <a href="../javadoc/org/apache/batik/swing/JSVGCanvas.html#setSVGDocument(Document)">setSVGDocument</a> method). For futher information about the <code>JSVGCanvas</code> , see the <a href="../using/swing.html">Swing components module documentation</a> .</p>
+The <a href="../javadoc/org/apache/batik/swing/JSVGCanvas.html">JSVGCanvas</a> is a Swing component that can display SVG document. A SVG document can be specified using a URI or an SVG DOM tree (using the <a href="../javadoc/org/apache/batik/swing/JSVGCanvas.html#setSVGDocument(Document)">setSVGDocument</a> method). For futher information about the <code>JSVGCanvas</code>, see the <a href="../using/swing.html">Swing components module documentation</a>.</p>
 <dl>
 <dt>ImageTranscoder</dt>
-<dd>The <a href="../javadoc/org/apache/batik/transcoder/image/ImageTranscoder.html">ImageTranscoder</a> is a transcoder that can take a URI, an <code>InputStream</code> or an SVG DOM tree and produces a raster image (such JPEG, PNG or TIFF). By creating a <a href="../javadoc/org/apache/batik/transcoder/TranscoderInput.html">TranscoderInput</a> object with the SVG DOM tree, you will be able to transform your SVG content to a raster image. For futher information, see the <a href="../using/transcoder.html">transcoder module documentation</a> .</dd>
+<dd>The <a href="../javadoc/org/apache/batik/transcoder/image/ImageTranscoder.html">ImageTranscoder</a> is a transcoder that can take a URI, an <code>InputStream</code> or an SVG DOM tree and produces a raster image (such JPEG, PNG or TIFF). By creating a <a href="../javadoc/org/apache/batik/transcoder/TranscoderInput.html">TranscoderInput</a> object with the SVG DOM tree, you will be able to transform your SVG content to a raster image. For futher information, see the <a href="../using/transcoder.html">transcoder module documentation</a>.</dd>
 </dl></div>
       </div>
       



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


Mime
View raw message