Small Caps and Large Caps

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
redbulls
Posts: 5
Joined: Tue Sep 19, 2006 3:29 am

Small Caps and Large Caps

Post by redbulls »

hi,

How to find and replace LARGE CAPS with <lc>LARGE CAPS</lc> and SMALL CAPS TO <sc>SMALL CAPS</sc>

help me
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Use an EasyPattern search/replace,

[ capture( '<', optional( '/' ) ), 'lc>' ]

Replace with

$1sc>

Will you be purchasing the Web version or Pro?
redbulls
Posts: 5
Joined: Tue Sep 19, 2006 3:29 am

Post by redbulls »

I am currently using trial verion. I will buy it ASAP. This is really a nice piece of software.
redbulls
Posts: 5
Joined: Tue Sep 19, 2006 3:29 am

Post by redbulls »

That did not work.

Have to find:
LARGE CAPS
Should not find:
<sc>LARGE CAPS</sc>
And replace it with:
<lc>LARGE CAPS<lc>



It is impossible to find SMALL CAPS and italics. right?
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Ah - I see. Try this perl pattern:

([A-Z]+?( [A-Z]+?)+?)

Replace with
<lc>$1</lc>

Ensure Match Case is ENABLED.

For Small Caps, use

([A-Z][a-z]*?)( [A-Z][a-z]*?)*?

Replace with

<lc>$1</lc>

You may have to add other restrictions if this is not the only text present. Drop us an email with sample data and we can help further.
redbulls
Posts: 5
Joined: Tue Sep 19, 2006 3:29 am

Post by redbulls »

Thanks.
Post Reply