Re: [libreoffice-users] question about search & replace

2012-01-21 Thread Johnny Rosenberg
2012/1/21 Brian Barker :
> At 15:56 19/01/2012 +0100, Jean-Christophe Sekinger wrote:
>>
>> I would like to transform each {{word}} or {{phrase}} (which I can select
>> with '\{{[^\}]+\}}') in word or phrase in italic and without "{{}}"
>>
>> How can I do that?... Help!
>
>
> o Search for {{([^}]+)}} .
> o Replace with $1 .
> o If necessary, click More Options in the Find & Replace panel.
> o With the cursor in the "Replace with" window, Click Format... .

Aaaah! I never thought of that before!

> o On the Font tab, under Typeface, click Italic and OK.  (See the word
> "Italic" appear beneath the "Replace with" window?)
> o Click Replace All.
>
> I trust this helps.

Thanks, Jean-Christophe Sekinger for asking the question and Brian
Barker for answering it! I didn't know this was possible!



Kind regards

Johnny Rosenberg
ジョニー・ローゼンバーグ

>
> Brian Barker

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] question about search & replace

2012-01-21 Thread Brian Barker

At 15:56 19/01/2012 +0100, Jean-Christophe Sekinger wrote:
I would like to transform each {{word}} or {{phrase}} (which I can 
select with '\{{[^\}]+\}}') in word or phrase in italic and without "{{}}"

How can I do that?... Help!


o Search for {{([^}]+)}} .
o Replace with $1 .
o If necessary, click More Options in the Find & Replace panel.
o With the cursor in the "Replace with" window, Click Format... .
o On the Font tab, under Typeface, click Italic and OK.  (See the 
word "Italic" appear beneath the "Replace with" window?)

o Click Replace All.

I trust this helps.

Brian Barker


--
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] question about search & replace

2012-01-21 Thread Johnny Rosenberg
2012/1/19 jc sekinger :
> hello
> I can't find the answer
> I would like to transforme each {{word}} or {{phrase}} (wich I can select
> with '\{{[^\}]+\}}')
> in word or phrase in italic and without "{{}}"
>
> How can I do that?... Help!
> --
> Jean-Christophe Sekinger

I am not sure, but I don't think there is a way to make found words or
phrased converted to italic, but this seems to at least remove the
{{}}:
Search for: \{\{(.+)\}\}
Replace with: $1

This also seemed to work:
Search for: \{{([^\}]+)\}}
Replace with: $1

But converting to italic? I don't know. I know you can search for
certain format attributes, like italic, but not how to replace one
attribute with another,
Well, unless you want to write a macro, of course.


Kind regards

Johnny Rosenberg
ジョニー・ローゼンバーグ

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] question about search & replace

2012-01-20 Thread jc sekinger

hello
I can't find the answer
I would like to transforme each {{word}} or {{phrase}} (wich I can 
select with '\{{[^\}]+\}}')

in word or phrase in italic and without "{{}}"

How can I do that?... Help!
--
Jean-Christophe Sekinger


--
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted