Help needed: macro to replace ñ with – (en-dash)
Posted: 2008-02-18 06:30:50
Can someone help me please. I have encountered a glitch in the workflow Scrivener --> Exported RTF --> Bookends scan --> NWP.
Scrivener uses the Apple text engine -- the same problem arises with TextEdit -- and exports en-dashes as Hex '96. NWP can read that OK, but when scanned with Bookends, the en-dashes appear converted to ñ when the resulting file is opened in NWP, as that is the glyph for '96 in the coding used by Bookends. Bookends and Nisus apparently output RTF with /endash as the coding.
This is of particular concern in marking number ranges such as page-ranges in footnotes. So what I would like is a macro that will go through a file and replace all instances of ñ occurring between numbers with –
I am not a programmer and have no knowledge of any of the languages used for NWP macros, nor currently do I have time to start teaching myself. So I was wondering if there is any kindly soul out there who could and would be willing to help put together what I can only think must be a pretty simple macro.
Many thanks.
Mark
Scrivener uses the Apple text engine -- the same problem arises with TextEdit -- and exports en-dashes as Hex '96. NWP can read that OK, but when scanned with Bookends, the en-dashes appear converted to ñ when the resulting file is opened in NWP, as that is the glyph for '96 in the coding used by Bookends. Bookends and Nisus apparently output RTF with /endash as the coding.
This is of particular concern in marking number ranges such as page-ranges in footnotes. So what I would like is a macro that will go through a file and replace all instances of ñ occurring between numbers with –
I am not a programmer and have no knowledge of any of the languages used for NWP macros, nor currently do I have time to start teaching myself. So I was wondering if there is any kindly soul out there who could and would be willing to help put together what I can only think must be a pretty simple macro.
Many thanks.
Mark