[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/DocBook.pm (%docbook_section
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/DocBook.pm (%docbook_sections): use 'sect1' for majorheading and chapheading to be rendered as, as 'other' is rendered too small. |
Date: |
Tue, 16 Aug 2022 12:30:49 -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 f36dcc68a1 * tp/Texinfo/Convert/DocBook.pm (%docbook_sections): use
'sect1' for majorheading and chapheading to be rendered as, as 'other' is
rendered too small.
f36dcc68a1 is described below
commit f36dcc68a126e4fb779316a098dc2930aec1008b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Aug 16 18:29:06 2022 +0200
* tp/Texinfo/Convert/DocBook.pm (%docbook_sections): use 'sect1'
for majorheading and chapheading to be rendered as, as 'other'
is rendered too small.
---
ChangeLog | 6 ++++++
tp/Texinfo/Convert/DocBook.pm | 8 ++++++--
tp/t/results/coverage/commands.pl | 2 +-
.../layout/res_parser/formatting_docbook/formatting.xml | 16 ++++++++--------
4 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a2e53058d8..3afd3f9624 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-08-16 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/DocBook.pm (%docbook_sections): use 'sect1'
+ for majorheading and chapheading to be rendered as, as 'other'
+ is rendered too small.
+
2022-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.texi (Inserting Math): Use a real formula. State
diff --git a/tp/Texinfo/Convert/DocBook.pm b/tp/Texinfo/Convert/DocBook.pm
index 2e0b24669d..4a4a6c1745 100644
--- a/tp/Texinfo/Convert/DocBook.pm
+++ b/tp/Texinfo/Convert/DocBook.pm
@@ -516,8 +516,12 @@ my %docbook_sections = (
'unnumbered' => 'chapter',
'centerchap' => 'chapter',
'appendix' => 'appendix',
- 'majorheading' => 'other',
- 'chapheading' => 'other',
+ # chapter would have been the best choice here, but it is not a possibility
+ # for renderas in bridgehead (possibilities are sect1 to 5 and other).
+ # other is rendered small, smaller than sect1. So use sect1, even though
+ # it matches better with the @heading level.
+ 'majorheading' => 'sect1',
+ 'chapheading' => 'sect1',
'heading' => 'sect1',
'subheading' => 'sect2',
'subsubheading' => 'sect3',
diff --git a/tp/t/results/coverage/commands.pl
b/tp/t/results/coverage/commands.pl
index 5518547453..77877683e4 100644
--- a/tp/t/results/coverage/commands.pl
+++ b/tp/t/results/coverage/commands.pl
@@ -623,7 +623,7 @@ $result_converted{'docbook'}->{'commands'} = '<para>@ &tex;
 ë î
</para>
<indexterm role="cp"><primary>index entry “in text”
&latex;</primary></indexterm>
-<bridgehead renderas="other">majorheading <emphasis role="bold">in
b</emphasis></bridgehead>
+<bridgehead renderas="sect1">majorheading <emphasis role="bold">in
b</emphasis></bridgehead>
';
1;
diff --git a/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
b/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
index 917bce46d8..20b4702320 100644
--- a/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
+++ b/tp/tests/layout/res_parser/formatting_docbook/formatting.xml
@@ -705,9 +705,9 @@ This is a very simple texi manual @ <>.
docbook ''
-<bridgehead renderas="other">majorheading</bridgehead>
+<bridgehead renderas="sect1">majorheading</bridgehead>
-<bridgehead renderas="other">chapheading</bridgehead>
+<bridgehead renderas="sect1">chapheading</bridgehead>
<bridgehead renderas="sect1">heading</bridgehead>
@@ -1620,9 +1620,9 @@ This is a very simple texi manual @ <>.
docbook ''
-<bridgehead renderas="other">majorheading</bridgehead>
+<bridgehead renderas="sect1">majorheading</bridgehead>
-<bridgehead renderas="other">chapheading</bridgehead>
+<bridgehead renderas="sect1">chapheading</bridgehead>
<bridgehead renderas="sect1">heading</bridgehead>
@@ -2522,9 +2522,9 @@ This is a very simple texi manual @ <>.
docbook ''
-<bridgehead renderas="other">majorheading</bridgehead>
+<bridgehead renderas="sect1">majorheading</bridgehead>
-<bridgehead renderas="other">chapheading</bridgehead>
+<bridgehead renderas="sect1">chapheading</bridgehead>
<bridgehead renderas="sect1">heading</bridgehead>
@@ -3416,9 +3416,9 @@ This is a very simple texi manual @ <>.
docbook ''
-</screen><bridgehead renderas="other">majorheading</bridgehead>
+</screen><bridgehead renderas="sect1">majorheading</bridgehead>
<screen>
-</screen><bridgehead renderas="other">chapheading</bridgehead>
+</screen><bridgehead renderas="sect1">chapheading</bridgehead>
<screen>
</screen><bridgehead renderas="sect1">heading</bridgehead>
<screen>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/DocBook.pm (%docbook_sections): use 'sect1' for majorheading and chapheading to be rendered as, as 'other' is rendered too small.,
Patrice Dumas <=