lang.h revision 56160
1130803Smarcel/* lang.h -- declarations for language codes etc. 2130803Smarcel $Id: lang.h,v 1.6 1999/03/22 20:07:34 karl Exp $ 3130803Smarcel 4130803Smarcel Copyright (C) 1999 Free Software Foundation, Inc. 5130803Smarcel 6130803Smarcel This program is free software; you can redistribute it and/or modify 7130803Smarcel it under the terms of the GNU General Public License as published by 8130803Smarcel the Free Software Foundation; either version 2, or (at your option) 9130803Smarcel any later version. 10130803Smarcel 11130803Smarcel This program is distributed in the hope that it will be useful, 12130803Smarcel but WITHOUT ANY WARRANTY; without even the implied warranty of 13130803Smarcel MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14130803Smarcel GNU General Public License for more details. 15130803Smarcel 16130803Smarcel You should have received a copy of the GNU General Public License 17130803Smarcel along with this program; if not, write to the Free Software 18130803Smarcel Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19130803Smarcel 20130803Smarcel Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */ 21130803Smarcel 22130803Smarcel#ifndef LANG_H 23130803Smarcel#define LANG_H 24130803Smarcel 25130803Smarcel/* The langauge code which can be changed through @documentlanguage 26130803Smarcel * Actualy Info does not support this (may be in the future) ;-) 27130803Smarcel * Default for language code is en (english!) kama 28130803Smarcel * These code should ISO 639 two letter codes. 29130803Smarcel */ 30130803Smarceltypedef enum 31130803Smarcel{ 32130803Smarcel aa, ab, af, am, ar, as, ay, az, 33130803Smarcel ba, be, bg, bh, bi, bn, bo, br, 34130803Smarcel ca, co, cs, cy, 35130803Smarcel da, de, dz, 36130803Smarcel el, en, eo, es, et, eu, 37130803Smarcel fa, fi, fj, fo, fr, fy, 38130803Smarcel ga, gd, gl, gn, gu, 39130803Smarcel ha, he, hi, hr, hu, hy, 40130803Smarcel ia, id, ie, ik, is, it, iu, 41130803Smarcel ja, jw, 42130803Smarcel ka, kk, kl, km, kn, ko, ks, ku, ky, 43130803Smarcel la, ln, lo, lt, lv, 44130803Smarcel mg, mi, mk, ml, mn, mo, mr, ms, mt, my, 45130803Smarcel na, ne, nl, no, 46130803Smarcel oc, om, or, 47130803Smarcel pa, pl, ps, pt, 48130803Smarcel qu, 49130803Smarcel rm, rn, ro, ru, rw, 50130803Smarcel sa, sd, sg, sh, si, sk, sl, sm, sn, so, sq, sr, ss, st, su, sv, sw, 51130803Smarcel ta, te, tg, th, ti, tk, tl, tn, to, tr, ts, tt, tw, 52130803Smarcel ug, uk, ur, uz, 53130803Smarcel vi, vo, 54130803Smarcel wo, 55130803Smarcel xh, 56130803Smarcel yi, yo, 57130803Smarcel za, zh, zu, 58130803Smarcel last_language_code 59130803Smarcel} language_code_type; 60130803Smarcel 61130803Smarcel/* The current language code. */ 62130803Smarcelextern language_code_type language_code; 63130803Smarcel 64130803Smarcel/* Information about all valid languages. */ 65130803Smarceltypedef struct 66130803Smarcel{ 67130803Smarcel language_code_type lc; /* language code as enum type */ 68130803Smarcel char *abbrev; /* two letter language code */ 69130803Smarcel char *desc; /* full name for language code */ 70130803Smarcel} language_struct; 71130803Smarcelextern language_struct language_table[]; 72130803Smarcel 73130803Smarcel/* The encoding, or null if not set. */ 74130803Smarcelextern char *document_encoding; 75130803Smarcel 76130803Smarcel 77130803Smarcel/* The commands. */ 78130803Smarcelextern void cm_documentlanguage (), cm_documentencoding (); 79130803Smarcel 80130803Smarcel/* Accents, other non-English characters. */ 81130803Smarcelvoid cm_accent (), cm_special_char (), cm_dotless (); 82130803Smarcel 83130803Smarcelextern void cm_accent_umlaut (), cm_accent_acute (), cm_accent_cedilla (), 84130803Smarcel cm_accent_hat (), cm_accent_grave (), cm_accent_tilde (); 85130803Smarcel 86130803Smarcel#endif /* not LANG_H */ 87130803Smarcel