Ask me don’t add. This is my scratchpad.
Label data is stored in /usr/lib/openoffice.org2.0/share/registry/data/org/openoffice/Office/Labels.xcu
By using File → New → Labels to get the labels dialogue, you can create your own labels. These are then stored in:
$USER/.openoffice.org2.0/user/registry/data/org/openoffice/Office/Labels.xcu
It seems that you can create custom labels files, these look like .ini files See: $SOURCE/extras/source/misc_config/lang/en-GB/labels.ini
I am not sure how the language specific definitions here relate to the .xcu file mentioned earlier. I don’t seem to find any locale overrides. Which would be nice as I don’t think ZA users need to see German labels.
Todo:
Most of the label info I’ve seen involved a .reg file to set the numbers within Office. Silly but yeah that’s the way MS users have been taught to think. An idea might be to extract the custom labels to a file. Then load the reg file and then finally extract them again. That way you only get the difference.
I would do this in Python using OLE. This page give an idea of the info that you can extract from the CustomLabel class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd11/html/woproCustomLabels1_HV05210409.asp
Can you automatically extract stuff from the registery like you can install? Here is the registery location we need:
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Custom Labels
The number changes depending on the Office version. 9.0 is 2000, 10.0 is XP I think and 11.0 is 2003
You can add 3 types:
Check Friedels nots on this. Maybe look at using the spell checker framework to extract these items.
Seems that you can create custom key bindings in the various applications. Wonder if this would work where you could get OOo to support a Microsoft keyboard? Or even to make OOo work EXACTLY how an MS Office user would expect.
Include a typing tutor so you can learn how to use the keyboard
See also: