LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LibreOffice Writer keyboard shortcuts (https://www.linuxquestions.org/questions/linux-software-2/libreoffice-writer-keyboard-shortcuts-845628/)

w1k0 11-21-2010 09:14 AM

LibreOffice Writer keyboard shortcuts
 
I’m just trying to configure LibreOffice and I encountered the problem concerning keyboard shortcuts for Writer.

As far I used OpenOffice.org. Different versions of that package used different files and formats to store the information about keyboard shortcuts:

‒ OO.org 1.x: user/config/soffice.cfg/writerkeybinding.xml
‒ OO.org 2.x: user/config/soffice.cfg/modules/swriter/accelerator/en-US/current.xml
‒ OO.org 3.x: user/registry/data/org/openoffice/Office/Accelerators.xcu

As I see LibreOffice uses for that purposes user/registrymodifications.xcu file. The problem with that file is it stores different types of configuration settings ‒ not just keyboard shortcuts. Moreover after adding and consecutive changing of some keyboard shortcut user/registrymodifications.xcu file keeps a trace of the previous setting. So it resembles infamous Windows registry file.

The second problem I encountered concerns keyboard shortcuts saved in external file for future loading. That file has obscure binary format. When I test it with file command it recognizes that file as containg data.

I’m the author of a set of macros, keyboard shortcuts and templates for StarOffice and OpenOffice.org. Now I’d like to adapt these macros, keyboard shortcuts and templates for LibreOffice. There is no problem with macros and templates. They work fine. But there’s problem with keyboard shortcuts. To publish them in all in one registrymodifications.xcu file isn’t good idea because the other settings stored in that file change the way LibreOffice work. On the other hand storing keyboard shortcuts in obscure data file isn’t elegant and safe. The potential user of these keybord shortcuts could be affraid to import to LibreOffice some unknown settings.

So I ask you if it’s possible to store keybord shortcuts for LibreOffice in separate file using some readable format?

w1k0 11-24-2010 01:22 PM

Assuming three days after I asked the question nobody found the solution the conclusion is there is no the solution and the only method to import keyboard layout to LibreOffice is to load saved binary file to the program which updates all in one registrymodifications.xcu registry file. I don’t mark the thread as solved because from my point of view the problem persists. I simply don’t accept the idea of registrymodifications.xcu file and obscure binary formats.

pcsmits 07-18-2014 07:41 AM

Change to .zip
 
Dear w1k0,

If you change .cfg to .zip you can unzip the configuration files. It has the following content:

Configurations2\accelerator\current.xml
META-INF\manifest.xml
mimetype

which you can manipulate at will.

Best regards,

Patrick


All times are GMT -5. The time now is 03:04 PM.