textextcodes.h /size: 2361 b    last modification: 2024-01-16 10:22
1/*
2    See license.txt in the root of this project.
3*/
4
5# ifndef LMT_TEXTCODES_H
6# define LMT_TEXTCODES_H
7
8/*tex
9    For practical reasons we handle the hmcodes here although they are used in 
10    math only. We could have used the hc codes as there will be no overlap. 
11*/
12
13extern void     tex_set_cat_code               (int h, int n, halfword v, int gl);
14extern halfword tex_get_cat_code               (int h, int n);
15extern int      tex_valid_catcode_table        (int h);
16extern void     tex_unsave_cat_codes           (int h, int gl);
17extern void     tex_copy_cat_codes             (int from, int to);
18extern void     tex_initialize_cat_codes       (int h);
19/*     void     tex_set_cat_code_table_default (int h, int dflt); */
20/*     int      tex_get_cat_code_table_default (int h); */
21
22extern void     tex_set_lc_code                (int n, halfword v, int gl);
23extern halfword tex_get_lc_code                (int n);
24extern void     tex_set_uc_code                (int n, halfword v, int gl);
25extern halfword tex_get_uc_code                (int n);
26extern void     tex_set_sf_code                (int n, halfword v, int gl);
27extern halfword tex_get_sf_code                (int n);
28extern void     tex_set_hc_code                (int n, halfword v, int gl);
29extern halfword tex_get_hc_code                (int n);
30extern void     tex_set_hm_code                (int n, halfword v, int gl);
31extern halfword tex_get_hm_code                (int n);
32extern void     tex_set_am_code                (int n, halfword v, int gl);
33extern halfword tex_get_am_code                (int n);
34extern void     tex_set_hj_code                (int l, int n, halfword v, int gl);
35extern halfword tex_get_hj_code                (int l, int n);
36extern void     tex_initialize_xx_codes        (void);
37
38extern void     tex_hj_codes_from_lc_codes     (int h);
39
40extern void     tex_initialize_text_codes      (void);
41extern void     tex_unsave_text_codes          (int grouplevel);
42
43extern void     tex_dump_text_codes            (dumpstream f);
44extern void     tex_undump_text_codes          (dumpstream f);
45
46extern void     tex_dump_language_hj_codes     (dumpstream f, int h);
47extern void     tex_undump_language_hj_codes   (dumpstream f, int h);
48
49extern void     tex_free_text_codes            (void);
50
51extern void     tex_run_case_shift             (halfword code);
52
53# endif
54