lang.h 531 B

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