July 13, 2009

Creating Keyboard Shortcuts in OpenOffice, including Assigning Keyboard Shortcuts to Styles, a GREAT Feature

One of the complaints people have when switching from any software package to another is that the keyboard shortcuts that they're used to don't work anymore.

However, in OpenOffice.org you can set your keyboard shortcuts pretty much any way you want. You can even assign shortcut keys to styles. This means that:

  • You can blow through formatting quickly without using the Styles and Formatting window
  • You can set up styles, put them in the default template that your users use, then just give them all quick reference guides that might look like this:
         

        Text with hanging left indent   In WordPerfect was [whatever]  In OpenOffice Ctrl F4
        Heading indented from left and right   In WordPerfect was [whatever]  In OpenOffice Ctrl F6
        Back to normal text   In WordPerfect was [whatever]  In OpenOffice Ctrl Q

Assigning a Keyboard Shortcut to a Task

1. Create or open a document in the program where you want to apply the shortcut. You'll be able to choose that program, such as Writer, or all of OpenOffice.org, as the context in which the shortcut will work.

2. Choose Tools > Customize, Keyboard tab.

3. Select the program, such as Writer, or OpenOffice.org, at the top.

Key1

4. Use the Category and Function lists at the bottom to select the feature you want to assign a shortcut to. You have to be willing to spend some time looking but you'll eventually get a sense of where things are.

Key2

5. Find the keyboard shortcut, in the Shortcut Keys list in the top half of the window, that you want to assign. If it's already assigned to something, that's fine. Select the keyboard shortcut you want.

Key3

6. Click Modify. The shortcut will be assigned to the item.

Key4

7. If you want to remove a shortcut key from an item, select it in the Keys list and click Delete.

Key5delete

8. Click OK.

Assigning a Keyboard Shortcut to a Style

You might find it easier to just use a keyboard shortcut for styles, than to double-click them in the Styles and Formatting window. (Format > Styles and Formatting.)

Stylesandformatting

To use a keyboard shortcut for a style, you do pretty much the same thing.

1. Create or open a document in the program where you want to apply the shortcut. You'll be able to choose that program, such as Writer, or all of OpenOffice.org, as the context in which the shortcut will work.

2. Choose Tools > Customize, Keyboard tab.

3. Select the program, such as Writer, or OpenOffice.org, at the top.

4. In the Category list, scroll to the bottom and select Styles. Expand the + next to it and select the category of style: Paragraph, Page, etc. Then in the Function list select the specific style. Select the shortcut you want from the Shortcut Keys list and click Modify.

Assignstyles

5. Click OK.

Remember, the style has to be in the document where you use the shortcut key, otherwise of course it won't work.

Giving the Configurations You've Made to All Users

Shortcut keys are stored here in XP:

openofficedirectory\soffice.cfg\modules\swriter (or another module) \accelerator\en-us\default.xml

If you want everyone to have the same shortcuts, you can modify that file, then copy it to other machines or user directories. This is the directory on XP; different for Vista. (Grrr.....my impression of Vista is, OK, it's pretty because it looks like Mac, but I am sure sick of the blue screen of death.)

In Vista, it's

\Users\username\AppData\Roaming\OpenOffice.org2\user\config\soffice.cfg\
modules\swriter (or other module)\accelerator\en-US\current.xml

If you're having trouble finding the location, just make a change, then search your system for files that were recently modified, or contains a word in the change you made.

Here's what it looks like.

xlink:href=".uno:StyleApply?Style:string=HangingIndent&
FamilyName:string=ParagraphStyles" accel:shift="true" accel:mod1="true"/>


June 15, 2009

Settings everyone should consider applying

This is a repost, but an important one. It really helps.

Note: Here's a related article I wrote for TechTarget.com.

What's better, software that does what it thinks you want, or software that does what you tell it to?

If it's rocket-launching software, and I don't know much about rocket-launching, I guess I would let the software do what it wants. However, I know what I darn well want my office suite software to do. I know how I want it to behave. I know what features I want and I know, for instance, that I do not want it suggesting to me what word I am typing and offering to help me finish the arduous task of typing it.

OpenOffice.org has its default behavior and default settings just like any other software but is very cooperative in letting you customize those behavior and settings the way you want them. Which is refreshing. You just have to tell it how to behave.

So I've put together a list of the top  customizations I think are the most helpful and/or powerful. I make sure that everyone in my classes learns these by lunchtime, and review them afterwards. When the software behaves the way you want, that makes everything better.

1. Turn off the word completion.

I hate word completion, and it’s really easy to turn off. Choose Tools > AutoCorrect and click on the Word Completion tab. Make sure the Enable Word Completion option is unmarked, and click OK.

Wordcompletion_1

2. Turn off any automatic formatting that you don’t want.

Would you let people live in your house who you didn’t know? Then you don’t want automatic formatting going on that you don’t understand. Choose Tools > AutoCorrect and click on the Options tab. Unmark everything except the top option, Use Replacement Table. Then go back through and see if you really want anything.

(You can unmark the Use Replacement Table option too....but that table is handy, as you'll see in the next item.)

3. Use the automatic formatting to create handy shortcuts.

The same tab where you turned off word completion has a really great feature for creating shortcuts. Let’s say you type the word supercalfragilisticexpealidocious a zillion times a day, or your name and title, or anything kinda long. You can set up a shortcut for it. It's a much more reliable approach than word completion.

To do this: Choose Tools > AutoCorrect and click on the Replace tab.

A. In the left-hand field type your shortcut like sig and in the right-hand field, type the word you’re tired of typing all the time.

B. Click New, then click OK.

Replace

C. Click the Options tab and be sure that both checkboxes for the top item, Use Replacement Table, are marked. That just means "use the stuff in the Replace tab."

D.  In your document, type the shortcut, followed by a space, and your word will appear.

Note: You can also delete anything in the Replace tab that you don't want.

4. Display the icons that you want.

There are a zillion icons in OOo as with any software and you probably don’t use all of them. There’s also that dandy little result of having to click on the black arrow to get to the icons you want, while the ones you do want sit there taking up space and, quite frankly, smiling a bit smugly. So take off the ones you don’t want, leave room for the ones you do want, and add some other ones.

First step is to take off the ones you don’t want. Click on the dropdown arrow and choose Visible Buttons. Find the icons you don’t want, like double spacing, and select them. That’ll remove the checkbox by them, and that removes them from the toolbar.

Dropdown_1 Now add the icons you want. The first thing to try is to click the dropdown arrow again and choose Visible Buttons. If the icon you want is there, select it and it’ll appear.

If the icon you want isn’t there, click on the dropdown arrow again and instead of Visible Buttons, select Customize Toolbar. Find the toolbar you want to add icons to. Click Add, and in the window that appears just keep looking through the categories on the left til you find the feature you want in the list on the right. Select it and click Add.

Addicons_2 

Back in the customization window, you can leave the icon as is and just click OK, or change the icon by clicking and holding down on the Modify button and choosing Icon.

Addicons2

5. Get to know the choices under Tools > Options.

Choose Tools > Options, and you’ll see the big fat configuration window. Just as the items under Tools > Autocorrect were about default behavior, Tools > Options is about default settings, default values. Anything about the program, from icon size to language settings to where the program looks when you choose File > Open, is set here.

I suggest that you open the OpenOffice.org (or StarOffice as in this illutration) item at the top, then select Paths, and change the values for any paths you use a lot. Change the My Documents item, for instance, to change the default for where OOo tries to save documents. You’ll save a lot of time scrolling around in your Save windows.

Toolsoptions_1

To change the path, select it in the window, click Edit, and just point to the new location.

You might also want to expand the StarOffice Write item, select Default Fonts, and choose the ones you prefer.

When you’re done, just click OK.

You can turn off the Save for Autorecovery feature if you want--or increase the save interval
I find this feature entirely un-annoying, but you can turn it off easily if you want. Autorecovery means if OpenOffice.org crashes or you have to coldboot your machine, at least you'll have something recent to return to. If you're hypervigilant, increase the interval to every minute or 5; if you don't care about it, set it to every hour or just turn it off.

Choose Tools > Options > OpenOffice.org > Load/Save > General. You're looking for the Save AutoRecovery Information Every  option. Unmark it, or change the interval.

Click the thumbnail below to see a bigger image of the window.

Autosave


Those are not all the configuration steps you can do, by a long shot. But I like them, and students seem to like them. And they're an important set of steps in the general process of showing that OpenOffice.org does what you tell it to do.


April 30, 2007

The beginning of a big fat blog on where all the OpenOffice settings and configurations are stored

I got an excellent question today: where are the AutoFormats stored?

They're not per document, like styles, which is nice. However, they are per user/per machine.

In Windows, they're stored by default here.

documents and settings\username\Application Data\OpenOffice.org2\user\config\autotbl.fmt

On Linux it should be in a similar location relative to where the user data is stored.

General Default Location for Individual Customizations

In Windows, settings are often here.

Documents and Settings\user\Application Data\OpenOffice\user

Allpathsinuserdir

Default Locations for Templates, AutoTexts, Backups, AutoCorrect, Gallery, Temporary Files, My Documents (default location for File > Open) and Graphics (default location for Insert > Picture > From File) -- and How to Change or Add Locations

You can check, and change, the location of AutoCorrection settings and AutoTexts, plus other items under Tools > Options > OpenOffice.org > Paths.

Click the picture to see a bigger version.

Toolsoptionspaths

For each, to add or change paths, select the line and click Edit.  You'll see this window. If there are two or more you can delete paths that aren't the default path. Click Add to add additional paths.

Addpath

Here's an overview from the online help about each category.

 

Type

Description

AutoCorrect

Contains the settings of the AutoCorrect dialog box.

AutoText

Your AutoTexts are stored in the specified folder.

My Documents

You can see this folder when you first call the Open or Save dialog.

AutoCorrect

This folder stores your own AutoCorrect texts.

AutoText

This folder stores your own AutoText texts.

Gallery

New Gallery themes are stored in this folder.

Graphics

This folder is displayed when you first call the dialog for opening or saving a graphic object.

Backups

Automatic backup copies of documents are stored here.

Templates

In this folder you can store your own templates.

Temporary files

This is where OpenOffice.org puts its temporary files.

 

Setting a Specific Location for a Category of AutoTexts
When you create AutoTexts under Edit > AutoText, you can add a category. Click Category, enter the name of the category, and select the location to store the file for this category from the dropdown list. The list comes from the paths set for AutoTexts under Tools > Options.

Click the graphic to see it bigger.

Auto1

If you want to put this category in a different location, you can do it on the fly, kind of. Cancel out to the main AutoText window and click Path.  Then click Add to add a new path.

Auto2withpath

Now when you create a new AutoText category, you can select the new path from the dropdown list.

Auto3withpath

Go to that directory and you'll see a file with the category as its file name. You can copy this file to other computers, and point users to where the file is.

Auto4newfile_2

Locations for Customizations to Spellcheck

Look for the wordbook directory in the location under Documents and Settings\user\Application Data\OpenOffice\user (or the user directory on that computer) for customizations made to spellcheck.

Locations for Plugins

Look for the plugins  directory in the location under Documents and Settings\user\Application Data\OpenOffice\user (or the user directory on that computer). This folder contains the plugins that you installed in OpenOffice.org. OpenOffice.org recognizes the plug-ins installed in Netscape, Mozilla, or the Microsoft Internet Explorer, so you normally do not need to install plug-ins in this folder.

 

What's Coming

In the coming month I'm going to put together a big fat blog on configuration: how to make sure that a whole bunch of users can have the settings or values you specify for:

  • styles/templates
  • macros
  • menus and toolbars
  • colors
  • and much more

Please leave a comment if there's a configuration location you'd like to know about or something you've picked up that would be useful. Thanks!