[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: microtype in texi2any parsers
From: |
Patrice Dumas |
Subject: |
branch master updated: microtype in texi2any parsers |
Date: |
Sun, 25 Sep 2022 10:35:55 -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 d935b96a2f microtype in texi2any parsers
d935b96a2f is described below
commit d935b96a2f0de4d657e53cccfcf0d00d0703c15d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Sep 25 16:35:44 2022 +0200
microtype in texi2any parsers
* tp/Texinfo/Common.pm (%document_settable_multiple_at_commands)
(%line_commands), tp/Texinfo/ParserNonXS.pm
(_parse_line_command_args), tp/Texinfo/XS/parsetexi/command_data.txt,
tp/Texinfo/XS/parsetexi/end_line.c (parse_line_command_args),
tp/Texinfo/XS/parsetexi/parser.c (register_global_command)
(wipe_global_info), tp/Texinfo/XS/parsetexi/parser.h (GLOBAL_INFO):
add @microtype to texi2any parsers.
---
ChangeLog | 12 ++++++++++++
tp/Texinfo/Common.pm | 2 ++
tp/Texinfo/ParserNonXS.pm | 3 ++-
tp/Texinfo/XS/parsetexi/command_data.txt | 1 +
tp/Texinfo/XS/parsetexi/command_ids.h | 1 +
tp/Texinfo/XS/parsetexi/end_line.c | 1 +
tp/Texinfo/XS/parsetexi/parser.c | 2 ++
tp/Texinfo/XS/parsetexi/parser.h | 1 +
8 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 86bea8a255..ac98fb84de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-09-25 Patrice Dumas <pertusus@free.fr>
+
+ microtype in texi2any parsers
+
+ * tp/Texinfo/Common.pm (%document_settable_multiple_at_commands)
+ (%line_commands), tp/Texinfo/ParserNonXS.pm
+ (_parse_line_command_args), tp/Texinfo/XS/parsetexi/command_data.txt,
+ tp/Texinfo/XS/parsetexi/end_line.c (parse_line_command_args),
+ tp/Texinfo/XS/parsetexi/parser.c (register_global_command)
+ (wipe_global_info), tp/Texinfo/XS/parsetexi/parser.h (GLOBAL_INFO):
+ add @microtype to texi2any parsers.
+
2022-09-25 Patrice Dumas <pertusus@free.fr>
* TODO: mention the Emacs Info viewer bug on node name quoting.
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index 299705940a..4446ba5c34 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -144,6 +144,7 @@ our %document_settable_multiple_at_commands = (
'frenchspacing' => 'off',
'headings' => 'on',
'kbdinputstyle' => 'distinct',
+ 'microtype' => 'on',
'paragraphindent' => 3,
'shortcontents' => 0,
'summarycontents' => 0,
@@ -558,6 +559,7 @@ our %line_commands = (
'codequotebacktick' => 1, # on off
'xrefautomaticsectiontitle' => 1, # on off
'deftypefnnewline' => 1, # on off
+ 'microtype' => 1, # on off
'fonttextsize' => 1, # 10 11
'allowcodebreaks' => 1, # false or true
'exampleindent' => 1, # asis or a number
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 017b466dc1..ed5cf91f7e 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -6127,7 +6127,8 @@ sub _parse_line_command_args($$$)
or $command eq 'xrefautomaticsectiontitle'
or $command eq 'codequoteundirected'
or $command eq 'codequotebacktick'
- or $command eq 'deftypefnnewline') {
+ or $command eq 'deftypefnnewline'
+ or $command eq 'microtype') {
if ($line eq 'on' or $line eq 'off') {
$args = [$line];
} else {
diff --git a/tp/Texinfo/XS/parsetexi/command_data.txt
b/tp/Texinfo/XS/parsetexi/command_data.txt
index 51fe804395..d8ca8f0e03 100644
--- a/tp/Texinfo/XS/parsetexi/command_data.txt
+++ b/tp/Texinfo/XS/parsetexi/command_data.txt
@@ -104,6 +104,7 @@ afourwide line,global_unique
LINE_skipline
bsixpaper line,global_unique LINE_skipline
headings line,global 1
setchapternewpage line,global_unique 1
+microtype line,global 1
everyheading line,global LINE_heading_spec
everyfooting line,global LINE_heading_spec
diff --git a/tp/Texinfo/XS/parsetexi/command_ids.h
b/tp/Texinfo/XS/parsetexi/command_ids.h
index bce690e45a..a2c8542ad2 100644
--- a/tp/Texinfo/XS/parsetexi/command_ids.h
+++ b/tp/Texinfo/XS/parsetexi/command_ids.h
@@ -269,6 +269,7 @@ CM_macro,
CM_majorheading,
CM_math,
CM_menu,
+CM_microtype,
CM_minus,
CM_multitable,
CM_need,
diff --git a/tp/Texinfo/XS/parsetexi/end_line.c
b/tp/Texinfo/XS/parsetexi/end_line.c
index e0d17ca824..16095f1b73 100644
--- a/tp/Texinfo/XS/parsetexi/end_line.c
+++ b/tp/Texinfo/XS/parsetexi/end_line.c
@@ -721,6 +721,7 @@ parse_line_command_args (ELEMENT *line_command)
case CM_codequoteundirected:
case CM_codequotebacktick:
case CM_deftypefnnewline:
+ case CM_microtype:
{
if (!strcmp (line, "on") || !strcmp (line, "off"))
{
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index 8956369a12..892e728b98 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -225,6 +225,7 @@ register_global_command (ELEMENT *current)
GLOBAL_CASE(frenchspacing);
GLOBAL_CASE(headings);
GLOBAL_CASE(kbdinputstyle);
+ GLOBAL_CASE(microtype);
GLOBAL_CASE(paragraphindent);
GLOBAL_CASE(shortcontents);
GLOBAL_CASE(urefbreakstyle);
@@ -349,6 +350,7 @@ wipe_global_info (void)
GLOBAL_CASE(frenchspacing);
GLOBAL_CASE(headings);
GLOBAL_CASE(kbdinputstyle);
+ GLOBAL_CASE(microtype);
GLOBAL_CASE(paragraphindent);
GLOBAL_CASE(shortcontents);
GLOBAL_CASE(urefbreakstyle);
diff --git a/tp/Texinfo/XS/parsetexi/parser.h b/tp/Texinfo/XS/parsetexi/parser.h
index 6e9c6cd86e..814b8e60aa 100644
--- a/tp/Texinfo/XS/parsetexi/parser.h
+++ b/tp/Texinfo/XS/parsetexi/parser.h
@@ -94,6 +94,7 @@ typedef struct GLOBAL_INFO {
ELEMENT frenchspacing;
ELEMENT headings;
ELEMENT kbdinputstyle;
+ ELEMENT microtype;
ELEMENT paragraphindent;
ELEMENT shortcontents;
ELEMENT urefbreakstyle;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: microtype in texi2any parsers,
Patrice Dumas <=