diff options
Diffstat (limited to 'Master/texmf-dist/source/fonts/malayalam/preproc/scr.h')
-rw-r--r-- | Master/texmf-dist/source/fonts/malayalam/preproc/scr.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/fonts/malayalam/preproc/scr.h b/Master/texmf-dist/source/fonts/malayalam/preproc/scr.h new file mode 100644 index 00000000000..416240d3067 --- /dev/null +++ b/Master/texmf-dist/source/fonts/malayalam/preproc/scr.h @@ -0,0 +1,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 */ |