WPS Office

From ArchWiki

WPS Office for Linux is a proprietary alternative for Microsoft Office with a modern UI which supports cross-device file transfer and cloud backup. The suite contains Writer, Presentation and Spreadsheets.

Installation

Install wps-officeAUR.

The fonts used by WPS Office are provided by the ttf-wps-fontsAUR package.

The programs in the suite can be run using:

Command Program
wps WPS Writer
et WPS Spreadsheets
wpp WPS Presentation
wpspdf WPS PDF

Tips and tricks

Interface language

Official support is only for English and Chinese (wps-office-cnAUR).

Some languages have unofficial translations; you can install them from the AUR packages:

Then set your language by selecting Review > Spell Check > Set Language to choose your language and restart WPS.

Modify WPS file icon and file association

After installing WPS, the DOC, XLS, PPT and other files in the icon-theme you use will be replaced with the WPS text, ET form, WPP presentation and other icons that come with WPS Office. If you do not need it, you can modify the relevant mime configuration file yourself:

/usr/share/mime/packages/wps-office-{wpp,wps,et}.xml
/usr/share/mime/packages/freedesktop.org.xml #(Belongs to the package shared-mime-info)

And desktop files:

/usr/share/applications/wps-office-{wpp,wps,et}.desktop

Processing strategy: WPS's own format is defined by wps-office-{wpp,wps,et}.xml, and others are defined by freedesktop.org.xml. Also modify the MimeType item of the desktop file.

Add the following statement to the package function in the PKGBUILD file:

##et wpp wps supported MimeType
    _etMT="MimeType=application\/wps-office.et;application\/wps-office.ett;application\/vnd.ms-excel;\
application\/vnd.openxmlformats-officedocument.spreadsheetml.template;\
application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet;"
    _wppMT="MimeType=application\/wps-office.dps;application\/wps-office.dpt;application\/vnd.ms-powerpoint;\
application\/vnd.openxmlformats-officedocument.presentationml.presentation;\
application\/vnd.openxmlformats-officedocument.presentationml.slideshow;\
application\/vnd.openxmlformats-officedocument.presentationml.template;"
    _wpsMT="MimeType=application\/wps-office.wps;application\/wps-office.wpt;\
application\/msword;application\/rtf;application\/msword-template;\
application\/vnd.openxmlformats-officedocument.wordprocessingml.template;\
application\/vnd.openxmlformats-officedocument.wordprocessingml.document;"

    ##mime
    sed -i '3,31d' $pkgdir/usr/share/mime/packages/wps-office-et.xml
    sed -i '3,36d' $pkgdir/usr/share/mime/packages/wps-office-wpp.xml
    sed -i '3,30d' $pkgdir/usr/share/mime/packages/wps-office-wps.xml

    ##desktop
    #_et
    sed -i "s/^MimeType.*$/$_etMT/" $pkgdir/usr/share/applications/wps-office-et.desktop
    #_wpp
    sed -i "s/^MimeType.*$/$_wppMT/" $pkgdir/usr/share/applications/wps-office-wpp.desktop
    #_wps
    sed -i "s/^MimeType.*$/$_wpsMT/" $pkgdir/usr/share/applications/wps-office-wps.desktop

Troubleshooting

WPS Office overriding or breaking mime

Add common\do_not_detect_file_association_while_startup=true before [kdcsdk]:

/home/your_user/.config/Kingsoft/Office.conf
[6.0]
...
common\do_not_detect_file_association_while_startup=true

[kdcsdk]
...

Then save the file, and restart WPS Office.

Zip template compressed packet garbled

Use the parameter -O gb18030 with unzip when decompressing.

Formula can not display normally

the display of most Mathematical formula need fonts show below:

symbol.ttf webdings.ttf wingding.ttf wingdng2.ttf wingdng3.ttf monotypesorts.ttf MTExtra.ttf

ttf-wps-fontsAUR contain all of these fonts except monotypesorts.ttf, you can install it directly.

Microsoft Office file in KDE Plasma is recognized as Zip

After installing WPS Office, Microsoft Office files will be recognized as zip and cannot open with WPS. You can remove the offending wps-office-mimeAUR package.

WPSPDF functionality unavailable

Functions related to PDF export, opening, and other PDF-related features are all provided by WPSPDF. However, WPSPDF relies on libtiff5.so.5 to support its PDF functionality: install libtiff5AUR.

Fonts are too bold

Note: The problem is fixed on Chinese version 12.1.0.17885-1, however this version has not been made available internationally as of 2024-12-17.

Version 11.1.0.11704-1 doesn't work well with freetype2 versions above 2.13.0. Normally, freetype2 creates a bold variant if the chosen font does not have a bold version. This is called "fakebold", but in this case, wps-office is also making fonts bold on its own, and the result is that the text looks too bold.

To workaround this issue until a long term fix is provided, install freetype2-wpsAUR.

See also