Imported Upstream version 0.19.7
[platform/upstream/fribidi.git] / lib / fribidi-bidi-types-list.h
1 #ifndef __FRIBIDI_DOC
2 /* FriBidi
3  * fribidi-bidi-types-list.h - list of bidi types
4  *
5  * $Id: fribidi-bidi-types-list.h,v 1.5 2004-06-13 20:11:42 behdad Exp $
6  * $Author: behdad $
7  * $Date: 2004-06-13 20:11:42 $
8  * $Revision: 1.5 $
9  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-bidi-types-list.h,v $
10  *
11  * Author:
12  *   Behdad Esfahbod, 2001, 2002, 2004
13  *
14  * Copyright (C) 2004 Sharif FarsiWeb, Inc.
15  * Copyright (C) 2001,2002 Behdad Esfahbod
16  * 
17  * This library is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU Lesser General Public
19  * License as published by the Free Software Foundation; either
20  * version 2.1 of the License, or (at your option) any later version.
21  * 
22  * This library is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25  * Lesser General Public License for more details.
26  * 
27  * You should have received a copy of the GNU Lesser General Public License
28  * along with this library, in a file named COPYING; if not, write to the
29  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
30  * Boston, MA 02110-1301, USA
31  *
32  * For licensing issues, contact <license@farsiweb.info>.
33  */
34 /* *INDENT-OFF* */
35 #endif /* !__FRIBIDI_DOC */
36 #ifndef _FRIBIDI_ADD_TYPE
37 # define _FRIBIDI_ADD_TYPE(x,y)
38 #endif
39 #ifndef _FRIBIDI_ADD_ALIAS
40 # define _FRIBIDI_ADD_ALIAS(x1,x2)
41 #endif
42
43 #if !defined(_FRIBIDI_PAR_TYPES) || defined(_FRIBIDI_ALL_TYPES)
44
45 _FRIBIDI_ADD_TYPE (LTR, 'L')    /* Left-To-Right letter */
46 _FRIBIDI_ADD_TYPE (RTL, 'R')    /* Right-To-Left letter */
47 _FRIBIDI_ADD_TYPE (AL, 'A')     /* Arabic Letter */
48 _FRIBIDI_ADD_TYPE (EN, '1')     /* European Numeral */
49 _FRIBIDI_ADD_TYPE (AN, '9')     /* Arabic Numeral */
50 _FRIBIDI_ADD_TYPE (ES, 'w')     /* European number Separator */
51 _FRIBIDI_ADD_TYPE (ET, 'w')     /* European number Terminator */
52 _FRIBIDI_ADD_TYPE (CS, 'w')     /* Common Separator */
53 _FRIBIDI_ADD_TYPE (NSM, '`')    /* Non Spacing Mark */
54 _FRIBIDI_ADD_TYPE (BN, 'b')     /* Boundary Neutral */
55 _FRIBIDI_ADD_TYPE (BS, 'B')     /* Block Separator */
56 _FRIBIDI_ADD_TYPE (SS, 'S')     /* Segment Separator */
57 _FRIBIDI_ADD_TYPE (WS, '_')     /* WhiteSpace */
58 _FRIBIDI_ADD_TYPE (ON, 'n')     /* Other Neutral */
59 _FRIBIDI_ADD_TYPE (LRE, '+')    /* Left-to-Right Embedding */
60 _FRIBIDI_ADD_TYPE (RLE, '+')    /* Right-to-Left Embedding */
61 _FRIBIDI_ADD_TYPE (LRO, '+')    /* Left-to-Right Override */
62 _FRIBIDI_ADD_TYPE (RLO, '+')    /* Right-to-Left Override */
63 _FRIBIDI_ADD_TYPE (PDF, '-')    /* Pop Directional Flag */
64
65 #if defined(_FRIBIDI_ADD_ALIAS)
66 _FRIBIDI_ADD_ALIAS (L, LTR)
67 _FRIBIDI_ADD_ALIAS (R, RTL)
68 _FRIBIDI_ADD_ALIAS (B, BS)
69 _FRIBIDI_ADD_ALIAS (S, SS)
70 #endif /* _FRIBIDI_ADD_ALIAS */
71
72 #if defined(_FRIBIDI_SENTINEL_TYPE) || defined(_FRIBIDI_ALL_TYPES)
73 _FRIBIDI_ADD_TYPE (SENTINEL, '$')       /* SENTINEL */
74 #endif /* _FRIBIDI_SENTINEL_TYPES || _FRIBIDI_ALL_TYPES*/
75 #endif /* !_FRIBIDI_PAR_TYPES || _FRIBIDI_ALL_TYPES */
76
77 #if defined(_FRIBIDI_PAR_TYPES) || defined(_FRIBIDI_ALL_TYPES)
78 # if !defined(_FRIBIDI_ALL_TYPES)
79 _FRIBIDI_ADD_TYPE (LTR, 'L')    /* Left-To-Right paragraph */
80 _FRIBIDI_ADD_TYPE (RTL, 'R')    /* Right-To-Left paragraph */
81 _FRIBIDI_ADD_TYPE (ON, 'n')     /* directiOn-Neutral paragraph */
82 # endif /* !_FRIBIDI_ALL_TYPES */
83 _FRIBIDI_ADD_TYPE (WLTR, 'l')   /* Weak Left To Right paragraph */
84 _FRIBIDI_ADD_TYPE (WRTL, 'r')   /* Weak Right To Left paragraph */
85 #endif /* _FRIBIDI_PAR_TYPES || _FRIBIDI_ALL_TYPES*/
86
87 #if defined(_FRIBIDI_ENUM_TYPES)
88 typedef enum {
89 # define _FRIBIDI_ADD_TYPE _FRIBIDI_ENUM_ADD_TYPE
90 # include "fribidi-bidi-types-list.h"
91 # undef _FRIBIDI_ADD_TYPE
92   _FRIBIDI_TYPES_MAX
93 } _FRIBIDI_ENUM_TYPES
94 #endif /* _FRIBIDI_ENUM_TYPES */
95
96 #ifndef __FRIBIDI_DOC
97 /* *INDENT-ON* */
98 #endif /* !__FRIBIDI_DOC */