Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] a japanese dictionary: regex v. db query
- Date: Wed, 5 Apr 2006 15:25:49 +0900 (JST)
- From: Joe Larabell <larabell@???>
- Subject: Re: [tlug] a japanese dictionary: regex v. db query
- References: <442EADBF.3060701@example.com> <a2588e100604010926o733cdc7en57335349dac956a8@example.com> <aaa8c4580604011516m6605d116j3df1fb29deabb94b@example.com> <a2588e100604031616v60663498qdb3d3d03bed3a3f6@example.com> <4432084F.6050400@example.com> <87u099h8rt.fsf@example.com> <20060404103045.507444eb.jep200404@example.com>
On Tue, 4 Apr 2006, Jim wrote: > > "Stephen J. Turnbull" wrote: > > > What is the regular expression for "all characters with 16 strokes"? > > Oh boy. That made me think. > That was the right question to highlight the limitations of regexes. > > I can not think of how to express "all characters with 16 strokes" > in the present schemes of regexes as I know them. But 'man re_syntax' reveals extensions such as: [:digit:] which matches any digit, or [:punct:] which matches any punctuation character Why not extend that syntax to include things like: [:stroke=16:] to match any character with 16 strokes. Or even: [:rad=<code>:] to match any character containing the radical at codepoint 'code'. You could probably convert this internally to an SQL search including just about any character property you have stored in the database. I would consider this more useful for a word search than for single kanji searches. RE's become useful when there are potentially many characters in the search target... or for someone stuck with a text-only interface to the database ;-). -- Joe Larabell -- Synopsys VCS Support US: larabell@example.com http://wwwin.synopsys.com/~larabell/ Japan: larabell@???
- Follow-Ups:
- Re: [tlug] a japanese dictionary: regex v. db query
- From: Edward Middleton
- References:
- [tlug] a japanese dictionary
- From: David Stibbe
- Re: [tlug] a japanese dictionary
- From: dabicho
- Re: [tlug] a japanese dictionary
- From: Michael Engel
- Re: [tlug] a japanese dictionary
- From: dabicho
- Re: [tlug] a japanese dictionary
- From: David Stibbe
- Re: [tlug] a japanese dictionary
- From: Stephen J. Turnbull
- [tlug] a japanese dictionary: regex v. db query
- From: Jim
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Printer Not Responding
- Next by Date: Re: [tlug] a japanese dictionary: regex v. db query
- Previous by thread: Re: [tlug] a japanese dictionary: regex v. db query
- Next by thread: Re: [tlug] a japanese dictionary: regex v. db query
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links