[transliteration] Adding context types back to transtlieration rule struct since they don't matter in the actual transliteration table
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
#define TRANSLITERATION_RULE_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "transliterate.h"
|
||||
|
||||
#define MAX_GROUPS_LEN 5
|
||||
|
||||
typedef enum {
|
||||
CONTEXT_TYPE_NONE,
|
||||
@@ -10,7 +13,6 @@ typedef enum {
|
||||
CONTEXT_TYPE_REGEX
|
||||
} context_type_t;
|
||||
|
||||
|
||||
typedef struct transliteration_rule_source {
|
||||
char *key;
|
||||
size_t key_len;
|
||||
@@ -29,15 +31,11 @@ typedef struct transliteration_rule_source {
|
||||
size_t replacement_len;
|
||||
|
||||
int move;
|
||||
|
||||
char *group_regex_str;
|
||||
size_t group_regex_len;
|
||||
} transliteration_rule_source_t;
|
||||
|
||||
typedef enum {
|
||||
STEP_RULESET,
|
||||
STEP_TRANSFORM,
|
||||
STEP_UNICODE_NORMALIZATION
|
||||
} step_type_t;
|
||||
} transliteration_rule_source_t;
|
||||
|
||||
typedef struct transliteration_step_source {
|
||||
step_type_t type;
|
||||
|
||||
Reference in New Issue
Block a user