RSS

Tag Archives: chinese

WineHQ for Microsoft Office 2010

Edited on 6th May 2013.

This is an update for How-to install Microsoft Office 2010 via WineHQ in Ubuntu 12.10 and Ubuntu 13.04. The Wine I am using is 1.4.1. Hope this may help.

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts wine-mono

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) In order for Office to work properly, you have to install some software from winetricks

4.1) Open Winetricks
4.2) Select "Select the default wineprefix", then click OK.
4.3) Select "Install a Windows DLL or component", then click OK.
4.4) Select and install the following components:
4.4.1) dotnet20(*)
4.4.2) msxml6
4.4.3) vcrun2005
(*) : Since this file could not download automatically,
please follow the prompt, download the file,
copy it to the designated directory,
re-run winetricks and install this file again.

5) Install Microsoft Office 2010

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

7.1) Open Winetricks
7.2) Select "Select the default wineprefix", then click OK.
7.3) Select "Run winecfg", then click OK.
7.4) Go to the "Library" tab:
7.4.1) Edit "msxml6" to "Native (Windows)"
7.4.2) Edit "msvcp90" to "Native (Windows)"
7.4.3) Add "gdiplus", then edit it to "Native (Windows)"
7.4.4) Add "riched20", then edit it to "Native (windows)"
7.4.5) Now can click "Apply" then "OK"

8) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

9) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

10) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Edit the following files:
Microsoft Office Access 2010.desktop
Microsoft Office Excel 2010.desktop
Microsoft Office Groove 2010.desktop
Microsoft Office InfoPath 2010.desktop
Microsoft Office OneNote 2010.desktop
Microsoft Office Outlook 2010.desktop
Microsoft Office PowerPoint 2010.desktop
Microsoft Office Publisher 2010.desktop
Microsoft Office Word 2010.desktop
----------------------------------------
Change:
Exec=env WINEPREFIX=..............
To:
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
----------------------------------------
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
Advertisements
 
Leave a comment

Posted by on December 11, 2012 in IBus, Linux, Wine

 

Tags: , , , , , , , , ,

WineHQ and IBus for Microsoft Office 2007

Edited on 6th February 2013.

I am using Xubuntu 12.10 with WineHQ 1.4.1,

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) Install Microsoft Office 2007

5) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

5.1) Open Winetricks 
5.2) Select "Select the default wineprefix", then click OK. 
5.3) Select "Run winecfg", then click OK. 
5.4) Go to the "Library" tab: 
5.4.1) Add "riched20", then edit it to "Native (windows)" 
5.4.2) Now can click "Apply" then "OK"

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

8) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

9) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Microsoft Office Access 2007.desktop
Microsoft Office Excel 2007.desktop
Microsoft Office Groove 2007.desktop
Microsoft Office InfoPath 2007.desktop
Microsoft Office OneNote 2007.desktop
Microsoft Office Outlook 2007.desktop
Microsoft Office PowerPoint 2007.desktop
Microsoft Office Publisher 2007.desktop
Microsoft Office Word 2007.desktop
----------------------------------------
Change:
Exec=env WINEPREFIX=..............
To:
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
----------------------------------------
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
 
Leave a comment

Posted by on July 31, 2012 in IBus, Linux, Wine

 

Tags: , , , , , , ,

ibus Traditional Chinese input in English interface

This is a problem back dated since Ubuntu 10.10 when they started to use ibus as the default Chinese input software. The problem is when you start typing, ibus will give out Simplified Chinese character. As I born in Hong Kong, I learn and use Traditional Chinese and I hate and condemn Simplified Chinese. It is a very long story and I am not going to explain here at the moment.

To solve the problem you only need to edit one config file:
1) use your favorite text editor and open /usr/share/ibus-table/engine/table.py
2) Go to line 123, and you should read “# if IME declare as Chinese IME
3) Go to next line, change 0 to 1 if you want ibus to show Traditional Chinese only; or change 0 to 3 if you want traditional first then simplified
4) Save and restart ibus

 
Leave a comment

Posted by on April 1, 2012 in Linux, Ubuntu

 

Tags: , , , ,

 
%d bloggers like this: