WPS Office (简体中文)

From ArchWiki
Revision as of 13:42, 30 August 2013 by Fengchao (Talk | contribs) (安装: Fix installation instruction. See Help:Style. Yaourt is not standard command for this.)

Jump to: navigation, search

WPS Office是中国人开发的Office软件,与Microsoft Office高度兼容。WPS for linux 除延续Windows版相同体验外,更加尊重Linux用户特定的使用习惯;深度兼容;自带方正字体集;在线模板和素材使文档创作更加轻松高效;还有更多爱上WPS的理由,等待你的发现……

准备

到目前为止WPS for linux还处在公测(Beta)阶段,只发布过32位版本,64位arch用户有必要检查是否已添加multilib仓库。

确保/etc/pacman.conf中反注释掉以下内容:

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

安装

使用 AUR 中的kingsoft-officeAUR

Tips

修改wps文件图标以及文件关联

WPS自带的doc,ppt等图标会替换掉你使用的icon-theme所默认的,如果你不希望这样,可以修改相关的mime配置文件:

/usr/share/mime/packages/wps-office-{wpp,wps,et}.xml
/usr/share/mime/packages/freedesktop.org.xml #(属于软件包shared-mime-info)

以及desktop文件:

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

处理策略:wps自己的格式由wps-office-{wpp,wps,et}.xml定义,其他的用freedesktop.org.xml定义。同时修改desktop文件的MimeType项。
PKGBUILD文件package函数添加以下语句:

##et wpp wps 支持的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

zip模板压缩包乱码问题

请安装unzip-iconvAUR,解压用参数 -O gb18030

公式显示问题

添加下列字体可获得大部分数学公式的显示支持。

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

自带字体与拆包

请用AUR中的wpsforlinuxAUR打包安装。

关于自带字体版权请阅读WPS Office Linux版最终用户协议 十四.特别提示:第2条。打包、拆包都是个人行为。

相关页面