[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/convert/converter.c (enum convers
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/convert/converter.c (enum conversion_output_format) (CONVERSION_FORMAT_NR, CONVERSION_FORMAT_DATA, conversion_format): setup preliminary data table to describe a converted format to be able to associate strings and functions. |
Date: |
Wed, 02 Oct 2024 12:17:01 -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 bd40a1e018 * tp/Texinfo/XS/convert/converter.c (enum
conversion_output_format) (CONVERSION_FORMAT_NR, CONVERSION_FORMAT_DATA,
conversion_format): setup preliminary data table to describe a converted format
to be able to associate strings and functions.
bd40a1e018 is described below
commit bd40a1e018f7bc226f7ad39884edae174a53c43a
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Aug 3 16:07:22 2024 +0200
* tp/Texinfo/XS/convert/converter.c (enum conversion_output_format)
(CONVERSION_FORMAT_NR, CONVERSION_FORMAT_DATA, conversion_format):
setup preliminary data table to describe a converted format to be able
to associate strings and functions.
---
ChangeLog | 7 +++++++
tp/TODO | 6 ------
tp/Texinfo/XS/convert/converter.c | 25 +++++++++++++++++--------
tp/Texinfo/XS/main/option_types.h | 1 +
4 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 08379b01fa..b8264246fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-03 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/converter.c (enum conversion_output_format)
+ (CONVERSION_FORMAT_NR, CONVERSION_FORMAT_DATA, conversion_format):
+ setup preliminary data table to describe a converted format to be able
+ to associate strings and functions.
+
2024-08-03 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/ConvertXS.xs (init),
diff --git a/tp/TODO b/tp/TODO
index 387445f4e2..41ae1f2675 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -10,12 +10,6 @@ This is the todo list for texi2any
Before next release
===================
-HTML data
-%defaults
-
-to check
-%quoted_style_commands
-
Bugs
====
diff --git a/tp/Texinfo/XS/convert/converter.c
b/tp/Texinfo/XS/convert/converter.c
index bbf8c1a464..940f0e6e31 100644
--- a/tp/Texinfo/XS/convert/converter.c
+++ b/tp/Texinfo/XS/convert/converter.c
@@ -59,6 +59,23 @@
#include "call_perl_function.h"
#include "converter.h"
+enum conversion_output_format {
+ COF_none = -1,
+ COF_html,
+};
+
+#define CONVERSION_FORMAT_NR (COF_html +1)
+
+typedef struct CONVERSION_FORMAT_DATA {
+ const char *output_format;
+ const char *perl_converter_class;
+} CONVERSION_FORMAT_DATA;
+
+
+CONVERSION_FORMAT_DATA conversion_format[] = {
+ {"html", "Texinfo::Convert::HTML", },
+};
+
/* associate lower case no brace accent command to the upper case
corresponding commands */
enum command_id no_brace_command_accent_upper_case[][2] = {
@@ -194,14 +211,6 @@ init_generic_converter (CONVERTER *self)
self->translated_commands[0].cmd = CM_error;
self->translated_commands[0].translation = strdup ("error@arrow{}");
- /* NOTE if the special units can be customized, then
- the self->special_unit_varieties should be set early (where?) and used
- directly instead.
- Also default special units and special units indices should be
- mapped instead of assuming that they are the same when setting
- self->special_unit_info
- copy_strings (&self->special_unit_varieties,
&default_special_unit_varieties);
- */
}
/* descriptor starts at 1, 0 is not found or an error */
diff --git a/tp/Texinfo/XS/main/option_types.h
b/tp/Texinfo/XS/main/option_types.h
index 3a737dead1..3099938da0 100644
--- a/tp/Texinfo/XS/main/option_types.h
+++ b/tp/Texinfo/XS/main/option_types.h
@@ -156,6 +156,7 @@ typedef struct DIRECTION_ICON_LIST {
typedef struct OPTION {
enum global_option_type type;
+ const char *name;
int configured;
union {
int integer;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/convert/converter.c (enum conversion_output_format) (CONVERSION_FORMAT_NR, CONVERSION_FORMAT_DATA, conversion_format): setup preliminary data table to describe a converted format to be able to associate strings and functions.,
Patrice Dumas <=