Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Danishka,


Danishka Navin píše v Po 13. 08. 2012 v 12:46 +0530:
To enable Sinhala spell checker I have to do few configurations in
LibreOffice.

It won't work by default.

Is there a way to set some values for LibreOffice by editing a config
file on GNU/Linux?

For example, how to enable 

tools-> options -> languages -> enable for  Asian and CTL

IMHO, the best way to modify user setting for more installations is to
create an extension.

You might take inspiration in the attached sample extension. It
modifies the application background color.

.oxt is actually a zip archive, so you could simply look inside. The
important part is setting.xcu. I created it the following way:

        1. format and safe current user registry modifications

            cd ~/.config/libreoffice/3/user
            xmllint -format registrymodifications.xcu
                  >registrymodifications.xcu.old

        2. start LO, modify configuration as needed and close LO

        3. format updated configuration

            xmllint -format registrymodifications.xcu
                   >registrymodifications.xcu.new

        4. compare the configurations

            diff -up registrymodifications.xcu.old
                     registrymodifications.xcu.new
                     >registrymodifications.xcu.diff


        5. take the new configuration and remove the parts
           that were not modified (as found in the .diff file).
           Note that you need to end with valid xml file, so you need to
           keep the header and the right context

             cp registrymodifications.xcu.new setting.xcu
             $EDITOR setting.xcu


Best Regards,
Petr

Attachment: company-setting.oxt
Description: application/vnd.openofficeorg.extension


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.