summaryrefslogtreecommitdiff
path: root/Build/source/texk/ptexenc/unicode-jp.h
blob: 6d583ac53d5cf004a22eab78e40bf2700465bc0b (plain)
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
/*
  unicode-jp.h -- JIS X 0208 <=> UCS-2 converter
  written by N. Tsuchimura
*/

#ifndef PTEXENC_UNICODE_JP_H
#define PTEXENC_UNICODE_JP_H

#include <kpathsea/types.h>

/* convert a JIS X 0208 char to UCS-2 */
extern KPSEDLL int JIStoUCS2(int jis);

/* convert a UCS-2 char to JIS X 0208 */
extern KPSEDLL int UCS2toJIS(int ucs2);

/* for U+3099 or  U+309A */
extern KPSEDLL int get_voiced_sound(int ucs2, boolean semi);

#define U_BOM			0xFEFF
#define U_REPLACEMENT_CHARACTER	0xFFFD
#define U_VOICED		0x3099
#define U_SEMI_VOICED		0x309A

#endif /* PTEXENC_UNICODE_JP_H */