Replacing hyphens with n-dashes before numbers

S

SC

I would like to create an AutoCorrect entry or a macro that replaces a hyphen
with an n-dash if the next character typed is a number.

I created 10 AutoCorrect entries: -0, -1, ..., -9 but found out that an
n-dash is NOT created when I type an alphanumeric immediately after the first
number.

First question: Is there a way to generalize an AutoCorrect entry such as
this one (either with wildcards, or forcing AutoCorrect after a single
numeric)?

Second question: Is it possible to write a "live" macro that automatically
(during typing) checks for the string < hyphen + digit >, and when
encountered converts the hyphen to an n-dash?

Thanks for any help.

-SC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top