[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Use @cartouche argument as cartouche title in tex
From: |
Patrice Dumas |
Subject: |
branch master updated: Use @cartouche argument as cartouche title in texi2any |
Date: |
Tue, 20 Dec 2022 17:53:47 -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 6de28d2066 Use @cartouche argument as cartouche title in texi2any
6de28d2066 is described below
commit 6de28d2066040582e983ba1f7db609598011e99d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Dec 20 23:49:59 2022 +0100
Use @cartouche argument as cartouche title in texi2any
* tp/Texinfo/Convert/DocBook.pm (_convert), tp/Texinfo/Convert/HTML.pm
(_convert_cartouche_command, _convert), tp/Texinfo/Convert/LaTeX.pm
(_set_environment_options), tp/Texinfo/Convert/Plaintext.pm
(_convert), tp/Texinfo/Convert/TexinfoMarkup.pm
(%commands_args_elements), tp/Texinfo/Convert/Text.pm (_convert),
tp/Texinfo/command_data.txt, util/texinfo.dtd: add an argument to
@cartouche. Format the @cartouche argument as the cartouche title.
Based on a report from Arnold Robbins.
* tp/t/02coverage.t: add @cartouche argument in cartouche and
comment_on_cartouche_line tests.
* tp/tests/coverage_macro.texi: add @cartouche with argument.
---
ChangeLog | 18 +
tp/Texinfo/Convert/DocBook.pm | 9 +
tp/Texinfo/Convert/HTML.pm | 18 +-
tp/Texinfo/Convert/LaTeX.pm | 12 +-
tp/Texinfo/Convert/Plaintext.pm | 13 +
tp/Texinfo/Convert/TexinfoMarkup.pm | 1 +
tp/Texinfo/Convert/Text.pm | 3 +-
tp/Texinfo/XS/parsetexi/commands.h | 1 +
tp/Texinfo/command_data.txt | 2 +-
tp/t/02coverage.t | 11 +-
tp/t/results/coverage/cartouche.pl | 120 ++-
tp/t/results/coverage/comment_on_cartouche_line.pl | 125 +++
tp/tests/coverage_macro.texi | 4 +
.../layout/res_parser/formatting/formatting.html | 29 +
.../layout/res_parser/formatting_chm/anchor.html | 3 +
.../layout/res_parser/formatting_chm/chapter.html | 19 +
.../layout/res_parser/formatting_chm/chapter2.html | 3 +
.../res_parser/formatting_chm/formatting.html | 13 +
.../res_parser/formatting_chm/formatting_abt.html | 3 +
.../res_parser/formatting_chm/formatting_ovr.html | 3 +
.../res_parser/formatting_chm/formatting_toc.html | 3 +
.../layout/res_parser/formatting_chm/index.html | 3 +
.../formatting_chm/s_002d_002dect_002cion.html | 3 +
.../res_parser/formatting_chm/subsection.html | 3 +
...tion-_0060_0060simple_002ddouble_002d_002d.html | 3 +
...02d_002dfour_002d_002d_002d_002d_0027_0027.html | 3 +
.../res_parser/formatting_docbook/formatting.xml | 12 +
.../formatting_enable_encoding/formatting.html | 29 +
.../EPUB/xhtml/chapter.xhtml | 19 +
.../EPUB/xhtml/chapter2.xhtml | 3 +
.../EPUB/xhtml/formatting.xhtml | 13 +
.../EPUB/xhtml/formatting_abt.xhtml | 3 +
.../EPUB/xhtml/formatting_fot.xhtml | 3 +
.../EPUB/xhtml/formatting_ovr.xhtml | 3 +
.../EPUB/xhtml/formatting_toc.xhtml | 3 +
.../EPUB/xhtml/chapter.xhtml | 19 +
.../EPUB/xhtml/chapter2.xhtml | 3 +
.../EPUB/xhtml/formatting.xhtml | 13 +
.../EPUB/xhtml/formatting_abt.xhtml | 3 +
.../EPUB/xhtml/formatting_fot.xhtml | 3 +
.../EPUB/xhtml/formatting_ovr.xhtml | 3 +
.../EPUB/xhtml/formatting_toc.xhtml | 3 +
.../EPUB/xhtml/s_002d_002dect_002cion.xhtml | 3 +
.../EPUB/xhtml/subsection.xhtml | 3 +
...ion-_0060_0060simple_002ddouble_002d_002d.xhtml | 3 +
...2d_002dfour_002d_002d_002d_002d_0027_0027.xhtml | 3 +
.../res_parser/formatting_exotic/anchor.html | 3 +
.../res_parser/formatting_exotic/chapter.html | 19 +
.../res_parser/formatting_exotic/chapter2.html | 3 +
.../formatting_exotic/formatting_abt.html | 3 +
.../formatting_exotic/formatting_ovr.html | 3 +
.../formatting_exotic/formatting_toc.html | 3 +
.../layout/res_parser/formatting_exotic/index.html | 3 +
.../formatting_exotic/s_002d_002dect_002cion.html | 3 +
.../res_parser/formatting_exotic/subsection.html | 3 +
...tion-_0060_0060simple_002ddouble_002d_002d.html | 3 +
...02d_002dfour_002d_002d_002d_002d_0027_0027.html | 3 +
.../res_parser/formatting_fr_icons/formatting.html | 29 +
.../res_parser/formatting_html/formatting.html | 29 +
.../res_parser/formatting_html32/formatting.html | 29 +
.../formatting_html_no_texi2html/formatting.html | 19 +
.../res_parser/formatting_html_nodes/anchor.html | 3 +
.../res_parser/formatting_html_nodes/chapter.html | 19 +
.../res_parser/formatting_html_nodes/chapter2.html | 3 +
.../formatting_html_nodes/formatting_abt.html | 3 +
.../formatting_html_nodes/formatting_fot.html | 3 +
.../formatting_html_nodes/formatting_ovr.html | 3 +
.../formatting_html_nodes/formatting_toc.html | 3 +
.../res_parser/formatting_html_nodes/index.html | 13 +
.../s_002d_002dect_002cion.html | 3 +
.../formatting_html_nodes/subsection.html | 3 +
...tion-_0060_0060simple_002ddouble_002d_002d.html | 3 +
...02d_002dfour_002d_002d_002d_002d_0027_0027.html | 3 +
.../res_parser/formatting_info/formatting.info | 840 +++++++++++----------
.../formatting.info | 840 +++++++++++----------
.../formatting_inline_css/formatting.html | 29 +
.../res_parser/formatting_latex/formatting.tex | 24 +
.../formatting_macro_expand/formatting.texi | 20 +
.../res_parser/formatting_mathjax/formatting.html | 29 +
.../layout/res_parser/formatting_nodes/anchor.html | 3 +
.../res_parser/formatting_nodes/chapter.html | 19 +
.../res_parser/formatting_nodes/chapter2.html | 3 +
.../formatting_nodes/formatting_abt.html | 3 +
.../formatting_nodes/formatting_fot.html | 3 +
.../formatting_nodes/formatting_ovr.html | 3 +
.../formatting_nodes/formatting_toc.html | 3 +
.../layout/res_parser/formatting_nodes/index.html | 13 +
.../formatting_nodes/s_002d_002dect_002cion.html | 3 +
.../res_parser/formatting_nodes/subsection.html | 3 +
...tion-_0060_0060simple_002ddouble_002d_002d.html | 3 +
...02d_002dfour_002d_002d_002d_002d_0027_0027.html | 3 +
.../formatting_numerical_entities/formatting.html | 29 +
.../res_parser/formatting_plaintext/formatting.txt | 805 ++++++++++----------
.../res_parser/formatting_rawtext/formatting.txt | 6 +
.../formatting_regions/formatting_regions.html | 29 +
.../formatting_sort_element_counts/formatting.html | 29 +
.../formatting_elt_counts.txt | 4 +-
.../res_parser/formatting_textcontent/formatting | 12 +
.../formatting_weird_quotes/formatting.html | 29 +
.../res_parser/formatting_xhtml/formatting.html | 29 +
.../res_parser/formatting_xml/formatting.xml | 20 +
.../res_parser/formatting_singular/anchor.html | 2 +
.../res_parser/formatting_singular/chapter.html | 15 +
.../res_parser/formatting_singular/chapter2.html | 2 +
.../res_parser/formatting_singular/index.htm | 2 +
.../res_parser/formatting_singular/index.html | 2 +
.../s_002d_002dect_002cion.html | 2 +
.../res_parser/formatting_singular/sing_abt.htm | 2 +
.../res_parser/formatting_singular/sing_fot.htm | 2 +
.../res_parser/formatting_singular/sing_ovr.htm | 2 +
.../res_parser/formatting_singular/sing_toc.htm | 2 +
.../res_parser/formatting_singular/subsection.html | 2 +
...tion-_0060_0060simple_002ddouble_002d_002d.html | 2 +
...02d_002dfour_002d_002d_002d_002d_0027_0027.html | 2 +
util/texinfo.dtd | 3 +-
115 files changed, 2432 insertions(+), 1238 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a59d31ed76..f98ea2ab34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2022-12-20 Patrice Dumas <pertusus@free.fr>
+
+ Use @cartouche argument as cartouche title in texi2any
+
+ * tp/Texinfo/Convert/DocBook.pm (_convert), tp/Texinfo/Convert/HTML.pm
+ (_convert_cartouche_command, _convert), tp/Texinfo/Convert/LaTeX.pm
+ (_set_environment_options), tp/Texinfo/Convert/Plaintext.pm
+ (_convert), tp/Texinfo/Convert/TexinfoMarkup.pm
+ (%commands_args_elements), tp/Texinfo/Convert/Text.pm (_convert),
+ tp/Texinfo/command_data.txt, util/texinfo.dtd: add an argument to
+ @cartouche. Format the @cartouche argument as the cartouche title.
+ Based on a report from Arnold Robbins.
+
+ * tp/t/02coverage.t: add @cartouche argument in cartouche and
+ comment_on_cartouche_line tests.
+
+ * tp/tests/coverage_macro.texi: add @cartouche with argument.
+
2022-11-19 Werner Lemberg <wl@gnu.org>
* doc/texinfo.tex (\code, \dashnobreak): Use a \penalty to disable
diff --git a/tp/Texinfo/Convert/DocBook.pm b/tp/Texinfo/Convert/DocBook.pm
index b984065510..5b49ed613c 100644
--- a/tp/Texinfo/Convert/DocBook.pm
+++ b/tp/Texinfo/Convert/DocBook.pm
@@ -1545,6 +1545,15 @@ sub _convert($$;$)
push @format_elements, $format_element;
} elsif ($element->{'cmdname'} eq 'cartouche') {
push @format_elements, 'sidebar';
+ if ($element->{'args'} and $element->{'args'}->[0]
+ and $element->{'args'}->[0]->{'contents'}
+ and @{$element->{'args'}->[0]->{'contents'}}) {
+ my $title = $self->_convert(
+ {'contents' => $element->{'args'}->[0]->{'contents'}});
+ if ($title ne '') {
+ $appended .= '<title>'.$title.'</title>'."\n";
+ }
+ }
} elsif ($Texinfo::Commands::block_commands{$element->{'cmdname'}} eq
'format_raw') {
return '' if
(!$self->{'expanded_formats_hash'}->{$element->{'cmdname'}});
# the context is here only for the command, so this is forgotten
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index f3084548fa..38906f3ec2 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -4835,9 +4835,20 @@ sub _convert_cartouche_command($$$$$)
my $args = shift;
my $content = shift;
- if ($content =~ /\S/ and !$self->in_string()) {
+ return $content if ($self->in_string());
+
+ my $title_content = '';
+ if ($args->[0] and $args->[0]->{'normal'} ne '') {
+ $title_content = "<tr><th>\n". $args->[0]->{'normal'} ."</th></tr>";
+ }
+ my $cartouche_content = '';
+ if ($content =~ /\S/) {
+ $cartouche_content = "<tr><td>\n". $content ."</td></tr>";
+ }
+ if ($cartouche_content ne '' or $title_content ne '') {
return $self->html_attribute_class('table', [$cmdname])
- ." border=\"1\"><tr><td>\n". $content ."</td></tr></table>\n";
+ . " border=\"1\">${title_content}${cartouche_content}"
+ . "</table>\n";
}
return $content;
}
@@ -11167,7 +11178,8 @@ sub _convert($$;$)
and $element->{'parent'}->{'type'} eq 'table_term'))
or ($command_name eq 'quotation'
or $command_name eq 'smallquotation')
- or ($command_name eq 'float')) {
+ or $command_name eq 'float'
+ or $command_name eq 'cartouche') {
$args_formatted = [];
if ($element->{'args'}) {
my @args_specification;
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 64e485bcc5..0fbe9c9dc2 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -2048,7 +2048,17 @@ sub _set_environment_options($$$)
my $element = shift;
if (exists($LaTeX_environment_options{$command})) {
- return $LaTeX_environment_options{$command};
+ my $option = $LaTeX_environment_options{$command};
+ if ($command eq 'cartouche'
+ and $element->{'args'} and $element->{'args'}->[0]
+ and $element->{'args'}->[0]->{'contents'}
+ and @{$element->{'args'}->[0]->{'contents'}}) {
+ $option
+ = {'mdframed' => $option->{'mdframed'}
+ . ', frametitle={' . $self->_convert({'contents'
+ => $element->{'args'}->[0]->{'contents'}}) .'}'};
+ }
+ return $option;
}
if ($command eq 'enumerate') {
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 3879948b42..05eecde0cd 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -2580,6 +2580,19 @@ sub _convert($$)
if ($element->{'extra'} and $element->{'extra'}->{'node_content'}) {
$result .= $self->_anchor($element);
}
+ } elsif ($command eq 'cartouche') {
+ if ($element->{'args'} and $element->{'args'}->[0]
+ and $element->{'args'}->[0]->{'contents'}
+ and @{$element->{'args'}->[0]->{'contents'}}) {
+ my $prepended = $self->gdt('@center @b{{cartouche_arg}}',
+ {'cartouche_arg' => $element->{'args'}->[0]->{'contents'}});
+ $prepended->{'type'} = 'frenchspacing';
+ $result .= $self->convert_line($prepended);
+ $self->{'text_element_context'}->[-1]->{'counter'} +=
+ Texinfo::Convert::Unicode::string_width($result);
+ $self->{'empty_lines_count'} = 0 unless ($result eq '');
+ _add_lines_count($self, 1);
+ }
}
} elsif ($command eq 'node') {
$self->{'current_node'} = $element;
diff --git a/tp/Texinfo/Convert/TexinfoMarkup.pm
b/tp/Texinfo/Convert/TexinfoMarkup.pm
index 271c2c6b6b..cb533dfded 100644
--- a/tp/Texinfo/Convert/TexinfoMarkup.pm
+++ b/tp/Texinfo/Convert/TexinfoMarkup.pm
@@ -190,6 +190,7 @@ our %commands_args_elements = (
# * means that the previous element is variadic, ie can appear indefinitely
'example' => ['examplelanguage', 'examplearg', '*'],
'quotation' => ['quotationtype'],
+ 'cartouche' => ['cartouchetitle'],
'float' => ['floattype', 'floatname'],
'itemize' => ['itemprepend'],
'enumerate' => ['enumeratefirst'],
diff --git a/tp/Texinfo/Convert/Text.pm b/tp/Texinfo/Convert/Text.pm
index fdec83a30e..bfa7aec535 100644
--- a/tp/Texinfo/Convert/Text.pm
+++ b/tp/Texinfo/Convert/Text.pm
@@ -542,7 +542,8 @@ sub _convert($;$)
# block commands
} elsif ($element->{'cmdname'} eq 'quotation'
or $element->{'cmdname'} eq 'smallquotation'
- or $element->{'cmdname'} eq 'float') {
+ or $element->{'cmdname'} eq 'float'
+ or $element->{'cmdname'} eq 'cartouche') {
if ($element->{'args'}) {
foreach my $arg (@{$element->{'args'}}) {
my $converted_arg = _convert($arg, $options);
diff --git a/tp/Texinfo/XS/parsetexi/commands.h
b/tp/Texinfo/XS/parsetexi/commands.h
index 75f85f9128..5b71074bdd 100644
--- a/tp/Texinfo/XS/parsetexi/commands.h
+++ b/tp/Texinfo/XS/parsetexi/commands.h
@@ -137,6 +137,7 @@ void wipe_user_commands (void);
#define BLOCK_preformatted -12
/* not used in code but consistent with type in perl hash */
#define BLOCK_math -13
+#define BLOCK_other -14
/* Types of brace command (CF_brace). */
#define BRACE_arguments 1
diff --git a/tp/Texinfo/command_data.txt b/tp/Texinfo/command_data.txt
index 2e98620647..7d5346801a 100644
--- a/tp/Texinfo/command_data.txt
+++ b/tp/Texinfo/command_data.txt
@@ -524,7 +524,7 @@ flushright block,close_paragraph
indentedblock block,close_paragraph
smallindentedblock block,close_paragraph
-cartouche block,close_paragraph
+cartouche block,close_paragraph BLOCK_other 1
group block,close_paragraph
# region commands
diff --git a/tp/t/02coverage.t b/tp/t/02coverage.t
index 014efe91ee..be67f545c4 100644
--- a/tp/t/02coverage.t
+++ b/tp/t/02coverage.t
@@ -321,7 +321,12 @@ After quotation sp b a
['cartouche',
'@cartouche
in cartouche.
-@end cartouche'],
+@end cartouche
+
+@cartouche @emph{Title of box}
+Out of main text
+@end cartouche
+'],
['indentedblock',
'@indentedblock
indented block
@@ -333,6 +338,10 @@ Text
'@cartouche @c comment
in cartouche.
@end cartouche
+
+@cartouche @emph{Title of box} @c comment
+Out of main text
+@end cartouche
'],
['comment_on_group_line',
'@group @c comment
diff --git a/tp/t/results/coverage/cartouche.pl
b/tp/t/results/coverage/cartouche.pl
index 36261bc016..25d374c42d 100644
--- a/tp/t/results/coverage/cartouche.pl
+++ b/tp/t/results/coverage/cartouche.pl
@@ -38,6 +38,10 @@ $result_trees{'cartouche'} = {
'text' => 'cartouche'
}
],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
'type' => 'line_arg'
}
],
@@ -60,6 +64,90 @@ $result_trees{'cartouche'} = {
'line_nr' => 1,
'macro' => ''
}
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Title of box'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'emph',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'cartouche',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Out of main text
+'
+ }
+ ],
+ 'type' => 'paragraph'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'cartouche'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'text_arg' => 'cartouche'
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
}
],
'type' => 'before_node_section'
@@ -70,10 +158,18 @@ $result_trees{'cartouche'} = {
$result_texis{'cartouche'} = '@cartouche
in cartouche.
-@end cartouche';
+@end cartouche
+
+@cartouche @emph{Title of box}
+Out of main text
+@end cartouche
+';
$result_texts{'cartouche'} = 'in cartouche.
+
+Title of box
+Out of main text
';
$result_errors{'cartouche'} = [];
@@ -84,27 +180,47 @@ $result_floats{'cartouche'} = {};
$result_converted{'plaintext'}->{'cartouche'} = 'in cartouche.
+
+ _Title of box_
+Out of main text
';
$result_converted{'html_text'}->{'cartouche'} = '<table class="cartouche"
border="1"><tr><td>
<p>in cartouche.
</p></td></tr></table>
+
+<table class="cartouche" border="1"><tr><th>
+<em class="emph">Title of box</em></th></tr><tr><td>
+<p>Out of main text
+</p></td></tr></table>
';
$result_converted{'xml'}->{'cartouche'} = '<cartouche endspaces=" ">
<para>in cartouche.
-</para></cartouche>';
+</para></cartouche>
+
+<cartouche spaces=" " endspaces=" "><cartouchetitle><emph>Title of
box</emph></cartouchetitle>
+<para>Out of main text
+</para></cartouche>
+';
$result_converted{'latex_text'}->{'cartouche'} =
'\\begin{mdframed}[style=Texinfocartouche]
in cartouche.
\\end{mdframed}
+
+\\begin{mdframed}[style=Texinfocartouche, frametitle={\\emph{Title of box}}]
+Out of main text
+\\end{mdframed}
';
$result_converted{'docbook'}->{'cartouche'} = '<sidebar><para>in cartouche.
+</para></sidebar>
+<sidebar><title><emphasis>Title of box</emphasis></title>
+<para>Out of main text
</para></sidebar>';
1;
diff --git a/tp/t/results/coverage/comment_on_cartouche_line.pl
b/tp/t/results/coverage/comment_on_cartouche_line.pl
index 946071a5f9..fc8bada810 100644
--- a/tp/t/results/coverage/comment_on_cartouche_line.pl
+++ b/tp/t/results/coverage/comment_on_cartouche_line.pl
@@ -81,6 +81,105 @@ $result_trees{'comment_on_cartouche_line'} = {
'line_nr' => 1,
'macro' => ''
}
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Title of box'
+ }
+ ],
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'emph',
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'info' => {
+ 'comment_at_end' => {
+ 'args' => [
+ {
+ 'text' => ' comment
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'c',
+ 'extra' => {
+ 'misc_args' => [
+ ' comment
+'
+ ]
+ }
+ },
+ 'spaces_after_argument' => ' '
+ },
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'cartouche',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Out of main text
+'
+ }
+ ],
+ 'type' => 'paragraph'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'cartouche'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'text_arg' => 'cartouche'
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ }
}
],
'type' => 'before_node_section'
@@ -92,10 +191,17 @@ $result_trees{'comment_on_cartouche_line'} = {
$result_texis{'comment_on_cartouche_line'} = '@cartouche @c comment
in cartouche.
@end cartouche
+
+@cartouche @emph{Title of box} @c comment
+Out of main text
+@end cartouche
';
$result_texts{'comment_on_cartouche_line'} = 'in cartouche.
+
+Title of box
+Out of main text
';
$result_errors{'comment_on_cartouche_line'} = [];
@@ -106,28 +212,47 @@ $result_floats{'comment_on_cartouche_line'} = {};
$result_converted{'plaintext'}->{'comment_on_cartouche_line'} = 'in cartouche.
+
+ _Title of box_
+Out of main text
';
$result_converted{'html_text'}->{'comment_on_cartouche_line'} = '<table
class="cartouche" border="1"><tr><td>
<p>in cartouche.
</p></td></tr></table>
+
+<table class="cartouche" border="1"><tr><th>
+<em class="emph">Title of box</em></th></tr><tr><td>
+<p>Out of main text
+</p></td></tr></table>
';
$result_converted{'xml'}->{'comment_on_cartouche_line'} = '<cartouche spaces="
" endspaces=" "><!-- c comment -->
<para>in cartouche.
</para></cartouche>
+
+<cartouche spaces=" " endspaces=" "><cartouchetitle><emph>Title of box</emph>
</cartouchetitle><!-- c comment -->
+<para>Out of main text
+</para></cartouche>
';
$result_converted{'latex_text'}->{'comment_on_cartouche_line'} =
'\\begin{mdframed}[style=Texinfocartouche]
in cartouche.
\\end{mdframed}
+
+\\begin{mdframed}[style=Texinfocartouche, frametitle={\\emph{Title of box}}]
+Out of main text
+\\end{mdframed}
';
$result_converted{'docbook'}->{'comment_on_cartouche_line'} =
'<sidebar><para>in cartouche.
+</para></sidebar>
+<sidebar><title><emphasis>Title of box</emphasis></title>
+<para>Out of main text
</para></sidebar>';
1;
diff --git a/tp/tests/coverage_macro.texi b/tp/tests/coverage_macro.texi
index ff269a1b87..6b221406b3 100644
--- a/tp/tests/coverage_macro.texi
+++ b/tp/tests/coverage_macro.texi
@@ -926,6 +926,10 @@ Value--table samp
c--artouche
@end cartouche
+@cartouche Tit--le @emph{of box}
+With title c--artouche
+@end cartouche
+
@flushleft
f--lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting/formatting.html
b/tp/tests/layout/res_parser/formatting/formatting.html
index 970fba6a5a..a11c165d4b 100644
--- a/tp/tests/layout/res_parser/formatting/formatting.html
+++ b/tp/tests/layout/res_parser/formatting/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1784,6 +1787,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2872,6 +2880,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4017,6 +4030,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -5103,6 +5121,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -6316,6 +6339,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_chm/anchor.html
b/tp/tests/layout/res_parser/formatting_chm/anchor.html
index ffdc6ad56a..7c28287c16 100644
--- a/tp/tests/layout/res_parser/formatting_chm/anchor.html
+++ b/tp/tests/layout/res_parser/formatting_chm/anchor.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_chm/chapter.html
b/tp/tests/layout/res_parser/formatting_chm/chapter.html
index a7f3e00243..31a37bf24b 100644
--- a/tp/tests/layout/res_parser/formatting_chm/chapter.html
+++ b/tp/tests/layout/res_parser/formatting_chm/chapter.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1780,6 +1783,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2866,6 +2874,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4079,6 +4092,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_chm/chapter2.html
b/tp/tests/layout/res_parser/formatting_chm/chapter2.html
index 658d9e8062..e28a01d342 100644
--- a/tp/tests/layout/res_parser/formatting_chm/chapter2.html
+++ b/tp/tests/layout/res_parser/formatting_chm/chapter2.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_chm/formatting.html
b/tp/tests/layout/res_parser/formatting_chm/formatting.html
index 873286d033..51a0e2798e 100644
--- a/tp/tests/layout/res_parser/formatting_chm/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_chm/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1765,6 +1768,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2853,6 +2861,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
diff --git a/tp/tests/layout/res_parser/formatting_chm/formatting_abt.html
b/tp/tests/layout/res_parser/formatting_chm/formatting_abt.html
index 0f9120bd86..53741064d0 100644
--- a/tp/tests/layout/res_parser/formatting_chm/formatting_abt.html
+++ b/tp/tests/layout/res_parser/formatting_chm/formatting_abt.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_chm/formatting_ovr.html
b/tp/tests/layout/res_parser/formatting_chm/formatting_ovr.html
index 58c5f08125..323173b5d5 100644
--- a/tp/tests/layout/res_parser/formatting_chm/formatting_ovr.html
+++ b/tp/tests/layout/res_parser/formatting_chm/formatting_ovr.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_chm/formatting_toc.html
b/tp/tests/layout/res_parser/formatting_chm/formatting_toc.html
index 568871d3e9..5d792bce34 100644
--- a/tp/tests/layout/res_parser/formatting_chm/formatting_toc.html
+++ b/tp/tests/layout/res_parser/formatting_chm/formatting_toc.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_chm/index.html
b/tp/tests/layout/res_parser/formatting_chm/index.html
index 2e7fdfb4c5..b9641b655d 100644
--- a/tp/tests/layout/res_parser/formatting_chm/index.html
+++ b/tp/tests/layout/res_parser/formatting_chm/index.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_chm/s_002d_002dect_002cion.html
b/tp/tests/layout/res_parser/formatting_chm/s_002d_002dect_002cion.html
index 37b38a8e63..a5b6d50cfe 100644
--- a/tp/tests/layout/res_parser/formatting_chm/s_002d_002dect_002cion.html
+++ b/tp/tests/layout/res_parser/formatting_chm/s_002d_002dect_002cion.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_chm/subsection.html
b/tp/tests/layout/res_parser/formatting_chm/subsection.html
index 49da925ae8..3491803f3d 100644
--- a/tp/tests/layout/res_parser/formatting_chm/subsection.html
+++ b/tp/tests/layout/res_parser/formatting_chm/subsection.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
b/tp/tests/layout/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
index ada698d5e4..e0d4a6d13a 100644
---
a/tp/tests/layout/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
+++
b/tp/tests/layout/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
b/tp/tests/layout/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
index aea662725b..34f3e36df3 100644
---
a/tp/tests/layout/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
+++
b/tp/tests/layout/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
b/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
index 85d70819ec..5fed485915 100644
--- a/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
+++ b/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
@@ -685,6 +685,9 @@ ref” in <filename>a comma, in file</filename>
</para></listitem></varlistentry></variablelist>
<sidebar><para>c–artouche
</para></sidebar>
+<sidebar><title>Tit–le <emphasis>of box</emphasis></title>
+<para>With title c–artouche
+</para></sidebar>
<para>f–lushleft
more text
</para>
@@ -1612,6 +1615,9 @@ ref” in <filename>a comma, in file</filename>
</para></listitem></varlistentry></variablelist>
<sidebar><para>c–artouche
</para></sidebar>
+<sidebar><title>Tit–le <emphasis>of box</emphasis></title>
+<para>With title c–artouche
+</para></sidebar>
<para>f–lushleft
more text
</para>
@@ -2526,6 +2532,9 @@ ref” in <filename>a comma, in file</filename>
</para></listitem></varlistentry></variablelist>
<sidebar><para>c–artouche
</para></sidebar>
+<sidebar><title>Tit–le <emphasis>of box</emphasis></title>
+<para>With title c–artouche
+</para></sidebar>
<para>f–lushleft
more text
</para>
@@ -3432,6 +3441,9 @@ section ``title with uref2 <ulink
url="href://http/myhost.com/index2.html">uref2
</screen></listitem></varlistentry></variablelist><screen>
</screen><sidebar><screen>c--artouche
</screen></sidebar><screen>
+</screen><sidebar><title>Tit--le <emphasis>of box</emphasis></title>
+<screen>With title c--artouche
+</screen></sidebar><screen>
</screen><screen>f--lushleft
more text
</screen><screen>
diff --git
a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
index cd0abe559c..5957cb3a63 100644
--- a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1784,6 +1787,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2872,6 +2880,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4017,6 +4030,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -5103,6 +5121,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -6316,6 +6339,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
index 8e87c3679c..d11ffc3d11 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1780,6 +1783,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2866,6 +2874,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4079,6 +4092,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
index 3096be7e1a..b3417cadf7 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
index bae74533a2..a64a22818b 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1764,6 +1767,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2852,6 +2860,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
index e9d2fdf831..2f19e52b34 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
index fce4738756..774614a706 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
index eba26586bc..1c31e9c337 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
index b36491311c..e00ccd191b 100644
---
a/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
index 5cfd2064d8..a61da7d004 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1781,6 +1784,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2867,6 +2875,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4080,6 +4093,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
index 3d08c4466f..de148a8990 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter2.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
index 0a220c7c8e..abd5892988 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1766,6 +1769,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2854,6 +2862,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
index bdee05c823..4aefd917fb 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_abt.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
index c952f3a15a..ac26790d6e 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_fot.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
index 7253ed62e1..0a297fa703 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_ovr.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
index f0d6189da4..c2208f8907 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting_toc.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/s_002d_002dect_002cion.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/s_002d_002dect_002cion.xhtml
index 6657297540..8c8688c82c 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/s_002d_002dect_002cion.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/s_002d_002dect_002cion.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsection.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsection.xhtml
index e10a9b7de9..cff81978ef 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsection.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsection.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-_0060_0060simple_002ddouble_002d_002d.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-_0060_0060simple_002ddouble_002d_002d.xhtml
index 9ce77d74ef..bd658353f8 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-_0060_0060simple_002ddouble_002d_002d.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-_0060_0060simple_002ddouble_002d_002d.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.xhtml
index 0cd845082f..47dab4e43e 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.xhtml
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/anchor.html
b/tp/tests/layout/res_parser/formatting_exotic/anchor.html
index a6a0d34c1a..158ecad032 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/anchor.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/anchor.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/chapter.html
b/tp/tests/layout/res_parser/formatting_exotic/chapter.html
index ddc6e15cde..5567afd309 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/chapter.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/chapter.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1799,6 +1802,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2885,6 +2893,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4094,6 +4107,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
b/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
index 16af78ff63..f08f230fcc 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/formatting_abt.html
b/tp/tests/layout/res_parser/formatting_exotic/formatting_abt.html
index 39e3e1614c..9db7f81ba7 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/formatting_abt.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/formatting_abt.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/formatting_ovr.html
b/tp/tests/layout/res_parser/formatting_exotic/formatting_ovr.html
index 7878d20f99..a913aa7718 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/formatting_ovr.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/formatting_ovr.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/formatting_toc.html
b/tp/tests/layout/res_parser/formatting_exotic/formatting_toc.html
index 6adabbbb94..a97d86f051 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/formatting_toc.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/formatting_toc.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/index.html
b/tp/tests/layout/res_parser/formatting_exotic/index.html
index 20f23b7a60..23b421ed88 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/index.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/index.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
b/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
index c294d85145..4ba6056d94 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_exotic/subsection.html
b/tp/tests/layout/res_parser/formatting_exotic/subsection.html
index a1853b863f..c608f019b1 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/subsection.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/subsection.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_exotic/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
b/tp/tests/layout/res_parser/formatting_exotic/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
index 60b7018bf4..e9089a7292 100644
---
a/tp/tests/layout/res_parser/formatting_exotic/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
+++
b/tp/tests/layout/res_parser/formatting_exotic/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_exotic/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
b/tp/tests/layout/res_parser/formatting_exotic/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
index 1ce6d0da99..67bf2815bf 100644
---
a/tp/tests/layout/res_parser/formatting_exotic/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
+++
b/tp/tests/layout/res_parser/formatting_exotic/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
b/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
index 0fe7885ef9..38dd297c88 100644
--- a/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1784,6 +1787,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2872,6 +2880,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4017,6 +4030,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -5103,6 +5121,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -6316,6 +6339,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_html/formatting.html
b/tp/tests/layout/res_parser/formatting_html/formatting.html
index 970fba6a5a..a11c165d4b 100644
--- a/tp/tests/layout/res_parser/formatting_html/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_html/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1784,6 +1787,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2872,6 +2880,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4017,6 +4030,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -5103,6 +5121,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -6316,6 +6339,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_html32/formatting.html
b/tp/tests/layout/res_parser/formatting_html32/formatting.html
index 0ce3e9371f..f055cb4664 100644
--- a/tp/tests/layout/res_parser/formatting_html32/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_html32/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1717,6 +1720,11 @@ ref</a>
<p>c-artouche
</p></td></tr></table>
+<table border="1"><tr><th>
+Tit-le <em>of box</em></th></tr><tr><td>
+<p>With title c-artouche
+</p></td></tr></table>
+
<div><p align="left">f-lushleft
more text
</p></div>
@@ -2779,6 +2787,11 @@ ref</a>
<p>c-artouche
</p></td></tr></table>
+<table border="1"><tr><th>
+Tit-le <em>of box</em></th></tr><tr><td>
+<p>With title c-artouche
+</p></td></tr></table>
+
<div><p align="left">f-lushleft
more text
</p></div>
@@ -3898,6 +3911,11 @@ ref</a>
<p>c-artouche
</p></td></tr></table>
+<table border="1"><tr><th>
+Tit-le <em>of box</em></th></tr><tr><td>
+<p>With title c-artouche
+</p></td></tr></table>
+
<div><p align="left">f-lushleft
more text
</p></div>
@@ -4958,6 +4976,11 @@ ref</a>
<p>c-artouche
</p></td></tr></table>
+<table border="1"><tr><th>
+Tit-le <em>of box</em></th></tr><tr><td>
+<p>With title c-artouche
+</p></td></tr></table>
+
<div><p align="left">f-lushleft
more text
</p></div>
@@ -6144,6 +6167,12 @@ ref</a>
</pre></td></tr></table>
<pre>
+</pre><table border="1"><tr><th>
+Tit--le <em>of box</em></th></tr><tr><td>
+<pre>With title c--artouche
+</pre></td></tr></table>
+<pre>
+
</pre><div><pre>f--lushleft
more text
</pre></div><pre>
diff --git
a/tp/tests/layout/res_parser/formatting_html_no_texi2html/formatting.html
b/tp/tests/layout/res_parser/formatting_html_no_texi2html/formatting.html
index bc867df73d..8d62164123 100644
--- a/tp/tests/layout/res_parser/formatting_html_no_texi2html/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_html_no_texi2html/formatting.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1839,6 +1842,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2925,6 +2933,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4138,6 +4151,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_html_nodes/anchor.html
b/tp/tests/layout/res_parser/formatting_html_nodes/anchor.html
index ffdc6ad56a..7c28287c16 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/anchor.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/anchor.html
@@ -654,6 +654,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_html_nodes/chapter.html
b/tp/tests/layout/res_parser/formatting_html_nodes/chapter.html
index a1a03ac57c..c584e11c73 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/chapter.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/chapter.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1800,6 +1803,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2886,6 +2894,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -4099,6 +4112,12 @@ ref</a>
</pre></td></tr></table>
<pre class="example-preformatted">
+</pre><table class="cartouche" border="1"><tr><th>
+Tit--le <em class="emph">of box</em></th></tr><tr><td>
+<pre class="example-preformatted">With title c--artouche
+</pre></td></tr></table>
+<pre class="example-preformatted">
+
</pre><div class="flushleft"><pre class="example-preformatted">f--lushleft
more text
</pre></div><pre class="example-preformatted">
diff --git a/tp/tests/layout/res_parser/formatting_html_nodes/chapter2.html
b/tp/tests/layout/res_parser/formatting_html_nodes/chapter2.html
index afa5d2c75e..87681a89ea 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/chapter2.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/chapter2.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_abt.html
b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_abt.html
index 7ec322572a..7bcb6e9c82 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_abt.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_abt.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_fot.html
b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_fot.html
index 36fb171474..6fd99bb6b9 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_fot.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_fot.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_ovr.html
b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_ovr.html
index a4499ee743..97de822212 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_ovr.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_ovr.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_toc.html
b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_toc.html
index 1be2a726ef..bc3cab8e0b 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/formatting_toc.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/formatting_toc.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_html_nodes/index.html
b/tp/tests/layout/res_parser/formatting_html_nodes/index.html
index 2bbf8338a7..01e346bce7 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/index.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/index.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
@@ -1770,6 +1773,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
@@ -2858,6 +2866,11 @@ ref</a>
<p>c–artouche
</p></td></tr></table>
+<table class="cartouche" border="1"><tr><th>
+Tit–le <em class="emph">of box</em></th></tr><tr><td>
+<p>With title c–artouche
+</p></td></tr></table>
+
<div class="flushleft"><p class="flushleft-paragraph">f–lushleft
more text
</p></div>
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/s_002d_002dect_002cion.html
b/tp/tests/layout/res_parser/formatting_html_nodes/s_002d_002dect_002cion.html
index f330554f33..905bee3907 100644
---
a/tp/tests/layout/res_parser/formatting_html_nodes/s_002d_002dect_002cion.html
+++
b/tp/tests/layout/res_parser/formatting_html_nodes/s_002d_002dect_002cion.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_html_nodes/subsection.html
b/tp/tests/layout/res_parser/formatting_html_nodes/subsection.html
index ad82291b44..f14bac00e8 100644
--- a/tp/tests/layout/res_parser/formatting_html_nodes/subsection.html
+++ b/tp/tests/layout/res_parser/formatting_html_nodes/subsection.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
b/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
index 559f0dda07..7e24d0bee0 100644
---
a/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
+++
b/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git
a/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
b/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
index bb74ebded0..cbfdf4a4be 100644
---
a/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
+++
b/tp/tests/layout/res_parser/formatting_html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
@@ -653,6 +653,9 @@ Value-table samp
c-artouche
+Tit-le of box
+With title c-artouche
+
f-lushleft
more text
diff --git a/tp/tests/layout/res_parser/formatting_info/formatting.info
b/tp/tests/layout/res_parser/formatting_info/formatting.info
index cf070565ef..ee23651b87 100644
--- a/tp/tests/layout/res_parser/formatting_info/formatting.info
+++ b/tp/tests/layout/res_parser/formatting_info/formatting.info
@@ -514,6 +514,9 @@ _b_
c-artouche
+ Tit-le _of box_
+With title c-artouche
+
f-lushleft
more text
@@ -1235,6 +1238,9 @@ _b_
c-artouche
+ Tit-le _of box_
+With title c-artouche
+
f-lushleft
more text
@@ -1913,6 +1919,9 @@ _b_
c-artouche
+ Tit-le _of box_
+With title c-artouche
+
f-lushleft
more text
@@ -2729,6 +2738,9 @@ cross ref name: (file name). '@inforef{}' *note ::
c--artouche
+ Tit-le _of box_
+ With title c--artouche
+
f--lushleft
more text
@@ -2940,14 +2952,14 @@ aaa"