From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 24 Jun 2013 16:59:07 -0400 To: 9fans@9fans.net Message-ID: <29ac93811382ec8ac9e116ef6b36969f@ladd.quanstro.net> In-Reply-To: <20130624212514.RPF/QfniRbVCEYsL8rYhpXyb@dietcurd.local> References: <20130624141503.pffQxijUoC6mzgT/cF2fnZTk@dietcurd.local> <34723d59b4618c0a19b67299d8c27dc6@ladd.quanstro.net> <20130624212514.RPF/QfniRbVCEYsL8rYhpXyb@dietcurd.local> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Character case mappings Topicbox-Message-UUID: 6828792e-ead8-11e9-9d60-3106f5b1d025 On Mon Jun 24 16:26:37 EDT 2013, sdaoden@gmail.com wrote: > erik quanstrom 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