summaryrefslogtreecommitdiff
path: root/Build/source/texk/ptexenc/unicode-jp.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ptexenc/unicode-jp.h')
-rw-r--r--Build/source/texk/ptexenc/unicode-jp.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/texk/ptexenc/unicode-jp.h b/Build/source/texk/ptexenc/unicode-jp.h
new file mode 100644
index 00000000000..6d583ac53d5
--- /dev/null
+++ b/Build/source/texk/ptexenc/unicode-jp.h
@@ -0,0 +1,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 */