verse direction change

Nisus Thesaurus, Nisus Writer Classic– this is the place for all other Nisus products.
Post Reply
rico2008
Posts: 3
Joined: 2008-04-01 08:42:17

verse direction change

Post by rico2008 » 2008-04-03 00:28:53

In Classic Nisus I would like to be able to reverse numbers so that
12:34 will become 34:12;
and 2:9 becomes 9:2
and 6:12 becomes 12:6
and 20:3 becomes 3:20

is there an equation I can use to reverse these? right now
(0-9)1+:(0-9)1+ finds them but what about replace?
thx

Groucho
Posts: 496
Joined: 2007-03-03 09:55:06
Location: Europe

Post by Groucho » 2008-04-03 03:21:19

Find: ([0-9]+):([0-9]+)
Replace: \2:\1

This should work.

Henry

rico2008
Posts: 3
Joined: 2008-04-01 08:42:17

verse direction change

Post by rico2008 » 2008-04-03 05:13:36

That replace didn't work because it turns each find into \2:\1 instead of to the desired reverse arrangement.
maybe this is on the way to something though

also (0-9)1+: (0-9)1+ is better for isolating the verse couplets.

any more??

Groucho
Posts: 496
Joined: 2007-03-03 09:55:06
Location: Europe

Post by Groucho » 2008-04-04 01:10:10

Looks like you are using PowerFind.
Try switching to PowerFind Pro, instead, then digit:

Find: \([0-9]+\):\([0-9]+\)
Replace: \2:\1

If this doesn't work, try this Find expression:

\([0-9]+\)\:\([0-9]+\)

I haven't used NWC for quite a long time now, and am not sure whether colon needs be escaped or not.

Cheers, Henry.

davidchristmass
Posts: 6
Joined: 2003-11-28 06:45:03
Location: UK London and SE
Contact:

Re: verse direction change

Post by davidchristmass » 2013-04-01 18:25:14

There is a complete fast, exact method, save the page as a graphic, mirror the page horrizontal, complete, and then flip the numbers that appear backward, individually the right way around.

Post Reply