From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Character case mappings
Date: Mon, 24 Jun 2013 16:59:07 -0400 [thread overview]
Message-ID: <29ac93811382ec8ac9e116ef6b36969f@ladd.quanstro.net> (raw)
In-Reply-To: <20130624212514.RPF/QfniRbVCEYsL8rYhpXyb@dietcurd.local>
On Mon Jun 24 16:26:37 EDT 2013, sdaoden@gmail.com wrote:
> erik quanstrom <quanstro@quanstro.net> wrote:
> |all the other rune tables work this way. there is one
> |table per property. having a structure doesn't fit the
> |current programming interface, nor usage.
>
> uuh, ok, 9atom seems to have seen a lot of progress compared to
> what i have yet looked at.
just a few tables. and a bit of time spent applying them. ;-)
if you have plan 9 installed and can
nflag=-n srv $nflag -q tcp!atom.9atom.org atom &&
mount $nflag /srv/atom /n/atom atom
then the tables, &c. are in /n/atom/plan9/sys/src/libc/port.
the awk code to generate them, and the supporting functions
are in /n/atom/plan9/sys/src/cmd/runetype.
a particularlly nifty (if straightforward) application is grep -I, which is like
grep -i, but translates its input with tolowerrune(tobaserune(r))
rather than tolower(c). also straightforward is rune/case, which is
like tr 'A-Z' 'a-z', except generalized for unicode.
see also,
http://www.9atom.org/magic/man2html/1/rune
http://www.9atom.org/magic/man2html/2/isalpharune
http://www.9atom.org/magic/man2html/2/runeclass
- erik
next prev parent reply other threads:[~2013-06-24 20:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-24 13:15 Steffen Daode Nurpmeso
2013-06-24 15:11 ` erik quanstrom
2013-06-24 20:25 ` Steffen Daode Nurpmeso
2013-06-24 20:59 ` erik quanstrom [this message]
2013-06-25 12:11 ` Steffen Daode Nurpmeso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29ac93811382ec8ac9e116ef6b36969f@ladd.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).