> [Original Message]
> From: Harold Fuchs <[EMAIL PROTECTED]>
> To: <users@openoffice.org>
> Date: 10/4/2008 5:35:46 PM
> Subject: Re: [users] Title Case
>
> On 04/10/2008 18:04, John Jason Jordan wrote:
> > On Sat, 4 Oct 2008 09:57:01 +0100
> > "Harold Fuchs" <[EMAIL PROTECTED]> dijo:
> >
> >   
> >>> 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.
> >>     
> >
> > I looked at the code in the link you posted. I don't understand most of
> > it (not a programmer!), but from this line:
> >
> > ignore="a,the,than,with,from,of,to,and" 
> >
> > I suspect it will not work perfectly correctly for English. The problem
> > is that there are a lot more words that need to be added to the list.
> >   
> As I said "It has a list of "stop words" built in which can easily be
changed to suit ...".
> You found the list.
>
> > Furthermore, most style manuals require the last word of the title to
> > be capitalized even if it is not an important word.
> Never seen that before.
> > I started thinking
> > about how one would program the exception words, and then I discovered
> > that evidently it has already been done for OOo:
> >
> > http://www.oooforum.org/forum/viewtopic.phtml?t=19043
> >
> > The code in the above link probably does a pretty good job. I didn't
> > try it, however, so I don't know if it still works in 2.4 or 3.0.
> >   
> I'd be interested to hear from you if you think it works as you clearly 
> have more experience in this area than I do.
>
> -- 
> Harold Fuchs
> London, England
> Please reply *only* to users@openoffice.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to