summaryrefslogtreecommitdiff
path: root/src/static_libs/libunibreak/linebreakdef.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-01-21 16:41:06 +0000
committerTom Hacohen <tom@stosb.com>2014-01-21 16:41:06 +0000
commitcff1a9a59f40b1e83ed1db8145108cae53504d4f (patch)
tree524c58e21db031ab6acd6382dfdacb9c66d91a65 /src/static_libs/libunibreak/linebreakdef.c
parentcc8fa1da451d588e4218a2b8f8d3eebb9b38890f (diff)
Synced libunibreak local copy with upstream.
This fixes T805.
Diffstat (limited to 'src/static_libs/libunibreak/linebreakdef.c')
-rw-r--r--src/static_libs/libunibreak/linebreakdef.c102
1 files changed, 51 insertions, 51 deletions
diff --git a/src/static_libs/libunibreak/linebreakdef.c b/src/static_libs/libunibreak/linebreakdef.c
index fb6744da33..3455afd687 100644
--- a/src/static_libs/libunibreak/linebreakdef.c
+++ b/src/static_libs/libunibreak/linebreakdef.c
@@ -1,4 +1,4 @@
1/* vim: set tabstop=4 shiftwidth=4: */ 1/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
2 2
3/* 3/*
4 * Line breaking in a Unicode sequence. Designed to be used in a 4 * Line breaking in a Unicode sequence. Designed to be used in a
@@ -24,27 +24,27 @@
24 * distribution. 24 * distribution.
25 * 25 *
26 * The main reference is Unicode Standard Annex 14 (UAX #14): 26 * The main reference is Unicode Standard Annex 14 (UAX #14):
27 * <URL:http://www.unicode.org/reports/tr14/> 27 * <URL:http://www.unicode.org/reports/tr14/>
28 * 28 *
29 * When this library was designed, this annex was at Revision 19, for 29 * When this library was designed, this annex was at Revision 19, for
30 * Unicode 5.0.0: 30 * Unicode 5.0.0:
31 * <URL:http://www.unicode.org/reports/tr14/tr14-19.html> 31 * <URL:http://www.unicode.org/reports/tr14/tr14-19.html>
32 * 32 *
33 * This library has been updated according to Revision 30, for 33 * This library has been updated according to Revision 30, for
34 * Unicode 6.2.0: 34 * Unicode 6.2.0:
35 * <URL:http://www.unicode.org/reports/tr14/tr14-30.html> 35 * <URL:http://www.unicode.org/reports/tr14/tr14-30.html>
36 * 36 *
37 * The Unicode Terms of Use are available at 37 * The Unicode Terms of Use are available at
38 * <URL:http://www.unicode.org/copyright.html> 38 * <URL:http://www.unicode.org/copyright.html>
39 */ 39 */
40 40
41/** 41/**
42 * @file linebreakdef.c 42 * @file linebreakdef.c
43 * 43 *
44 * Definition of language-specific data. 44 * Definition of language-specific data.
45 * 45 *
46 * @version 2.2, 2012/10/06 46 * @version 2.2, 2012/10/06
47 * @author Wu Yongwei 47 * @author Wu Yongwei
48 */ 48 */
49 49
50#include "linebreak.h" 50#include "linebreak.h"
@@ -54,72 +54,72 @@
54 * English-specifc data over the default Unicode rules. 54 * English-specifc data over the default Unicode rules.
55 */ 55 */
56static struct LineBreakProperties lb_prop_English[] = { 56static struct LineBreakProperties lb_prop_English[] = {
57 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */ 57 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */
58 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */ 58 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */
59 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */ 59 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */
60 { 0, 0, LBP_Undefined } 60 { 0, 0, LBP_Undefined }
61}; 61};
62 62
63/** 63/**
64 * German-specifc data over the default Unicode rules. 64 * German-specifc data over the default Unicode rules.
65 */ 65 */
66static struct LineBreakProperties lb_prop_German[] = { 66static struct LineBreakProperties lb_prop_German[] = {
67 { 0x00AB, 0x00AB, LBP_CL }, /* Left double angle quotation mark: closing */ 67 { 0x00AB, 0x00AB, LBP_CL }, /* Left double angle quotation mark: closing */
68 { 0x00BB, 0x00BB, LBP_OP }, /* Right double angle quotation mark: opening */ 68 { 0x00BB, 0x00BB, LBP_OP }, /* Right double angle quotation mark: opening */
69 { 0x2018, 0x2018, LBP_CL }, /* Left single quotation mark: closing */ 69 { 0x2018, 0x2018, LBP_CL }, /* Left single quotation mark: closing */
70 { 0x201C, 0x201C, LBP_CL }, /* Left double quotation mark: closing */ 70 { 0x201C, 0x201C, LBP_CL }, /* Left double quotation mark: closing */
71 { 0x2039, 0x2039, LBP_CL }, /* Left single angle quotation mark: closing */ 71 { 0x2039, 0x2039, LBP_CL }, /* Left single angle quotation mark: closing */
72 { 0x203A, 0x203A, LBP_OP }, /* Right single angle quotation mark: opening */ 72 { 0x203A, 0x203A, LBP_OP }, /* Right single angle quotation mark: opening */
73 { 0, 0, LBP_Undefined } 73 { 0, 0, LBP_Undefined }
74}; 74};
75 75
76/** 76/**
77 * Spanish-specifc data over the default Unicode rules. 77 * Spanish-specifc data over the default Unicode rules.
78 */ 78 */
79static struct LineBreakProperties lb_prop_Spanish[] = { 79static struct LineBreakProperties lb_prop_Spanish[] = {
80 { 0x00AB, 0x00AB, LBP_OP }, /* Left double angle quotation mark: opening */ 80 { 0x00AB, 0x00AB, LBP_OP }, /* Left double angle quotation mark: opening */
81 { 0x00BB, 0x00BB, LBP_CL }, /* Right double angle quotation mark: closing */ 81 { 0x00BB, 0x00BB, LBP_CL }, /* Right double angle quotation mark: closing */
82 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */ 82 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */
83 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */ 83 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */
84 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */ 84 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */
85 { 0x2039, 0x2039, LBP_OP }, /* Left single angle quotation mark: opening */ 85 { 0x2039, 0x2039, LBP_OP }, /* Left single angle quotation mark: opening */
86 { 0x203A, 0x203A, LBP_CL }, /* Right single angle quotation mark: closing */ 86 { 0x203A, 0x203A, LBP_CL }, /* Right single angle quotation mark: closing */
87 { 0, 0, LBP_Undefined } 87 { 0, 0, LBP_Undefined }
88}; 88};
89 89
90/** 90/**
91 * French-specifc data over the default Unicode rules. 91 * French-specifc data over the default Unicode rules.
92 */ 92 */
93static struct LineBreakProperties lb_prop_French[] = { 93static struct LineBreakProperties lb_prop_French[] = {
94 { 0x00AB, 0x00AB, LBP_OP }, /* Left double angle quotation mark: opening */ 94 { 0x00AB, 0x00AB, LBP_OP }, /* Left double angle quotation mark: opening */
95 { 0x00BB, 0x00BB, LBP_CL }, /* Right double angle quotation mark: closing */ 95 { 0x00BB, 0x00BB, LBP_CL }, /* Right double angle quotation mark: closing */
96 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */ 96 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */
97 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */ 97 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */
98 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */ 98 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */
99 { 0x2039, 0x2039, LBP_OP }, /* Left single angle quotation mark: opening */ 99 { 0x2039, 0x2039, LBP_OP }, /* Left single angle quotation mark: opening */
100 { 0x203A, 0x203A, LBP_CL }, /* Right single angle quotation mark: closing */ 100 { 0x203A, 0x203A, LBP_CL }, /* Right single angle quotation mark: closing */
101 { 0, 0, LBP_Undefined } 101 { 0, 0, LBP_Undefined }
102}; 102};
103 103
104/** 104/**
105 * Russian-specifc data over the default Unicode rules. 105 * Russian-specifc data over the default Unicode rules.
106 */ 106 */
107static struct LineBreakProperties lb_prop_Russian[] = { 107static struct LineBreakProperties lb_prop_Russian[] = {
108 { 0x00AB, 0x00AB, LBP_OP }, /* Left double angle quotation mark: opening */ 108 { 0x00AB, 0x00AB, LBP_OP }, /* Left double angle quotation mark: opening */
109 { 0x00BB, 0x00BB, LBP_CL }, /* Right double angle quotation mark: closing */ 109 { 0x00BB, 0x00BB, LBP_CL }, /* Right double angle quotation mark: closing */
110 { 0x201C, 0x201C, LBP_CL }, /* Left double quotation mark: closing */ 110 { 0x201C, 0x201C, LBP_CL }, /* Left double quotation mark: closing */
111 { 0, 0, LBP_Undefined } 111 { 0, 0, LBP_Undefined }
112}; 112};
113 113
114/** 114/**
115 * Chinese-specifc data over the default Unicode rules. 115 * Chinese-specifc data over the default Unicode rules.
116 */ 116 */
117static struct LineBreakProperties lb_prop_Chinese[] = { 117static struct LineBreakProperties lb_prop_Chinese[] = {
118 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */ 118 { 0x2018, 0x2018, LBP_OP }, /* Left single quotation mark: opening */
119 { 0x2019, 0x2019, LBP_CL }, /* Right single quotation mark: closing */ 119 { 0x2019, 0x2019, LBP_CL }, /* Right single quotation mark: closing */
120 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */ 120 { 0x201C, 0x201C, LBP_OP }, /* Left double quotation mark: opening */
121 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */ 121 { 0x201D, 0x201D, LBP_CL }, /* Right double quotation mark: closing */
122 { 0, 0, LBP_Undefined } 122 { 0, 0, LBP_Undefined }
123}; 123};
124 124
125/** 125/**
@@ -129,11 +129,11 @@ static struct LineBreakProperties lb_prop_Chinese[] = {
129 * you may want to redefine \e lb_prop_lang_map in your C source file. 129 * you may want to redefine \e lb_prop_lang_map in your C source file.
130 */ 130 */
131struct LineBreakPropertiesLang lb_prop_lang_map[] = { 131struct LineBreakPropertiesLang lb_prop_lang_map[] = {
132 { "en", 2, lb_prop_English }, 132 { "en", 2, lb_prop_English },
133 { "de", 2, lb_prop_German }, 133 { "de", 2, lb_prop_German },
134 { "es", 2, lb_prop_Spanish }, 134 { "es", 2, lb_prop_Spanish },
135 { "fr", 2, lb_prop_French }, 135 { "fr", 2, lb_prop_French },
136 { "ru", 2, lb_prop_Russian }, 136 { "ru", 2, lb_prop_Russian },
137 { "zh", 2, lb_prop_Chinese }, 137 { "zh", 2, lb_prop_Chinese },
138 { NULL, 0, NULL } 138 { NULL, 0, NULL }
139}; 139};