[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Add encoded characters in highlight_example test
From: |
Patrice Dumas |
Subject: |
branch master updated: Add encoded characters in highlight_example test |
Date: |
Sat, 05 Mar 2022 12:02:22 -0500 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new cc35169617 Add encoded characters in highlight_example test
cc35169617 is described below
commit cc35169617b9c60d6156af1f4f7acecc9b6c810f
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Mar 5 18:01:47 2022 +0100
Add encoded characters in highlight_example test
---
tp/TODO | 3 ---
tp/tests/other/highlight_example.texi | 8 ++++----
.../other/res_parser_html/highlight_syntax_example/chapter.html | 8 ++++----
.../highlight_example_highlight_C_input.C | 2 +-
.../highlight_example_highlight_C_output.html | 2 +-
.../highlight_example_highlight_perl_input.perl | 2 +-
.../highlight_example_highlight_perl_output.html | 2 +-
.../highlight_example_highlight_texinfo_input.texi | 2 +-
.../highlight_example_highlight_texinfo_output.html | 2 +-
.../other/res_parser_html/highlight_syntax_example/index.html | 6 +++---
10 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/tp/TODO b/tp/TODO
index 9b72c338f2..e5094621cd 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -19,9 +19,6 @@ Before next release
for @example args, use *-user as class?
-Test of init/highlight_syntax.pm with non ascii characters in highlighted
-@example contents.
-
bytes. To check that they can never be upgraded + document
* texi2any.pl
diff --git a/tp/tests/other/highlight_example.texi
b/tp/tests/other/highlight_example.texi
index 4446fd5fae..4052e9a6ab 100644
--- a/tp/tests/other/highlight_example.texi
+++ b/tp/tests/other/highlight_example.texi
@@ -5,12 +5,12 @@
@top top
@node chapter
-@chapter chap
+@chapter châp
Texinfo
@example texinfo
@code{texinfo}
-@@code@{protected@}
+@@code@{protécted@}
@end example
C++
@@ -20,14 +20,14 @@ C++
#include <iostream>
int main() @{
- std::cout << "Hello World!";
+ std::cout << "Hello Wörld!";
return 0;
@}
@end example
perl
@example perl
-my $list = ['a', 'b'];
+my $list = ['ça', 'bôù'];
sub do ($) @{
my $arg = shift;
return $arg + 4;
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/chapter.html
b/tp/tests/other/res_parser_html/highlight_syntax_example/chapter.html
index 37a33ef9e8..0bc4d27915 100644
--- a/tp/tests/other/res_parser_html/highlight_syntax_example/chapter.html
+++ b/tp/tests/other/res_parser_html/highlight_syntax_example/chapter.html
@@ -31,12 +31,12 @@ div.example {margin-left: 3.2em}
Previous: <a href="index.html" accesskey="p" rel="prev">top</a>, Up: <a
href="index.html" accesskey="u" rel="up">top</a> </p>
</div>
<hr>
-<h2 class="chapter" id="chap">1 chap</h2>
+<h2 class="chapter" id="chap">1 châp</h2>
<p>Texinfo
</p><div class="example texinfo">
<pre class="example-preformatted">texinfo
-<i><span style="color:#9A1900">@code{protected}</span></i>
+<i><span style="color:#9A1900">@code{protécted}</span></i>
</pre></div>
<p>C++
@@ -46,14 +46,14 @@ Previous: <a href="index.html" accesskey="p"
rel="prev">top</a>, Up: <a href="in
<b><span style="color:#000080">#include</span></b> <span
style="color:#FF0000"><iostream></span>
<span style="color:#009900">int</span> <b><span
style="color:#000000">main</span></b><span style="color:#990000">()</span>
<span style="color:#FF0000">{</span>
- std<span style="color:#990000">::</span>cout <span
style="color:#990000"><<</span> <span style="color:#FF0000">"Hello
World!"</span><span style="color:#990000">;</span>
+ std<span style="color:#990000">::</span>cout <span
style="color:#990000"><<</span> <span style="color:#FF0000">"Hello
Wörld!"</span><span style="color:#990000">;</span>
<b><span style="color:#0000FF">return</span></b> <span
style="color:#993399">0</span><span style="color:#990000">;</span>
<span style="color:#FF0000">}</span>
</pre></div>
<p>perl
</p><div class="example perl">
-<pre class="example-preformatted"><b><span style="color:#0000FF">my</span></b>
<span style="color:#009900">$list</span> <span style="color:#990000">=</span>
<span style="color:#990000">[</span><span style="color:#FF0000">'a'</span><span
style="color:#990000">,</span> <span style="color:#FF0000">'b'</span><span
style="color:#990000">];</span>
+<pre class="example-preformatted"><b><span style="color:#0000FF">my</span></b>
<span style="color:#009900">$list</span> <span style="color:#990000">=</span>
<span style="color:#990000">[</span><span
style="color:#FF0000">'ça'</span><span style="color:#990000">,</span> <span
style="color:#FF0000">'bôù'</span><span style="color:#990000">];</span>
<b><span style="color:#0000FF">sub</span></b> <b><span
style="color:#0000FF">do</span></b> <span style="color:#990000">(</span>$<span
style="color:#990000">)</span> <span style="color:#FF0000">{</span>
<b><span style="color:#0000FF">my</span></b> <span
style="color:#009900">$arg</span> <span style="color:#990000">=</span> <b><span
style="color:#0000FF">shift</span></b><span style="color:#990000">;</span>
<b><span style="color:#0000FF">return</span></b> <span
style="color:#009900">$arg</span> <span style="color:#990000">+</span> <span
style="color:#993399">4</span><span style="color:#990000">;</span>
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_input.C
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_input.C
index 490017942f..87a48a1e74 100644
---
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_input.C
+++
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_input.C
@@ -6,7 +6,7 @@ _______________________ 0
#include <iostream>
int main() {
- std::cout << "Hello World!";
+ std::cout << "Hello W�rld!";
return 0;
}
_______________________ 0
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_output.html
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_output.html
index e6bf5a1ecd..b0ccc1f655 100644
---
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_output.html
+++
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_C_output.html
@@ -8,7 +8,7 @@ http://www.gnu.org/software/src-highlite -->
<b><span style="color:#000080">#include</span></b> <span
style="color:#FF0000"><iostream></span>
<span style="color:#009900">int</span> <b><span
style="color:#000000">main</span></b><span style="color:#990000">()</span>
<span style="color:#FF0000">{</span>
- std<span style="color:#990000">::</span>cout <span
style="color:#990000"><<</span> <span style="color:#FF0000">"Hello
World!"</span><span style="color:#990000">;</span>
+ std<span style="color:#990000">::</span>cout <span
style="color:#990000"><<</span> <span style="color:#FF0000">"Hello
W�rld!"</span><span style="color:#990000">;</span>
<b><span style="color:#0000FF">return</span></b> <span
style="color:#993399">0</span><span style="color:#990000">;</span>
<span style="color:#FF0000">}</span>
_______________________________________ highlight texinfo _GT Haib0aik zei4YieH
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_input.perl
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_input.perl
index 5cd9149b62..1d210b3ebf 100644
---
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_input.perl
+++
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_input.perl
@@ -1,7 +1,7 @@
Automatically generated
_______________________ 0
-my $list = ['a', 'b'];
+my $list = ['�a', 'b��'];
sub do ($) {
my $arg = shift;
return $arg + 4;
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_output.html
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_output.html
index ca9b03a54f..93ced8ea93 100644
---
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_output.html
+++
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_perl_output.html
@@ -3,7 +3,7 @@ by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre>_______________________________________ highlight texinfo _GT Haib0aik
zei4YieH
-<b><span style="color:#0000FF">my</span></b> <span
style="color:#009900">$list</span> <span style="color:#990000">=</span> <span
style="color:#990000">[</span><span style="color:#FF0000">'a'</span><span
style="color:#990000">,</span> <span style="color:#FF0000">'b'</span><span
style="color:#990000">];</span>
+<b><span style="color:#0000FF">my</span></b> <span
style="color:#009900">$list</span> <span style="color:#990000">=</span> <span
style="color:#990000">[</span><span style="color:#FF0000">'�a'</span><span
style="color:#990000">,</span> <span style="color:#FF0000">'b��'</span><span
style="color:#990000">];</span>
<b><span style="color:#0000FF">sub</span></b> <b><span
style="color:#0000FF">do</span></b> <span style="color:#990000">(</span>$<span
style="color:#990000">)</span> <span style="color:#FF0000">{</span>
<b><span style="color:#0000FF">my</span></b> <span
style="color:#009900">$arg</span> <span style="color:#990000">=</span> <b><span
style="color:#0000FF">shift</span></b><span style="color:#990000">;</span>
<b><span style="color:#0000FF">return</span></b> <span
style="color:#009900">$arg</span> <span style="color:#990000">+</span> <span
style="color:#993399">4</span><span style="color:#990000">;</span>
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_input.texi
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_input.texi
index 880b150920..80b6d6f8ce 100644
---
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_input.texi
+++
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_input.texi
@@ -2,5 +2,5 @@ Automatically generated
_______________________ 0
texinfo
-@code{protected}
+@code{prot�cted}
_______________________ 0
diff --git
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_output.html
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_output.html
index a9ec0f0639..de6c15a40b 100644
---
a/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_output.html
+++
b/tp/tests/other/res_parser_html/highlight_syntax_example/highlight_example_highlight_texinfo_output.html
@@ -4,6 +4,6 @@ http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre>_______________________________________ highlight texinfo _GT Haib0aik
zei4YieH
texinfo
-<i><span style="color:#9A1900">@code{protected}</span></i>
+<i><span style="color:#9A1900">@code{prot�cted}</span></i>
_______________________________________ highlight texinfo _GT Haib0aik zei4YieH
</pre>
diff --git a/tp/tests/other/res_parser_html/highlight_syntax_example/index.html
b/tp/tests/other/res_parser_html/highlight_syntax_example/index.html
index dfd63d1ade..ca4e35fdb0 100644
--- a/tp/tests/other/res_parser_html/highlight_syntax_example/index.html
+++ b/tp/tests/other/res_parser_html/highlight_syntax_example/index.html
@@ -23,19 +23,19 @@
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">chap</a> </p>
+Next: <a href="chapter.html" accesskey="n" rel="next">châp</a> </p>
</div>
<hr>
<h1 class="top" id="top">top</h1>
<ul class="mini-toc">
-<li><a href="chapter.html" accesskey="1">chap</a></li>
+<li><a href="chapter.html" accesskey="1">châp</a></li>
</ul>
</div>
<hr>
<div class="nav-panel">
<p>
-Next: <a href="chapter.html" accesskey="n" rel="next">chap</a> </p>
+Next: <a href="chapter.html" accesskey="n" rel="next">châp</a> </p>
</div>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Add encoded characters in highlight_example test,
Patrice Dumas <=