<?xml version="1.0" encoding="ISO-8859-1"?><!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--><!-- $Id$ --><!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "document-v13.dtd">
<document xmlns:xi="http://www.w3.org/2001/XInclude">
  <header>
    <title>Apache&#8482; FOP: Complex Scripts</title>
  </header>
  <body>
    <section id="overview">
      <title>Overview</title>
      <p>
        This page describes the
        <link href="http://en.wikipedia.org/wiki/Complex_scripts">complex scripts</link>
        features of Apache&#8482; FOP, which include:
      </p>
      <ul>
        <li>Support for languages written with right-to-left scripts, such as Arabic and Hebrew scripts.</li>
        <li>Support for languages written with South Asian and Southeast Asian scripts, such as Devanagari,
          Khmer, Tamil, Thai, and others.</li>
        <li>Support for advanced substitution, reordering, and positioning of glyphs according to language
          and script sensitive rules.</li>
        <li>Support for advanced number to string formatting.</li>
      </ul>
    </section>
    <section>
      <title>Disabling complex scripts</title>
      <p>Complex script features are enabled by default. If some application of FOP does not
         require this support, then it can be disabled in three ways:</p>
      <ol>
        <li>
          <strong>Command line:</strong> The command line option <code>-nocs</code> turns off complex script
          features: <code>fop -nocs -fo mydocument.fo -pdf mydocument.pdf</code>            
        </li>
        <li>
          <strong>Embedding:</strong> <code>userAgent.setComplexScriptFeaturesEnabled(false);</code>
        </li>
        <li>
          <strong>Optional setting in fop.xconf file:</strong>
          <pre>
&lt;fop version="1.0"&gt;
  &lt;complex-scripts disabled="true"/&gt;
  ...
&lt;/fop&gt;
          </pre>
        </li>
      </ol>
      <p>
        When complex scripts features are enabled, additional information related to bidirectional
        level resolution, the association between characters and glyphs, and glyph position adjustments
        are added to the internal, parsed representation of the XSL-FO tree and its corresponding
        formatted area tree. This additional information will somewhat increase the memory requirements for
        processing documents that use these features.
      </p>
      <note>A document author need not make explicit use of any complex scripts feature in order
        for this additional information to be created. For example, if the author makes use of a font
        that contains OpenType GSUB and/or GPOS tables, then those tables will be automatically used
        unless complex scripts features are disabled.</note>
    </section>
    <section id="source">
      <title>Changes to your XSL-FO input files</title>
      <p>
        In most circumstances, XSL-FO content does not need to change in order to make use of
        complex scripts features; however, in certain contexts, fully automatic processing is not
        sufficient. In these cases, an author may make use of the following XSL-FO constructs:
      </p>
      <ul>
        <li>The <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#script"><code>script</code></link> property.</li>
        <li>The <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#language"><code>language</code></link> property.</li>
        <li>The <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#writing-mode"><code>writing-mode</code></link> property.</li>
        <li>The number to string conversion properties:
          <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#format"><code>format</code></link>,
          <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#grouping-separator"><code>grouping-separator</code></link>,
          <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#grouping-size"><code>grouping-size</code></link>,
          <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#letter-value"><code>letter-value</code></link>,
          and <code>fox:number-conversion-features</code>.</li>
        <li>The <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_bidi-override"><code>fo:bidi-override</code></link> element.</li>
        <li>Explicit bidirectional control characters: U+200E LRM, U+200F RLM, U+202A LRE,
          U+202B RLE, U+202C PDF, U+202D LRO, U+202E RLO.</li>
        <li>Explicit join control characters: U+200C ZWNJ and U+200D ZWJ.</li>
      </ul>
    </section>
    <section id="details">
      <title>Authoring Details</title>
      <p>The complex scripts related effects of the above enumerated XSL-FO constructs are more
        fully described in the following sub-sections.</p>
      <section id="script_property">
        <title>Script Property</title>
        <p>In order to apply font specific complex script features, it is necessary to know
          the script that applies to the text undergoing layout processing. This script is determined
          using the following algorithm:
        </p>
        <ol>
          <li>If the FO element that governs the text specifies a
            <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#script"><code>script</code></link>
            property and its value is not the empty string or <code>"auto"</code>, then that script is used.</li>
          <li>Otherwise, the dominant script of the text is determined automatically by finding the
            script whose constituent characters appear most frequently in the text.</li>
        </ol>
        <p>In case the automatic algorithm does not produce the desired results, an author may
          explicitly specify a <code>script</code> property with the desired script. If specified,
          it must be one of the four-letter script code specified in
          <link href="http://unicode.org/iso15924/iso15924-codes.html">ISO 15924 Code List</link> or
          in the <link href="#extended_script_codes">Extended Script Codes</link> table.  Comparison
          of script codes is performed in a case-insensitive manner, so it does not matter what case
          is used when specifying these codes in an XSL-FO document.</p>
        <section id="standard_script_codes">
          <title>Standard Script Codes</title>
          <p>The following table enumerates the standard ISO 15924 4-letter codes recognized by FOP.</p>
          <table class="ForrestTable tw30">
            <tr>
              <th style="text-align:center" colspan="1" rowspan="1">Code</th>
              <th style="text-align:left" colspan="1" rowspan="1">Script</th>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>arab</code></td>
              <td colspan="1" rowspan="1">Arabic</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>beng</code></td>
              <td colspan="1" rowspan="1">Bengali</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>bopo</code></td>
              <td colspan="1" rowspan="1">Bopomofo</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>cyrl</code></td>
              <td colspan="1" rowspan="1">Cyrillic</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>deva</code></td>
              <td colspan="1" rowspan="1">Devanagari</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>ethi</code></td>
              <td colspan="1" rowspan="1">Ethiopic</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>geor</code></td>
              <td colspan="1" rowspan="1">Georgian</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>grek</code></td>
              <td colspan="1" rowspan="1">Greek</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>gujr</code></td>
              <td colspan="1" rowspan="1">Gujarati</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>guru</code></td>
              <td colspan="1" rowspan="1">Gurmukhi</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>hang</code></td>
              <td colspan="1" rowspan="1">Hangul</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>hani</code></td>
              <td colspan="1" rowspan="1">Han</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>hebr</code></td>
              <td colspan="1" rowspan="1">Hebrew</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>hira</code></td>
              <td colspan="1" rowspan="1">Hiragana</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>kana</code></td>
              <td colspan="1" rowspan="1">Katakana</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>knda</code></td>
              <td colspan="1" rowspan="1">Kannada</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>khmr</code></td>
              <td colspan="1" rowspan="1">Khmer</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>laoo</code></td>
              <td colspan="1" rowspan="1">Lao</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>latn</code></td>
              <td colspan="1" rowspan="1">Latin</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>mlym</code></td>
              <td colspan="1" rowspan="1">Malayalam</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>mymr</code></td>
              <td colspan="1" rowspan="1">Burmese</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>mong</code></td>
              <td colspan="1" rowspan="1">Mongolian</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>orya</code></td>
              <td colspan="1" rowspan="1">Oriya</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>sinh</code></td>
              <td colspan="1" rowspan="1">Sinhalese</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>taml</code></td>
              <td colspan="1" rowspan="1">Tamil</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>telu</code></td>
              <td colspan="1" rowspan="1">Telugu</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>thai</code></td>
              <td colspan="1" rowspan="1">Thai</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>tibt</code></td>
              <td colspan="1" rowspan="1">Tibetan</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>zmth</code></td>
              <td colspan="1" rowspan="1">Math</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>zsym</code></td>
              <td colspan="1" rowspan="1">Symbol</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>zyyy</code></td>
              <td colspan="1" rowspan="1">Undetermined</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>zzzz</code></td>
              <td colspan="1" rowspan="1">Uncoded</td>
            </tr>
          </table>
        </section>
        <section id="extended_script_codes">
          <title>Extended Script Codes</title>
          <p>The following table enumerates a number of non-standard extended script codes recognized by FOP.</p>
          <table class="ForrestTable tw70">
            <colgrp>
              <col style="width:10%"/>
              <col style="width:20%"/>
              <col style="width:80%"/>
            </colgrp>
            <tr>
              <th colspan="1" rowspan="1">Code</th>
              <th colspan="1" rowspan="1">Script</th>
              <th colspan="1" rowspan="1">Comments</th>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>bng2</code></td>
              <td colspan="1" rowspan="1">Bengali</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>dev2</code></td>
              <td colspan="1" rowspan="1">Devanagari</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>gur2</code></td>
              <td colspan="1" rowspan="1">Gurmukhi</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>gjr2</code></td>
              <td colspan="1" rowspan="1">Gujarati</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>knd2</code></td>
              <td colspan="1" rowspan="1">Kannada</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>mlm2</code></td>
              <td colspan="1" rowspan="1">Malayalam</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>ory2</code></td>
              <td colspan="1" rowspan="1">Oriya</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>tml2</code></td>
              <td colspan="1" rowspan="1">Tamil</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
            <tr>
              <td style="text-align:center" colspan="1" rowspan="1"><code>tel2</code></td>
              <td colspan="1" rowspan="1">Telugu</td>
              <td colspan="1" rowspan="1">OpenType Indic Version 2 (May 2008 and following) behavior.</td>
            </tr>
          </table>
          <warning>
            Explicit use of one of the above extended script codes is not portable,
            and should be limited to use with FOP only.
          </warning>
          <note>
            When performing automatic script determination, FOP selects the OpenType Indic
            Version 2 script codes by default. If the author requires Version 1 behavior, then
            an explicit, non-extension script code should be specified in a governing <code>script</code>
            property.
          </note>
        </section>
      </section>
      <section id="language_property">
        <title>Language Property</title>
        <p>Certain fonts that support complex script features can make use of language information in order for
          language specific processing rules to be applied. For example, a font designed for the Arabic script may support
          typographic variations according to whether the written language is Arabic, Farsi (Persian), Sindhi, Urdu, or
          another language written with the Arabic script. In order to apply these language specific features, the author
          may explicitly mark the text with a <link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#language"><code>language</code></link>
          property.</p>
        <p>When specifying the <code>language</code> property, the value of the property must be either an
          <link href="http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes">ISO639-2 3-letter code</link> or an
          <link href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">ISO639-1 2-letter code</link>.  Comparison of language
          codes is performed in a case-insensitive manner, so it does not matter what case is used when specifying these
          codes in an XSL-FO document.</p>
      </section>
      <section id="writing_mode_property">
        <title>Writing Mode Property</title>
      </section>
      <section id="number_conversion_properties">
        <title>Number Conversion Properties</title>
      </section>
      <section id="bidi_override_element">
        <title>Bidi Override Element</title>
      </section>
      <section id="bidi_controls">
        <title>Bidi Control Characters</title>
      </section>
      <section id="join_controls">
        <title>Join Control Characters</title>
      </section>
    </section>
    <section id="supported_scripts">
      <title>Supported Scripts</title>
      <p>Support for specific complex scripts is enumerated in the following table. Support
        for those marked as not being supported is expected to be added in future revisions.</p>
      <table>
        <colgrp>
          <col style="width: 15%"/>
          <col style="width: 10%"/>
          <col style="width: 10%"/>
          <col style="width: 65%"/>
        </colgrp>
        <tr>
          <th style="text-align:left" colspan="1" rowspan="1">Script</th>
          <th colspan="1" rowspan="1">Support</th>
          <th colspan="1" rowspan="1">Tested</th>
          <th style="text-align:left" colspan="1" rowspan="1">Comments</th>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Arabic_alphabet">Arabic</link></td>
          <td class="yes" colspan="1" rowspan="1">full</td>
          <td class="yes" colspan="1" rowspan="1">full</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Bengali_alphabet">Bengali</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Burmese_alphabet">Burmese</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Devanagari_alphabet">Devanagari</link></td>
          <td class="partial" colspan="1" rowspan="1">partial</td>
          <td class="partial" colspan="1" rowspan="1">partial</td>
          <td style="text-align:left" colspan="1" rowspan="1">join controls (ZWJ, ZWNJ) not yet supported</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Khmer_alphabet">Khmer</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Gujarati_alphabet">Gujarati</link></td>
          <td class="partial" colspan="1" rowspan="1">partial</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td style="text-align:left" colspan="1" rowspan="1">pre-alpha</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Gurmukh&#299;_alphabet">Gurmukhi</link></td>
          <td class="partial" colspan="1" rowspan="1">partial</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td style="text-align:left" colspan="1" rowspan="1">pre-alpha</td>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Hebrew_alphabet">Hebrew</link></td>
          <td class="yes" colspan="1" rowspan="1">full</td>
          <td class="partial" colspan="1" rowspan="1">partial</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Kannada_alphabet">Kannada</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Lao_alphabet">Lao</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Malayalam_alphabet">Malayalam</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Mongolian_script">Mongolian</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Oriya_script">Oriya</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Tamil_alphabet">Tamil</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Telugu_alphabet">Telugu</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Tibetan_alphabet">Tibetan</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
        <tr>
          <td colspan="1" rowspan="1"><link href="http://en.wikipedia.org/wiki/Thai_alphabet">Thai</link></td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td class="no" colspan="1" rowspan="1">none</td>
          <td colspan="1" rowspan="1"/>
        </tr>
      </table>
    </section>
    <section id="supported_fonts">
      <title>Supported Fonts</title>
      <p>Support for specific fonts is enumerated in the following sub-sections. If a given
        font is not listed, then it has not been tested with these complex scripts features.</p>
      <section id="fonts_arabic">
        <title>Arabic Fonts</title>
        <table>
          <colgrp>
            <col style="width: 15%"/>
            <col style="width: 10%"/>
            <col style="width: 10%"/>
            <col style="width: 65%"/>
          </colgrp>
          <tr>
            <th style="text-align:left" colspan="1" rowspan="1">Font</th>
            <th style="text-align:left" colspan="1" rowspan="1">Version</th>
            <th style="text-align:center" colspan="1" rowspan="1">Glyphs</th>
            <th style="text-align:left" colspan="1" rowspan="1">Comments</th>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=24">Arial Unicode MS</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1081">1.01</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">50377</td>
            <td colspan="1" rowspan="1">limited GPOS support</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=ArabicFonts">Lateef</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1">1.0</td>
            <td style="text-align:center" colspan="1" rowspan="1">1147</td>
            <td colspan="1" rowspan="1">language features for Kurdish (KUR), Sindhi (SND), Urdu (URD)</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=ArabicFonts">Scheherazade</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1">1.0</td>
            <td style="text-align:center" colspan="1" rowspan="1">1197</td>
            <td colspan="1" rowspan="1">language features for Kurdish (KUR), Sindhi (SND), Urdu (URD)</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=261">Simplified Arabic</link></td>
            <td class="no" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=867">1.01</link></td>
            <td colspan="1" rowspan="1"/>
            <td colspan="1" rowspan="1">contains invalid, out of order coverage table entries</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FID=261">Simplified Arabic</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1645">5.00</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">414</td>
            <td colspan="1" rowspan="1">lacks GPOS support</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FID=261">Simplified Arabic</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1">5.92</td>
            <td style="text-align:center" colspan="1" rowspan="1">473</td>
            <td colspan="1" rowspan="1">includes GPOS for advanced position adjustment</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=264">Traditional Arabic</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FMID=877">1.01</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">530</td>
            <td colspan="1" rowspan="1">lacks GPOS support</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FID=264">Traditional Arabic</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1658">5.00</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">530</td>
            <td colspan="1" rowspan="1">lacks GPOS support</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FID=264">Traditional Arabic</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1">5.92</td>
            <td style="text-align:center" colspan="1" rowspan="1">589</td>
            <td colspan="1" rowspan="1">includes GPOS for advanced position adjustment</td>
          </tr>
        </table>
      </section>
      <section id="devanagari_fonts">
        <title>Devanagari Fonts</title>
        <table>
          <colgrp>
            <col style="width: 15%"/>
            <col style="width: 10%"/>
            <col style="width: 10%"/>
            <col style="width: 65%"/>
          </colgrp>
          <tr>
            <th style="text-align:left" colspan="1" rowspan="1">Font</th>
            <th style="text-align:left" colspan="1" rowspan="1">Version</th>
            <th style="text-align:center" colspan="1" rowspan="1">Glyphs</th>
            <th style="text-align:left" colspan="1" rowspan="1">Comments</th>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=370">Aparajita</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1700">1.00</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">706</td>
            <td colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=374">Kokila</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1749">1.00</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">706</td>
            <td colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=243">Mangal</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1759">5.01</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">885</td>
            <td colspan="1" rowspan="1">designed for use in user interfaces</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/family.aspx?FID=384">Utsaah</link></td>
            <td class="yes" style="text-align:left" colspan="1" rowspan="1"><link href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1811">1.00</link></td>
            <td style="text-align:center" colspan="1" rowspan="1">706</td>
            <td colspan="1" rowspan="1"/>
          </tr>
        </table>
      </section>
    </section>
    <section id="limitations">
      <title>Other Limitations</title>
      <p>
        Complex scripts support in Apache FOP is relatively new, so there are certain
        limitations. Please help us identify and close any gaps.
      </p>
      <ul>
        <li>Only the PDF output format fully supports complex scripts features at the present time.</li>
        <li>Shaping context does not extend across an element boundary. This limitation prevents the use of
        <code>fo:character</code>, <code>fo:inline</code> or <code>fo:wrapper</code> in order to colorize
        individual Arabic letters without affecting shaping behavior across the element boundary.</li>
      </ul>
    </section>
    <section id="links">
      <title>Related Links</title>
      <p>
        In addition to the XSL-FO specification, a number of external resources provide
        guidance about authoring documents that employ complex scripts and the features
        described above:
      </p>
      <ul>
        <li><link href="http://www.unicode.org/">The Unicode Standard</link></li>
        <li><link href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_bidi-override">Unicode Bidirectional Algorithm</link></li>
        <li><link href="http://www.microsoft.com/typography/otspec/ttochap1.htm">OpenType Advanced Typographic Extensions</link></li>
        <li><link href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;item_id=CmplxRndExamples">Examples of Complex Rendering</link></li>
      </ul>
    </section>
  </body>
</document>
