To: kde-devel@kde.org Subject: Tips to use Japanese Date: Mon, 17 Jan 2000 22:56:48 +0900 From: Takumi ASAKI <asataku@osk3.3web.ne.jp> Tips to use Japanese with KDE2-current 1. apply belove patch to bug fix klocale.cpp and to support Japanese in kcharsets.cpp 2. set ja/chatsets % echo eucJP > $KDEDIR/share/locale/ja/charset or % echo eucJP > kde-i18n/ja/messages/charset and install kde-i18n 3. don't use unicode fonts with konsole 9x15.pcf.gz console8x16.pcf.gz console8x8.pcf.gz with konsole don't has Japanese Characters. So, if you would use these, you couldn't show Japanese fonts. 4. set KDE_LANG to ja_JP.eucJP 5. don't exec kwin with Japanese locale. kwin hung up when execute it with Japanese locale. Where to hung up is XCreateIC in Qt. So, you can see Japanese in menu. But konqueror doesn't show Japanese. -- Che Che - Bye Bye From: Takumi ASAKI <asataku@osk3.3web.ne.jp> URL: http://www3.osk.3web.ne.jp/~asataku/ diff -cr ../kde/kdelibs/kdecore/kcharsets.cpp kdelibs/kdecore/kcharsets.cpp *** ../kde/kdelibs/kdecore/kcharsets.cpp Sat Jan 15 03:56:31 2000 --- kdelibs/kdecore/kcharsets.cpp Mon Jan 17 22:12:13 2000 *************** *** 51,57 **** "iso-8859-14", "iso-8859-15", "koi8r", ! "set-ja", "euckr", "set-th-th", "set-zh", --- 51,57 ---- "iso-8859-14", "iso-8859-15", "koi8r", ! "eucjp", "euckr", "set-th-th", "set-zh", *************** *** 78,84 **** "iso8859-14", "iso8859-15", "koi8", ! "unknown", "ksc5601.1987-0", "unknown", "unknown", --- 78,84 ---- "iso8859-14", "iso8859-15", "koi8", ! "jisx0208.1983-0", "ksc5601.1987-0", "unknown", "unknown", *************** *** 539,544 **** --- 541,547 ---- case QFont::Set_Ko: return "ksc5601.1987-0"; case QFont::Set_Ja: + return "jisx0208.1983-0"; case QFont::Set_Th_TH: case QFont::Set_Zh: case QFont::Set_Zh_TW: diff -cr ../kde/kdelibs/kdecore/klocale.cpp kdelibs/kdecore/klocale.cpp *** ../kde/kdelibs/kdecore/klocale.cpp Sun Jan 16 09:53:31 2000 --- kdelibs/kdecore/klocale.cpp Mon Jan 17 22:11:48 2000 *************** *** 249,255 **** int f = languages.find(':'); if (f > 0) { _lang = languages.left(f); ! languages.remove(0, _lang.length() - 1); } else { _lang = languages; languages = ""; --- 249,255 ---- int f = languages.find(':'); if (f > 0) { _lang = languages.left(f); ! languages.remove(0, _lang.length() + 1); } else { _lang = languages; languages = ""; *************** *** 270,276 **** lng[counter++]=ln; int i; ! for(i=0; !lng[i+1].isNull(); i++) if (!locate("locale", lng[i] + QString::fromLatin1("/LC_MESSAGES/") + catalogue + QString::fromLatin1(".mo")).isNull() && !locate("locale", lng[i] + QString::fromLatin1("/LC_MESSAGES/" SYSTEM_MESSAGES ".mo")).isNull()) { --- 270,276 ---- lng[counter++]=ln; int i; ! for(i=0; !lng[i].isNull(); i++) if (!locate("locale", lng[i] + QString::fromLatin1("/LC_MESSAGES/") + catalogue + QString::fromLatin1(".mo")).isNull() && !locate("locale", lng[i] + QString::fromLatin1("/LC_MESSAGES/" SYSTEM_MESSAGES ".mo")).isNull()) {