Skip to content

Commit

Permalink
Merge pull request #2330 from w3c/rs-i18n-section-update
Browse files Browse the repository at this point in the history
  • Loading branch information
iherman committed Jun 17, 2022
2 parents c30fcd8 + 37a7421 commit 60f8d6c
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions epub33/rs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,37 +332,24 @@ <h4>XML processing</h4>
<section id="sec-epub-rs-i18n">
<h2>Internationalization</h2>

<p>A reading system MUST process, for all [=publication resources=], the attributes that set the
language for the documents' contents, when applicable. This includes:</p>

<ul>
<li id="confreq-rs-xml-lang">the <a data-cite="xml#sec-lang-tag"><code>xml:lang</code> attribute</a>
[[xml]] for all XML documents (e.g., the [=package document=], [=XHTML content documents=],
<a>SVG content documents</a>, and [=media overlay documents=]).</li>

<li id="confreq-rs-lang-attr">the <code>lang</code> attribute for XHTML content documents and SVG
content documents. (Refer to respective "The 'lang' and 'xml:lang' attributes" sections in
[[html]] and [[svg]] for more information.)</li>
</ul>

<p>Similarly, a reading system MUST process, for all [=publication resources=], the attributes that set
the base direction for the documents' contents, when applicable. This includes:</p>
<p>
As part of processing [=publication resources=], the reading system is required to process the
attributes to set the language and the base directions in [=XHTML Content documents=] or
[=SVG Content documents=], as well as the
<a data-cite="xml#sec-lang-tag"><code>xml:lang</code> attribute</a> for all XML documents
(e.g., the [=package document=] and [=media overlay documents=]).
</p>

<ul>
<li id="confreq-rs-pkg-dir-intro"
data-tests="#pkg-dir_creator-rtl,#pkg-dir_rtl-root-ltr,#pkg-dir_rtl-root-unset,#pkg-dir_unset-root-rtl,#pkg-dir_unset-root-unset,#pkg-dir-auto_root-rtl,#pkg-dir-auto_root-unset"
>the <a data-cite="epub-33#attrdef-dir"><code>dir</code></a> attribute [[epub-33]] for the
[=package document=]. (See also <a href="#sec-pkg-doc-base-dir"></a> for further details.)</li>
<li id="confreq-rs-html-dir">the [[html]] [^html-global/dir^] attribute for XHTML content
documents.</li>
<li id="confreq-rs-svg-direction">the [[svg]] <a
href="https://www.w3.org/TR/SVG/text.html#DirectionProperty"><code>direction</code></a>
attribute for SVG content documents.</li>
</ul>
<p id="confreq-rs-pkg-dir-intro" data-tests="#pkg-dir_creator-rtl,#pkg-dir_rtl-root-ltr,#pkg-dir_rtl-root-unset,#pkg-dir_unset-root-rtl,#pkg-dir_unset-root-unset,#pkg-dir-auto_root-rtl,#pkg-dir-auto_root-unset">
Furthermore, the reading system MUST also process the
<a data-cite="epub-33#attrdef-dir"><code>dir</code></a> attribute [[epub-33]] for the [=package document=],
where the base direction specified by <code>dir</code> applies to the element where it is specified, and
to all elements in its content unless overridden with another instance of <code>dir</code>. (See also <a href="#sec-pkg-doc-base-dir"></a> for further details.)</span>
</p>

<p id="confreq-rs-pkg-lang-no-content" data-tests="#pkg-lang_but_not_content,#pkg-dir_but_not_content"
>In the absence of this information in a [=publication resource=], reading systems MUST NOT assume
either the the language or the base direction of that resource from information expressed in the
either the language or the base direction of that resource from information expressed in the
package document (i.e., in <a data-cite="epub-33#attrdef-xml-lang"><code>xml:lang</code></a> and <a
data-cite="epub-33#attrdef-dir"><code>dir</code></a> attributes, in <a
data-cite="epub-33#attrdef-hreflang"><code>hreflang</code> attributes</a> on <span
Expand Down

0 comments on commit 60f8d6c

Please sign in to comment.