<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <dfn><abbr>HyOrd<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">HyTime Lexicographic Ordering Definition Notation</title></abbr></dfn>は、
<a0:anchor>ISO/IEC 10744</a0:anchor> が規定する<a0:anchor>辞書的順序付け</a0:anchor>のための<a0:anchor>記法</a0:anchor>です。</p><p>仕様書: ISO/IEC 10744:1997 A.2.4
<a0:anchor-external a0:resParameter="http://www.y12.doe.gov/sgml/wg8/docs/n1920/html/clause-A.2.4.html" a0:resScheme="URI">http://www.y12.doe.gov/sgml/wg8/docs/n1920/html/clause-A.2.4.html</a0:anchor-external></p><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end><dl><dt><a0:anchor>公開識別子</a0:anchor></dt><dd><code class="SGML">ISO/IEC 10744:1997//NOTATION HyTime Lexicographic Ordering Definition Notation (HyOrd)//EN</code></dd><dt><a0:anchor>属性</a0:anchor></dt><dd><table><tbody><tr><td><code class="SGMLa"><a0:anchor>altreps</a0:anchor></code></td></tr><tr><td><code class="SGMLa"><a0:anchor>included</a0:anchor></code></td></tr><tr><td><CDOE xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:" class="SGMLa"><a0:anchor>superdcn</a0:anchor></CDOE></td></tr></tbody></table></dd></dl></p><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> 構文:<ul><li><code class="ABNF"><dfn>HyOrd 指定</dfn> := *分離子 文 *(1*分離子 文) *分離子</code></li><li><code class="ABNF"><dfn>分離子</dfn> := <code class="SGML"><a0:anchor>s</a0:anchor></code> / <a0:anchor>注釈</a0:anchor></code></li><li><code class="ABNF"><dfn>文</dfn> := 対応文字写像 / 文字列写像</code></li><li><code class="ABNF"><dfn>対応文字写像</dfn> := 文字並び指定 *分離子 <code class="SGML"><a0:anchor>pero</a0:anchor></code> *分離子 文字並び指定</code><ul><li>左側と右側の文字の数が同じか、または右側は空でなければなりません。</li></ul></li><li><code class="ABNF"><dfn>文字並び写像</dfn> := 表記文字並び / 数値文字並び</code></li><li><code class="ABNF"><dfn>文字列写像</dfn> := 表記文字並び *分離子 <code class="SGML"><a0:anchor>vi</a0:anchor></code> *分離子 表記文字並び</code></li><li><code class="ABNF"><dfn>表記文字並び</dfn> := <code class="SGML"><a0:anchor>lit</a0:anchor></code> *<a0:anchor>SGML文字</a0:anchor> <code class="SGML">lit</code> / <code class="SGML"><a0:anchor>lita</a0:anchor></code> *SGML 文字 <code class="SGML">lita</code></code></li><li><code class="ABNF"><dfn>数値文字並び</dfn> := <code class="SGML"><a0:anchor>dso</a0:anchor></code> *<code class="SGML">s</code> [ <a0:anchor>数</a0:anchor> *(1*<code class="SGML">s</code> 数) *<code class="SGML">s</code> <title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">CODE(SGML)<a0:anchor>[dsc</a0:anchor></title></code>]]</li></ul></p><p><var class="ABNF">文</var>の左側に来る<var class="ABNF">表記文字並び</var>や<var class="ABNF">数値文字並び</var>は最低1文字が必要です。
左側の並びで指定した文字列を変換元の文字列から探して対応する右側の並びで指定した文字列に置換することになりますが、
複数候補があるときは最長のものを使います。</p><p><a0:anchor-end a0:anchor="4">[4]</a0:anchor-end> 宣言例:<pre class="SGML">&lt;!-- <a0:anchor>字句型宣言集合</a0:anchor> --&gt;
&lt;!<a0:anchor>NOTATION</a0:anchor> HyOrd
  <a0:anchor>PUBLIC</a0:anchor> &quot;ISO/IEC 10744:1997//NOTATION HyTime
              Lexicographic Ordering Definition
              Notation (HyOrd)//EN&quot;&gt;</pre></p><p>HyOrd を使った<a0:anchor>字句型宣言</a0:anchor>の例:<pre class="SGML">&lt;!-- 字句型宣言集合, 記法 HyOrd の宣言の後 --&gt;
&lt;!<a0:anchor>LEXORD</a0:anchor> exampleOrder
  &quot;<var>HyOrd による記述</var>&quot; HyOrd&gt;

&lt;!<a0:anchor>LEXTYPE</a0:anchor> exampleLextype
  #<a0:anchor>ORDER</a0:anchor> exampleOrder
  PUBLIC &quot;<var>...</var>&quot; lexNotation&gt;</pre></p><p><a0:anchor-end a0:anchor="5">[5]</a0:anchor-end> HyOrd 文の例:<ul><li><a0:anchor-end a0:anchor="6">[6]</a0:anchor-end> <samp>&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot; % &quot;NOPQRSTUVWXYZABCDEFGHIJKLM&quot; -- <a0:anchor>ROT13</a0:anchor> --</samp></li><li><a0:anchor-end a0:anchor="7">[7]</a0:anchor-end> <samp>&quot;出来る&quot; = &quot;できる&quot;</samp></li><li><a0:anchor-end a0:anchor="8">[8]</a0:anchor-end> <samp> [13 10] = [10] -- CRLF -&gt; LF --</samp></li><li><a0:anchor-end a0:anchor="9">[9]</a0:anchor-end> <samp>&quot;、。,.&quot; % &quot;&quot; -- 句読点を除去 --</samp></li></ul></p></body></html>