Difference between revisions of "LibreOffice (简体中文)"

From ArchWiki
Jump to: navigation, search
Line 23: Line 23:
 
  # pacman -S libreoffice
 
  # pacman -S libreoffice
  
从版本3.4.2rc1起, LibreOffice软件包已经被拆分。安装过程中会让用户选择安装哪些组件。由于没有任何语言包被默认包括进安装,所以用户至少需要安装一个语言包。默认地,系统会选择安装Afrikaans(南非荷兰语)语言包,因为按照字母顺序排第一,具体请看提示输入数字选择要安装的语言包(简体中文 = 106):
+
从版本3.4.2rc1起, LibreOffice软件包已经被拆分。安装过程中会让用户选择安装组件。由于没有任何语言包被默认包括进安装,所以用户至少需要安装一个语言包。默认地,系统会选择安装Afrikaans(南非荷兰语)语言包,因为按照字母顺序排第一,具体请看提示输入数字选择要安装的语言包(简体中文 = 106):
  
 
{{bc|<nowiki>
 
{{bc|<nowiki>
Line 86: Line 86:
 
请阅读pacman推荐的可选依赖(optional dependencies)。例: 安装 [[Java]]运行环境(可选,强烈推荐)。你需要安装 {{Pkg|hsqldb-java}} 来使用 Libreoffice Base。
 
请阅读pacman推荐的可选依赖(optional dependencies)。例: 安装 [[Java]]运行环境(可选,强烈推荐)。你需要安装 {{Pkg|hsqldb-java}} 来使用 Libreoffice Base。
  
==更多==
+
==Theme==
 +
For Qt integration, [[pacman|install]] the package {{Pkg|libreoffice-kde4}}.
  
本页面信息不全,更多信息请参考英文页面:[[LibreOffice]]
+
For GTK integration, [[pacman|install]] the package {{Pkg|libreoffice-gnome}}.
 +
 
 +
Even if you are not running one of these desktop environments and thus do not need to "integrate" with them, you may still wish to install these packages so that libreoffice will use non-default gtk or qt themes. For example, libreoffice on e17 uses the default "ugly" (aka "win95") theme; installing libreoffice-gnome will allow you to select a more pleasant gtk theme.
 +
 
 +
==Extension management==管理扩展
 +
 
 +
Arch正在移植一些扩展。目前我们移植了这些扩展: pdfimport  presentation-minimizer presenter-screen report-builder wiki-publisher ct2n hunart numbertext oooblogger typo watch-window diagram.
 +
 
 +
Arch is shipping some additional extensions. We currently ship these extensions: pdfimport  presentation-minimizer presenter-screen report-builder wiki-publisher ct2n hunart numbertext oooblogger typo watch-window diagram.
 +
 
 +
* 如果你需要某些扩展请直接安装:
 +
# pacman -S libreoffice-extension-nlpsolver libreoffice-extension-foo ...
 +
 
 +
如需安装更多插件请点击 工具 > 扩展管理器 或者访问 [http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List Get extensions Online]。
 +
 
 +
==Language Aids==语言帮助
 +
===Spell checking===拼写检查
 +
 
 +
为了开启拼写检查,你需要安装 {{Pkg|hunspell}} 和与语言对应hunspell词典,比如说 英语的{{Pkg|hunspell-en}},德语的{{Pkg|hunspell-de}}等等。
 +
 
 +
===断词换行规则===
 +
 
 +
为了开启换行规则,你需要安装 {{Pkg|hyphen}} 和与语言对应hyphen规则,比如说 英语的{{Pkg|hyphen-en}},德语的{{Pkg|hyphen-de}}等等。
 +
 
 +
===Thesaurus===
 +
For the thesaurus option, you will need {{Pkg|libmythes}} and a mythes language thesaurus (like {{Pkg|mythes-en}} for English, {{Pkg|mythes-de}} for German, etc)).
 +
 
 +
===语法检查===
 +
为了开启语法检查,你需要安装一个扩展,比如 LanguageTool,可以在[[Arch User Repository (简体中文)|AUR]]: {{AUR|libreoffice-extension-languagetool}} 找到 或者 [http://www.languagetool.org/ LanguageTool Website]。
 +
 
 +
其它的语法工具可以在这里 [http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List LibreOffice Extension Page] 或者这里 [http://lingucomponent.openoffice.org/grammar.html OpenOffice's Website]找到。 不确保所有的OpenOffice扩展都能在LibreOffice下正常工作。
 +
 
 +
{{注意|Languagetool 使用java并且可能会是LibreOffice短暂地失去响应,特别是在打开文件的时候。幸运的是,这种情况只在LibreOffice首次启动时才有。
 +
 
 +
LanguageTool在Openjdk6下的表现比在openjdk7下要好,尽管这个问题并没有被确认。}}
 +
 
 +
==Installing Macros==
 +
In most Linux distros, the default path for macros is:
 +
~/.openoffice.org/3/user/Scripts/
 +
The path for this directory for LibreOffice in Arch Linux is:
 +
~/.config/.libreoffice/3/user/Scripts/
 +
 
 +
Another thing to note is that if you intend to use macros, you must have a JRE enabled, use of a JRE is default behaviour; but disabling its use is listed in the speed tweaks below.
 +
 
 +
==运行LibreOffice==
 +
 
 +
如果你需要打开一个具体的LibreOffice组件 (而不是LibreOffice的默认Startcenter ({{ic|/usr/bin/soffice}} is still included for fallback reasons)), 请使用以下命令:
 +
 
 +
;Writer (文字编辑器): {{ic|/usr/bin/libreoffice --writer}} or {{ic|/usr/bin/soffice --writer}}
 +
 
 +
;Calc (电子表格编辑器): {{ic|/usr/bin/libreoffice --calc}}
 +
 
 +
;Impress (幻灯片编辑器): {{ic|/usr/bin/libreoffice --impress}}
 +
 
 +
;Draw (矢量图编辑器): {{ic|/usr/bin/libreoffice --draw}}
 +
 
 +
;Math (公式编辑器): {{ic|/usr/bin/libreoffice --math}}
 +
 
 +
;Base (数据库前端): {{ic|/usr/bin/libreoffice --base}}
 +
 
 +
As of LibreOffice version 3.5.x it tries to magically autodetect your desktop UI using the following magic if proper libs will be found:
 +
  gtk3 -> gtk2 -> kde4 -> generic
 +
 
 +
To force the use of a certain VCL UI interface use one of this:
 +
SAL_USE_VCLPLUGIN=gen lowriter
 +
SAL_USE_VCLPLUGIN=kde4 lowriter
 +
SAL_USE_VCLPLUGIN=gtk lowriter
 +
SAL_USE_VCLPLUGIN=gtk3 lowriter
 +
 
 +
The new gtk3 UI is still marked upstream as experimental and will only be available if you enable "experimental features" in LibO main configuration dialog.
 +
 
 +
==Speed up LibreOffice==
 +
一些设置可以提升LibreOffice的读取时间和相应速度,但相对应地也可能增加内存的使用量,所以请小心使用。这些设置能在 ''工具 > 选项'' 下找到。
 +
*在 ''内存'' 选项卡下:
 +
**把可撤销部数减少到 100 一下, 20 到 30 步左右是个不错的选择。
 +
**在 ''图形缓冲区'' 中, 把 用于 LibreOffice增加到 128 MB (默认值为 20MB)。
 +
**把 ''每个对象的内存'' 增加到 20MB (默认值为 5MB)。
 +
**If you use LibreOffice often, check LibreOffice Quickstarter.
 +
*在 ''Java'' 选项卡下, 取消选中 ''使用Java运行环境''。
 +
{{Note|For a list of functionality which depends on OpenOffice Java support, see this page: http://wiki.services.openoffice.org/wiki/Java - Still needed?}}
 +
 
 +
==疑难问题==
 +
=== Font substitution ===
 +
These settings can be changed in the LibreOffice options. From the drop-down menu, select ''Tools > Options > LibreOffice > Fonts''. Check the box that says ''Apply Replacement Table''. Type {{ic|Andale Sans UI}} in the font box and choose your desired font for the ''Replace with'' option. When done, click the ''checkmark''. Then choose the ''Always'' and ''Screen only'' options in the box below. Click OK.
 +
You will then need to go to ''Tools > Options > LibreOffice > View'', and uncheck "Use system font for user interface". If you use a non-antialised font, such as Arial, you will also need to uncheck "Screen font antialiasing" before menu fonts render correctly.
 +
 
 +
=== 抗锯齿 ===
 +
执行
 +
$ echo "Xft.lcdfilter: lcddefault" | xrdb -merge
 +
 
 +
如需使其永久生效,请添加 {{ic|Xft.lcdfilter: lcddefault}} 到你的 {{ic|~/.Xresources}} 文件,并且确保执行 {{ic|xrdb -merge ~/.Xresources}}。 [https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/271283/comments/19]. 更多信息请查看 [[X resources]]。
 +
 
 +
如果这样不起作用的话,你也可以尝试添加 {{ic|Xft.lcdfilter: lcddefault}} 到你的 {{ic|~/.Xdefaults}} 文件。如果文件不存在请创建一个。
 +
 
 +
===LibreOffice看起来很难看===
 +
如果你的LibreOffice和之前使用OpenOffice不一样,那就说明你没有安装所需的软件包。详细信息请查看[[#Theme|Theme]]部分。
 +
 
 +
=== Hanging when using NFS shares ===
 +
If OpenOffice hangs when trying to open or save a document located on a NFS share, try prepending the following lines with a {{ic|#}} in {{ic|/usr/lib/openoffice/program/soffice}} (or {{ic|/usr/bin/soffice}} if using go-openoffice):
 +
# file locking now enabled by default
 +
SAL_ENABLE_FILE_LOCKING=1
 +
export SAL_ENABLE_FILE_LOCKING
 +
Original post [http://www.crazysquirrel.com/computing/debian/bugs/openoffice-over-nfs.jspx here]
 +
<br>
 +
{{Note|Only NFSv3 is affected. NFSv4 works well with OpenOffice.}}
 +
 
 +
=== Fixing Java Framework Error ===
 +
You may get the following error when you try to run OpenOffice.
 +
 
 +
[Java framework] Error in function createSettingsDocument (elements.cxx).
 +
javaldx failed!
 +
 
 +
If so, give yourself ownership of {{ic|~/.config/}} like so:
 +
sudo chown -vR username:users ~/.config
 +
 
 +
[https://bbs.archlinux.org/viewtopic.php?id=93168 Post on Arch Linux Forums]
 +
 
 +
=== LibreOffice does not detect my certificates ===
 +
 
 +
If you cannot see the certificates when trying to sign a document, you will need to have the certificates configured in Mozilla Firefox (or Thunderbird). If after that LibreOffice still does not show them, set the {{ic|MOZILLA_CERTIFICATE_FOLDER}} environment variable to point to your Mozilla Firefox (or Thunderbird) folder.
 +
export MOZILLA_CERTIFICATE_FOLDER=$HOME/.mozilla/firefox/XXXXXX.default/
 +
 
 +
[http://wiki.services.openoffice.org/wiki/Certificate_Detection Certificate Detection]
 +
 
 +
=== Run .pps files in edit mode (without slideshow) ===
 +
The only solution is to rename .pps file in .ppt
 +
 
 +
Add the following script to your home directory and use it to open every .pps file. Very useful to open .pps files received by email without the need to save them.
 +
 
 +
#!/bin/bash
 +
 +
f=`mktemp`
 +
 +
cp "$1" "${f}.ppt" && libreoffice "${f}.ppt" && rm -f "${f}.ppt"
 +
 
 +
=== Extremely slow LibreOffice Base ===
 +
 
 +
Due to a current bug in the LibreOffice/hsqldb/Java chain, "java.net.PlainSocketimpl.socketAccept [takes] double to 10 times longer [than usual]" and Base is pretty much unusable (see reports [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644957 here] and [http://lists.freedesktop.org/archives/libreoffice/2011-October/019388.html here]). This bug applies (as of Feb 2012) to {{pkg|libreoffice}} 3.4.5-2 and {{pkg|jdk7-openjdk}} 7.b147_2.0-6 and a number of earlier versions. The solution (offered, e.g., [http://hardc0l2e.wordpress.com/2011/04/05/libreoffice-openoffice-base-slow/ here]) is to install an earlier JRE (e.g., from Sun/Oracle: jre1.6.0_21 works, download = [http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u21-b07-oth-JPR jre-6u21-linux-x64.bin]) and set LibreOffice to use this JRE in the Options.
 +
 
 +
Another solution (found [https://bbs.archlinux.org/viewtopic.php?id=127116 here]) is to create the file {{ic|/usr/lib/jvm/java-6-openjdk/jre}}. This way the installation of another version of Java is avoided!
 +
 
 +
This bug is fixed upstream. See [https://bugs.freedesktop.org/show_bug.cgi?id=35023 bug report here].
 +
 
 +
=== Bibliography problems ===
 +
If writer falls while you try open bibliography database with this error:
 +
com::sun::star::loader::CannotActivateFactoryException
 +
Install {{pkg|libreoffice-base}}, it's contains needed component.

Revision as of 01:31, 5 December 2012

Tango-preferences-desktop-locale.png本页面需要更新翻译,内容可能已经与英文脱节。要贡献翻译,请访问简体中文翻译组Tango-preferences-desktop-locale.png

附注: please use the first argument of the template to provide more detailed indications.

引自 主页 - LibreOffice:

LibreOffice 是一套自由的办公软件,它可以在Windows、Linux、Macintosh平台上运行,本套软件共有六个应用程序供您使用,包括:Writer、Calc、Impress、Draw、Math、Base。

Arch Linux上的LibreOffice

由于LibreOffice的缘故,OpenOffice.org 的官方支持已经停止。详细 Dropping Oracle OpenOffice (arch-general).

LibreOffice is the "Document Foundation fork" in the extra repository, which includes enhancements and features.


安装

请确认字体 ttf-dejavuartwiz-fonts 已经被安装,否则你将只能看到方块。

# pacman -S ttf-dejavu artwiz-fonts

安装以下包,根据提示进行选择即可:

# pacman -S libreoffice

从版本3.4.2rc1起, LibreOffice软件包已经被拆分。安装过程中会让用户选择安装组件。由于没有任何语言包被默认包括进安装,所以用户至少需要安装一个语言包。默认地,系统会选择安装Afrikaans(南非荷兰语)语言包,因为按照字母顺序排第一,具体请看提示输入数字选择要安装的语言包(简体中文 = 106):

[user@home ~]# pacman -S libreoffice
:: There are 12 members in group libreoffice:
:: Repository extra
   1) libreoffice-base  2) libreoffice-calc  3) libreoffice-common
   4) libreoffice-draw  5) libreoffice-gnome  6) libreoffice-impress
   7) libreoffice-kde4  8) libreoffice-math
   9) libreoffice-postgresql-connector  10) libreoffice-sdk
   11) libreoffice-sdk-doc  12) libreoffice-writer

Enter a selection (default=all): 
resolving dependencies...
:: There are 108 providers available for libreoffice-langpack:
:: Repository extra
   1) libreoffice-af  2) libreoffice-am  3) libreoffice-ar  4) libreoffice-as
   5) libreoffice-ast  6) libreoffice-be  7) libreoffice-bg  8) libreoffice-bn
   9) libreoffice-bn-IN  10) libreoffice-bo  11) libreoffice-br
   12) libreoffice-brx  13) libreoffice-bs  14) libreoffice-ca
   15) libreoffice-ca-XV  16) libreoffice-cs  17) libreoffice-cy
   18) libreoffice-da  19) libreoffice-de  20) libreoffice-dgo
   21) libreoffice-dz  22) libreoffice-el  23) libreoffice-en-GB
   24) libreoffice-en-US  25) libreoffice-en-ZA  26) libreoffice-eo
   27) libreoffice-es  28) libreoffice-et  29) libreoffice-eu
   30) libreoffice-fa  31) libreoffice-fi  32) libreoffice-fr
   33) libreoffice-ga  34) libreoffice-gd  35) libreoffice-gl
   36) libreoffice-gu  37) libreoffice-he  38) libreoffice-hi
   39) libreoffice-hr  40) libreoffice-hu  41) libreoffice-id
   42) libreoffice-is  43) libreoffice-it  44) libreoffice-ja
   45) libreoffice-ka  46) libreoffice-kk  47) libreoffice-km
   48) libreoffice-kn  49) libreoffice-ko  50) libreoffice-kok
   51) libreoffice-ks  52) libreoffice-ku  53) libreoffice-lb
   54) libreoffice-lo  55) libreoffice-lt  56) libreoffice-lv
   57) libreoffice-mai  58) libreoffice-mk  59) libreoffice-ml
   60) libreoffice-mn  61) libreoffice-mni  62) libreoffice-mr
   63) libreoffice-my  64) libreoffice-nb  65) libreoffice-ne
   66) libreoffice-nl  67) libreoffice-nn  68) libreoffice-nso
   69) libreoffice-oc  70) libreoffice-om  71) libreoffice-or
   72) libreoffice-pa-IN  73) libreoffice-pl  74) libreoffice-pt
   75) libreoffice-pt-BR  76) libreoffice-ro  77) libreoffice-ru
   78) libreoffice-rw  79) libreoffice-sa-IN  80) libreoffice-sat
   81) libreoffice-sd  82) libreoffice-sh  83) libreoffice-si
   84) libreoffice-sk  85) libreoffice-sl  86) libreoffice-sq
   87) libreoffice-sr  88) libreoffice-ss  89) libreoffice-st
   90) libreoffice-sv  91) libreoffice-sw-TZ  92) libreoffice-ta
   93) libreoffice-te  94) libreoffice-tg  95) libreoffice-th
   96) libreoffice-tn  97) libreoffice-tr  98) libreoffice-ts
   99) libreoffice-tt  100) libreoffice-ug  101) libreoffice-uk
   102) libreoffice-uz  103) libreoffice-ve  104) libreoffice-vi
   105) libreoffice-xh  106) libreoffice-zh-CN  107) libreoffice-zh-TW
   108) libreoffice-zu

Enter a number (default=1):

或者,你可以这样安装:

# pacman -S libreoffice-{zh-CN,common,base,calc,draw,impress,math,writer,gnome,kde4,sdk,sdk-doc}

{{注意|两种方法均可。如果你很在意qt或者gtk的整合,你需要安装软件包 libreoffice-kde4libreoffice-gnome, 具体请看下面 主题 部分。

请阅读pacman推荐的可选依赖(optional dependencies)。例: 安装 Java运行环境(可选,强烈推荐)。你需要安装 hsqldb-java 来使用 Libreoffice Base。

Theme

For Qt integration, install the package libreoffice-kde4.

For GTK integration, install the package libreoffice-gnome.

Even if you are not running one of these desktop environments and thus do not need to "integrate" with them, you may still wish to install these packages so that libreoffice will use non-default gtk or qt themes. For example, libreoffice on e17 uses the default "ugly" (aka "win95") theme; installing libreoffice-gnome will allow you to select a more pleasant gtk theme.

==Extension management==管理扩展

Arch正在移植一些扩展。目前我们移植了这些扩展: pdfimport presentation-minimizer presenter-screen report-builder wiki-publisher ct2n hunart numbertext oooblogger typo watch-window diagram.

Arch is shipping some additional extensions. We currently ship these extensions: pdfimport presentation-minimizer presenter-screen report-builder wiki-publisher ct2n hunart numbertext oooblogger typo watch-window diagram.

  • 如果你需要某些扩展请直接安装:
# pacman -S libreoffice-extension-nlpsolver libreoffice-extension-foo ...

如需安装更多插件请点击 工具 > 扩展管理器 或者访问 Get extensions Online

==Language Aids==语言帮助 ===Spell checking===拼写检查

为了开启拼写检查,你需要安装 hunspell 和与语言对应hunspell词典,比如说 英语的hunspell-en,德语的hunspell-de等等。

断词换行规则

为了开启换行规则,你需要安装 hyphen 和与语言对应hyphen规则,比如说 英语的hyphen-en,德语的hyphen-de等等。

Thesaurus

For the thesaurus option, you will need libmythes and a mythes language thesaurus (like mythes-en for English, mythes-de for German, etc)).

语法检查

为了开启语法检查,你需要安装一个扩展,比如 LanguageTool,可以在AUR: libreoffice-extension-languagetoolAUR 找到 或者 LanguageTool Website

其它的语法工具可以在这里 LibreOffice Extension Page 或者这里 OpenOffice's Website找到。 不确保所有的OpenOffice扩展都能在LibreOffice下正常工作。

注意: Languagetool 使用java并且可能会是LibreOffice短暂地失去响应,特别是在打开文件的时候。幸运的是,这种情况只在LibreOffice首次启动时才有。 LanguageTool在Openjdk6下的表现比在openjdk7下要好,尽管这个问题并没有被确认。

Installing Macros

In most Linux distros, the default path for macros is:

~/.openoffice.org/3/user/Scripts/

The path for this directory for LibreOffice in Arch Linux is:

~/.config/.libreoffice/3/user/Scripts/

Another thing to note is that if you intend to use macros, you must have a JRE enabled, use of a JRE is default behaviour; but disabling its use is listed in the speed tweaks below.

运行LibreOffice

如果你需要打开一个具体的LibreOffice组件 (而不是LibreOffice的默认Startcenter (/usr/bin/soffice is still included for fallback reasons)), 请使用以下命令:

Writer (文字编辑器)
/usr/bin/libreoffice --writer or /usr/bin/soffice --writer
Calc (电子表格编辑器)
/usr/bin/libreoffice --calc
Impress (幻灯片编辑器)
/usr/bin/libreoffice --impress
Draw (矢量图编辑器)
/usr/bin/libreoffice --draw
Math (公式编辑器)
/usr/bin/libreoffice --math
Base (数据库前端)
/usr/bin/libreoffice --base

As of LibreOffice version 3.5.x it tries to magically autodetect your desktop UI using the following magic if proper libs will be found:

 gtk3 -> gtk2 -> kde4 -> generic

To force the use of a certain VCL UI interface use one of this:

SAL_USE_VCLPLUGIN=gen lowriter
SAL_USE_VCLPLUGIN=kde4 lowriter 
SAL_USE_VCLPLUGIN=gtk lowriter 
SAL_USE_VCLPLUGIN=gtk3 lowriter

The new gtk3 UI is still marked upstream as experimental and will only be available if you enable "experimental features" in LibO main configuration dialog.

Speed up LibreOffice

一些设置可以提升LibreOffice的读取时间和相应速度,但相对应地也可能增加内存的使用量,所以请小心使用。这些设置能在 工具 > 选项 下找到。

  • 内存 选项卡下:
    • 把可撤销部数减少到 100 一下, 20 到 30 步左右是个不错的选择。
    • 图形缓冲区 中, 把 用于 LibreOffice增加到 128 MB (默认值为 20MB)。
    • 每个对象的内存 增加到 20MB (默认值为 5MB)。
    • If you use LibreOffice often, check LibreOffice Quickstarter.
  • Java 选项卡下, 取消选中 使用Java运行环境
Note: For a list of functionality which depends on OpenOffice Java support, see this page: http://wiki.services.openoffice.org/wiki/Java - Still needed?

疑难问题

Font substitution

These settings can be changed in the LibreOffice options. From the drop-down menu, select Tools > Options > LibreOffice > Fonts. Check the box that says Apply Replacement Table. Type Andale Sans UI in the font box and choose your desired font for the Replace with option. When done, click the checkmark. Then choose the Always and Screen only options in the box below. Click OK. You will then need to go to Tools > Options > LibreOffice > View, and uncheck "Use system font for user interface". If you use a non-antialised font, such as Arial, you will also need to uncheck "Screen font antialiasing" before menu fonts render correctly.

抗锯齿

执行

$ echo "Xft.lcdfilter: lcddefault" | xrdb -merge

如需使其永久生效,请添加 Xft.lcdfilter: lcddefault 到你的 ~/.Xresources 文件,并且确保执行 xrdb -merge ~/.Xresources[1]. 更多信息请查看 X resources

如果这样不起作用的话,你也可以尝试添加 Xft.lcdfilter: lcddefault 到你的 ~/.Xdefaults 文件。如果文件不存在请创建一个。

LibreOffice看起来很难看

如果你的LibreOffice和之前使用OpenOffice不一样,那就说明你没有安装所需的软件包。详细信息请查看Theme部分。

Hanging when using NFS shares

If OpenOffice hangs when trying to open or save a document located on a NFS share, try prepending the following lines with a # in /usr/lib/openoffice/program/soffice (or /usr/bin/soffice if using go-openoffice):

# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING

Original post here

Note: Only NFSv3 is affected. NFSv4 works well with OpenOffice.

Fixing Java Framework Error

You may get the following error when you try to run OpenOffice.

[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!

If so, give yourself ownership of ~/.config/ like so:

sudo chown -vR username:users ~/.config

Post on Arch Linux Forums

LibreOffice does not detect my certificates

If you cannot see the certificates when trying to sign a document, you will need to have the certificates configured in Mozilla Firefox (or Thunderbird). If after that LibreOffice still does not show them, set the MOZILLA_CERTIFICATE_FOLDER environment variable to point to your Mozilla Firefox (or Thunderbird) folder.

export MOZILLA_CERTIFICATE_FOLDER=$HOME/.mozilla/firefox/XXXXXX.default/

Certificate Detection

Run .pps files in edit mode (without slideshow)

The only solution is to rename .pps file in .ppt

Add the following script to your home directory and use it to open every .pps file. Very useful to open .pps files received by email without the need to save them.

#!/bin/bash

f=`mktemp`

cp "$1" "${f}.ppt" && libreoffice "${f}.ppt" && rm -f "${f}.ppt"

Extremely slow LibreOffice Base

Due to a current bug in the LibreOffice/hsqldb/Java chain, "java.net.PlainSocketimpl.socketAccept [takes] double to 10 times longer [than usual]" and Base is pretty much unusable (see reports here and here). This bug applies (as of Feb 2012) to libreoffice 3.4.5-2 and jdk7-openjdk 7.b147_2.0-6 and a number of earlier versions. The solution (offered, e.g., here) is to install an earlier JRE (e.g., from Sun/Oracle: jre1.6.0_21 works, download = jre-6u21-linux-x64.bin) and set LibreOffice to use this JRE in the Options.

Another solution (found here) is to create the file /usr/lib/jvm/java-6-openjdk/jre. This way the installation of another version of Java is avoided!

This bug is fixed upstream. See bug report here.

Bibliography problems

If writer falls while you try open bibliography database with this error:

com::sun::star::loader::CannotActivateFactoryException

Install libreoffice-base, it's contains needed component.