WPS Office
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 . Also modify the MimeType
item of the file.
Add the following statement to the package
function in the PKGBUILD file:
Use GTK+ UI
The default UI of WPS is Qt. In fact, the bundled Qt is 4.7.4, so the themes such as qtcurve cannot be loaded normally because the versions do not match. But we can change it to GTK+ and add the parameter directly.
You can modify the et, wpp, and wps files in the /usr/bin/
directory and delete it (if any):
gOpt=
Then, add:
gOpt="-style=gtk+" export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc
Manually repair Kingsoft PDF startup script
The startup script provided by Kingsoft PDF is missing the custom configuration of GTK. You can add it at the beginning of its startup script :
gOpt="-style=gtk+" export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc
And add to the subsequent function, the modified function is as follows:
function run() { if [ -e "${gInstallPath}/office6/${gApp}" ] ; then { ${gInstallPath}/office6/${gApp} ${gOpt} "$@"; } >/dev/null 2>&1 else echo "${gApp} does not exist!" fi }
Troubleshooting
WPS Office Overriding/Breaks Mime
Add the following before in :
common\do_not_detect_file_association_while_startup=true
Example:
[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 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 in AUR 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 change this kind of recognition by delete mime file in :
# rm /usr/share/mime/packages/wps-office-*.xml # update-mime-database /usr/share/mime
Fcitx input method framework cannot input on WPS
add following lines to /usr/bin/et
separately to add fcitx to Writer, Spreadsheet and Presentation:
export XMODIFIERS="@im=fcitx" export QT_IM_MODULE="fcitx"
Bad integration with dark theme of KDE Plasma
Run the applications with:
env GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc et -style gtk+
Breeze theme can be replaced with any light theme, i.e. Adwaita, Breath, etc.
After running the application, WPS will show a warning: 'Unable to open "gtk+"'. Ignore it and press Ok.