Skip to content

Commit

Permalink
feat: Allow Unicode characters everywhere (#1017)
Browse files Browse the repository at this point in the history
Fixes #960
  • Loading branch information
kesara authored Jul 31, 2023
1 parent a5d5532 commit 46aecfb
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 222 deletions.
14 changes: 7 additions & 7 deletions tests/valid/docfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta charset="utf-8">
<meta content="Cherokee,Common,Greek,Latin" name="scripts">
<meta content="initial-scale=1.0" name="viewport">
<title>Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.17.4</title>
<title>Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.17.5</title>
<meta content="xml2rfc(1)" name="author">
<meta content="
This document provides information about the XML schema implemented in this release of xml2rfc, and the individual elements of that schema. The document is generated from the RNG schema file that is part of the xml2rfc distribution, so schema information in this document should always be in sync with the schema in actual use. The textual descriptions depend on manual updates in order to reflect the implementation.
" name="description">
<meta content="xml2rfc 3.17.4" name="generator">
<meta content="xml2rfc-docs-3.17.4" name="ietf.draft">
<meta content="xml2rfc 3.17.5" name="generator">
<meta content="xml2rfc-docs-3.17.5" name="ietf.draft">
<link href="tests/out/docfile.xml" rel="alternate" type="application/rfc+xml">
<link href="#copyright" rel="license">
<link href="xml2rfc.css" rel="stylesheet">
Expand All @@ -39,7 +39,7 @@
<dd class="workgroup">xml2rfc(1)</dd>
<dt class="label-published">Published:</dt>
<dd class="published">
<time datetime="2023-07-26" class="published">26 July 2023</time>
<time datetime="2023-07-27" class="published">27 July 2023</time>
</dd>
<dt class="label-authors">Author:</dt>
<dd class="authors">
Expand All @@ -49,7 +49,7 @@
</dd>
</dl>
</div>
<h1 id="title">Xml2rfc Vocabulary Version 3 Schema<br>xml2rfc release 3.17.4</h1>
<h1 id="title">Xml2rfc Vocabulary Version 3 Schema<br>xml2rfc release 3.17.5</h1>
<section id="section-abstract">
<h2 id="abstract"><a href="#abstract" class="selfRef">Abstract</a></h2>
<p id="section-abstract-1">
Expand Down Expand Up @@ -371,7 +371,7 @@ <h2 id="name-introduction">
<p id="section-1-5">
The latest version of this documentation is available in HTML form at <span><a href="https://ietf-tools.github.io/xml2rfc/">https://ietf-tools.github.io/xml2rfc/</a></span>.<a href="#section-1-5" class="pilcrow"></a></p>
<p id="section-1-6">
This documentation applies to xml2rfc version 3.17.4.<a href="#section-1-6" class="pilcrow"></a></p>
This documentation applies to xml2rfc version 3.17.5.<a href="#section-1-6" class="pilcrow"></a></p>
</section>
<section id="section-2">
<h2 id="name-schema-version-3-elements">
Expand Down Expand Up @@ -6366,7 +6366,7 @@ <h2 id="name-xml2rfc-documentation-templ">
<p id="appendix-D-1">

The following variables are available for use in an xml2rfc
manpage Jinja2 template, as of xml2rfc version 3.17.4:<a href="#appendix-D-1" class="pilcrow"></a></p>
manpage Jinja2 template, as of xml2rfc version 3.17.5:<a href="#appendix-D-1" class="pilcrow"></a></p>
<span class="break"></span><dl class="dlNewline" id="appendix-D-2">
<dt id="appendix-D-2.1">{{ bare_latin_tags }}:</dt>
<dd style="margin-left: 1.5em" id="appendix-D-2.2"></dd>
Expand Down
4 changes: 2 additions & 2 deletions tests/valid/draft-miek-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
This version is adapted to work with "xml2rfc" version 2.x.
' name="description">
<meta content="xml2rfc 3.17.4" name="generator">
<meta content="xml2rfc 3.17.5" name="generator">
<meta content="RFC" name="keyword">
<meta content="Request for Comments" name="keyword">
<meta content="I-D" name="keyword">
Expand All @@ -26,7 +26,7 @@
<meta content="Extensible Markup Language" name="keyword">
<meta content="draft-gieben-writing-rfcs-pandoc-02" name="ietf.draft">
<!-- Generator version information:
xml2rfc 3.17.4
xml2rfc 3.17.5
Python 3.10.6
ConfigArgParse 1.7
google-i18n-address 3.1.0
Expand Down
4 changes: 2 additions & 2 deletions tests/valid/draft-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
Insert an abstract: MANDATORY. This template is for creating an
Internet Draft.
" name="description">
<meta content="xml2rfc 3.17.4" name="generator">
<meta content="xml2rfc 3.17.5" name="generator">
<meta content="template" name="keyword">
<meta content="draft-ietf-xml2rfc-template-05" name="ietf.draft">
<!-- Generator version information:
xml2rfc 3.17.4
xml2rfc 3.17.5
Python 3.10.6
ConfigArgParse 1.7
google-i18n-address 3.1.0
Expand Down
6 changes: 3 additions & 3 deletions tests/valid/elements.bom.text
Original file line number Diff line number Diff line change
Expand Up @@ -1301,8 +1301,8 @@ Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018

2. Item 2

* Indent="5". "The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself." Πολιτεία
* Indent="5". The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself. Πολιτεία

Ich weiß nicht, was soll es bedeuten,
Daß ich so traurig bin;
Expand Down Expand Up @@ -1423,7 +1423,7 @@ Other References
[GEDICHTE] Heine, H., "Dreiunddreißig Gedichte", 1824.

[NO-DATE] Mae, N., "Document — with no date", Advances in Cryptology
- AACC Edition pp. 235-265.
AACC Edition pp. 235-265.

[REPUBLIC] Πλάτων (Plato), "Πολιτεία", 375 BC.

Expand Down
6 changes: 3 additions & 3 deletions tests/valid/elements.pages.text
Original file line number Diff line number Diff line change
Expand Up @@ -1301,8 +1301,8 @@ Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018

2. Item 2

* Indent="5". "The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself." Πολιτεία
* Indent="5". The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself. Πολιτεία

Ich weiß nicht, was soll es bedeuten,
Daß ich so traurig bin;
Expand Down Expand Up @@ -1423,7 +1423,7 @@ Other References
[GEDICHTE] Heine, H., "Dreiunddreißig Gedichte", 1824.

[NO-DATE] Mae, N., "Document — with no date", Advances in Cryptology
- AACC Edition pp. 235-265.
AACC Edition pp. 235-265.

[REPUBLIC] Πλάτων (Plato), "Πολιτεία", 375 BC.

Expand Down
6 changes: 3 additions & 3 deletions tests/valid/elements.prepped.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" submissionType="independent" ipr="trust200902" docName="elements-00" category="info" obsoletes="1234,5678,9012,3456,7890" sortRefs="true" indexInclude="false" prepTime="2023-07-26T21:45:51" scripts="Cherokee,Common,Greek,Han,Hebrew,Latin" symRefs="true" tocDepth="3" tocInclude="true">
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" submissionType="independent" ipr="trust200902" docName="elements-00" category="info" obsoletes="1234,5678,9012,3456,7890" sortRefs="true" indexInclude="false" prepTime="2023-07-27T20:11:18" scripts="Cherokee,Common,Greek,Han,Hebrew,Latin" symRefs="true" tocDepth="3" tocInclude="true">



Expand Down Expand Up @@ -1546,7 +1546,7 @@ for opt, value in opts:
</ol>
<ul indent="5" bare="false" empty="false" spacing="normal" pn="section-17-4">
<li pn="section-17-4.1"> Indent="5".
"The heaviest penalty for declining to rule is to be ruled by someone inferior to yourself."
The heaviest penalty for declining to rule is to be ruled by someone inferior to yourself.
<xref target="REPUBLIC" format="title" sectionFormat="of" derivedContent="Πολιτεία"/>
</li>
<li pn="section-17-4.2">
Expand Down Expand Up @@ -1823,7 +1823,7 @@ for opt, value in opts:
<author fullname="No Mae"/>
<date/>
</front>
<seriesInfo name="Advances in Cryptology - AACC Edition" value="pp. 235-265"/>
<seriesInfo name="Advances in Cryptology AACC Edition" value="pp. 235-265"/>
</reference>
<reference anchor="REPUBLIC" quoteTitle="true" derivedAnchor="REPUBLIC">
<front>
Expand Down
6 changes: 3 additions & 3 deletions tests/valid/elements.text
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,8 @@ Unnumbered section

2. Item 2

* Indent="5". "The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself." Πολιτεία
* Indent="5". The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself. Πολιτεία

Ich weiß nicht, was soll es bedeuten,
Daß ich so traurig bin;
Expand Down Expand Up @@ -1195,7 +1195,7 @@ Other References
[GEDICHTE] Heine, H., "Dreiunddreißig Gedichte", 1824.

[NO-DATE] Mae, N., "Document — with no date", Advances in Cryptology
- AACC Edition pp. 235-265.
AACC Edition pp. 235-265.

[REPUBLIC] Πλάτων (Plato), "Πολιτεία", 375 BC.

Expand Down
8 changes: 4 additions & 4 deletions tests/valid/elements.v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta content="
This is the abstract.
" name="description">
<meta content="xml2rfc 3.15.3" name="generator">
<meta content="xml2rfc 3.17.5" name="generator">
<meta content="elements-00" name="ietf.draft">
<link href="tests/input/elements.xml" rel="alternate" type="application/rfc+xml">
<link href="#copyright" rel="license">
Expand Down Expand Up @@ -1726,7 +1726,7 @@ <h2 id="name-unnumbered-section">
</ol>
<ul class="normal">
<li style="margin-left: 0.5em;" class="normal" id="section-17-4.1"> Indent="5".
"The heaviest penalty for declining to rule is to be ruled by someone inferior to yourself."
The heaviest penalty for declining to rule is to be ruled by someone inferior to yourself.
<a href="#REPUBLIC" class="internal xref">Πολιτεία</a><a href="#section-17-4.1" class="pilcrow"></a>
</li>
<li style="margin-left: 0.5em;" class="normal" id="section-17-4.2">
Expand Down Expand Up @@ -1778,7 +1778,7 @@ <h4 id="name-cms-references">
<dl class="references">
<dt id="I-D.levkowetz-xml2rfc-v3-implementation-notes">[I-D.levkowetz-xml2rfc-v3-implementation-notes]</dt>
<dd>
<span class="refAuthor">Levkowetz, H.</span>, <span class="refTitle">"Implementation notes for RFC7991,"</span>, <span class="refContent">Work in Progress</span>, <span class="seriesInfo">Internet-Draft, draft-levkowetz-xml2rfc-v3-implementation-notes-13</span>, <time datetime="2021-09-16" class="refDate">September 16, 2021</time>, <span>&lt;<a href="https://www.ietf.org/archive/id/draft-levkowetz-xml2rfc-v3-implementation-notes-13.txt">https://www.ietf.org/archive/id/draft-levkowetz-xml2rfc-v3-implementation-notes-13.txt</a>&gt;</span>. </dd>
<span class="refAuthor">Levkowetz, H.</span>, <span class="refTitle">"Implementation notes for RFC7991,"</span>, <span class="refContent">Work in Progress</span>, <span class="seriesInfo">Internet-Draft, draft-levkowetz-xml2rfc-v3-implementation-notes-13</span>, <time datetime="2021-09-16" class="refDate">September 16, 2021</time>, <span>&lt;<a href="https://datatracker.ietf.org/doc/html/draft-levkowetz-xml2rfc-v3-implementation-notes-13">https://datatracker.ietf.org/doc/html/draft-levkowetz-xml2rfc-v3-implementation-notes-13</a>&gt;</span>. </dd>
<dd class="break"></dd>
<dt id="RFC5083">[RFC5083]</dt>
<dd>
Expand Down Expand Up @@ -1864,7 +1864,7 @@ <h4 id="name-other-references">
<dd class="break"></dd>
<dt id="NO-DATE">[NO-DATE]</dt>
<dd>
<span class="refAuthor">Mae, N.</span>, <span class="refTitle">"Document — with no date"</span>, <span class="seriesInfo">Advances in Cryptology - AACC Edition pp. 235-265</span>. </dd>
<span class="refAuthor">Mae, N.</span>, <span class="refTitle">"Document — with no date"</span>, <span class="seriesInfo">Advances in Cryptology AACC Edition pp. 235-265</span>. </dd>
<dd class="break"></dd>
<dt id="REPUBLIC">[REPUBLIC]</dt>
<dd>
Expand Down
6 changes: 3 additions & 3 deletions tests/valid/elements.wip.text
Original file line number Diff line number Diff line change
Expand Up @@ -1301,8 +1301,8 @@ Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018

2. Item 2

* Indent="5". "The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself." Πολιτεία
* Indent="5". The heaviest penalty for declining to rule is to
be ruled by someone inferior to yourself. Πολιτεία

Ich weiß nicht, was soll es bedeuten,
Daß ich so traurig bin;
Expand Down Expand Up @@ -1423,7 +1423,7 @@ Other References
[GEDICHTE] Heine, H., "Dreiunddreißig Gedichte", 1824.

[NO-DATE] Mae, N., "Document — with no date", Advances in Cryptology
- AACC Edition pp. 235-265.
AACC Edition pp. 235-265.

[REPUBLIC] Πλάτων (Plato), "Πολιτεία", 375 BC.

Expand Down
12 changes: 6 additions & 6 deletions tests/valid/indexes.pages.text
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


Network Working Group H. Person, Ed.
Internet-Draft July 26, 2023
Internet-Draft July 27, 2023
Intended status: Experimental
Expires: January 27, 2024
Expires: January 28, 2024


xml2rfc index tests
Expand All @@ -26,7 +26,7 @@ Status of This Memo
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."

This Internet-Draft will expire on January 27, 2024.
This Internet-Draft will expire on January 28, 2024.

Copyright Notice

Expand All @@ -53,7 +53,7 @@ Table of Contents



Person Expires January 27, 2024 [Page 1]
Person Expires January 28, 2024 [Page 1]

Internet-Draft xml2rfc index tests July 2023

Expand Down Expand Up @@ -109,7 +109,7 @@ Index



Person Expires January 27, 2024 [Page 2]
Person Expires January 28, 2024 [Page 2]

Internet-Draft xml2rfc index tests July 2023

Expand Down Expand Up @@ -165,4 +165,4 @@ Author's Address



Person Expires January 27, 2024 [Page 3]
Person Expires January 28, 2024 [Page 3]
8 changes: 4 additions & 4 deletions tests/valid/indexes.prepped.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" sortRefs="true" category="exp" submissionType="independent" ipr="trust200902" docName="indexes-00" indexInclude="true" prepTime="2023-07-26T21:45:56" scripts="Common,Latin" symRefs="true" tocDepth="3" tocInclude="true">
<!-- xml2rfc v2v3 conversion 3.17.4 -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" sortRefs="true" category="exp" submissionType="independent" ipr="trust200902" docName="indexes-00" indexInclude="true" prepTime="2023-07-27T20:05:08" scripts="Common,Latin" symRefs="true" tocDepth="3" tocInclude="true">
<!-- xml2rfc v2v3 conversion 3.17.5 -->



Expand All @@ -20,7 +20,7 @@
</postal>
</address>
</author>
<date day="26" month="07" year="2023"/>
<date day="27" month="07" year="2023"/>
<boilerplate>
<section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
<name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
Expand All @@ -41,7 +41,7 @@
material or to cite them other than as "work in progress."
</t>
<t indent="0" pn="section-boilerplate.1-4">
This Internet-Draft will expire on 27 January 2024.
This Internet-Draft will expire on 28 January 2024.
</t>
</section>
<section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
Expand Down
6 changes: 3 additions & 3 deletions tests/valid/indexes.text
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


Network Working Group H. Person, Ed.
Internet-Draft July 26, 2023
Internet-Draft July 27, 2023
Intended status: Experimental
Expires: January 27, 2024
Expires: January 28, 2024


xml2rfc index tests
Expand All @@ -26,7 +26,7 @@ Status of This Memo
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."

This Internet-Draft will expire on January 27, 2024.
This Internet-Draft will expire on January 28, 2024.

Copyright Notice

Expand Down
10 changes: 5 additions & 5 deletions tests/valid/indexes.v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta content="initial-scale=1.0" name="viewport">
<title>xml2rfc index tests</title>
<meta content="Human Person" name="author">
<meta content="xml2rfc 3.17.4" name="generator">
<meta content="xml2rfc 3.17.5" name="generator">
<meta content="indexes-00" name="ietf.draft">
<link href="tests/input/indexes.xml" rel="alternate" type="application/rfc+xml">
<link href="#copyright" rel="license">
Expand All @@ -23,7 +23,7 @@
</tr></thead>
<tfoot><tr>
<td class="left">Person</td>
<td class="center">Expires January 27, 2024</td>
<td class="center">Expires January 28, 2024</td>
<td class="right">[Page]</td>
</tr></tfoot>
</table>
Expand All @@ -36,12 +36,12 @@
<dd class="internet-draft">indexes-00</dd>
<dt class="label-published">Published:</dt>
<dd class="published">
<time datetime="2023-07-26" class="published">July 26, 2023</time>
<time datetime="2023-07-27" class="published">July 27, 2023</time>
</dd>
<dt class="label-intended-status">Intended Status:</dt>
<dd class="intended-status">Experimental</dd>
<dt class="label-expires">Expires:</dt>
<dd class="expires"><time datetime="2024-01-27">January 27, 2024</time></dd>
<dd class="expires"><time datetime="2024-01-28">January 28, 2024</time></dd>
<dt class="label-authors">Author:</dt>
<dd class="authors">
<div class="author">
Expand Down Expand Up @@ -71,7 +71,7 @@ <h2 id="name-status-of-this-memo">
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."<a href="#section-boilerplate.1-3" class="pilcrow"></a></p>
<p id="section-boilerplate.1-4">
This Internet-Draft will expire on January 27, 2024.<a href="#section-boilerplate.1-4" class="pilcrow"></a></p>
This Internet-Draft will expire on January 28, 2024.<a href="#section-boilerplate.1-4" class="pilcrow"></a></p>
</section>
</div>
<div id="copyright">
Expand Down
10 changes: 5 additions & 5 deletions tests/valid/manpage.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
xml2rfc(1) xml2rfc(1)
26 July 2023
27 July 2023


Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.17.4
xml2rfc-docs-3.17.4
xml2rfc release 3.17.5
xml2rfc-docs-3.17.5

Abstract

Expand Down Expand Up @@ -54,7 +54,7 @@ Table of Contents
The latest version of this documentation is available in HTML form at
https://ietf-tools.github.io/xml2rfc/.

This documentation applies to xml2rfc version 3.17.4.
This documentation applies to xml2rfc version 3.17.5.

2. Schema Version 3 Elements

Expand Down Expand Up @@ -4319,7 +4319,7 @@ Appendix C. xml2rfc Configuration Files
Appendix D. xml2rfc Documentation Template Variables

The following variables are available for use in an xml2rfc manpage
Jinja2 template, as of xml2rfc version 3.17.4:
Jinja2 template, as of xml2rfc version 3.17.5:

{{ bare_latin_tags }}:

Expand Down
Loading

0 comments on commit 46aecfb

Please sign in to comment.