[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp Texinfo/Convert/DocBook.pm t/181quot...
From: |
Patrice Dumas |
Subject: |
texinfo/tp Texinfo/Convert/DocBook.pm t/181quot... |
Date: |
Sun, 18 Sep 2011 20:34:39 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/09/18 20:34:38
Modified files:
tp/Texinfo/Convert: DocBook.pm
tp/t : 181quotation.t
tp/t/results/coverage: def.pl
tp/t/results/quotation: comment_on_quotation_line.pl
empty_quotation.pl
only_comment_on_quotation_line.pl
quotation_and_author.pl
space_at_commands_end_quotation_line.pl
standard_quotations.pl
Added files:
tp/t : docbook_tests.t
tp/t/results/docbook_tests:
empty_quotation_with_arg_followed_by_quotation.pl
Log message:
More fixes for DocBook.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/DocBook.pm?cvsroot=texinfo&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/181quotation.t?cvsroot=texinfo&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/docbook_tests.t?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/coverage/def.pl?cvsroot=texinfo&r1=1.54&r2=1.55
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/quotation/comment_on_quotation_line.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/quotation/empty_quotation.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/quotation/only_comment_on_quotation_line.pl?cvsroot=texinfo&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/quotation/quotation_and_author.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/quotation/space_at_commands_end_quotation_line.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/quotation/standard_quotations.pl?cvsroot=texinfo&r1=1.5&r2=1.6
Patches:
Index: Texinfo/Convert/DocBook.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/DocBook.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- Texinfo/Convert/DocBook.pm 18 Sep 2011 17:58:17 -0000 1.9
+++ Texinfo/Convert/DocBook.pm 18 Sep 2011 20:34:37 -0000 1.10
@@ -494,12 +494,8 @@
if (defined($root->{'type'}) and $root->{'type'} eq '_converted') {
return $root->{'text'};
} elsif ($self->{'document_context'}->[-1]->{'raw'}) {
- if ($root->{'type'} and $root->{'type'} eq 'empty_line_after_command') {
- return '';
- } else {
return $root->{'text'};
}
- }
$result = $self->xml_protect_text($root->{'text'});
if (! defined($root->{'type'}) or $root->{'type'} ne 'raw') {
if (!$self->{'document_context'}->[-1]->{'code'}) {
@@ -529,7 +525,6 @@
return $self->_convert(Texinfo::Common::expand_today($self));
} elsif ($Texinfo::Common::accent_commands{$root->{'cmdname'}}) {
return $self->xml_accents($root, undef, \&docbook_accent);#,
$self->in_upper_case());
- # } elsif ($root->{'cmdname'} eq 'item' and
} elsif ($root->{'cmdname'} eq 'item' or $root->{'cmdname'} eq 'itemx'
or $root->{'cmdname'} eq 'headitem' or $root->{'cmdname'} eq
'tab') {
if ($root->{'cmdname'} eq 'item'
@@ -1177,7 +1172,7 @@
if ($type eq 'spaces' or $type eq 'delimiter') {
$result .= $content;
} elsif ($type eq 'category') {
- $result .= "<emphasis type=\"bold\">$content</emphasis>:";
+ $result .= "<emphasis role=\"bold\">$content</emphasis>:";
} elsif ($type eq 'name') {
$result .=
"<$defcommand_name_type{$main_command}>$content</$defcommand_name_type{$main_command}>";
} else {
@@ -1234,12 +1229,13 @@
}
if ($root->{'cmdname'}
and exists($Texinfo::Common::block_commands{$root->{'cmdname'}})) {
+ # a pending_prepend still there may happen if a quotation is empty.
+ delete $self->{'pending_prepend'};
#$result .= "</$root->{'cmdname'}>\n";
if ($self->{'document_context'}->[-1]->{'raw'}) {
chomp ($result);
chomp ($result);
} else {
- #$result .= "\n";
if (exists($docbook_preformatted_formats{$root->{'cmdname'}})) {
my $format = pop
@{$self->{'document_context'}->[-1]->{'preformatted_stack'}};
die "BUG $format ne $docbook_preformatted_formats{$root->{'cmdname'}}"
Index: t/181quotation.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/181quotation.t,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- t/181quotation.t 24 Jun 2011 07:42:45 -0000 1.3
+++ t/181quotation.t 18 Sep 2011 20:34:37 -0000 1.4
@@ -77,7 +77,9 @@
our ($arg_test_case, $arg_generate, $arg_debug);
foreach my $test (@test_cases) {
- $test->[2]->{'test_formats'} = ['plaintext'];
+ push @{$test->[2]->{'test_formats'}}, 'plaintext';
+ push @{$test->[2]->{'test_formats'}}, 'xml';
+ push @{$test->[2]->{'test_formats'}}, 'docbook';
}
run_all ('quotation', address@hidden, $arg_test_case,
Index: t/results/coverage/def.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/coverage/def.pl,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- t/results/coverage/def.pl 18 Sep 2011 17:58:18 -0000 1.54
+++ t/results/coverage/def.pl 18 Sep 2011 20:34:38 -0000 1.55
@@ -2541,28 +2541,28 @@
$result_converted{'docbook'}->{'def'} = '
-<synopsis><indexterm
role="fn"><primary>d--effn_name</primary></indexterm><emphasis
type="bold">c--ategory</emphasis>: <function>d--effn_name</function>
<replaceable>a--rguments...</replaceable></synopsis>
+<synopsis><indexterm
role="fn"><primary>d--effn_name</primary></indexterm><emphasis
role="bold">c--ategory</emphasis>: <function>d--effn_name</function>
<replaceable>a--rguments...</replaceable></synopsis>
<blockquote><para>d–effn
</para></blockquote>
-<synopsis><indexterm
role="fn"><primary>de--ffn_name</primary></indexterm><emphasis
type="bold">cate--gory</emphasis>: <function>de--ffn_name</function>
<replaceable>ar--guments</replaceable> <replaceable>more</replaceable>
<replaceable>args</replaceable> <replaceable>
+<synopsis><indexterm
role="fn"><primary>de--ffn_name</primary></indexterm><emphasis
role="bold">cate--gory</emphasis>: <function>de--ffn_name</function>
<replaceable>ar--guments</replaceable> <replaceable>more</replaceable>
<replaceable>args</replaceable> <replaceable>
</replaceable> <replaceable>even</replaceable> <replaceable>more</replaceable>
<replaceable>so</replaceable></synopsis>
<blockquote><para>def–fn
</para></blockquote>
-<synopsis><indexterm
role="fn"><primary><replaceable>i</replaceable></primary></indexterm><emphasis
type="bold">fset</emphasis>: <function><replaceable>i</replaceable></function>
<replaceable>a</replaceable> <replaceable>g</replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary>truc</primary></indexterm><emphasis
type="bold">cmde</emphasis>: <function>truc</function>
<replaceable></replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary>log
trap</primary></indexterm><emphasis type="bold">Command</emphasis>:
<function>log trap</function> <replaceable></replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary>log
trap1</primary></indexterm><emphasis type="bold">Command</emphasis>:
<function>log trap1</function> <replaceable></replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary>log
trap2</primary></indexterm><emphasis type="bold">Command</emphasis>:
<function>log trap2</function> <replaceable></replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary><emphasis role="bold">id
ule</emphasis></primary></indexterm><emphasis type="bold">cmde</emphasis>:
<function><emphasis role="bold">id ule</emphasis></function>
<replaceable>truc</replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary><emphasis role="bold">id
‘<literal>i</literal>’
ule</emphasis></primary></indexterm><emphasis type="bold">cmde2</emphasis>:
<function><emphasis role="bold">id ‘i’ ule</emphasis></function>
<replaceable>truc</replaceable></synopsis>
-<synopsis><indexterm role="fn"><primary>machin</primary></indexterm><emphasis
type="bold"></emphasis>: <function>machin</function></synopsis>
-<synopsis><indexterm role="fn"><primary>bidule
machin</primary></indexterm><emphasis type="bold"></emphasis>: <function>bidule
machin</function></synopsis>
-<synopsis><indexterm role="fn"><primary>machin</primary></indexterm><emphasis
type="bold">truc</emphasis>: <function>machin</function></synopsis>
-<synopsis><indexterm
role="fn"><primary>followed</primary></indexterm><emphasis
type="bold">truc</emphasis>: <function>followed</function>
<replaceable>by</replaceable> <replaceable>a</replaceable>
<replaceable>comment</replaceable></synopsis>
+<synopsis><indexterm
role="fn"><primary><replaceable>i</replaceable></primary></indexterm><emphasis
role="bold">fset</emphasis>: <function><replaceable>i</replaceable></function>
<replaceable>a</replaceable> <replaceable>g</replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>truc</primary></indexterm><emphasis
role="bold">cmde</emphasis>: <function>truc</function>
<replaceable></replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>log
trap</primary></indexterm><emphasis role="bold">Command</emphasis>:
<function>log trap</function> <replaceable></replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>log
trap1</primary></indexterm><emphasis role="bold">Command</emphasis>:
<function>log trap1</function> <replaceable></replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>log
trap2</primary></indexterm><emphasis role="bold">Command</emphasis>:
<function>log trap2</function> <replaceable></replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary><emphasis role="bold">id
ule</emphasis></primary></indexterm><emphasis role="bold">cmde</emphasis>:
<function><emphasis role="bold">id ule</emphasis></function>
<replaceable>truc</replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary><emphasis role="bold">id
‘<literal>i</literal>’
ule</emphasis></primary></indexterm><emphasis role="bold">cmde2</emphasis>:
<function><emphasis role="bold">id ‘i’ ule</emphasis></function>
<replaceable>truc</replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>machin</primary></indexterm><emphasis
role="bold"></emphasis>: <function>machin</function></synopsis>
+<synopsis><indexterm role="fn"><primary>bidule
machin</primary></indexterm><emphasis role="bold"></emphasis>: <function>bidule
machin</function></synopsis>
+<synopsis><indexterm role="fn"><primary>machin</primary></indexterm><emphasis
role="bold">truc</emphasis>: <function>machin</function></synopsis>
+<synopsis><indexterm
role="fn"><primary>followed</primary></indexterm><emphasis
role="bold">truc</emphasis>: <function>followed</function>
<replaceable>by</replaceable> <replaceable>a</replaceable>
<replaceable>comment</replaceable></synopsis>
<!-- comment -->
-<synopsis><indexterm role="fn"><primary>after</primary></indexterm><emphasis
type="bold">truc</emphasis>: <function>after</function>
<replaceable>a</replaceable> <replaceable>deff</replaceable>
<replaceable>item</replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>after</primary></indexterm><emphasis
role="bold">truc</emphasis>: <function>after</function>
<replaceable>a</replaceable> <replaceable>deff</replaceable>
<replaceable>item</replaceable></synopsis>
<!-- comment -->
-<synopsis><indexterm role="fn"><primary>deffnx</primary></indexterm><emphasis
type="bold">truc</emphasis>: <function>deffnx</function>
<replaceable>before</replaceable> <replaceable>end</replaceable>
<replaceable>deffn</replaceable></synopsis>
+<synopsis><indexterm role="fn"><primary>deffnx</primary></indexterm><emphasis
role="bold">truc</emphasis>: <function>deffnx</function>
<replaceable>before</replaceable> <replaceable>end</replaceable>
<replaceable>deffn</replaceable></synopsis>
<blockquote><para>Various deff lines
</para></blockquote>';
Index: t/results/quotation/comment_on_quotation_line.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/quotation/comment_on_quotation_line.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/quotation/comment_on_quotation_line.pl 3 Jul 2011 14:51:01
-0000 1.4
+++ t/results/quotation/comment_on_quotation_line.pl 18 Sep 2011 20:34:38
-0000 1.5
@@ -155,4 +155,14 @@
$result_converted{'plaintext'}->{'comment_on_quotation_line'} = ' truc :
In quotation
';
+
+$result_converted{'xml'}->{'comment_on_quotation_line'} =
'<quotation><quotationtype>truc<spacecmd type="spc"/></quotationtype><!--
quotation -->
+<para>In quotation
+</para></quotation>
+';
+
+
+$result_converted{'docbook'}->{'comment_on_quotation_line'} =
'<blockquote><para><emphasis role="bold">truc :</emphasis> In quotation
+</para></blockquote>';
+
1;
Index: t/results/quotation/empty_quotation.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/quotation/empty_quotation.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/quotation/empty_quotation.pl 13 Jul 2011 14:49:12 -0000
1.6
+++ t/results/quotation/empty_quotation.pl 18 Sep 2011 20:34:38 -0000
1.7
@@ -448,4 +448,24 @@
: ';
+
+$result_converted{'xml'}->{'empty_quotation'} = '<quotation>
+</quotation>
+
+<quotation><quotationtype>Empty</quotationtype>
+</quotation>
+
+<quotation><quotationtype><asis></asis></quotationtype>
+</quotation>
+
+<quotation><quotationtype>&linebreak;</quotationtype>
+</quotation>
+';
+
+
+$result_converted{'docbook'}->{'empty_quotation'} = '<blockquote></blockquote>
+<blockquote></blockquote>
+<blockquote></blockquote>
+<blockquote></blockquote>';
+
1;
Index: t/results/quotation/only_comment_on_quotation_line.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/quotation/only_comment_on_quotation_line.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- t/results/quotation/only_comment_on_quotation_line.pl 3 Jul 2011
14:51:01 -0000 1.3
+++ t/results/quotation/only_comment_on_quotation_line.pl 18 Sep 2011
20:34:38 -0000 1.4
@@ -137,4 +137,14 @@
$result_converted{'plaintext'}->{'only_comment_on_quotation_line'} = ' In
quotation
';
+
+$result_converted{'xml'}->{'only_comment_on_quotation_line'} =
'<quotation><!-- comment -->
+<para>In quotation
+</para></quotation>
+';
+
+
+$result_converted{'docbook'}->{'only_comment_on_quotation_line'} =
'<blockquote><para>In quotation
+</para></blockquote>';
+
1;
Index: t/results/quotation/quotation_and_author.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/quotation/quotation_and_author.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/quotation/quotation_and_author.pl 14 Aug 2011 01:52:02 -0000
1.6
+++ t/results/quotation/quotation_and_author.pl 18 Sep 2011 20:34:38 -0000
1.7
@@ -353,4 +353,24 @@
-- _Some Notifier_
';
+
+$result_converted{'xml'}->{'quotation_and_author'} = '<quotation>
+<author>Some One</author>
+<para>A quot&textmdash;ation
+</para></quotation>
+
+<quotation><quotationtype>Note</quotationtype>
+<author>Some Notifier</author>
+<para>A Note
+</para></quotation>
+';
+
+
+$result_converted{'docbook'}->{'quotation_and_author'} =
'<blockquote><attribution>Some One</attribution>
+<para>A quot—ation
+</para></blockquote>
+<note><attribution>Some Notifier</attribution>
+<para>A Note
+</para></note>';
+
1;
Index: t/results/quotation/space_at_commands_end_quotation_line.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/quotation/space_at_commands_end_quotation_line.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/quotation/space_at_commands_end_quotation_line.pl 13 Jul 2011
14:49:12 -0000 1.6
+++ t/results/quotation/space_at_commands_end_quotation_line.pl 18 Sep 2011
20:34:38 -0000 1.7
@@ -353,4 +353,21 @@
@ at the end of line : A @ at the end of the @quotation line.
';
+
+$result_converted{'xml'}->{'space_at_commands_end_quotation_line'} = '
+<quotation><quotationtype>&arobase; at the end of line <spacecmd
type="nl"/></quotationtype><para>A &arobase; at the end of the
&arobase;quotation line.
+</para></quotation>
+
+<quotation><quotationtype>&arobase;<spacecmd type="spc"/> at the end of line
<spacecmd type="spc"/></quotationtype>
+<para>A &arobase;<spacecmd type="spc"/> at the end of the &arobase;quotation
line.
+</para></quotation>
+';
+
+
+$result_converted{'docbook'}->{'space_at_commands_end_quotation_line'} = '
+<blockquote><para><emphasis role="bold">@ at the end of line
 :</emphasis> A @ at the end of the @quotation line.
+</para></blockquote>
+<blockquote><para><emphasis role="bold">@  at the end of line
 :</emphasis> A @  at the end of the @quotation line.
+</para></blockquote>';
+
1;
Index: t/results/quotation/standard_quotations.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/quotation/standard_quotations.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- t/results/quotation/standard_quotations.pl 13 Jul 2011 14:49:12 -0000
1.5
+++ t/results/quotation/standard_quotations.pl 18 Sep 2011 20:34:38 -0000
1.6
@@ -786,4 +786,44 @@
Warning: a Warning.
';
+
+$result_converted{'xml'}->{'standard_quotations'} =
'<quotation><quotationtype>Note</quotationtype>
+<para>A Note
+</para></quotation>
+
+<quotation><quotationtype>note</quotationtype>
+<para>A note
+</para></quotation>
+
+<quotation><quotationtype>Caution</quotationtype>
+<para>Caution
+</para></quotation>
+
+<quotation><quotationtype>Important</quotationtype>
+<para>Important
+</para></quotation>
+
+<quotation><quotationtype>Tip</quotationtype>
+<para>a Tip
+</para></quotation>
+
+<quotation><quotationtype>Warning</quotationtype>
+<para>a Warning.
+</para></quotation>
+';
+
+
+$result_converted{'docbook'}->{'standard_quotations'} = '<note><para>A Note
+</para></note>
+<note><para>A note
+</para></note>
+<caution><para>Caution
+</para></caution>
+<important><para>Important
+</para></important>
+<tip><para>a Tip
+</para></tip>
+<warning><para>a Warning.
+</para></warning>';
+
1;
Index: t/docbook_tests.t
===================================================================
RCS file: t/docbook_tests.t
diff -N t/docbook_tests.t
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/docbook_tests.t 18 Sep 2011 20:34:38 -0000 1.1
@@ -0,0 +1,26 @@
+use strict;
+
+require 't/test_utils.pl';
+
+my @test_cases = (
+['empty_quotation_with_arg_followed_by_quotation',
+'@quotation something
address@hidden quotation
+
address@hidden
+In quotation
address@hidden quotation
+'],
+);
+
+foreach my $test (@test_cases) {
+ $test->[2]->{'test_formats'} = ['docbook'];
+}
+
+our ($arg_test_case, $arg_generate, $arg_debug);
+
+run_all ('docbook_tests', address@hidden, $arg_test_case,
+ $arg_generate, $arg_debug);
+
+1;
+
Index: t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
===================================================================
RCS file:
t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
diff -N
t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/docbook_tests/empty_quotation_with_arg_followed_by_quotation.pl
18 Sep 2011 20:34:38 -0000 1.1
@@ -0,0 +1,230 @@
+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);
+
+use utf8;
+
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'} = {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'something'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'space_at_end_block_command'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'quotation',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'quotation'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'command' => {},
+ 'command_argument' => 'quotation',
+ 'text_arg' => 'quotation'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'block_command_line_contents' => [
+ [
+ {}
+ ]
+ ],
+ 'end_command' => {}
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'quotation',
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'In quotation
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'quotation'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'command' => {},
+ 'command_argument' => 'quotation',
+ 'text_arg' => 'quotation'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'end_command' => {}
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'extra'}{'block_command_line_contents'}[0][0]
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'extra'}{'end_command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'contents'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[0]{'parent'}
= $result_trees{'empty_quotation_with_arg_followed_by_quotation'};
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[1]{'parent'}
= $result_trees{'empty_quotation_with_arg_followed_by_quotation'};
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[1];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[1]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'args'}[0]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'extra'}{'command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2]{'parent'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'extra'}{'end_command'}
=
$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'contents'}[2];
+$result_trees{'empty_quotation_with_arg_followed_by_quotation'}{'contents'}[2]{'parent'}
= $result_trees{'empty_quotation_with_arg_followed_by_quotation'};
+
+$result_texis{'empty_quotation_with_arg_followed_by_quotation'} = '@quotation
something
address@hidden quotation
+
address@hidden
+In quotation
address@hidden quotation
+';
+
+
+$result_texts{'empty_quotation_with_arg_followed_by_quotation'} = 'something
+
+In quotation
+';
+
+$result_errors{'empty_quotation_with_arg_followed_by_quotation'} = [];
+
+
+
+$result_converted{'docbook'}->{'empty_quotation_with_arg_followed_by_quotation'}
= '<blockquote></blockquote>
+<blockquote><para>In quotation
+</para></blockquote>';
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/tp Texinfo/Convert/DocBook.pm t/181quot...,
Patrice Dumas <=