2008/10/4 John Jason Jordan <[EMAIL PROTECTED]>

> On Fri, 03 Oct 2008 16:41:16 -0500
> Barbara Duprey <[EMAIL PROTECTED]> dijo:
>
> > Philipp Giddings wrote:
> > > Does anyone know if there is a way to change to title case in OO.o 3
>
> > Not sure what you mean here. Do you want to be able to select text and
> > have an option to automatically set the proper capitalization for a
> > title (i.e., initial caps on the first word and all other words except
> > those like a, an, the, etc.)?
>
> I have asked for that for some time. Does 3.0 finally do that?
>
> Note that the question involves title case in English only. Only
> English has this crazy rule that in titles "important" words must be
> capitalized, but not "unimportant" words. "Unimportant" includes
> articles, prepositions and conjunctions. Having said that, there are
> various style manuals for English and exactly which words should be
> capitalized and which should not varies a tad bit from one style manual
> to the next. For example, some say not to capitalize any prepositions
> and others say not to capitalize prepositions unless they are two or
> more syllables.
>
> If OOo 3.0 does not have a real title case feature for English, I have
> a suggestion for a simple workaround. It turns out that the
> "unimportant" words are a short list - a couple hundred at the max. So
> we could create a macro which would (1) capitalize the first letter of
> all words in a selection of text and then (2) search for each of the
> "unimportant" words and uncapitalize it. This macro could then be added
> to the user's toolbar. I've thought of recording the macro and then
> editing it to add the list of "unimportant" words, but I've been too
> busy to get around to it.
>

I, well Google actually, found a macro, in OOo Basic, which I *think* does
exactly what is required. It has a list of "stop words" built in which can
easily be changed to suit and works on the currently selected text. It was
posted on Aug 31, 2005 ;-)

It's at http://www.oooforum.org/forum/viewtopic.phtml?t=23299

I installed it in my OOo 2.4.1 on Win XP Pro and assigned it to a key using
Tools>Customise>Keyboard. It worked as advertised. It's very simple so I
assume it'll work in OOo 3.x - unless they've changed the document object
model.

I installed it by copy/pasting the Basic text (code) from the web page into
a new Writer macro under "My Macros" and then proceeding as normal.

-- 
Harold Fuchs
London, England
Please reply *only* to [email protected]

Reply via email to