nisus.com
https://www.nisus.com/forum/

Macro needed
https://www.nisus.com/forum/viewtopic.php?f=17&t=4233
Page 1 of 1

Author:  bongobuzz [ 2011-05-01 11:50:54 ]
Post subject:  Macro needed

I'm using Nisus Writer Pro and have a very large file. It is arranged using MARC (MAchine-Readable Cataloging) fields, the common format for library online catalogs in North America. The field I need to alter begins with 852 $a. Following $a there are extraneous numbers. I need to get rid of the numbers preceding the numbers I really wish to include. They consist of three or more numbers, ALWAYS followed by a space. The data following the space is what I want to include.

Can someone tell me of a preexisting Nisus macro that will do this? Or write me one that does?

Buzz Haughton
bongobuzz@gmail.com

Author:  martin [ 2011-05-02 00:27:04 ]
Post subject:  Re: Macro needed

Hi Buzz, I don't think there's a macro written for this, but it doesn't sound too difficult a thing to write. But let's make sure I understand what your data looks like. So, you have text that might look like:
Code:
852 $a 1 more text data
852 $a 12 more text data
852 $a 123 more text data

And you want a macro to turn it into:
Code:
852 $a more text data
852 $a more text data
852 $a more text data

If I'm wrong, then please, give examples of the before/after state you want to see.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/