https://wiki.archlinux.org/api.php?action=feedcontributions&user=Aleskva&feedformat=atomArchWiki - User contributions [en]2024-03-28T16:28:04ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=WPS_Office&diff=674475WPS Office2021-05-30T15:00:34Z<p>Aleskva: out of date</p>
<hr />
<div>[[Category:Office]]<br />
[[es:WPS_Office]]<br />
[[ja:WPS_Office]]<br />
[[zh-hans:WPS Office]]<br />
[https://www.wps.com/linux 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.<br />
<br />
== Installation ==<br />
<br />
Install {{AUR|wps-office}} from [[AUR]]. {{ic|wps}}, {{ic|et}}, {{ic|wpp}}, {{ic|wpspdf}} are the commands to start WPS Writer, WPS Spreadsheets, WPS Presentation and WPS PDF, respectively.<br />
<br />
{{Note|<br />
* you can optionally install the font wps need: {{AUR|ttf-wps-fonts}}<br />
}}<br />
<br />
== Language aids ==<br />
<br />
{{Out of date|Packages no longer exist}}<br />
<br />
=== Interface language ===<br />
<br />
To change interface language of WPS you can install {{AUR|wps-office-mui-fr-fr}}{{Broken package link|package not found}} for French, {{AUR|wps-office-mui-ja-jp}}{{Broken package link|package not found}} for Japanese, etc. Then set your language by selecting ''Review->Spell Check->Set Language'' to choose your language and restart WPS.<br />
<br />
=== Spell checking ===<br />
<br />
For spell checking, you need to install {{AUR|wps-office-extension-german-dictionary}}{{Broken package link|package not found}}for German, {{AUR|wps-office-extension-french-dictionary}}{{Broken package link|package not found}}for French, etc. Then, customize spell check by selecting ''Tool -> Options -> Language -> choose'' to choose your language and restart WPS.<br />
<br />
== Tips and tricks ==<br />
<br />
=== Modify WPS file icon and file association ===<br />
<br />
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:<br />
<br />
/usr/share/mime/packages/wps-office-{wpp,wps,et}.xml<br />
/usr/share/mime/packages/freedesktop.org.xml #(Belongs to the package shared-mime-info)<br />
<br />
And desktop files:<br />
<br />
/usr/share/applications/wps-office-{wpp,wps,et}.desktop<br />
<br />
Processing strategy: WPS's own format is defined by {{ic|<nowiki>wps-office-{wpp,wps,et}.xml</nowiki>}}, and others are defined by {{ic|freedesktop.org.xml}}. Also modify the {{ic|MimeType}} item of the {{ic|desktop}} file.<br />
<br />
Add the following statement to the {{ic|package}} function in the PKGBUILD file:<br />
<br />
{{bc|1=<br />
##et wpp wps supported MimeType<br />
_etMT="MimeType=application\/wps-office.et;application\/wps-office.ett;application\/vnd.ms-excel;\<br />
application\/vnd.openxmlformats-officedocument.spreadsheetml.template;\<br />
application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet;"<br />
_wppMT="MimeType=application\/wps-office.dps;application\/wps-office.dpt;application\/vnd.ms-powerpoint;\<br />
application\/vnd.openxmlformats-officedocument.presentationml.presentation;\<br />
application\/vnd.openxmlformats-officedocument.presentationml.slideshow;\<br />
application\/vnd.openxmlformats-officedocument.presentationml.template;"<br />
_wpsMT="MimeType=application\/wps-office.wps;application\/wps-office.wpt;\<br />
application\/msword;application\/rtf;application\/msword-template;\<br />
application\/vnd.openxmlformats-officedocument.wordprocessingml.template;\<br />
application\/vnd.openxmlformats-officedocument.wordprocessingml.document;"<br />
<br />
##mime<br />
sed -i '3,31d' $pkgdir/usr/share/mime/packages/wps-office-et.xml<br />
sed -i '3,36d' $pkgdir/usr/share/mime/packages/wps-office-wpp.xml<br />
sed -i '3,30d' $pkgdir/usr/share/mime/packages/wps-office-wps.xml<br />
<br />
##desktop<br />
#_et<br />
sed -i "s/^MimeType.*$/$_etMT/" $pkgdir/usr/share/applications/wps-office-et.desktop<br />
#_wpp<br />
sed -i "s/^MimeType.*$/$_wppMT/" $pkgdir/usr/share/applications/wps-office-wpp.desktop<br />
#_wps<br />
sed -i "s/^MimeType.*$/$_wpsMT/" $pkgdir/usr/share/applications/wps-office-wps.desktop<br />
}}<br />
<br />
=== Use GTK+ UI ===<br />
<br />
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 {{ic|-style gtk+}} directly.<br />
<br />
You can modify the et, wpp, and wps files in the {{ic|/usr/bin/}} directory and delete it (if any):<br />
<br />
gOpt=<br />
<br />
Then, add:<br />
<br />
gOpt="-style=gtk+"<br />
export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc<br />
<br />
==== Manually repair Kingsoft PDF startup script ====<br />
<br />
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 {{ic|/usr/bin/wpspdf}}:<br />
<br />
gOpt="-style=gtk+"<br />
export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc<br />
<br />
And add {{ic|<nowiki>${gOpt}</nowiki>}} to the subsequent {{ic|run}} function, the modified {{ic|run}} function is as follows:<br />
<br />
function run()<br />
{<br />
if [ -e "${gInstallPath}/office6/${gApp}" ] ; then<br />
{ ${gInstallPath}/office6/${gApp} ${gOpt} "$@"; } >/dev/null 2>&1<br />
else<br />
echo "${gApp} does not exist!"<br />
fi<br />
}<br />
<br />
{{Note|Since each upgrade may result in the loss of file modifications, you may consider copying the et, wpp, and wps files to other directories (for example: {{ic|~/.local/bin/}}) and adding them to [[Environment variables]].}}<br />
<br />
== Troubleshooting ==<br />
<br />
=== Zip template compressed packet garbled ===<br />
<br />
Please install {{AUR|unzip-iconv}} first, and use the parameter {{ic|-O gb18030}} when decompressing.<br />
<br />
=== formula can not display normally ===<br />
<br />
the display of most Mathematical formula need fonts show below:<br />
symbol.ttf webdings.ttf wingding.ttf wingdng2.ttf wingdng3.ttf monotypesorts.ttf MTExtra.ttf<br />
{{AUR|ttf-wps-fonts}} in [[AUR]] contain all of these fonts except ''monotypesorts.ttf'', you can install it directly.<br />
<br />
=== Microsoft Office file in KDE Plasma is recognized as Zip ===<br />
<br />
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 {{ic|/usr/share/packages/}}:<br />
# rm /usr/share/mime/packages/wps-office-*.xml<br />
# update-mime-database /usr/share/mime<br />
<br />
=== Fcitx input method framework cannot input on WPS ===<br />
<br />
add following lines to {{ic|/usr/bin/wps}} {{ic|/usr/bin/et}} {{ic|/usr/bin/wpp}} separately to add fcitx to Writer, Spreadsheet and Presentation:<br />
export XMODIFIERS="@im=fcitx"<br />
export QT_IM_MODULE="fcitx"<br />
<br />
=== Bad integration with dark theme of KDE Plasma ===<br />
<br />
Run any of the apps with:<br />
env GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc et -style gtk+<br />
<br />
Breeze theme can be replaced with any light theme, i.e. Adwaita, Breath, etc.<br />
<br />
After running the app, WPS will show a warning: 'Unable to open "gtk+"'. Ignore it and press Ok.<br />
<br />
=== Fcitx5 cannot input Chinese ===<br />
<br />
This problem appeared in some users after the Chinese version ({{AUR|wps-office-cn}}) 11.1.0.9604-1 was updated, and it was fixed in {{AUR|wps-office-cn}} 11.1.0.9615-1, but some users still need to modify the environment variables (such as {{ic|.xprofile}}) file) [https://github.com/fcitx/fcitx5/issues/83]:<br />
<br />
export QT_IM_MODULE=fcitx5<br />
<br />
== See also ==<br />
<br />
* [http://wps-community.org/ WPS Office Community]<br />
* [http://www.wps.cn/product/wpslinux/ WPS For Linux (Chinese)]</div>Aleskva