summaryrefslogtreecommitdiff
path: root/src/chrtrans/viscii_uni.h
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-09-29 23:36:22 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-09-29 23:36:22 +0200
commit10b92f9712fe85677a4aa84a644c6e90843f5848 (patch)
treea964aab10a7689071e0468ae2b6695903621491d /src/chrtrans/viscii_uni.h
parentf03851864954492f938a8320c01f0fe118ccf322 (diff)
downloadlynx-10b92f9712fe85677a4aa84a644c6e90843f5848.tar.gz
lynx-10b92f9712fe85677a4aa84a644c6e90843f5848.tar.bz2
lynx-10b92f9712fe85677a4aa84a644c6e90843f5848.zip
update
Diffstat (limited to 'src/chrtrans/viscii_uni.h')
-rw-r--r--src/chrtrans/viscii_uni.h111
1 files changed, 111 insertions, 0 deletions
diff --git a/src/chrtrans/viscii_uni.h b/src/chrtrans/viscii_uni.h
new file mode 100644
index 0000000..7066575
--- /dev/null
+++ b/src/chrtrans/viscii_uni.h
@@ -0,0 +1,111 @@
+/*
+ * Compile-in this chunk of code unless we've turned it off specifically
+ * or in general (id=_viscii).
+ */
+
+#ifndef INCL_CHARSET_viscii
+#define INCL_CHARSET_viscii 1
+
+/*ifdef NO_CHARSET*/
+#ifdef NO_CHARSET
+#undef NO_CHARSET
+#endif
+#define NO_CHARSET 0 /* force default to always be active */
+
+/*ifndef NO_CHARSET_viscii*/
+#ifndef NO_CHARSET_viscii
+
+#if ALL_CHARSETS
+#define NO_CHARSET_viscii 0
+#else
+#define NO_CHARSET_viscii 1
+#endif
+
+#endif /* ndef(NO_CHARSET_viscii) */
+
+#if NO_CHARSET_viscii
+#define UC_CHARSET_SETUP_viscii /*nothing*/
+#else
+
+/*
+ * uni_hash.tbl
+ *
+ * Do not edit this file; it was automatically generated by
+ *
+ * ./makeuctb ./viscii_uni.tbl
+ *
+ */
+
+static const u8 dfont_unicount_viscii[256] =
+{
+ 0, 0, 1, 0, 0, 1, 1, 0,
+ 0, 1, 1, 0, 1, 1,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~"}, {0x1ef4,"Y."}, {0x1ef6,"Y?"}, {0x1ef8,"Y~"}
+};
+
+static const struct unimapdesc_str dfont_replacedesc_viscii = {8,repl_map_viscii,0,1};
+#define UC_CHARSET_SETUP_viscii UC_Charset_Setup("viscii",\
+"Vietnamese (VISCII)",\
+dfont_unicount_viscii,dfont_unitable_viscii,142,\
+dfont_replacedesc_viscii,128,3,0)
+
+#endif /* NO_CHARSET_viscii */
+
+#endif /* INCL_CHARSET_viscii */