[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/HTML.pm (_html_set_pages_fil
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/HTML.pm (_html_set_pages_files) (_prepare_special_elements, output): do not call set_tree_unit_file in _prepare_special_elements, it will be called in _html_set_pages_files if needed. Initialize file counters in _html_set_pages_files. If $document_name is not set in _prepare_special_elements, do not try to set a separate special element file name. |
Date: |
Sun, 09 Oct 2022 18:40:44 -0400 |
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 865fc29526 * tp/Texinfo/Convert/HTML.pm (_html_set_pages_files)
(_prepare_special_elements, output): do not call set_tree_unit_file in
_prepare_special_elements, it will be called in _html_set_pages_files if
needed. Initialize file counters in _html_set_pages_files. If $document_name
is not set in _prepare_special_elements, do not try to set a separate special
element file name.
865fc29526 is described below
commit 865fc29526589a656522ecc797f035d0f8a96215
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Oct 10 00:40:32 2022 +0200
* tp/Texinfo/Convert/HTML.pm (_html_set_pages_files)
(_prepare_special_elements, output): do not call set_tree_unit_file
in _prepare_special_elements, it will be called in
_html_set_pages_files if needed. Initialize file counters in
_html_set_pages_files. If $document_name is not set in
_prepare_special_elements, do not try to set a separate special
element file name.
---
ChangeLog | 10 +
tp/TODO | 2 +-
tp/Texinfo/Convert/Converter.pm | 2 -
tp/Texinfo/Convert/HTML.pm | 36 +-
tp/t/html_tests.t | 19 +
...otnotestyle_separate_html_text_no_monolithic.pl | 438 +++++++++++++++
tp/t/results/html_tests/split_html_text.pl | 610 +++++++++++++++++++++
7 files changed, 1093 insertions(+), 24 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bdc7d106f0..b186f1f531 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-10-09 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/HTML.pm (_html_set_pages_files)
+ (_prepare_special_elements, output): do not call set_tree_unit_file
+ in _prepare_special_elements, it will be called in
+ _html_set_pages_files if needed. Initialize file counters in
+ _html_set_pages_files. If $document_name is not set in
+ _prepare_special_elements, do not try to set a separate special
+ element file name.
+
2022-10-09 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/IXIN.pm, tp/Texinfo/Convert/Text.pm
diff --git a/tp/TODO b/tp/TODO
index a009419d33..fc1583294e 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -14,7 +14,7 @@ check same keys for
global_unique document_settable_unique_at_commands
global document_settable_multiple_at_commands
-check separate elements and also SPLIT with convert(), in tests html_text.
+FIXME in set_tree_unit_file
Add in_math (for /)?
diff --git a/tp/Texinfo/Convert/Converter.pm b/tp/Texinfo/Convert/Converter.pm
index 03ddcd3770..7b6dd700ea 100644
--- a/tp/Texinfo/Convert/Converter.pm
+++ b/tp/Texinfo/Convert/Converter.pm
@@ -784,8 +784,6 @@ sub set_tree_unit_file($$$$;$)
}
$tree_unit->{'structure'} = {} if (!($tree_unit->{'structure'}));
if (exists($tree_unit->{'structure'}->{'unit_filename'})) {
- # FIXME happens for added elements, also no_monolithic, but probably also
- # for added elements.
# FIXME happens in navigation_test_misc_file_collision, to investigate
if ($tree_unit->{'structure'}->{'unit_filename'} eq $filename) {
print STDERR "set_tree_unit_file: already set: $filename\n"
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 7854df4916..4a31ea24fc 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -7779,6 +7779,8 @@ sub _html_set_pages_files($$$$$$$$)
# Ensure that the document has pages
return undef if (!defined($tree_units) or !@$tree_units);
+ $self->initialize_tree_units_files();
+
my $extension = '';
$extension = '.'.$self->get_conf('EXTENSION')
if (defined($self->get_conf('EXTENSION'))
@@ -8035,7 +8037,9 @@ sub _prepare_special_elements($$$$)
my $target =
$self->{'special_elements_targets'}->{$special_element_variety};
my $default_filename;
- if ($self->get_conf('SPLIT') or !$self->get_conf('MONOLITHIC')) {
+ if ($self->get_conf('SPLIT') or !$self->get_conf('MONOLITHIC')
+ # in general $document_name not defined means called through convert
+ and defined($document_name)) {
$default_filename = $document_name.
$self->{'special_elements_file_string'}->{$special_element_variety};
$default_filename .= '.'.$extension if (defined($extension));
@@ -8060,13 +8064,6 @@ sub _prepare_special_elements($$$$)
print STDERR "Add special $element $special_element_variety: target
$target,\n".
" filename $fileout\n";
}
- if ($self->get_conf('SPLIT') or !$self->get_conf('MONOLITHIC')
- or (defined($filename) ne defined($default_filename))
- or (defined($filename) and $filename ne $default_filename)) {
- $self->set_tree_unit_file($element, $filename, $destination_directory);
- print STDERR "NEW page for $special_element_variety ($filename)\n"
- if ($self->get_conf('DEBUG'));
- }
$self->{'targets'}->{$element} = {'target' => $target,
'special_element_filename' => $filename,
};
@@ -9434,9 +9431,6 @@ sub convert($$)
# Some information is not available yet.
$self->_reset_info();
- # FIXME set_tree_unit_file is called in _prepare_conversion_tree_units
- # but there should not be files if called with convert. There is probably
- # some trouble only if MONOLITHIC is false or SPLIT.
my ($tree_units, $special_elements)
= $self->_prepare_conversion_tree_units($root, undef, undef);
@@ -9713,12 +9707,6 @@ sub output($$)
# Some information is not available yet.
$self->_reset_info();
- # FIXME set_tree_unit_file is called in _prepare_conversion_tree_units
- # and may or most probably will be called again in _html_set_pages_files.
- $self->initialize_tree_units_files();
- # only in HTML, not in Texinfo::Convert::Converter
- $self->{'elements_in_file_count'} = {};
-
# Get the list of "elements" to be processed, i.e. nodes or sections.
# This should return undef if called on a tree without node or sections.
my ($tree_units, $special_elements)
@@ -9762,10 +9750,15 @@ sub output($$)
$self->_prepare_index_entries();
$self->_prepare_footnotes();
- # 'file_counters' is dynamic, decreased when the element is encountered
- # 'elements_in_file_count' is not modified afterwards
- foreach my $filename (keys(%{$self->{'file_counters'}})) {
- $self->{'elements_in_file_count'}->{$filename} =
$self->{'file_counters'}->{$filename};
+ # only in HTML, not in Texinfo::Convert::Converter
+ $self->{'elements_in_file_count'} = {};
+ # condition could also be based on $output_file ne ''
+ if ($self->{'file_counters'}) {
+ # 'file_counters' is dynamic, decreased when the element is encountered
+ # 'elements_in_file_count' is not modified afterwards
+ foreach my $filename (keys(%{$self->{'file_counters'}})) {
+ $self->{'elements_in_file_count'}->{$filename} =
$self->{'file_counters'}->{$filename};
+ }
}
# set information, to have it ready for
@@ -9931,6 +9924,7 @@ sub output($$)
my $encoded_no_page_out_filepath;
my $no_page_out_filepath;
if ($self->{'current_filename'} ne ''
+ and $self->{'out_filepaths'}
and defined($self->{'out_filepaths'}->{$self->{'current_filename'}})) {
my $path_encoding;
$no_page_out_filepath
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index 68b1f29676..e7cd6666b6 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -608,6 +608,25 @@ node name}
'],
['mathjax_with_texinfo_html_text',
$mathjax_with_texinfo, {}, {'HTML_MATH' => 'mathjax'}],
+['split_html_text',
+'@node Top
+@top top
+In top
+
+@node chap
+@chapter Chap
+', {'test_split' => 'node'}, {'SPLIT' => 'node'}],
+['footnotestyle_separate_html_text_no_monolithic',
+'@footnotestyle separate
+
+@node Top
+@top top
+In top@footnote{Additional text}.
+
+@node chap
+@chapter Chap
+
+',{}, {'MONOLITHIC' => 0},],
);
my @test_cases_file_text = (
diff --git
a/tp/t/results/html_tests/footnotestyle_separate_html_text_no_monolithic.pl
b/tp/t/results/html_tests/footnotestyle_separate_html_text_no_monolithic.pl
new file mode 100644
index 0000000000..912baac13f
--- /dev/null
+++ b/tp/t/results/html_tests/footnotestyle_separate_html_text_no_monolithic.pl
@@ -0,0 +1,438 @@
+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{'footnotestyle_separate_html_text_no_monolithic'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'separate'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'footnotestyle',
+ 'extra' => {
+ 'misc_args' => [
+ 'separate'
+ ],
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Top'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top',
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'top'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'In top'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Additional text'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_context'
+ }
+ ],
+ 'cmdname' => 'footnote',
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => '.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'chap'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'chap'
+ }
+ ],
+ 'normalized' => 'chap',
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Chap'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 8,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[0]{'parent'}
= $result_trees{'footnotestyle_separate_html_text_no_monolithic'};
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'args'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[1]{'parent'}
= $result_trees{'footnotestyle_separate_html_text_no_monolithic'};
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'args'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'args'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'contents'}[1]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[2]{'parent'}
= $result_trees{'footnotestyle_separate_html_text_no_monolithic'};
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'args'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'args'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[3]{'parent'}
= $result_trees{'footnotestyle_separate_html_text_no_monolithic'};
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4]{'args'}[0];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4]{'args'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4]{'contents'}[0]{'parent'}
=
$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4];
+$result_trees{'footnotestyle_separate_html_text_no_monolithic'}{'contents'}[4]{'parent'}
= $result_trees{'footnotestyle_separate_html_text_no_monolithic'};
+
+$result_texis{'footnotestyle_separate_html_text_no_monolithic'} =
'@footnotestyle separate
+
+@node Top
+@top top
+In top@footnote{Additional text}.
+
+@node chap
+@chapter Chap
+
+';
+
+
+$result_texts{'footnotestyle_separate_html_text_no_monolithic'} = '
+top
+***
+In top.
+
+1 Chap
+******
+
+';
+
+$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'} = {
+ 'structure' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'structure' => {}
+ }
+ },
+ 'structure' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chap'
+ },
+ 'structure' => {}
+ }
+ },
+ 'structure' => {
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
=
$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
=
$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
=
$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'footnotestyle_separate_html_text_no_monolithic'};
+
+$result_nodes{'footnotestyle_separate_html_text_no_monolithic'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {},
+ 'structure' => {}
+ },
+ 'normalized' => 'Top'
+ },
+ 'structure' => {
+ 'node_next' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'structure' => {
+ 'section_number' => 1
+ }
+ },
+ 'normalized' => 'chap'
+ },
+ 'structure' => {
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ }
+ }
+};
+$result_nodes{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
= $result_nodes{'footnotestyle_separate_html_text_no_monolithic'};
+$result_nodes{'footnotestyle_separate_html_text_no_monolithic'}{'structure'}{'node_next'}{'structure'}{'node_up'}
= $result_nodes{'footnotestyle_separate_html_text_no_monolithic'};
+
+$result_menus{'footnotestyle_separate_html_text_no_monolithic'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'structure' => {}
+};
+
+$result_errors{'footnotestyle_separate_html_text_no_monolithic'} = [];
+
+
+$result_floats{'footnotestyle_separate_html_text_no_monolithic'} = {};
+
+
+
+$result_converted{'html_text'}->{'footnotestyle_separate_html_text_no_monolithic'}
= '
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+ </p>
+</div>
+<h1 class="top" id="top">top</h1>
+<p>In top<a class="footnote" id="DOCF1" href="#FOOT1"><sup>1</sup></a>.
+</p>
+<ul class="mini-toc">
+<li><a href="#chap" accesskey="1">Chap</a></li>
+</ul>
+<hr>
+<div class="chapter-level-extent" id="chap">
+<div class="nav-panel">
+<p>
+ </p>
+</div>
+<h2 class="chapter" id="Chap">1 Chap</h2>
+
+</div>
+</div>
+<div class="element-footnotes" id="SEC_Footnotes">
+<div class="nav-panel">
+<p>
+ </p>
+</div>
+<h4 class="footnotes-heading">Footnotes</h4>
+
+<h5 class="footnote-body-heading"><a id="FOOT1" href="#DOCF1">(1)</a></h5>
+<p>Additional text</p>
+</div><hr>
+<div class="nav-panel">
+<p>
+ </p>
+</div>
+';
+
+1;
diff --git a/tp/t/results/html_tests/split_html_text.pl
b/tp/t/results/html_tests/split_html_text.pl
new file mode 100644
index 0000000000..f5426a6f6c
--- /dev/null
+++ b/tp/t/results/html_tests/split_html_text.pl
@@ -0,0 +1,610 @@
+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{'split_html_text'} = [
+ {
+ 'contents' => [
+ {
+ 'parent' => {
+ 'contents' => [
+ {},
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Top'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top',
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'top'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'In top
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'chap'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'chap'
+ }
+ ],
+ 'normalized' => 'chap',
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Chap'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'type' => 'document_root'
+ },
+ 'type' => 'before_node_section'
+ },
+ {},
+ {}
+ ],
+ 'extra' => {
+ 'unit_command' => {}
+ },
+ 'type' => 'unit'
+ },
+ {
+ 'contents' => [
+ {},
+ {}
+ ],
+ 'extra' => {
+ 'unit_command' => {}
+ },
+ 'type' => 'unit'
+ }
+];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[0] =
$result_trees{'split_html_text'}[0]{'contents'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'args'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'};
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'args'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'args'}[0]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'contents'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'contents'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'contents'}[1]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'};
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'args'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'args'}[0]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'};
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[4]{'args'}[0];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[4]{'args'}[0]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[4];
+$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[4]{'parent'}
= $result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'};
+$result_trees{'split_html_text'}[0]{'contents'}[1] =
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1];
+$result_trees{'split_html_text'}[0]{'contents'}[2] =
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[2];
+$result_trees{'split_html_text'}[0]{'extra'}{'unit_command'} =
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[1];
+$result_trees{'split_html_text'}[1]{'contents'}[0] =
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3];
+$result_trees{'split_html_text'}[1]{'contents'}[1] =
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[4];
+$result_trees{'split_html_text'}[1]{'extra'}{'unit_command'} =
$result_trees{'split_html_text'}[0]{'contents'}[0]{'parent'}{'contents'}[3];
+
+$result_texis{'split_html_text'} = '@node Top
+@top top
+In top
+
+@node chap
+@chapter Chap
+';
+
+
+$result_texts{'split_html_text'} = 'top
+***
+In top
+
+1 Chap
+******
+';
+
+$result_sectioning{'split_html_text'} = {
+ 'structure' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'structure' => {
+ 'associated_unit' => {
+ 'extra' => {
+ 'unit_command' => {}
+ },
+ 'structure' => {
+ 'directions' => {
+ 'FastForward' => {
+ 'extra' => {
+ 'unit_command' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chap'
+ },
+ 'structure' => {
+ 'associated_unit' => {}
+ }
+ }
+ },
+ 'structure' => {
+ 'directions' => {
+ 'Back' => {},
+ 'FastBack' => {},
+ 'NodeBack' => {},
+ 'NodePrev' => {},
+ 'NodeUp' => {},
+ 'This' => {},
+ 'Up' => {}
+ },
+ 'unit_prev' => {}
+ },
+ 'type' => 'unit'
+ },
+ 'Forward' => {},
+ 'NodeForward' => {},
+ 'NodeNext' => {},
+ 'This' => {}
+ },
+ 'unit_next' => {}
+ },
+ 'type' => 'unit'
+ }
+ }
+ }
+ },
+ 'structure' => {
+ 'associated_unit' => {},
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {}
+ },
+ 'structure' => {
+ 'associated_unit' => {},
+ 'section_level' => 1,
+ 'section_number' => 1,
+ 'section_up' => {},
+ 'toplevel_prev' => {},
+ 'toplevel_up' => {}
+ }
+ }
+ ],
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'extra'}{'unit_command'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'structure'}{'associated_unit'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Back'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'FastBack'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeBack'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodePrev'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeUp'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'This'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Up'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'unit_prev'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'Forward'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'NodeForward'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'NodeNext'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'This'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'unit_next'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'associated_unit'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'associated_unit'}
=
$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'extra'}{'associated_node'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_prev'}
= $result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'toplevel_up'}
= $result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'split_html_text'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'split_html_text'};
+
+$result_nodes{'split_html_text'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {},
+ 'structure' => {
+ 'associated_unit' => {
+ 'extra' => {
+ 'unit_command' => {}
+ },
+ 'structure' => {
+ 'directions' => {
+ 'FastForward' => {
+ 'extra' => {
+ 'unit_command' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'structure' => {
+ 'associated_unit' => {},
+ 'section_number' => 1
+ }
+ },
+ 'normalized' => 'chap'
+ },
+ 'structure' => {
+ 'associated_unit' => {},
+ 'node_prev' => {},
+ 'node_up' => {}
+ }
+ }
+ },
+ 'structure' => {
+ 'directions' => {
+ 'Back' => {},
+ 'FastBack' => {},
+ 'NodeBack' => {},
+ 'NodePrev' => {},
+ 'NodeUp' => {},
+ 'This' => {},
+ 'Up' => {}
+ },
+ 'unit_prev' => {}
+ },
+ 'type' => 'unit'
+ },
+ 'Forward' => {},
+ 'NodeForward' => {},
+ 'NodeNext' => {},
+ 'This' => {}
+ },
+ 'unit_next' => {}
+ },
+ 'type' => 'unit'
+ }
+ }
+ },
+ 'normalized' => 'Top'
+ },
+ 'structure' => {
+ 'associated_unit' => {},
+ 'node_next' => {}
+ }
+};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'extra'}{'unit_command'}
= $result_nodes{'split_html_text'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'structure'}{'associated_unit'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'structure'}{'node_prev'}
= $result_nodes{'split_html_text'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'structure'}{'node_up'}
= $result_nodes{'split_html_text'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Back'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'FastBack'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeBack'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodePrev'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeUp'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'This'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Up'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'unit_prev'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'Forward'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'NodeForward'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'NodeNext'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'This'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'unit_next'}
=
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_nodes{'split_html_text'}{'structure'}{'associated_unit'} =
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'};
+$result_nodes{'split_html_text'}{'structure'}{'node_next'} =
$result_nodes{'split_html_text'}{'extra'}{'associated_section'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'};
+
+$result_menus{'split_html_text'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'structure' => {
+ 'associated_unit' => {
+ 'extra' => {
+ 'unit_command' => {}
+ },
+ 'structure' => {
+ 'directions' => {
+ 'FastForward' => {
+ 'extra' => {
+ 'unit_command' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chap'
+ },
+ 'structure' => {
+ 'associated_unit' => {}
+ }
+ }
+ },
+ 'structure' => {
+ 'directions' => {
+ 'Back' => {},
+ 'FastBack' => {},
+ 'NodeBack' => {},
+ 'NodePrev' => {},
+ 'NodeUp' => {},
+ 'This' => {},
+ 'Up' => {}
+ },
+ 'unit_prev' => {}
+ },
+ 'type' => 'unit'
+ },
+ 'Forward' => {},
+ 'NodeForward' => {},
+ 'NodeNext' => {},
+ 'This' => {}
+ },
+ 'unit_next' => {}
+ },
+ 'type' => 'unit'
+ }
+ }
+};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'extra'}{'unit_command'}
= $result_menus{'split_html_text'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'structure'}{'associated_unit'}
=
$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Back'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'FastBack'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeBack'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodePrev'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeUp'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'This'}
=
$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Up'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'}{'structure'}{'unit_prev'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'Forward'}
=
$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'NodeForward'}
=
$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'NodeNext'}
=
$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'This'}
= $result_menus{'split_html_text'}{'structure'}{'associated_unit'};
+$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'unit_next'}
=
$result_menus{'split_html_text'}{'structure'}{'associated_unit'}{'structure'}{'directions'}{'FastForward'};
+
+$result_errors{'split_html_text'} = [];
+
+
+$result_floats{'split_html_text'} = {};
+
+
+$result_elements{'split_html_text'} = [
+ {
+ 'extra' => {
+ 'unit_command' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'structure' => {
+ 'associated_unit' => {}
+ }
+ }
+ },
+ 'structure' => {
+ 'directions' => {
+ 'FastForward' => {
+ 'extra' => {
+ 'unit_command' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chap'
+ },
+ 'structure' => {
+ 'associated_unit' => {}
+ }
+ }
+ },
+ 'structure' => {
+ 'directions' => {
+ 'Back' => {},
+ 'FastBack' => {},
+ 'NodeBack' => {},
+ 'NodePrev' => {},
+ 'NodeUp' => {},
+ 'This' => {},
+ 'Up' => {}
+ }
+ },
+ 'type' => 'unit'
+ },
+ 'Forward' => {},
+ 'NodeForward' => {},
+ 'NodeNext' => {},
+ 'This' => {}
+ }
+ },
+ 'type' => 'unit'
+ },
+ {}
+];
+$result_elements{'split_html_text'}[0]{'extra'}{'unit_command'}{'structure'}{'associated_unit'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'extra'}{'unit_command'}{'structure'}{'associated_unit'}
=
$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'};
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Back'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'FastBack'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeBack'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodePrev'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'NodeUp'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'This'}
=
$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'};
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'}{'structure'}{'directions'}{'Up'}
= $result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'Forward'} =
$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'};
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'NodeForward'}
=
$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'};
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'NodeNext'}
=
$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'};
+$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'This'} =
$result_elements{'split_html_text'}[0];
+$result_elements{'split_html_text'}[1] =
$result_elements{'split_html_text'}[0]{'structure'}{'directions'}{'FastForward'};
+
+
+
+$result_directions_text{'split_html_text'} = 'element: @node Top
+ FastForward: @node chap
+ Forward: @node chap
+ NodeForward: @node chap
+ NodeNext: @node chap
+ This: @node Top
+element: @node chap
+ Back: @node Top
+ FastBack: @node Top
+ NodeBack: @node Top
+ NodePrev: @node Top
+ NodeUp: @node Top
+ This: @node chap
+ Up: @node Top
+';
+
+
+$result_converted{'html_text'}->{'split_html_text'} = '<div
class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+ </p>
+</div>
+<hr>
+<h1 class="top" id="top">top</h1>
+<p>In top
+</p>
+<ul class="mini-toc">
+<li><a href="#chap" accesskey="1">Chap</a></li>
+</ul>
+<hr>
+<div class="chapter-level-extent" id="chap">
+<div class="nav-panel">
+<p>
+ </p>
+</div>
+<hr>
+<h2 class="chapter" id="Chap">1 Chap</h2>
+</div>
+</div>
+';
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/HTML.pm (_html_set_pages_files) (_prepare_special_elements, output): do not call set_tree_unit_file in _prepare_special_elements, it will be called in _html_set_pages_files if needed. Initialize file counters in _html_set_pages_files. If $document_name is not set in _prepare_special_elements, do not try to set a separate special element file name.,
Patrice Dumas <=