1 #ifndef LANG_H
2 #define LANG_H
3 
4 #include "misc.h"
5 #include "vt.h"
6 
7 extern int latin1;
8 
9 #define LATIN1 1
10 #define LATIN2 2
11 #define KOI8 3
12 #define GREEK 4
13 
14 
15 struct enhance
16 {
17     int next_des; // next expected designation code
18     u32 trip[13*16]; // tripplets
19 };
20 
21 void lang_init(void);
22 void conv2latin(u8 *p, int n, int lang);
23 void conv2koi8(u8 *p);
24 void conv2greek(u8 *p);
25 void init_enhance(struct enhance *eh);
26 void add_enhance(struct enhance *eh, int dcode, u32 *data);
27 void enhance(struct enhance *eh, struct vt_page *vtp);
28 #endif
29