Tesseract 3.02

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
unicodes.h
Go to the documentation of this file.
1 /**********************************************************************
2 * File: unicodes.h
3 * Description: Unicode related machinery
4 * Author: David Eger
5 * Created: Wed Jun 15 16:37:50 PST 2011
6 *
7 * (C) Copyright 2011, Google, Inc.
8 ** Licensed under the Apache License, Version 2.0 (the "License");
9 ** you may not use this file except in compliance with the License.
10 ** You may obtain a copy of the License at
11 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 *
18 **********************************************************************/
19
20 #ifndef TESSERACT_CCUTIL_UNICODES_H__
21 #define TESSERACT_CCUTIL_UNICODES_H__
22
23 namespace tesseract {
24
25 extern const char *kUTF8LineSeparator;
26 extern const char *kUTF8ParagraphSeparator;
27 extern const char *kLRM; // Left-to-Right Mark
28 extern const char *kRLM; // Right-to-Left Mark
29 extern const char *kRLE; // Right-to-Left Embedding
30 extern const char *kPDF; // Pop Directional Formatting
31
32 // The following are confusable internal word punctuation symbols
33 // which we normalize to the first variant when matching in dawgs.
34 extern const char *kHyphenLikeUTF8[];
35 extern const char *kApostropheLikeUTF8[];
36
37 } // namespace
38
39 #endif // TESSERACT_CCUTIL_UNICODES_H__