[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/t/21multitable.t (fullwidth_in_prototype): N
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/t/21multitable.t (fullwidth_in_prototype): New test. * tp/t/21multitable.t: add "use utf8; " declaration in order to use UTF-8 in test case. |
Date: |
Sun, 14 Jan 2024 14:25:59 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 37e9bcdbd1 * tp/t/21multitable.t (fullwidth_in_prototype): New test. *
tp/t/21multitable.t: add "use utf8;" declaration in order to use UTF-8 in test
case.
37e9bcdbd1 is described below
commit 37e9bcdbd1e6af326de3e1bc699f7632f3f97b2d
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Jan 14 19:25:51 2024 +0000
* tp/t/21multitable.t (fullwidth_in_prototype): New test.
* tp/t/21multitable.t: add "use utf8;" declaration in order to
use UTF-8 in test case.
---
ChangeLog | 6 +
tp/t/21multitable.t | 27 ++
tp/t/results/multitable/fullwidth_in_prototype.pl | 376 ++++++++++++++++++++++
3 files changed, 409 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 26343a018f..a0d512125b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-14 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/t/21multitable.t (fullwidth_in_prototype): New test.
+ * tp/t/21multitable.t: add "use utf8;" declaration in order to
+ use UTF-8 in test case.
+
2024-01-14 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (add_text_to_count):
diff --git a/tp/t/21multitable.t b/tp/t/21multitable.t
index 28ac3c76b7..6511a67cfa 100644
--- a/tp/t/21multitable.t
+++ b/tp/t/21multitable.t
@@ -2,6 +2,8 @@
use strict;
+use utf8;
+
use lib '.';
use Texinfo::ModulePath (undef, undef, undef, 'updirs' => 2);
@@ -14,6 +16,31 @@ my @test_cases = (
@end multitable
'],
+['fullwidth_in_prototype',
+'@multitable {éééé éééé éééé éééé} {xxxx xxxx xxxx xxxx} {人人 人人 人人 人人}
+@item
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+@tab
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+@tab
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+@end multitable
+'],
['paragraph_in_cells',
'@multitable {AAA} {BBB}
@item truc @tab bidule
diff --git a/tp/t/results/multitable/fullwidth_in_prototype.pl
b/tp/t/results/multitable/fullwidth_in_prototype.pl
new file mode 100644
index 0000000000..5afd4afdd3
--- /dev/null
+++ b/tp/t/results/multitable/fullwidth_in_prototype.pl
@@ -0,0 +1,376 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors
+ %result_indices %result_sectioning %result_nodes %result_menus
+ %result_floats %result_converted %result_converted_errors
+ %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'fullwidth_in_prototype'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => "\x{e9}\x{e9}\x{e9}\x{e9}
\x{e9}\x{e9}\x{e9}\x{e9} \x{e9}\x{e9}\x{e9}\x{e9} \x{e9}\x{e9}\x{e9}\x{e9}"
+ }
+ ],
+ 'source_info' => {
+ 'line_nr' => 1
+ },
+ 'type' => 'bracketed_arg'
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'xxxx xxxx xxxx xxxx'
+ }
+ ],
+ 'source_info' => {
+ 'line_nr' => 1
+ },
+ 'type' => 'bracketed_arg'
+ },
+ {
+ 'text' => ' '
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => "\x{4eba}\x{4eba} \x{4eba}\x{4eba}
\x{4eba}\x{4eba} \x{4eba}\x{4eba}"
+ }
+ ],
+ 'source_info' => {
+ 'line_nr' => 1
+ },
+ 'type' => 'bracketed_arg'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'multitable',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'cmdname' => 'item',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'ignorable_spaces_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ }
+ ],
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'cell_number' => 1
+ },
+ 'source_info' => {
+ 'line_nr' => 2
+ }
+ },
+ {
+ 'cmdname' => 'tab',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'ignorable_spaces_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ }
+ ],
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'cell_number' => 2
+ },
+ 'source_info' => {
+ 'line_nr' => 9
+ }
+ },
+ {
+ 'cmdname' => 'tab',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'ignorable_spaces_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ },
+ {
+ 'text' => "aaa a\x{e0} aaa aa aaa aa
+"
+ }
+ ],
+ 'type' => 'paragraph'
+ }
+ ],
+ 'extra' => {
+ 'cell_number' => 3
+ },
+ 'source_info' => {
+ 'line_nr' => 16
+ }
+ }
+ ],
+ 'extra' => {
+ 'row_number' => 1
+ },
+ 'type' => 'row'
+ }
+ ],
+ 'type' => 'multitable_body'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'multitable'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'text_arg' => 'multitable'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 23
+ }
+ }
+ ],
+ 'extra' => {
+ 'max_columns' => 3
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 1
+ }
+ }
+ ],
+ 'type' => 'before_node_section'
+ }
+ ],
+ 'type' => 'document_root'
+};
+
+$result_texis{'fullwidth_in_prototype'} = '@multitable {éééé éééé éééé éééé}
{xxxx xxxx xxxx xxxx} {人人 人人 人人 人人}
+@item
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+@tab
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+@tab
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+@end multitable
+';
+
+
+$result_texts{'fullwidth_in_prototype'} = 'aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+';
+
+$result_errors{'fullwidth_in_prototype'} = [];
+
+
+$result_floats{'fullwidth_in_prototype'} = {};
+
+
+
+$result_converted{'plaintext'}->{'fullwidth_in_prototype'} = 'aaa aà aaa aa
aaa aaa aà aaa aa aaa aaa aà aaa aa aaa
+aa aaa aà aaa aa aa aaa aà aaa aa aa aaa aà aaa aa
+aaa aa aaa aà aaa aaa aa aaa aà aaa aaa aa aaa aà aaa
+aa aaa aa aaa aà aa aaa aa aaa aà aa aaa aa aaa aà
+aaa aa aaa aa aaa aaa aa aaa aa aaa aaa aa aaa aa aaa
+aà aaa aa aaa aa aà aaa aa aaa aa aà aaa aa aaa aa
+aaa aà aaa aa aaa aaa aà aaa aa aaa aaa aà aaa aa aaa
+aa aa aa
+';
+
+
+$result_converted{'html_text'}->{'fullwidth_in_prototype'} = '<table
class="multitable">
+<tbody><tr><td>aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa</td><td>aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa</td><td>aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa</td></tr>
+</tbody>
+</table>
+';
+
+
+$result_converted{'xml'}->{'fullwidth_in_prototype'} = '<multitable spaces=" "
endspaces=" "><columnprototypes><columnprototype bracketed="on">éééé éééé éééé
éééé</columnprototype> <columnprototype bracketed="on">xxxx xxxx xxxx
xxxx</columnprototype> <columnprototype bracketed="on">人人 人人 人人
人人</columnprototype></columnprototypes>
+<tbody><row><entry command="item">
+<para>aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+</para></entry><entry command="tab">
+<para>aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+</para></entry><entry command="tab">
+<para>aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+aaa aà aaa aa aaa aa
+</para></entry></row></tbody></multitable>
+';
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/t/21multitable.t (fullwidth_in_prototype): New test. * tp/t/21multitable.t: add "use utf8; " declaration in order to use UTF-8 in test case.,
Gavin D. Smith <=