blob: 416240d30676916775973d988592bb3c42c65c39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef SCR_HEADER_READ
#define SCR_HEADER_READ
#include "avltree.h"
#include "readfile.h"
#define MALAYALAM_SCRIPT 13
typedef struct
{ int script_type;
AVLtree *prebuild; /* AVLtree of prebuild_chars, defining pre-build syllabes */
AVLtree *primary; /* AVLtree of glyph_pairs, defining front and final part of primary variants */
AVLtree *secondary; /* AVLtree of glyph_pairs, defining front and final part of secondary variants */
char *atbegin;
char *atend;
char *atbeginsyllabe;
char *atendsyllabe;
int reepham; /* boolean: do we use the reepham? */
} scr_table;
typedef struct
{ char *c; /* char codes */
char *g; /* glyphs */
} prebuild_char;
typedef struct
{ char *c; /* char codes */
char *b; /* glyphs to place before syllabe in construction */
char *a; /* glyphs to place after syllabe in construction */
} glyph_pair;
/* public functions */
scr_table *read_scr(char *filename);
#endif
/* eof */
|