On 07/04/2009 22:03, L Duperval wrote:
Hi,

How do you switch the style of existing quote marks in one feel swoop?

I often cut and paste information from the Web into a Writer document and I'd like straight quotes to turn into curly ones. I also translate from English to French and vice versa, where the quote marks don't look the same (`` and '' in English but << and >> in French).

Can anyone lend a hand? I saw a Python program (not a macro or a library) that does this, but that's too much, even for me.

Thanks,

L
Find & Replace should work, no? Find `` and Replace All with <<, then find '' and Replace All with >>.

Alternatively, to do all of them in one fell swoop:

  1. Got to Edit>Find
  2. Click More Options
  3. Click Regular Expressions
  4. In the Find box enter ``([^']*)''
  5. In the "Replace with" box enter <<$1>>
  6. Click Replace All

For an explanation please read up on Regular Expressions in the Help.

In # 4 the characters are: backtick, backtick, left parenthesis, left square bracket, caret, single quote, right square bracket, asterisk, right parenthesis, single quote, single quote.

In #5 the characters are: less than, less than, dollar sign, digit 1, greater than, greater than.

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

Reply via email to