Showing posts with label wps. Show all posts
Showing posts with label wps. Show all posts

03 February 2014

548. A lot has been happening with Kingsoft WPS

Seems like they have been making progress.

I wrote my original post about wps (also see this post) for version 8.1.0.3724, and on this site they are currently at 9.1.0.4244 -- Alpha 12, patch 3. Judging from all the bugs that have been fixed it seems that the devs have been quite busy. The short interval between different alpha version also indicates that the development is very active. Good stuff.

Basically, WPS is the only reasonable (subjective) solution for reading .docx files on linux that I've encountered.

Either way,if you have a previous version of wps installed, remove it
sudo apt-get autoremove wps-office:i386

Then get on with it:
mkdir ~/tmp
cd ~/tmp
sudo dpkg --add-architecture i386
sudo apt-get update
wget http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/kingsoft-office_9.1.0.4244~a12p3_i386.deb
sudo dpkg -i kingsoft-office_9.1.0.4244~a12p3_i386.deb
sudo apt-get install -f




Missing fonts. Clicking on the link takes you indirectly to bbs.wpn.cn, which is in Chinese.


To sort out the fonts issue above you can join bbs.wpn.cn as shown in this post, then download the wps_symbol_fonts.zip file from this post. Install the fonts by doing
cp ~/Downloads/wps_symbol_fonts.zip ~/.fonts
cd ~/.fonts
unzip wps_symbol_fonts.zip

And start WPS. The 'symbol' issue should be solved. Either way, the look of WPS has been updated, and now it can handle my test file which even MS offerings are struggling with:
See here for a post where I compare different office suites using that file (older post): http://verahill.blogspot.com.au/2013/01/313-which-office-for-linux-users.html

To sort out mime types/file associations do
sudo update-desktop-database /usr/local/share/applications/
sudo update-mime-database /usr/share/mime/

27 August 2013

502. Spell checking in WPS office on linux -- changing language by replacing the default files

To my great shame I am using a piece of non-FOSS to deal with MS Office files -- namely, WPS. As a junior faculty member it'd be professional suicide to try to force other people to deal with the mis-rendered libreoffice files in MS Office, and for some reason no-one uses PDF anymore when sending out forms...

Anyway, in spite of not being open source and not supporting any open formats, WPS can read and save .doc and .docx files in a way that works together with MS Office, and since it runs natively on linux it's a practical solution until the day libre/openoffice become viable alternatives.

There doesn't seem to be any simple way of changing language beyond replacing the default dictionary files. It ain't pretty, but it works.

In my case I wanted Australian English, so I first installed the myspell dictionary:
sudo apt-get install myspell-en-au
mkdir ~/.dictionaries
sudo mv /opt/kingsoft/wps-office/office6/dicts/main.aff /opt/kingsoft/wps-office/office6/dicts/en_us.aff
sudo mv /opt/kingsoft/wps-office/office6/dicts/main.dic /opt/kingsoft/wps-office/office6/dicts/en_us.dic
sudo cp /usr/share/hunspell/en_AU.dic /opt/kingsoft/wps-office/office6/dicts/main.dic
sudo cp /usr/share/hunspell/en_AU.aff /opt/kingsoft/wps-office/office6/dicts/main.aff

Start WPS and it should now speak 'Strine.

09 April 2013

383. WPS for Linux on Debain Wheezy -- Kingsoft Office for Linux

I've covered WPS already here: http://verahill.blogspot.com.au/2013/01/313-which-office-for-linux-users.html

However, given that everything is in Chinese (I'm not Chinese, but I've lived there and can just about struggle my way through a hundred common characters or so) I might as well make a post about how to install it.

Note that this is BETA software -- and there's no shortage of issues as you'll see below..

Intermission
Looking at the different discussion regarding it (e.g. here, here and here) I'm a bit bothered by some of the prejudice and xenophobia that abounds. I originally had a long discussion here, based on actually having lived in China, but it all boils down to:
Use reasonable firewall policies, monitor your computer for compromise, and take a healthy distrust to any commercial or political entity. Just like you always should, in particular with close source software and always with pre-compiled binaries (whether open or closed source). Be a bit more cautious than normal, since you probably don't visit Chinese BBS:s on a regular basis and might not hear about any problems -- security or otherwise --that users have identified.
Intermission over

Installing WPS
Go to http://linux.wps.cn/

You can figure out which link to click by hovering over the options. 下 means 'down', which gives an indication that it might be a link for downloading.
And it takes us here:

Download the package you want.


Note that downloading is very slow (5 kb/s), at least from Australia, as Chinese websites tend to be.

Some direct links are here otherwise -- only download one of the files (i.e. rpm, deb or 'generic'):
http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/wps-office-8.1.0.3724-0.1.b1p2.i686.rpm
http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/wps-office_8.1.0.3724~b1p2_i386.deb
http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/wps-office_8.1.0.3724~b1p2_x86.tar.xz

Install dependencies. I'm presuming that you're on 64 bit linux -- in which case you'll need to add i386 as an architecture (sudo dpkg --add-architecture i386) in addition to installing ia32-libs. If you're on 32 bit linux you can omit ia32-libs. This blog spells out how to switch from Chinese to English
sudo apt-get install ia32-libs ttf-mscorefonts-installer
sudo dpkg -i wps-office_8.1.0.3724~b1p2_i386.deb
cd /opt/kingsoft/wps-office/office6/2052/
sudo rm qt.qm wps.qm wpp.qm et.qm

And then simply start

First look
We're still 'missing' some proprietary Microsoft fonts. So far the only effect of this is that I can't use the equation editor (greyed out), which is a big issue as far as I am concerned. 

On top of that, requiring a certain proprietary font set makes WPS almost useless as an alternative to MS Office, since it can be had for close to free in China.Add to that that in the west e.g. Wingdings 2 (which is useless for all other purposes) costs around $20, which is about 5-10 times more than an entire cracked office copy does in China.

In addition, I DO have libglu (-mesa) installed.

 Here's another big issue -- no open formats to save in.It's a bit TOO close to Office at this point.

If I try to export to PDF I get this error, which I presume is unrelated to the libGLU error before.

When I clicked to change user interface (see arrow) I ended up with this (Docer) which looks like an online directory. Still need someone to help me out with translating that.


Sorting out the fonts
Note that even if you follow all of the steps below you will still not be able to insert equations.

Attempt 1

I added  fonts from an XP iso that I had by following this thread. Note that it didn't actually solve anything and you will most likely gain nothing from following this procedure (but I wrote it up, so I'll post it)
sudo mount -o loop WinXP\ Pro\ US\ with\ SP1\ \&\ MS03-39.iso /mnt
cd /mnt/I386/
cp *.TT_ ~/tmp/fonts
cp *.FO_ ~/tmp/fonts
cd LANG/
cp *.TT_ ~/tmp/fonts
cp *.FO_ ~/tmp/fonts
cd ~/tmp/fonts
sudo apt-get install cabextract
cabextract *
sudo mkdir /usr/share/fonts/ms-truetype
sudo cp *.ttf /usr/share/fonts/ms-truetype
fc-cache -fv

But it didn't sort out Wingdings 2, Wingdings 3 and MT Extra.

Luckily, MT Extra could be sorted out like this:
Go to http://www.ufonts.com/download/mt-extra/30743.html, and download. Copy the ttf file to /usr/share/fonts/ms-truetype and run fc-cache -fv if the directory didn't already exist.

Attempt 2.
To sort out the rest you need to break the law/help someone break the law (depends on the jurisdiction):
First register at the WPS forums:
http://i.wps.cn/?mod=passport&act=register&do=showReg
 You'll first have to give a nickname.



Then go here: http://bbs.wps.cn/thread-22360374-1-1.html



Download by clicking on fonts.zip.
sudo apt-get install file-roller
cd ~/tmp/fonts
mkdir rpms
cd rpms
mv ~/Downloads/fonts.zip .
unzip fonts.zip

Use file roller to extract the ttf files from the rpms:

Then install them:
sudo mv *.ttf /usr/share/fonts/ms-truetype/

If you start WPS now you should not have any errors about missing fonts.

Conclusion
This is a beta, so we can accept that not everything is working properly. However, a beta is meant to hammer out bugs, not to be feature incomplete, so when there's a reliance on proprietary fonts and a lack of open file formats to save to, this means that the finished product won't be able to do that either.

And that pretty much precludes the use of WPS with just about anyone who has switched to Linux on their own volition.

On the other hand, it may ease the transition from Windows to Linux among computer-illiterate (and -agnostic) users -- the interface is quite familiar to those who have used Office 2007, and WPS renders files extremely faithfully -- much better than even Microsoft Live Office which can't handle Office 2003 files properly.


Links to this post:
http://naatti0.wordpress.com/2013/04/27/kingsoft-office-suite/