RSS

Tag Archives: 中文

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: , , , , , , ,

 
%d bloggers like this: