1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/* Pango
* pango-indic.h: Library for Indic script rendering
*
* Copyright (C) 2000 SuSE Linux Ltd.
*
* Author: Robert Brady <rwb197@zepler.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* Licence as published by the Free Software Foundation; either
* version 2 of the Licence, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public Licence for more details.
*
* You should have received a copy of the GNU Library General Public
* Licence along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
* This library is basically internal
*
* Don't use it, unless you are me, or are in contact with me,
* or like living dangerously.
*/
#ifndef __PANGO_PANGO_INDIC_H__
#define __PANGO_PANGO_INDIC_H__
#define ZERO_WIDTH_NON_JOINER 0x200c
#define ZERO_WIDTH_JOINER 0x200d
typedef struct _PangoIndicScript PangoIndicScript;
struct _PangoIndicScript {
/* Compulsory */
gchar *name;
/* Compulsory */
gboolean (*is_prefixing_vowel) (gunichar what);
/* Compulsory */
gboolean (*is_vowel_sign) (gunichar what);
/* Optional */
gunichar (*vowel_sign_to_matra) (gunichar what);
/* Optional */
gboolean (*is_vowel_half) (gunichar what);
/* Optional */
gboolean (*vowel_split) (gunichar what,
gunichar *prefix,
gunichar *suffix);
};
void pango_indic_shift_vowels (PangoIndicScript *script,
gunichar *chars,
gunichar *end);
void pango_indic_compact (PangoIndicScript *script,
int *num,
gunichar *chars,
int *cluster);
void pango_indic_convert_vowels (PangoIndicScript *script,
gboolean in_middle,
int *num,
gunichar *chars,
gboolean has_standalone_vowels);
void pango_indic_split_out_characters (PangoIndicScript *script,
const gchar *text,
int n_chars,
gunichar **wc,
int *n_glyph,
PangoGlyphString *glyphs);
#endif
|