Re: Needed help in writing regular expression for this text replacements

36 views
Skip to first unread message

विश्वासो वासुकिजः (Vishvas Vasuki)

unread,
Nov 6, 2017, 7:31:10 PM11/6/17
to ken p, sanskrit-programmers
+sanskrit-programmers

You will need a series of regular expression replacements - just one won't do. if you are using some special software, perhaps +sanskrit-programmers (esp anunad) might help.

On Mon, Nov 6, 2017 at 1:33 PM, ken p <drk...@gmail.com> wrote:
Please write regular expression for this find replace characters.
|aa|ii/ee|uu/oo|ae|aw|.t|.th|.d|.dh|nn|.s|.l|a.m|a.n|a~m|a~n|.....Find
|ā  |ī     |ū       |ă  |ŏ   |ṭ |ṭh |ḍ |ḍh |ṇ  |ṣ |ḷ |ṁ    |ṅ    |aṁ   |am̐ | ......Replace
Thanks,
ken



--
--
Vishvas /विश्वासः

Anunad Singh

unread,
Nov 6, 2017, 10:58:02 PM11/6/17
to sanskrit-p...@googlegroups.com
Only 'simple text replacement' will do here. No need of regular expressions.

-- anunAda
> --
> You received this message because you are subscribed to the Google Groups
> "sanskrit-programmers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sanskrit-program...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

ken p

unread,
Nov 8, 2017, 6:24:58 PM11/8/17
to sanskrit-programmers
Anunad Ji,
This tool is good for Chrome if you can write a Regular expression for this find/replace.It does work in Gmail as well as on the web for single pair but can't replace multi pair characters at once.
|aa|ii/ee|uu/oo|ae|aw|.t|.th|.d|.dh|nn|.s|.l|a.m|a.n|a~m|a~n|.....Find
|ā  |ī     |ū       |ă  |ŏ   |ṭ |ṭh |ḍ |ḍh |ṇ  |ṣ |ḷ |aṁ  |aṅ  |aṁ   |am̐ | ......Replace

Anunad Singh

unread,
Nov 8, 2017, 8:37:34 PM11/8/17
to sanskrit-p...@googlegroups.com
I am not able to make out what you mean. Can you explain with
examples? What is meant by 'multi pair characters' ?

-anunAda<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e;
font-size: 13px; font-family: Arial, Helvetica, sans-serif;
line-height: 18px;">Virus-free. <a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1"></a></div>

ken p

unread,
Nov 9, 2017, 3:24:32 PM11/9/17
to sanskrit-programmers
Anunad Ji,

Upon downloading this app...

...I get this box in upper right hand corner which allows me to replace one diacritic at a time in typed text by selecting Input fields only? Each entry gives gives one replacement. Regular Expression may allow all replacements but I don't know how to write. You may download this app and see what you can do to make it useful.

 

Anunad Singh

unread,
Nov 9, 2017, 11:47:04 PM11/9/17
to sanskrit-p...@googlegroups.com
I think you have brought in altogether a new issue. You did not comment on the current issue. Is it settled?

--
You received this message because you are subscribed to the Google Groups "sanskrit-programmers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sanskrit-programmers+unsub...@googlegroups.com.

ken p

unread,
Nov 10, 2017, 11:27:25 AM11/10/17
to sanskrit-programmers
Anunad Ji,

Here 'aa' is a pair of two letters which I want to replace with one diacritic letter ā and so on for other pair of letters.

|aa|ii/ee|uu/oo|ae|aw|.t|.th|.d|.dh|nn|.s|.l|a.m|a.n|a~m|a~n|.....Find
|ā  |ī     |ū       |ă  |ŏ   |ṭ |ṭh |ḍ |ḍh |ṇ  |ṣ | ḷ |aṁ  |aṅ  |aṁ   |am̐ | ......Replace

I don't understand this computer language. 
Reply all
Reply to author
Forward
0 new messages