From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 25 Jun 2013 14:11:52 +0200 From: Steffen "Daode" Nurpmeso To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20130625131152.WwUHKtsf6Yrpx/mURMn3OHj1@dietcurd.local> References: <20130624141503.pffQxijUoC6mzgT/cF2fnZTk@dietcurd.local> <34723d59b4618c0a19b67299d8c27dc6@ladd.quanstro.net> <20130624212514.RPF/QfniRbVCEYsL8rYhpXyb@dietcurd.local> <29ac93811382ec8ac9e116ef6b36969f@ladd.quanstro.net> In-Reply-To: <29ac93811382ec8ac9e116ef6b36969f@ladd.quanstro.net> User-Agent: s-nail s-nail-14.3.2-19-g99878da MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Character case mappings Topicbox-Message-UUID: 6835beea-ead8-11e9-9d60-3106f5b1d025 erik quanstrom wrote: |> 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. ;-)=20 |if you have plan 9 installed and can=20 | | nflag=3D-n srv $nflag -q tcp!atom.9atom.org atom && | mount $nflag /srv/atom /n/atom atom Unfortunately not yet; but i have the distribution since yesterday. (The git(1) pack is 121 MB. And what i've seen before belonged to go, yet i wrote Plan9 since it seemed to have a common origin.) |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. May be worth taking a deeper look into a system that works for non-english. Btw. i thought i was so smart due to my "Ctx" objects for bracket expressions, format string conversions etc. -- and even said so -- only to find out that on Plan9 there existed something rather similar years before! Pretty awkward. |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 yea yea, maybe: i'm not familiar with something that just works, i'm using BSD for such a long time. Looking into upas doesn't make me much happier, too. Sigh. |- erik --steffen