buggrep - Bugs: bug #19977, Adding new function to grep

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #19977: Adding new function to grep

Submitter:  Tariq Al-Omaireeni <tariqao>
Submitted:  Sun 27 May 2007 10:43:52 AM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Wed 15 Aug 2012 09:28:51 AM UTC, comment #2: 

Indeed, this is a very good request. For example I have a text file that contains the following lines:

english
énglish
énglish
ènglish
ĕnglish
ênglish

when I search "english" with grep, I need it to show me all the lines.

the grep that I use (from gnuwin32) doesn't have options like "--ignore-marks" or " --ignore-diacritics"

grep english file.txt

Pablo Gonzalez <gonzo>
Thu 07 Jun 2007 08:40:32 PM UTC, comment #1: 

That is a good request.  Grep not matching accented characters is not only a problem in Arabic with Tashkeel signs, but also in many European languages with diacritical signs.  One would like to have an option to ignore any of those signs so that the following command outputs five lines instead of just one:

$ echo -e " a\n á\n à\n â\n ä" | grep --ignore-diacritics a

Of course "-it" is not possible as an option, but for example "-k" and "--ignore-marks" would be.

You plan to develop and program this option yourself?  Then you will be mostly on your own, as the maintainers of grep are... busy elsewhere.  But when you have a patch, even if it's just half-working, please attach it here; others will be interested.

http://en.wikipedia.org/wiki/Harakat
http://en.wikipedia.org/wiki/Diacritic

Benno Schulenberg <bens>
Sun 27 May 2007 10:43:52 AM UTC, original submission:  

Hi there,

I do not know whether it is the right place to put this post or not. Anyway, I want to propose a new function for grep. grep already  Supports Arabic language. However, Arabic language has a special characteristic called "Tashkeel Signs". Tashkeel Signs are additional marks above and below letters that help the reader to pronounce the word accurately. When using grep with Arabic text, if the desired word has "Tashkeel Signes" it will not appear in the results because the two words seem deferent. So I want to add an option like the option -i that ignores the case. But in my case, I will ignore the "Tashkeel Signs" lets name the option (-it). I think it is applicable and easy to develop. I really want to here from you about it and I need your guidance thru the development stages.
I will appreciate your cooperation.

Regards,
Tariq

Tariq Al-Omaireeni <tariqao>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gonzo (Posted a comment)
  • -email is unavailable- added by bonzini (Updated the item)
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by tariqao (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-04 bonzini Severity3 - Normal 1 - Wish
    2007-05-27 tariqao Carbon-Copy- Added tariqao

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code