NISUS Archives

March 2010

NISUS@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Tue, 30 Mar 2010 00:25:44 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
On Mar 29, 2010, at 11:52 PM, Hamid Haji wrote:

> On 29 Mar 2010, at 15:44, Kino wrote:
> 
>> On Mar 29, 2010, at 11:23 PM, Kino wrote:
>> 
>>> I think it is impossible to find and select just the letter without using a macro.
>> 
>> I seem to have found a workaround.
>> 
>> 	<letter>(?:\b|(?!\p{Latin}))
>> 
>> finds <letter> at the end of word in Latin script and
>> 
>> 	<letter>(?:\b|(?!\p{Arabic}))
>> 
>> finds <letter> at the end of word in Arabic script even if Latin or Arabic letters are used as note references which do not seem to be treated as belonging to any character class.
> 
> Thank you for your replies.
> I only want to change the last letter in Arabic words so that instances of indefinite direct object are marked correctly.

I did not understand what I wrote. I discovered a better solution in the bath-tub.

	<letter>(?:\b|(?!\S))

works for words in any script. This expression stands for "<letter> followed by a word boundary or NOT followed by a visible character" and a note reference is not treated as a visible character.


Kino

ATOM RSS1 RSS2