Re: [icon-users] Find/Replace

  • From: John McCartney <j.mccartney@xxxxxxxxxxxxxxxx>
  • To: <icon-users@xxxxxxxxxxxxx>
  • Date: Fri, 06 Mar 2015 19:48:32 +0000 (GMT)

In article <39343ba054.martin@xxxxxxxxxxxxxxx>, Martin
Wuerthner <lists@xxxxxxxxxxxxxxx> wrote:
> In message <54a037db7aj.mccartney@xxxxxxxxxxxxxxxx> John
>           McCartney <j.mccartney@xxxxxxxxxxxxxxxx> wrote:

<snip>

> > TechWriter reports that it can't find @n@n.

> Yes. @n means "find the given string at the end of the
> paragraph only". It is not actually part of the search
> string, it just provides context, and as such it is not
> replaced. So, if "abc" is at the end of a paragraph, the
> result after "Replace" is the same no matter whether the
> search string was "abc@n" or "abc" (but "abc@n" only
> finds "abc" at the end of a paragraph).

> It would not be too hard to add "@n@n" to mean "match at
> the end of a paragraph that is followed by an empty
> paragraph", but it still would not help you because the
> paragraph ends cannot be replaced.

> > Is there a way of carrying out that substitution
> > without using a text editor as an intermediate step.
> > I've done this in the past but would like to do it from
> > within TechWriter.

> No, sorry, you cannot do that in TechWriter. TechWriter's
> search and replace only works within a paragraph.

Thanks for that explanation, Martin. It looks as though I'm
going to have to import it via a text editor. Actually,
Paul Sprangers' ConvText might be quicker as I wouldn't
have to fill in the relevant fields in a text editor each
time.

John

-- 
John McCartney
j.mccartney@xxxxxxxxxxxxxxxx
------------------------------------------------------------
    To change, suspend or cancel your subscription go to
          //www.freelists.org/list/icon-users
------------------------------------------------------------


Other related posts: