pkgsrc/print/cjk-lyx/patches/patch-ac
agc e8d16d6af6 Initial import of cjk-lyx-1.2.0 into the NetBSD Packages Collection.
Provided in PR 17646 by Rui-Xiang Guo (rxg@ms25.url.com.tw)

CJK-LyX is a multibyte version of LyX, the text processing document
processor, or simply a new and advanced kind of word processors.  More
specifically, CJK-LyX is the patched version of LyX for Chinese,
Japanese and Korean language users.  CJK-LyX is based on the earlier
patch against lyx-1.0.3 by Masahiko Kawakami and critical
contributions from Chideok Hwang, who is also the author of the Korean
input method Ami.
2002-07-19 12:32:31 +00:00

16 lines
544 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2002/07/19 12:32:32 agc Exp $
--- src/WorkArea.C.porig Fri Jul 19 13:22:01 2002
+++ src/WorkArea.C
@@ -420,7 +420,11 @@
LyXLookupString(ev, dummy, 1, &keysym);
#endif
#else
+#ifdef I18N
+ int num_bytes = XLookupString(xke, s_r, 256, &keysym, 0);
+#else
XLookupString(xke, dummy, 1, &keysym, 0);
+#endif
// int num_keys = XLookupString(xke, dummy, 10, &keysym, &xcs);
// lyxerr << "We have " << num_keys << " keys in the returned buffer" << endl;
// lyxerr << "Our dummy string is " << dummy << endl;