incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1010270 [4/13] - in /websites/staging/odftoolkit/trunk/content: ./ odftoolkit/ odftoolkit/GSoC/ odftoolkit/docs/ odftoolkit/docs/governance/ odftoolkit/odfdom/ odftoolkit/simple/ odftoolkit/simple/demo/ odftoolkit/simple/document/ odftoolk...
Date Tue, 11 Apr 2017 23:13:31 GMT
Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/release-process.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/release-process.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/release-process.html Tue Apr 11 23:13:30 2017
@@ -50,7 +50,18 @@
   <div id="clear"></div>
   
   <div id="sidenav">
-    <h1 id="general">General</h1>
+    <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<h1 id="general">General<a class="headerlink" href="#general" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/index.html">About</a></li>
 <li><a href="/odftoolkit/downloads.html">Downloads</a></li>
@@ -58,21 +69,21 @@
 <li><a href="/odftoolkit/license.html">License</a></li>
 <li><a href="/odftoolkit/privacy.html">Privacy Policy</a></li>
 </ul>
-<h1 id="components">Components</h1>
+<h1 id="components">Components<a class="headerlink" href="#components" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/odfdom/index.html">ODFDOM</a></li>
 <li><a href="/odftoolkit/simple/index.html">Simple API</a></li>
 <li><a href="/odftoolkit/conformance/ODFValidator.html">ODF Validator</a></li>
 <li><a href="/odftoolkit/xsltrunner/ODFXSLTRunner.html">XSLT Runner</a></li>
 </ul>
-<h1 id="community">Community</h1>
+<h1 id="community">Community<a class="headerlink" href="#community" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/get-involved.html">Get Involved</a></li>
 <li><a href="/odftoolkit/mailing-lists.html">Mailing Lists</a></li>
 <li><a href="/odftoolkit/people.html">People</a></li>
 <li><a href="/odftoolkit/community-faqs.html">Community FAQs</a></li>
 </ul>
-<h1 id="development">Development</h1>
+<h1 id="development">Development<a class="headerlink" href="#development" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/source.html">Source Code</a></li>
 <li><a href="https://issues.apache.org/jira/browse/ODFTOOLKIT">Bug Tracker</a></li>
@@ -80,13 +91,12 @@
 <li><a href="/odftoolkit/website-local.html">Website</a></li>
 <li><a href="/odftoolkit/developer-faqs.html">Developer FAQs</a></li>
 </ul>
-<h1 id="ppmc">PPMC</h1>
+<h1 id="ppmc">PPMC<a class="headerlink" href="#ppmc" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/ppmc-faqs.html">PPMC FAQs</a></li>
-<li><a href="/odftoolkit/odftoolkit-release-guide.html">Release Guide</a> <br />
-</li>
+<li><a href="/odftoolkit/odftoolkit-release-guide.html">Release Guide</a>   </li>
 </ul>
-<h1 id="asf">ASF</h1>
+<h1 id="asf">ASF<a class="headerlink" href="#asf" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="http://www.apache.org">Apache Software Foundation</a></li>
 <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
@@ -96,13 +106,23 @@
   <div id="contenta">
   
     <h1 class="title">Release Process</h1>
-    <h3 id="incubator-release-steps">Incubator Release Steps</h3>
+    <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<h3 id="incubator-release-steps">Incubator Release Steps<a class="headerlink" href="#incubator-release-steps" title="Permanent link">&para;</a></h3>
 <ol>
 <li>Environment setup for releasing artifacts (same for SNAPSHOTs and releases) -</li>
 <li>
-<p>Increase the default Java heap available to Maven (required for Java SE 6)<br />
-</p>
-<div class="codehilite"><pre><span class="n">export</span> <span class="n">MAVEN_OPTS</span><span class="o">=</span><span class="s">&quot;-Xmx1024m -XX:MaxPermSize=256m&quot;</span>
+<p>Increase the default Java heap available to Maven (required for Java SE 6)  </p>
+<div class="codehilite"><pre><span class="n">export</span> <span class="n">MAVEN_OPTS</span><span class="p">=</span>&quot;<span class="o">-</span><span class="n">Xmx1024m</span> <span class="o">-</span><span class="n">XX</span><span class="p">:</span><span class="n">MaxPermSize</span><span class="p">=</span>256<span class="n">m</span>&quot;
 </pre></div>
 
 
@@ -113,8 +133,7 @@
 </ol>
 </li>
 <li>
-<p>Prepare the source for release:   <br />
-</p>
+<p>Prepare the source for release:     </p>
 <ol>
 <li>Cleanup JIRA so the Fix Version in issues resolved since the last release includes this release version correctly. Also, transition any Resolved issues to the Closed state.</li>
 <li>Update the text files in a working copy of the project root -<ol>
@@ -127,8 +146,7 @@
 </ol>
 </li>
 <li>
-<p>Checkout a clean copy of the trunk to release using command line svn. <br />
-</p>
+<p>Checkout a clean copy of the trunk to release using command line svn.   </p>
 </li>
 </ol>
 <p><em>Do not use Eclipse to do the checkout. The extra dot (.) files created by Eclipse throws off the rat:check processing.</em></p>
@@ -137,9 +155,8 @@
 <p>Use <code>mvn -P pedantic verify</code> to verify the source has the required headers before trying to release.</p>
 </li>
 <li>
-<p>Do a dry run of the release:prepare step:<br />
-</p>
-<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">mvn</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="n">release:prepare</span> <span class="o">-</span><span class="n">DdryRun</span><span class="o">=</span><span class="n">true</span>
+<p>Do a dry run of the release:prepare step:  </p>
+<div class="codehilite"><pre>$ <span class="n">mvn</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="n">release</span><span class="p">:</span><span class="n">prepare</span> <span class="o">-</span><span class="n">DdryRun</span><span class="p">=</span><span class="n">true</span>
 </pre></div>
 
 
@@ -149,20 +166,16 @@
       * Release version - take the default 
       * SCM release tag - <em>DO NOT TAKE THE DEFAULT</em>  -: : 0.1-incubating
       * New development version - take the default
-      * GPG Passprhase<br />
-</p>
+      * GPG Passprhase  </p>
 <p><em>If you cancel a release:prepare before it updates the pom.xml versions, then use the release:clean goal to just remove the extra files that were created.</em></p>
 <ol>
 <li>
 <p>Verify that the release process completed as expected</p>
 <ol>
 <li>The release plugin will create pom.xml.tag files which contain the changes that would have been committed to SVN. The only differences between pom.xml.tag and it's corresponding pom.xml file should be the version number.</li>
-<li>
-<p>If other formatting changes have been made you should review the changes and then commit them - <br />
-</p>
-<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">svn</span> <span class="n">commit</span> <span class="o">-</span><span class="n">m</span> <span class="s">&quot;fixing formatting for release&quot;</span>
-<span class="mi">3</span><span class="o">.</span> <span class="n">Check</span> <span class="n">release</span><span class="o">.</span><span class="n">properties</span> <span class="ow">and</span> <span class="n">make</span> <span class="n">sure</span> <span class="n">that</span> <span class="n">the</span> <span class="n">scm</span> <span class="n">properties</span> <span class="n">have</span> <span class="n">the</span> <span class="n">right</span> <span class="n">version</span><span class="o">.</span> <span class="n">Sometimes</span> <span class="n">the</span> <span class="n">scm</span> <span class="n">location</span> <span class="n">can</span> <span class="n">be</span> <span class="n">the</span> <span class="n">previous</span> <span class="n">version</span> <span class="ow">not</span> <span class="n">the</span> <span class="k">next</span> <span class="n">version</span><span class="o">.</span>
-<span class="mi">4</span><span class="o">.</span> <span class="n">Verify</span> <span class="n">signatures</span> <span class="p">([</span><span class="n">Verifying</span> <span class="n">release</span> <span class="n">signatures</span><span class="p">](</span><span class="n">http:</span><span class="sr">//i</span><span class="n">ncubator</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">org</span><span class="sr">/rave/</span><span class="n">release</span><span class="o">-</span><span class="n">process</span><span class="o">.</span><span class="n">html</span><span class="c1">#verify_signatures))</span>
+<li>If other formatting changes have been made you should review the changes and then commit them -   <div class="codehilite"><pre>$ <span class="n">svn</span> <span class="n">commit</span> <span class="o">-</span><span class="n">m</span> &quot;<span class="n">fixing</span> <span class="n">formatting</span> <span class="k">for</span> <span class="n">release</span>&quot;
+3<span class="p">.</span> <span class="n">Check</span> <span class="n">release</span><span class="p">.</span><span class="k">properties</span> <span class="n">and</span> <span class="n">make</span> <span class="n">sure</span> <span class="n">that</span> <span class="n">the</span> <span class="n">scm</span> <span class="k">properties</span> <span class="n">have</span> <span class="n">the</span> <span class="n">right</span> <span class="n">version</span><span class="p">.</span> <span class="n">Sometimes</span> <span class="n">the</span> <span class="n">scm</span> <span class="n">location</span> <span class="n">can</span> <span class="n">be</span> <span class="n">the</span> <span class="n">previous</span> <span class="n">version</span> <span class="n">not</span> <span class="n">the</span> <span class="n">next</span> <span class="n">version</span><span class="p">.</span>
+4<span class="p">.</span> <span class="n">Verify</span> <span class="n">signatures</span> <span class="p">([</span><span class="n">Verifying</span> <span class="n">release</span> <span class="n">signatures</span><span class="p">](</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">incubator</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">rave</span><span class="o">/</span><span class="n">release</span><span class="o">-</span><span class="n">process</span><span class="p">.</span><span class="n">html</span>#<span class="n">verify_signatures</span><span class="p">))</span>
 </pre></div>
 
 
@@ -170,9 +183,8 @@
 </ol>
 </li>
 <li>
-<p>Once any failures or required updates have been committed to svn, rollback the release prepare files:<br />
-</p>
-<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">mvn</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="n">release:rollback</span>
+<p>Once any failures or required updates have been committed to svn, rollback the release prepare files:  </p>
+<div class="codehilite"><pre>$ <span class="n">mvn</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="n">release</span><span class="p">:</span><span class="n">rollback</span>
 </pre></div>
 
 
@@ -182,7 +194,7 @@
 </li>
 <li>
 <p>Run the "release:prepare" step for real this time. You'll be prompted for the same version information.</p>
-<div class="codehilite"><pre>  <span class="nv">$</span> <span class="nv">mvn</span> <span class="n">release:prepare</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="o">-</span><span class="n">DpreparationGoals</span><span class="o">=</span><span class="s">&quot;clean install cargo:package&quot;</span>
+<div class="codehilite"><pre>  $ <span class="n">mvn</span> <span class="n">release</span><span class="p">:</span><span class="n">prepare</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="o">-</span><span class="n">DpreparationGoals</span><span class="p">=</span>&quot;<span class="n">clean</span> <span class="n">install</span> <span class="n">cargo</span><span class="p">:</span><span class="n">package</span>&quot;
 </pre></div>
 
 
@@ -195,10 +207,10 @@
 </li>
 </ol>
 <p>This step will create a maven staging repository and site for use in testing and voting. </p>
-<div class="codehilite"><pre>    <span class="nv">$</span> <span class="nv">mvn</span> <span class="n">release:perform</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="o">-</span><span class="n">Duser</span><span class="o">.</span><span class="n">name</span><span class="o">=</span><span class="sr">&lt;your_apache_uid&gt;</span>
+<div class="codehilite"><pre>    $ <span class="n">mvn</span> <span class="n">release</span><span class="p">:</span><span class="n">perform</span> <span class="o">-</span><span class="n">Papache</span><span class="o">-</span><span class="n">release</span> <span class="o">-</span><span class="n">Duser</span><span class="p">.</span><span class="n">name</span><span class="p">=</span><span class="o">&lt;</span><span class="n">your_apache_uid</span><span class="o">&gt;</span>
 
-<span class="o">*</span><span class="n">If</span> <span class="n">your</span> <span class="nb">local</span> <span class="n">OS</span> <span class="n">userid</span> <span class="n">doesn</span><span class="s">&#39;t match your Apache userid, then you&#39;</span><span class="n">ll</span> <span class="n">have</span> <span class="n">to</span> <span class="n">also</span> <span class="n">override</span> <span class="n">the</span> <span class="n">value</span> <span class="n">provided</span> <span class="n">by</span> <span class="n">the</span> <span class="n">OS</span> <span class="n">to</span> <span class="n">Maven</span> <span class="k">for</span> <span class="n">the</span> <span class="n">site</span><span class="o">-</span><span class="n">deploy</span> <span class="n">step</span> <span class="n">to</span> <span class="n">work</span><span class="o">.</span> <span class="n">This</span> <span class="n">is</span> <span class="n">known</span> <span class="n">to</span> <span class="n">work</sp
 an> <span class="k">for</span> <span class="n">Linux</span><span class="p">,</span> <span class="n">but</span> <span class="ow">not</span> <span class="k">for</span> <span class="n">Mac</span> <span class="ow">and</span> <span class="n">unknown</span> <span class="k">for</span> <span class="n">Windows</span><span class="o">.*</span>
-<span class="o">*</span><span class="n">The</span> <span class="n">maven</span><span class="o">-</span><span class="n">release</span><span class="o">-</span><span class="n">plugin</span> <span class="n">is</span> <span class="n">configured</span> <span class="n">with</span> <span class="n">goals</span> <span class="s">&quot;deploy site site:deploy&quot;</span> <span class="ow">and</span> <span class="n">will</span> <span class="n">deploy</span> <span class="n">the</span> <span class="n">site</span> <span class="n">files</span> <span class="n">to</span> <span class="n">a</span> <span class="n">staging</span><span class="o">-</span><span class="n">site</span> <span class="n">directory</span> <span class="n">on</span> <span class="n">people</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">org</span><span class="o">.*</span>
+<span class="o">*</span><span class="n">If</span> <span class="n">your</span> <span class="n">local</span> <span class="n">OS</span> <span class="n">userid</span> <span class="n">doesn</span><span class="o">&#39;</span><span class="n">t</span> <span class="n">match</span> <span class="n">your</span> <span class="n">Apache</span> <span class="n">userid</span><span class="p">,</span> <span class="n">then</span> <span class="n">you</span><span class="o">&#39;</span><span class="n">ll</span> <span class="n">have</span> <span class="n">to</span> <span class="n">also</span> <span class="n">override</span> <span class="n">the</span> <span class="n">value</span> <span class="n">provided</span> <span class="n">by</span> <span class="n">the</span> <span class="n">OS</span> <span class="n">to</span> <span class="n">Maven</span> <span class="k">for</span> <span class="n">the</span> <span class="n">site</span><span class="o">-</span><span class="n">deploy</span> <span class="n">step</span> <span
  class="n">to</span> <span class="n">work</span><span class="p">.</span> <span class="n">This</span> <span class="n">is</span> <span class="n">known</span> <span class="n">to</span> <span class="n">work</span> <span class="k">for</span> <span class="n">Linux</span><span class="p">,</span> <span class="n">but</span> <span class="n">not</span> <span class="k">for</span> <span class="n">Mac</span> <span class="n">and</span> <span class="n">unknown</span> <span class="k">for</span> <span class="n">Windows</span><span class="o">.*</span>
+<span class="o">*</span><span class="n">The</span> <span class="n">maven</span><span class="o">-</span><span class="n">release</span><span class="o">-</span><span class="n">plugin</span> <span class="n">is</span> <span class="n">configured</span> <span class="n">with</span> <span class="n">goals</span> &quot;<span class="n">deploy</span> <span class="n">site</span> <span class="n">site</span><span class="p">:</span><span class="n">deploy</span>&quot; <span class="n">and</span> <span class="n">will</span> <span class="n">deploy</span> <span class="n">the</span> <span class="n">site</span> <span class="n">files</span> <span class="n">to</span> <span class="n">a</span> <span class="n">staging</span><span class="o">-</span><span class="n">site</span> <span class="n">directory</span> <span class="n">on</span> <span class="n">people</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span><span class="o">.*</span>
 </pre></div>
 
 
@@ -278,8 +290,7 @@
   $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip  <br />
   $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.asc <br />
   $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.md5 <br />
-  $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.sha1  <br />
-</p>
+  $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.sha1    </p>
 </li>
 </ol>
 <p><strong>Make sure all the copied files have g+rw set and only o+r set</strong></p>
@@ -301,7 +312,7 @@
 <li>Make a news announcement on the Rave homepage.</li>
 <li>Make an announcement about the release on the rave-users@incubator.apache.org, rave-dev@incubator.apache.org, general@incubator.apache.org, and announce@apache.org list as per the Apache Announcement Mailing Lists page)</li>
 </ol>
-<h4 id="recovering-from-a-vetoed-release">Recovering from a vetoed release</h4>
+<h4 id="recovering-from-a-vetoed-release">Recovering from a vetoed release<a class="headerlink" href="#recovering-from-a-vetoed-release" title="Permanent link">&para;</a></h4>
 <ol>
 <li>
 <p>Reply to the initial vote email and prepend to the original subject -</p>
@@ -340,7 +351,7 @@
 </li>
 <li>Spin another release candidate!</li>
 </ol>
-<h4 id="verifying-release-signatures">Verifying release signatures</h4>
+<h4 id="verifying-release-signatures">Verifying release signatures<a class="headerlink" href="#verifying-release-signatures" title="Permanent link">&para;</a></h4>
 <p>On unix platforms the following command can be executed -</p>
 <div class="codehilite"><pre>  for file in `find . -type f -iname &#39;*.asc&#39;`
   do

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/Home.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/Home.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/Home.html Tue Apr 11 23:13:30 2017
@@ -50,7 +50,18 @@
   <div id="clear"></div>
   
   <div id="sidenav">
-    <h1 id="general">General</h1>
+    <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<h1 id="general">General<a class="headerlink" href="#general" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/index.html">About</a></li>
 <li><a href="/odftoolkit/downloads.html">Downloads</a></li>
@@ -58,21 +69,21 @@
 <li><a href="/odftoolkit/license.html">License</a></li>
 <li><a href="/odftoolkit/privacy.html">Privacy Policy</a></li>
 </ul>
-<h1 id="components">Components</h1>
+<h1 id="components">Components<a class="headerlink" href="#components" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/odfdom/index.html">ODFDOM</a></li>
 <li><a href="/odftoolkit/simple/index.html">Simple API</a></li>
 <li><a href="/odftoolkit/conformance/ODFValidator.html">ODF Validator</a></li>
 <li><a href="/odftoolkit/xsltrunner/ODFXSLTRunner.html">XSLT Runner</a></li>
 </ul>
-<h1 id="community">Community</h1>
+<h1 id="community">Community<a class="headerlink" href="#community" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/get-involved.html">Get Involved</a></li>
 <li><a href="/odftoolkit/mailing-lists.html">Mailing Lists</a></li>
 <li><a href="/odftoolkit/people.html">People</a></li>
 <li><a href="/odftoolkit/community-faqs.html">Community FAQs</a></li>
 </ul>
-<h1 id="development">Development</h1>
+<h1 id="development">Development<a class="headerlink" href="#development" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/source.html">Source Code</a></li>
 <li><a href="https://issues.apache.org/jira/browse/ODFTOOLKIT">Bug Tracker</a></li>
@@ -80,13 +91,12 @@
 <li><a href="/odftoolkit/website-local.html">Website</a></li>
 <li><a href="/odftoolkit/developer-faqs.html">Developer FAQs</a></li>
 </ul>
-<h1 id="ppmc">PPMC</h1>
+<h1 id="ppmc">PPMC<a class="headerlink" href="#ppmc" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/ppmc-faqs.html">PPMC FAQs</a></li>
-<li><a href="/odftoolkit/odftoolkit-release-guide.html">Release Guide</a> <br />
-</li>
+<li><a href="/odftoolkit/odftoolkit-release-guide.html">Release Guide</a>   </li>
 </ul>
-<h1 id="asf">ASF</h1>
+<h1 id="asf">ASF<a class="headerlink" href="#asf" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="http://www.apache.org">Apache Software Foundation</a></li>
 <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
@@ -96,12 +106,23 @@
   <div id="contenta">
   
     <h1 class="title">Simple Java API for ODF</h1>
-    <h2 id="what-is-the-simple-java-api-for-odf">What is the Simple Java API for ODF?</h2>
+    <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<h2 id="what-is-the-simple-java-api-for-odf">What is the Simple Java API for ODF?<a class="headerlink" href="#what-is-the-simple-java-api-for-odf" title="Permanent link">&para;</a></h2>
 <p>The Simple Java API for ODF is an easy-to-use, high-level Java API for creating, 
 modifying and extracting data from ODF 1.2 documents.  It is written in pure 
 Java and does not require that you install any document editor on your system.<br />
 The Simple Java API for ODF is a high level abstraction of the lower-level ODFDOM API.</p>
-<h2 id="new-release-066">New Release 0.6.6</h2>
+<h2 id="new-release-066">New Release 0.6.6<a class="headerlink" href="#new-release-066" title="Permanent link">&para;</a></h2>
 <p>We are pleased to announce the release of the Simple Java API for ODF version 
 0.6.6 on Auguest 12th. The improvements in this version include:</p>
 <ul>
@@ -115,7 +136,7 @@ The Simple Java API for ODF is a high le
 process has been started. The security features (encryption and digital 
 signatures) will be included in Apache version. Thanks all of the contributors 
 and users, please continue to pay attention to us in Apache.</p>
-<h2 id="project-roadmap-and-schedule">Project roadmap and schedule</h2>
+<h2 id="project-roadmap-and-schedule">Project roadmap and schedule<a class="headerlink" href="#project-roadmap-and-schedule" title="Permanent link">&para;</a></h2>
 <p>The Simple Java API for ODF adheres to the "Release Early and Often" development 
 philosophy.  We will target a monthly release, for the end of each month.<br />
 Code that is ready makes it into that month's release.  Code that is not yet 
@@ -130,29 +151,29 @@ ready will wait.</p>
 <li>Version 0.6.6 at the middle of August, 2011 with bugs fixed;</li>
 <li>More work will be started in Apache.</li>
 </ul>
-<h2 id="frequently-asked-questions">Frequently Asked Questions</h2>
-<h3 id="for-users">For Users</h3>
-<h4 id="how-to-download-and-install">How to download and install</h4>
+<h2 id="frequently-asked-questions">Frequently Asked Questions<a class="headerlink" href="#frequently-asked-questions" title="Permanent link">&para;</a></h2>
+<h3 id="for-users">For Users<a class="headerlink" href="#for-users" title="Permanent link">&para;</a></h3>
+<h4 id="how-to-download-and-install">How to download and install<a class="headerlink" href="#how-to-download-and-install" title="Permanent link">&para;</a></h4>
 <p>You can get Simple Java API for ODF as binary distribution from the download area. There you'll find Javadocs as well. To obtain source code, please refer to development section. </p>
-<h4 id="how-to-start-development">How to start development</h4>
+<h4 id="how-to-start-development">How to start development<a class="headerlink" href="#how-to-start-development" title="Permanent link">&para;</a></h4>
 <p>I suggest you to start from an overview of this project. This page will give you 
 an overall introduction of the package structures. After that, you can go to the
 Cookbook and Demos to read some code samples. And then, you can start your own program 
 to manipulate ODF document.</p>
 <p>If you are familiar with ODFDOM, here are the API changes from ODFDOM.</p>
-<h4 id="prerequisites">Prerequisites</h4>
+<h4 id="prerequisites">Prerequisites<a class="headerlink" href="#prerequisites" title="Permanent link">&para;</a></h4>
 <p>In addition to the Simple Java API JAR file you will need to download and install the following runtime prerequisite:</p>
 <ul>
 <li>JDK version 1.6</li>
 <li>ODFDOM 0.8.7</li>
 <li>The Apache Xerces 2.9.1 or higher version.</li>
 </ul>
-<h4 id="code-examples">Code examples</h4>
+<h4 id="code-examples">Code examples<a class="headerlink" href="#code-examples" title="Permanent link">&para;</a></h4>
 <p>You can find sample codes from our Cookbook] and Demos.</p>
-<h4 id="how-to-report-defects">How to report defects</h4>
+<h4 id="how-to-report-defects">How to report defects<a class="headerlink" href="#how-to-report-defects" title="Permanent link">&para;</a></h4>
 <p>The Simple Java API for ODF uses Bugzilla to track the defects. You can report defects [http://odftoolkit.org/bugzilla/buglist.cgi?product=simple&amp;order=bugs.bug_id here].</p>
-<h3 id="for-developers">For Developers</h3>
-<h3 id="how-to-download-source">How to download source</h3>
+<h3 id="for-developers">For Developers<a class="headerlink" href="#for-developers" title="Permanent link">&para;</a></h3>
+<h3 id="how-to-download-source">How to download source<a class="headerlink" href="#how-to-download-source" title="Permanent link">&para;</a></h3>
 <p>First, install [http://mercurial.selenic.com/wiki/ latest Mercurial]</p>
 <p>Second, setup Mercurial (optional):<br />Config file <Hg Install Dir>\Mercurial.ini on Windows or <Hg Install Dir>/.hgrc on Unix.
 Enhance the default configuration, using GIT diff and enable [http://mercurial.selenic.com/wiki/Win32TextExtension default plugin] avoid different line breaks in the source.</p>
@@ -196,29 +217,29 @@ hg clone https://hg.odftoolkit.org/hg/si
 download the repository into a new directory.</p>
 <p>Please note that by this you'll get the latest changeset. If you for example 
 want stable release 0.2, you may want to use</p>
-<div class="codehilite"><pre><span class="n">hg</span> <span class="n">clone</span> <span class="n">https:</span><span class="sr">//o</span><span class="n">dftoolkit</span><span class="o">.</span><span class="n">org</span><span class="sr">/hg/sim</span><span class="n">ple</span><span class="o">~</span><span class="n">code</span><span class="o">-</span><span class="n">base</span> <span class="o">-</span><span class="n">r</span> <span class="n">v0</span><span class="mf">.2</span>
+<div class="codehilite"><pre><span class="n">hg</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">odftoolkit</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">hg</span><span class="o">/</span><span class="n">simple</span><span class="o">~</span><span class="n">code</span><span class="o">-</span><span class="n">base</span> <span class="o">-</span><span class="n">r</span> <span class="n">v0</span><span class="p">.</span>2
 </pre></div>
 
 
 <p>Developers however always work on the latest changeset.</p>
-<h4 id="how-to-build-and-run-the-unit-tests">How to build and run the unit tests</h4>
+<h4 id="how-to-build-and-run-the-unit-tests">How to build and run the unit tests<a class="headerlink" href="#how-to-build-and-run-the-unit-tests" title="Permanent link">&para;</a></h4>
 <p>After the source code is checked out, now get and install 
 [http://maven.apache.org/ Apache Maven]. On command line test your 
 installation with "mvn -v".</p>
 <p>If Maven is correctly installed, change into the project directory and build 
 with command "mvn".</p>
-<h2 id="communications">Communications</h2>
+<h2 id="communications">Communications<a class="headerlink" href="#communications" title="Permanent link">&para;</a></h2>
 <p>You can subscribe to the project's mailing lists from [http://odftoolkit.org/projects/simple/lists this page].  The "users" list is for discussions about using the toolkit, and the "dev" list is for discussing the development of the toolkit.  Active developers should also subscribe to the "issues" and "commit" mailing lists so they will receive those automatic notifications.</p>
-<h2 id="easy-entry-level-tasks">Easy entry level tasks</h2>
+<h2 id="easy-entry-level-tasks">Easy entry level tasks<a class="headerlink" href="#easy-entry-level-tasks" title="Permanent link">&para;</a></h2>
 <p>TBD</p>
-<h2 id="design-of-the-api">Design of the API</h2>
+<h2 id="design-of-the-api">Design of the API<a class="headerlink" href="#design-of-the-api" title="Permanent link">&para;</a></h2>
 <p>The design principle is "make it easy for users to locate the functions they 
 want".</p>
 <p>org.odftoolkit.simple.Document is the abstract base class which the specific document classes are derived from:  TextDocument, SpreadsheetDocument, PresentationDocument, GraphicsDocument and ChartDocument.</p>
 <p>For each document type  we have a subpackage that contain additional classes related to that kind of documents.  So org.odftoolkit.simple.chart has classes related to chart, org.odftoolkit.simple.text has classes related to text content,  and org.odftoolkit.simple.presentation has classes related to presentation documents.</p>
 <p>Besides the packages for different document types, there are additional packages defined for important common ODF features which are available across all kinds of documents, such as table, meta and style. </p>
 <p>There is another package named org.odftoolkit.simple.common, which contains functions that are not related with a specific document type nor a specific feature. For example, the text extractor functions are put in this package.</p>
-<h2 id="how-to-contribute-patches">How to contribute patches</h2>
+<h2 id="how-to-contribute-patches">How to contribute patches<a class="headerlink" href="#how-to-contribute-patches" title="Permanent link">&para;</a></h2>
 <p>If you want to contribute a patch to this project, following below steps:</p>
 <ul>
 <li>Step 1. Create an issue in [http://odftoolkit.org/bugzilla/buglist.cgi?product=simple&amp;order=bugs.bug_id
@@ -237,7 +258,7 @@ want".</p>
 <li>Step 6. Upload your patch to bugzilla.</li>
 <li>Step 7. Refactor your patch if you get comments from reviewers.</li>
 </ul>
-<h2 id="how-to-review-patches">How to review patches</h2>
+<h2 id="how-to-review-patches">How to review patches<a class="headerlink" href="#how-to-review-patches" title="Permanent link">&para;</a></h2>
 <p>As a reviewer, you need to carefully read the source code, run the unit tests, to make sure the new contributed code won't hurt the quality of this project.</p>
 <ul>
 <li>Step 1. Write a comment to [http://odftoolkit.org/bugzilla/buglist.cgi?product=simple&amp;order=bugs.bug_id
@@ -255,10 +276,10 @@ want".</p>
     https://<your user id>:<your
     password>@odftoolkit.org/hg/simple~code-base</li>
 </ul>
-<h2 id="reference-material">Reference material</h2>
-<h3 id="odf">ODF</h3>
+<h2 id="reference-material">Reference material<a class="headerlink" href="#reference-material" title="Permanent link">&para;</a></h2>
+<h3 id="odf">ODF<a class="headerlink" href="#odf" title="Permanent link">&para;</a></h3>
 <p>The current draft of the OASIS ODF 1.2 standard can be downloaded [http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office#odf12 here].</p>
-<h3 id="commands-line-tools">Commands line tools</h3>
+<h3 id="commands-line-tools">Commands line tools<a class="headerlink" href="#commands-line-tools" title="Permanent link">&para;</a></h3>
 <p><em>[http://odftoolkit.org/projects/odfdom/pages/Development#Mercurial Here] is a list of the most frequently used commands for Mercurial.
 </em>[http://odftoolkit.org/projects/odfdom/pages/Development#Maven Here] is a list of the most frequently used commands for Maven.</p>
   </div>

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html Tue Apr 11 23:13:30 2017
@@ -50,7 +50,18 @@
   <div id="clear"></div>
   
   <div id="sidenav">
-    <h1 id="general">General</h1>
+    <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<h1 id="general">General<a class="headerlink" href="#general" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/index.html">About</a></li>
 <li><a href="/odftoolkit/downloads.html">Downloads</a></li>
@@ -58,21 +69,21 @@
 <li><a href="/odftoolkit/license.html">License</a></li>
 <li><a href="/odftoolkit/privacy.html">Privacy Policy</a></li>
 </ul>
-<h1 id="components">Components</h1>
+<h1 id="components">Components<a class="headerlink" href="#components" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/odfdom/index.html">ODFDOM</a></li>
 <li><a href="/odftoolkit/simple/index.html">Simple API</a></li>
 <li><a href="/odftoolkit/conformance/ODFValidator.html">ODF Validator</a></li>
 <li><a href="/odftoolkit/xsltrunner/ODFXSLTRunner.html">XSLT Runner</a></li>
 </ul>
-<h1 id="community">Community</h1>
+<h1 id="community">Community<a class="headerlink" href="#community" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/get-involved.html">Get Involved</a></li>
 <li><a href="/odftoolkit/mailing-lists.html">Mailing Lists</a></li>
 <li><a href="/odftoolkit/people.html">People</a></li>
 <li><a href="/odftoolkit/community-faqs.html">Community FAQs</a></li>
 </ul>
-<h1 id="development">Development</h1>
+<h1 id="development">Development<a class="headerlink" href="#development" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/source.html">Source Code</a></li>
 <li><a href="https://issues.apache.org/jira/browse/ODFTOOLKIT">Bug Tracker</a></li>
@@ -80,13 +91,12 @@
 <li><a href="/odftoolkit/website-local.html">Website</a></li>
 <li><a href="/odftoolkit/developer-faqs.html">Developer FAQs</a></li>
 </ul>
-<h1 id="ppmc">PPMC</h1>
+<h1 id="ppmc">PPMC<a class="headerlink" href="#ppmc" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="/odftoolkit/ppmc-faqs.html">PPMC FAQs</a></li>
-<li><a href="/odftoolkit/odftoolkit-release-guide.html">Release Guide</a> <br />
-</li>
+<li><a href="/odftoolkit/odftoolkit-release-guide.html">Release Guide</a>   </li>
 </ul>
-<h1 id="asf">ASF</h1>
+<h1 id="asf">ASF<a class="headerlink" href="#asf" title="Permanent link">&para;</a></h1>
 <ul>
 <li><a href="http://www.apache.org">Apache Software Foundation</a></li>
 <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
@@ -96,80 +106,86 @@
   <div id="contenta">
   
     
-    <p><strong><a href="index.html">Demos</a> &gt; Automatically Formatting a Document</strong><br />
-</p>
-<p><strong>Overview</strong><br />
-</p>
-<p>Simple API enhanced features to support document formatting in version 0.6.5. It supplies methods for manipulating headings, page breaks, hyperlinks, comments, font and alignment. This demo shows how to use these features to help document formatting.<br />
-</p>
-<p>It's a common scenario that we need apply some  styles to plain text to improve its appearance. In this demo, a text document is created using plain text from a text file. While reading content, paragraphs whose  length  is less than 20 characters are changed to headings with a new font style. "Version" and "date" information is  set as right alignment and gray text. Each line which matches an URL  will be applied as a hyperlink. Each heading and its following paragraphs are considered as a chapter. There will be a page break after page line count larger than a predefined value. Then verify word spelling and add comments as tip to those which may have a spelling mistake. The last one is a security check. After these processes, the plain text has been changed into a formatted document.<br />
-</p>
+    <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<p><strong><a href="index.html">Demos</a> &gt; Automatically Formatting a Document</strong>  </p>
+<p><strong>Overview</strong>  </p>
+<p>Simple API enhanced features to support document formatting in version 0.6.5. It supplies methods for manipulating headings, page breaks, hyperlinks, comments, font and alignment. This demo shows how to use these features to help document formatting.  </p>
+<p>It's a common scenario that we need apply some  styles to plain text to improve its appearance. In this demo, a text document is created using plain text from a text file. While reading content, paragraphs whose  length  is less than 20 characters are changed to headings with a new font style. "Version" and "date" information is  set as right alignment and gray text. Each line which matches an URL  will be applied as a hyperlink. Each heading and its following paragraphs are considered as a chapter. There will be a page break after page line count larger than a predefined value. Then verify word spelling and add comments as tip to those which may have a spelling mistake. The last one is a security check. After these processes, the plain text has been changed into a formatted document.  </p>
 <p>This picture shows part of the generated document. The new document looks orderly and beautiful than before.</p>
 <p><img alt="alt text" src="image/demo10.png" /></p>
 <p><strong>Code Introduction</strong></p>
-<p>There code of this demo is very clear. Firstly, we open the data source and create a text document. Secondly, we create paragraph for each line. Thirdly, we set different style for different content. Then we do spell and security check with the help of Navigation API. Comments are given if suspicious words are found.  Finally, the new created document is saved.<br />
-</p>
-<div class="codehilite"><pre>        <span class="n">BufferedReader</span> <span class="n">reader</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BufferedReader</span><span class="p">(</span><span class="k">new</span> <span class="n">InputStreamReader</span><span class="p">(</span><span class="n">this</span><span class="o">.</span><span class="n">class</span><span class="o">.</span><span class="n">getResourceAsStream</span><span class="p">(</span><span class="s">&quot;text.txt&quot;</span><span class="p">)));</span>
-        <span class="n">String</span> <span class="n">in</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="n">readLine</span><span class="p">();</span>
-        <span class="n">TextDocument</span> <span class="n">doc</span> <span class="o">=</span> <span class="n">TextDocument</span><span class="o">.</span><span class="n">newTextDocument</span><span class="p">();</span>
-        <span class="nb">int</span> <span class="n">lineCount</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
-        <span class="nb">int</span> <span class="n">pageLineCount</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
-        <span class="n">Paragraph</span> <span class="n">refParagraph</span> <span class="o">=</span> <span class="n">null</span><span class="p">;</span>
-        <span class="k">while</span> <span class="p">(</span><span class="n">in</span> <span class="o">!=</span> <span class="n">null</span><span class="p">)</span> <span class="p">{</span>
-            <span class="n">in</span> <span class="o">=</span> <span class="n">in</span><span class="o">.</span><span class="n">trim</span><span class="p">();</span>
-            <span class="n">Paragraph</span> <span class="n">paragraph</span> <span class="o">=</span> <span class="n">doc</span><span class="o">.</span><span class="n">addParagraph</span><span class="p">(</span><span class="n">in</span><span class="p">);</span>
+<p>There code of this demo is very clear. Firstly, we open the data source and create a text document. Secondly, we create paragraph for each line. Thirdly, we set different style for different content. Then we do spell and security check with the help of Navigation API. Comments are given if suspicious words are found.  Finally, the new created document is saved.  </p>
+<div class="codehilite"><pre>        <span class="n">BufferedReader</span> <span class="n">reader</span> <span class="p">=</span> <span class="n">new</span> <span class="n">BufferedReader</span><span class="p">(</span><span class="n">new</span> <span class="n">InputStreamReader</span><span class="p">(</span><span class="n">this</span><span class="p">.</span><span class="n">class</span><span class="p">.</span><span class="n">getResourceAsStream</span><span class="p">(</span>&quot;<span class="n">text</span><span class="p">.</span><span class="n">txt</span>&quot;<span class="p">)));</span>
+        <span class="n">String</span> <span class="n">in</span> <span class="p">=</span> <span class="n">reader</span><span class="p">.</span><span class="n">readLine</span><span class="p">();</span>
+        <span class="n">TextDocument</span> <span class="n">doc</span> <span class="p">=</span> <span class="n">TextDocument</span><span class="p">.</span><span class="n">newTextDocument</span><span class="p">();</span>
+        <span class="n">int</span> <span class="n">lineCount</span> <span class="p">=</span> 0<span class="p">;</span>
+        <span class="n">int</span> <span class="n">pageLineCount</span> <span class="p">=</span> 0<span class="p">;</span>
+        <span class="n">Paragraph</span> <span class="n">refParagraph</span> <span class="p">=</span> <span class="n">null</span><span class="p">;</span>
+        <span class="k">while</span> <span class="p">(</span><span class="n">in</span> !<span class="p">=</span> <span class="n">null</span><span class="p">)</span> <span class="p">{</span>
+            <span class="n">in</span> <span class="p">=</span> <span class="n">in</span><span class="p">.</span><span class="n">trim</span><span class="p">();</span>
+            <span class="n">Paragraph</span> <span class="n">paragraph</span> <span class="p">=</span> <span class="n">doc</span><span class="p">.</span><span class="n">addParagraph</span><span class="p">(</span><span class="n">in</span><span class="p">);</span>
             <span class="n">lineCount</span><span class="o">++</span><span class="p">;</span>
             <span class="n">pageLineCount</span><span class="o">++</span><span class="p">;</span>
-            <span class="n">switch</span> <span class="p">(</span><span class="n">lineCount</span><span class="p">)</span> <span class="p">{</span>
-            <span class="k">case</span> <span class="mi">1</span><span class="p">:</span>
+            <span class="k">switch</span> <span class="p">(</span><span class="n">lineCount</span><span class="p">)</span> <span class="p">{</span>
+            <span class="k">case</span> 1<span class="p">:</span>
                 <span class="n">paragraph</span>
-                        <span class="o">.</span><span class="n">setHorizontalAlignment</span><span class="p">(</span><span class="n">HorizontalAlignmentType</span><span class="o">.</span><span class="n">CENTER</span><span class="p">);</span>
-                <span class="n">paragraph</span><span class="o">.</span><span class="n">setFont</span><span class="p">(</span><span class="k">new</span> <span class="n">Font</span><span class="p">(</span><span class="s">&quot;Arial&quot;</span><span class="p">,</span> <span class="n">FontStyle</span><span class="o">.</span><span class="n">BOLD</span><span class="p">,</span> <span class="mi">16</span><span class="p">));</span>
-                <span class="n">paragraph</span><span class="o">.</span><span class="n">applyHeading</span><span class="p">();</span>
-                <span class="n">break</span><span class="p">;</span>
-            <span class="k">case</span> <span class="mi">2</span><span class="p">:</span>
-            <span class="k">case</span> <span class="mi">3</span><span class="p">:</span>
-                <span class="n">paragraph</span><span class="o">.</span><span class="n">setHorizontalAlignment</span><span class="p">(</span><span class="n">HorizontalAlignmentType</span><span class="o">.</span><span class="n">RIGHT</span><span class="p">);</span>
-                <span class="n">paragraph</span><span class="o">.</span><span class="n">setFont</span><span class="p">(</span><span class="k">new</span> <span class="n">Font</span><span class="p">(</span><span class="s">&quot;Tahoma&quot;</span><span class="p">,</span> <span class="n">FontStyle</span><span class="o">.</span><span class="n">ITALIC</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span>
-                        <span class="n">Color</span><span class="o">.</span><span class="n">GRAY</span><span class="p">));</span>
-                <span class="n">break</span><span class="p">;</span>
-            <span class="n">default:</span>
-                <span class="k">if</span> <span class="p">(</span><span class="n">in</span><span class="o">.</span><span class="n">startsWith</span><span class="p">(</span><span class="s">&quot;http://&quot;</span><span class="p">))</span> <span class="p">{</span>
-                    <span class="n">paragraph</span><span class="o">.</span><span class="n">applyHyperlink</span><span class="p">(</span><span class="k">new</span> <span class="n">URI</span><span class="p">(</span><span class="n">in</span><span class="p">));</span>
+                        <span class="p">.</span><span class="n">setHorizontalAlignment</span><span class="p">(</span><span class="n">HorizontalAlignmentType</span><span class="p">.</span><span class="n">CENTER</span><span class="p">);</span>
+                <span class="n">paragraph</span><span class="p">.</span><span class="n">setFont</span><span class="p">(</span><span class="n">new</span> <span class="n">Font</span><span class="p">(</span>&quot;<span class="n">Arial</span>&quot;<span class="p">,</span> <span class="n">FontStyle</span><span class="p">.</span><span class="n">BOLD</span><span class="p">,</span> 16<span class="p">));</span>
+                <span class="n">paragraph</span><span class="p">.</span><span class="n">applyHeading</span><span class="p">();</span>
+                <span class="k">break</span><span class="p">;</span>
+            <span class="k">case</span> 2<span class="p">:</span>
+            <span class="k">case</span> 3<span class="p">:</span>
+                <span class="n">paragraph</span><span class="p">.</span><span class="n">setHorizontalAlignment</span><span class="p">(</span><span class="n">HorizontalAlignmentType</span><span class="p">.</span><span class="n">RIGHT</span><span class="p">);</span>
+                <span class="n">paragraph</span><span class="p">.</span><span class="n">setFont</span><span class="p">(</span><span class="n">new</span> <span class="n">Font</span><span class="p">(</span>&quot;<span class="n">Tahoma</span>&quot;<span class="p">,</span> <span class="n">FontStyle</span><span class="p">.</span><span class="n">ITALIC</span><span class="p">,</span> 10<span class="p">,</span>
+                        <span class="n">Color</span><span class="p">.</span><span class="n">GRAY</span><span class="p">));</span>
+                <span class="k">break</span><span class="p">;</span>
+            <span class="n">default</span><span class="p">:</span>
+                <span class="k">if</span> <span class="p">(</span><span class="n">in</span><span class="p">.</span><span class="n">startsWith</span><span class="p">(</span>&quot;<span class="n">http</span><span class="p">:</span><span class="o">//</span>&quot;<span class="p">))</span> <span class="p">{</span>
+                    <span class="n">paragraph</span><span class="p">.</span><span class="n">applyHyperlink</span><span class="p">(</span><span class="n">new</span> <span class="n">URI</span><span class="p">(</span><span class="n">in</span><span class="p">));</span>
                 <span class="p">}</span>
-                <span class="k">if</span> <span class="p">(</span><span class="n">in</span><span class="o">.</span><span class="nb">length</span><span class="p">()</span> <span class="o">&lt;</span> <span class="mi">20</span><span class="p">)</span> <span class="p">{</span>
-                    <span class="n">paragraph</span><span class="o">.</span><span class="n">applyHeading</span><span class="p">();</span>
-                    <span class="n">paragraph</span><span class="o">.</span><span class="n">setFont</span><span class="p">(</span><span class="k">new</span> <span class="n">Font</span><span class="p">(</span><span class="s">&quot;Arial&quot;</span><span class="p">,</span> <span class="n">FontStyle</span><span class="o">.</span><span class="n">BOLD</span><span class="p">,</span> <span class="mi">12</span><span class="p">));</span>
-                    <span class="k">if</span> <span class="p">(</span><span class="n">pageLineCount</span> <span class="o">&gt;</span> <span class="mi">16</span><span class="p">)</span> <span class="p">{</span>
-                        <span class="n">doc</span><span class="o">.</span><span class="n">addPageBreak</span><span class="p">(</span><span class="n">refParagraph</span><span class="p">);</span>
-                        <span class="n">pageLineCount</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
+                <span class="k">if</span> <span class="p">(</span><span class="n">in</span><span class="p">.</span><span class="nb">length</span><span class="p">()</span> <span class="o">&lt;</span> 20<span class="p">)</span> <span class="p">{</span>
+                    <span class="n">paragraph</span><span class="p">.</span><span class="n">applyHeading</span><span class="p">();</span>
+                    <span class="n">paragraph</span><span class="p">.</span><span class="n">setFont</span><span class="p">(</span><span class="n">new</span> <span class="n">Font</span><span class="p">(</span>&quot;<span class="n">Arial</span>&quot;<span class="p">,</span> <span class="n">FontStyle</span><span class="p">.</span><span class="n">BOLD</span><span class="p">,</span> 12<span class="p">));</span>
+                    <span class="k">if</span> <span class="p">(</span><span class="n">pageLineCount</span> <span class="o">&gt;</span> 16<span class="p">)</span> <span class="p">{</span>
+                        <span class="n">doc</span><span class="p">.</span><span class="n">addPageBreak</span><span class="p">(</span><span class="n">refParagraph</span><span class="p">);</span>
+                        <span class="n">pageLineCount</span> <span class="p">=</span> 0<span class="p">;</span>
                     <span class="p">}</span>
                 <span class="p">}</span>
             <span class="p">}</span>
-            <span class="n">refParagraph</span> <span class="o">=</span> <span class="n">paragraph</span><span class="p">;</span>
-            <span class="n">in</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="n">readLine</span><span class="p">();</span>
+            <span class="n">refParagraph</span> <span class="p">=</span> <span class="n">paragraph</span><span class="p">;</span>
+            <span class="n">in</span> <span class="p">=</span> <span class="n">reader</span><span class="p">.</span><span class="n">readLine</span><span class="p">();</span>
 
         <span class="p">}</span>
-        <span class="sr">//</span> <span class="n">spell</span> <span class="n">check</span>
-        <span class="n">TextNavigation</span> <span class="n">navigation1</span> <span class="o">=</span> <span class="k">new</span> <span class="n">TextNavigation</span><span class="p">(</span><span class="s">&quot;lower-level&quot;</span><span class="p">,</span> <span class="n">doc</span><span class="p">);</span>
-        <span class="k">while</span> <span class="p">(</span><span class="n">navigation1</span><span class="o">.</span><span class="n">hasNext</span><span class="p">())</span> <span class="p">{</span>
-            <span class="n">TextSelection</span> <span class="n">selection</span> <span class="o">=</span> <span class="p">(</span><span class="n">TextSelection</span><span class="p">)</span> <span class="n">navigation1</span>
-                    <span class="o">.</span><span class="n">nextSelection</span><span class="p">();</span>
-            <span class="n">selection</span><span class="o">.</span><span class="n">addComment</span><span class="p">(</span>
-                    <span class="s">&quot;Please change &#39;lower-level&#39; with &#39;lower level&#39;.&quot;</span><span class="p">,</span>
-                    <span class="s">&quot;SpellChecker&quot;</span><span class="p">);</span>
+        <span class="o">//</span> <span class="n">spell</span> <span class="n">check</span>
+        <span class="n">TextNavigation</span> <span class="n">navigation1</span> <span class="p">=</span> <span class="n">new</span> <span class="n">TextNavigation</span><span class="p">(</span>&quot;<span class="n">lower</span><span class="o">-</span><span class="n">level</span>&quot;<span class="p">,</span> <span class="n">doc</span><span class="p">);</span>
+        <span class="k">while</span> <span class="p">(</span><span class="n">navigation1</span><span class="p">.</span><span class="n">hasNext</span><span class="p">())</span> <span class="p">{</span>
+            <span class="n">TextSelection</span> <span class="n">selection</span> <span class="p">=</span> <span class="p">(</span><span class="n">TextSelection</span><span class="p">)</span> <span class="n">navigation1</span>
+                    <span class="p">.</span><span class="n">nextSelection</span><span class="p">();</span>
+            <span class="n">selection</span><span class="p">.</span><span class="n">addComment</span><span class="p">(</span>
+                    &quot;<span class="n">Please</span> <span class="n">change</span> <span class="s">&#39;lower-level&#39;</span> <span class="n">with</span> <span class="s">&#39;lower level&#39;</span><span class="p">.</span>&quot;<span class="p">,</span>
+                    &quot;<span class="n">SpellChecker</span>&quot;<span class="p">);</span>
         <span class="p">}</span>
-        <span class="sr">//</span> <span class="n">security</span> <span class="n">check</span>
-        <span class="n">TextNavigation</span> <span class="n">navigation2</span> <span class="o">=</span> <span class="k">new</span> <span class="n">TextNavigation</span><span class="p">(</span><span class="s">&quot;confidential&quot;</span><span class="p">,</span> <span class="n">doc</span><span class="p">);</span>
-        <span class="k">if</span> <span class="p">(</span><span class="n">navigation2</span><span class="o">.</span><span class="n">hasNext</span><span class="p">())</span> <span class="p">{</span>
-            <span class="n">TextSelection</span> <span class="n">selection</span> <span class="o">=</span> <span class="p">(</span><span class="n">TextSelection</span><span class="p">)</span> <span class="n">navigation2</span>
-                    <span class="o">.</span><span class="n">nextSelection</span><span class="p">();</span>
+        <span class="o">//</span> <span class="n">security</span> <span class="n">check</span>
+        <span class="n">TextNavigation</span> <span class="n">navigation2</span> <span class="p">=</span> <span class="n">new</span> <span class="n">TextNavigation</span><span class="p">(</span>&quot;<span class="n">confidential</span>&quot;<span class="p">,</span> <span class="n">doc</span><span class="p">);</span>
+        <span class="k">if</span> <span class="p">(</span><span class="n">navigation2</span><span class="p">.</span><span class="n">hasNext</span><span class="p">())</span> <span class="p">{</span>
+            <span class="n">TextSelection</span> <span class="n">selection</span> <span class="p">=</span> <span class="p">(</span><span class="n">TextSelection</span><span class="p">)</span> <span class="n">navigation2</span>
+                    <span class="p">.</span><span class="n">nextSelection</span><span class="p">();</span>
             <span class="n">selection</span>
-                    <span class="o">.</span><span class="n">addComment</span><span class="p">(</span>
-                            <span class="s">&quot;This is a confidential document, please don&#39;t redistribute.&quot;</span><span class="p">,</span>
-                            <span class="s">&quot;SecurityChecker&quot;</span><span class="p">);</span>
+                    <span class="p">.</span><span class="n">addComment</span><span class="p">(</span>
+                            &quot;<span class="n">This</span> <span class="n">is</span> <span class="n">a</span> <span class="n">confidential</span> <span class="n">document</span><span class="p">,</span> <span class="n">please</span> <span class="n">don</span><span class="o">&#39;</span><span class="n">t</span> <span class="n">redistribute</span><span class="p">.</span>&quot;<span class="p">,</span>
+                            &quot;<span class="n">SecurityChecker</span>&quot;<span class="p">);</span>
         <span class="p">}</span>
-        <span class="n">doc</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="s">&quot;format_text.odt&quot;</span><span class="p">);</span>
+        <span class="n">doc</span><span class="p">.</span><span class="n">save</span><span class="p">(</span>&quot;<span class="n">format_text</span><span class="p">.</span><span class="n">odt</span>&quot;<span class="p">);</span>
 </pre></div>
 
 



Mime
View raw message