LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-21-2010, 09:14 AM   #1
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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?
 
Old 11-24-2010, 01:22 PM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 07-18-2014, 07:41 AM   #3
pcsmits
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
I want to have keyboard shortcuts joshknape Linux - Newbie 2 07-24-2005 04:43 PM
keyboard shortcuts eugen.circa Linux - General 1 06-28-2005 10:05 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM
RH 9 - some keyboard shortcuts are gone keevitaja Linux - General 0 04-06-2003 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration