File: xlit.h

package info (click to toggle)
plucker 1.8-34
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 21,340 kB
  • sloc: ansic: 47,691; cpp: 42,310; python: 17,043; makefile: 1,521; perl: 1,492; pascal: 1,123; sh: 474; sed: 64; java: 13; csh: 6
file content (68 lines) | stat: -rwxr-xr-x 2,421 bytes parent folder | download | duplicates (4)
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
/*
 * $Id: xlit.h,v 1.4 2004/03/02 04:08:39 prussar Exp $
 *
 * Viewer - a part of Plucker, the free off-line HTML viewer for PalmOS
 * Copyright (c) 1998-2002, Mark Ian Lillywhite and Michael Nordstrom
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */

#ifndef PLUCKER_XLIT_H
#define PLUCKER_XLIT_H

#include "viewer.h"

#ifdef SUPPORT_TRANSLITERATION

#define TRANSLITERATION_FLAG_8BIT                   1
#define TRANSLITERATION_FLAG_OUT_OF_RANGE_NO_CHANGE 2
#define TRANSLITERATION_FLAG_SYMMETRIC              4
#define TRANSLITERATION_NAME_LENGTH                 59

typedef struct {
    UInt32 version; /* currently only 1 is supported */
    UInt32 flags;   /* currently TRANSLITERATION_FLAG_8BIT must be set */
    Char   name[ TRANSLITERATION_NAME_LENGTH + 1 ];
    UInt16 firstGlyph;
    UInt16 lastGlyph;
    WChar  outOfRangeMapTo;
    UInt16 dataOffset;
} TransliterationHeader;

extern void OpenTransliterations( void ) XLIT_SECTION;

extern void CloseTransliterations( void ) XLIT_SECTION;

/* Set up xlatTable in accordance with transliteration number
   xlitNum.  Return value: Is the transliteration symmetric.
   *multibyteCharFixP is set to true iff the transliteration
   specifies a value to transliterate multibyte chars to, and
   if so then *multibyteCharFixTo is set to that value. */
extern Boolean SetTransliteration ( UInt16 xlitNum, Char* xlatTable, Boolean*
    multibyteCharFixP, WChar* multibyteCharFixTo ) XLIT_SECTION;

/* Setup transliteration popup on search form */
extern void SetupXlitPopup( void ) XLIT_SECTION;

#else /* SUPPORT_TRANSLITERATION */

#define OpenTransliterations()
#define CloseTransliterations()
#define SetupXlitPopup()

#endif /* SUPPORT_TRANSLITERATION */

#endif /* PLUCKER_XLIT_H */