Page 9 of 9 FirstFirst ... 789
Results 81 to 85 of 85

Thread: HOWTO: CJK in Wine (Chinese, Japanese & Korean)

  1. #81
    Join Date
    Sep 2010
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: CJK in Wine (Chinese)

    Hello I just reinstalled my 32.bit Ubuntu 10.10 Maverick and needed to reinstall the Chinese fonts in Wine. So I will take the first post and modify it to reflect the actual situation. The modified post is for Chinese font only.

    Quote Originally Posted by D-- View Post
    Step 1: Getting the Locales

    Execute the following:
    $ cd /var/lib/locales/supported.d/
    # touch zh
    Now open up the three files in a text editor and make certain each contains the following lines.

    zh_CN.UTF-8 UTF-8
    zh_TW.UTF-8 UTF-8
    zh_CN GB2312
    zh_CN.GBK GBK
    zh_CN.GB18030 GB18030
    zh_TW Big5
    If the lines are there and everything is saved, run:

    # dpkg-reconfigure locales
    It will throw a warning about SJIS, but trust me, it's OK. Run the command again and everything will say "up-to-date" this time.

    Next, prepare for a hellishly long download depending on which fonts you have installed (and if you live in, say, China, like me--our Ubuntu mirror sucks)
    I took out the package ttf-saxanami-mincho since I got the error E: Unable to locate

    # apt-get install ttf-arphic-ukai ttf-arphic-uming ttf-kochi-gothic ttf-kochi-mincho ttf-mikachan ttf-mona ttf-sazanami-gothic  ttf-vlgothic ttf-alee ttf-arphic-ukai ttf-arphic-uming ttf-baekmuk ttf-unfonts ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-ukai ttf-arphic-uming
    Next up, even with all those installed, we will be missing a true Chinese font that handles multiple encodings. Don't suggest any of the AR fonts. It will FAIL on the menu bar of a Wine application. This step is necessary.

    We will install Vera Sans YuanTi provided by the Chinese Ubuntu project. Sadly, there's no easy package for this one. We have to do: Well this is the tricky part. I have downloaded this package one year before, and don't have the exact link no more, so you will have to Google/Baidu for it yourself. The link here in the code is no longer accesible.

    $ wget   
    $ tar -zxpvf VeraSansYuanTi.tar.gz
    # mv VeraSansYuanTi /usr/share/fonts/
    # fc-cache -f
    # cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.old
    # cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
    If you check the INSTALL file of WineLocale, you'll find information about installing Windows fonts. I will leave it out of this guide, because even without those we will get a fully functioning CJK Wine this way If you want the exact same fonts found in Window, follow that part of the guide.

    Step 2: Stealing a nice Wine setup

    # apt-get update
    # apt-get install cabextract wine
    $ wget
    $ tar zxpvf ies4linux-latest.tar.gz
    $ cd ies4linux-*
    $ ./ies4linux
    Run the new "ie6" command once and close it. Now do:
    $ cp -r ~/.ies4linux/downloads/ie6/* ~/.wine/
    [/code]Step 3: Install WineLocale

    Download WineLocale from my website <> or grab it with wget:

    $ wget
    $ tar zxpvf wineloc-0.41.tar.gz
    $ cd wineloc-0.41
    $ ./install
    This will install the WineLocale default files in /usr/local/share/wineloc and create a symlink in /usr/local/bin. You can now run "wineloc" from anywhere on your system.

    Step 4: Using WineLocale

    WineLocale, at base, is extremely easy to use. The simplest command line is:

    $ wineloc -l zh_CN /path/to/executable.exe
    -l is the locale flag. If omitted, WineLocale will run it in your current system locale. Valid options are:[*]ja_JP - Japanese[*]ko_KR - Korean[*]zh_CN - Chinese (Simplified)[*]zh_TW - Chinese (Traditional)

    zh_HK and zh_SG will just alias to the other two Chinese modes if you use them. There is also a -o flag that will let you enable DLL overrides (use real DLLs instead of Wine's). This option is tied to a IEs4Linux created Wine setup. If you didn't use theirs, don't touch it or evil magic may happen. Hey, don't complain about "choice": you have the choice not to follow this guide

    There's also one more option, -f, which lets you specify a different font group. "common" is the default, but there is also a "win" packed in if you followed the guide to install Windows fonts.

    You can create your own font themes and overrides if you explore ~/.wineloc/patches, but that's a topic for another guide.

    If you followed everything so far, congratulation, you can now run CJK applications in Wine. On launch, the registry will be hacked up to fit your locale. On exit, everything reverts back to the default so your normal Wine applications won't exhibit any odd behavior. If you manage to "crash" it so settings get stuck, you can run this command to reset all font preferences. Ignore any "errors":

    $ regedit /usr/local/share/wineloc/patches/default.reg
    If you check my website, you can see pictures of CJK applications running using WineLocale. To get your Wine applications looking close to the rest of your UI, you need to use "winecfg". Check section iii of INSTALL, "Configuring Wine with winecfg," to see how to do this.

    Have fun
    Sony Vaio SA i7 SandyBridge Radeon 6630m&Intel HD 3000 graphics
    Ubuntu 11.10 32-bit

  2. #82
    Join Date
    Sep 2007
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: CJK in Wine (Chinese, Japanese & Korean)

    for me running on mac all I need is:

    env LC_ALL=ja_JP.UTF-8 wine executable.exe
    I demand Usability.

  3. #83
    Join Date
    Jul 2011
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: CJK in Wine (Chinese, Japanese & Korean)

    THANKS Pencilcheck, really I've been busting my balls for this, it worked finally the damn installer show japanese letters. Now to the next error "Windows Installer" BLARGH

    Anyway, the download for the winelocale is off, and the google apps page completely empty. I wish i had seem this sooner , also it should offer WINEPREFIX support.

  4. #84
    Join Date
    Dec 2011

    Re: HOWTO: CJK in Wine (Chinese, Japanese & Korean)

    $ wineloc -l ja_JP osana.exe
    WineLocale 0.41 - CJK Launcher for Wine (cli)
    Using locale file /usr/local/share/wineloc/patches/common/ja_JP.reg ...
    Setting up Japanese Shift-JIS locale ...
    err:module:import_dll Library TDI.SYS (which is needed by L"C:\\windows\\system32\\drivers\\idmtdi.sys") not found
    err:winedevice:ServiceMain driver L"IDMTDI" failed to load
    wine: cannot find L"C:\\windows\\system32\\plugplay.exe"
    I wonder why it always says this even though i installed japanese front and winelocales

    and it said this when i run $sudo dpkg-reconfigure locales

    ja_JP.EUC-JP... hash collision (1716845122) ja_JP.eucjp, ar_OM.utf8
    ja_JP.SJIS... up-to-date
    ja_JP.UTF-8... up-to-date

  5. #85
    Join Date
    Sep 2012

    Re: HOWTO: CJK in Wine (Chinese, Japanese & Korean)

    Thanks for the HOWTO

Page 9 of 9 FirstFirst ... 789


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts