1 | /* Pango |
2 | * pango-bidi-type.h: Bidirectional Character Types |
3 | * |
4 | * Copyright (C) 2008 Jürg Billeter <[email protected]> |
5 | * |
6 | * This library is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU Library General Public |
8 | * License as published by the Free Software Foundation; either |
9 | * version 2 of the License, or (at your option) any later version. |
10 | * |
11 | * This library is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * Library General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Library General Public |
17 | * License along with this library; if not, write to the |
18 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | * Boston, MA 02111-1307, USA. |
20 | */ |
21 | |
22 | #ifndef __PANGO_BIDI_TYPE_H__ |
23 | #define __PANGO_BIDI_TYPE_H__ |
24 | |
25 | #include <glib.h> |
26 | |
27 | #include <pango/pango-version-macros.h> |
28 | #include <pango/pango-direction.h> |
29 | |
30 | G_BEGIN_DECLS |
31 | |
32 | #ifndef PANGO_DISABLE_DEPRECATED |
33 | /** |
34 | * PangoBidiType: |
35 | * @PANGO_BIDI_TYPE_L: Left-to-Right |
36 | * @PANGO_BIDI_TYPE_LRE: Left-to-Right Embedding |
37 | * @PANGO_BIDI_TYPE_LRO: Left-to-Right Override |
38 | * @PANGO_BIDI_TYPE_R: Right-to-Left |
39 | * @PANGO_BIDI_TYPE_AL: Right-to-Left Arabic |
40 | * @PANGO_BIDI_TYPE_RLE: Right-to-Left Embedding |
41 | * @PANGO_BIDI_TYPE_RLO: Right-to-Left Override |
42 | * @PANGO_BIDI_TYPE_PDF: Pop Directional Format |
43 | * @PANGO_BIDI_TYPE_EN: European Number |
44 | * @PANGO_BIDI_TYPE_ES: European Number Separator |
45 | * @PANGO_BIDI_TYPE_ET: European Number Terminator |
46 | * @PANGO_BIDI_TYPE_AN: Arabic Number |
47 | * @PANGO_BIDI_TYPE_CS: Common Number Separator |
48 | * @PANGO_BIDI_TYPE_NSM: Nonspacing Mark |
49 | * @PANGO_BIDI_TYPE_BN: Boundary Neutral |
50 | * @PANGO_BIDI_TYPE_B: Paragraph Separator |
51 | * @PANGO_BIDI_TYPE_S: Segment Separator |
52 | * @PANGO_BIDI_TYPE_WS: Whitespace |
53 | * @PANGO_BIDI_TYPE_ON: Other Neutrals |
54 | * |
55 | * The #PangoBidiType type represents the bidirectional character |
56 | * type of a Unicode character as specified by the |
57 | * <ulink url="http://www.unicode.org/reports/tr9/">Unicode bidirectional algorithm</ulink>. |
58 | * |
59 | * Since: 1.22 |
60 | * Deprecated: 1.44: Use fribidi for this information |
61 | **/ |
62 | typedef enum { |
63 | /* Strong types */ |
64 | PANGO_BIDI_TYPE_L, |
65 | PANGO_BIDI_TYPE_LRE, |
66 | PANGO_BIDI_TYPE_LRO, |
67 | PANGO_BIDI_TYPE_R, |
68 | PANGO_BIDI_TYPE_AL, |
69 | PANGO_BIDI_TYPE_RLE, |
70 | PANGO_BIDI_TYPE_RLO, |
71 | |
72 | /* Weak types */ |
73 | PANGO_BIDI_TYPE_PDF, |
74 | PANGO_BIDI_TYPE_EN, |
75 | PANGO_BIDI_TYPE_ES, |
76 | PANGO_BIDI_TYPE_ET, |
77 | PANGO_BIDI_TYPE_AN, |
78 | PANGO_BIDI_TYPE_CS, |
79 | PANGO_BIDI_TYPE_NSM, |
80 | PANGO_BIDI_TYPE_BN, |
81 | |
82 | /* Neutral types */ |
83 | PANGO_BIDI_TYPE_B, |
84 | PANGO_BIDI_TYPE_S, |
85 | PANGO_BIDI_TYPE_WS, |
86 | PANGO_BIDI_TYPE_ON |
87 | } PangoBidiType; |
88 | |
89 | PANGO_DEPRECATED_IN_1_44 |
90 | PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST; |
91 | |
92 | PANGO_DEPRECATED_IN_1_44 |
93 | PangoDirection pango_unichar_direction (gunichar ch) G_GNUC_CONST; |
94 | PANGO_DEPRECATED_IN_1_44 |
95 | PangoDirection pango_find_base_dir (const gchar *text, |
96 | gint length); |
97 | |
98 | PANGO_DEPRECATED_FOR(g_unichar_get_mirror_char) |
99 | gboolean pango_get_mirror_char (gunichar ch, |
100 | gunichar *mirrored_ch); |
101 | #endif |
102 | |
103 | G_END_DECLS |
104 | |
105 | #endif /* __PANGO_BIDI_TYPE_H__ */ |
106 | |