From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) From: arisawa In-Reply-To: Date: Thu, 13 Jun 2013 19:30:55 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <6527E18B-54BD-4748-A790-86C0198880C9@ar.aichi-u.ac.jp> References: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] trans Topicbox-Message-UUID: 65c5e2de-ead8-11e9-9d60-3106f5b1d025 I forgot to add: http://plan9.aichi-u.ac.jp/netlib/cmd/trans/ On 2013/06/13, at 19:28, arisawa wrote: > Hello, >=20 > I have released a tool that extends tr command to handle strings. > the command syntax is: trans rule [file ...] > where "rule" is a rule file. > The examples: > Two lines in rule file: > alice bob > bob alice > will swap "alice" and "bob" in text. >=20 > Three lines in rule file: > alice bob > bob carol > carol alice > will rotate "alice", "bob" and "carol" in text. >=20 > Trans originary designed for unicode conversion NFD to NFC.=20 > Therefore trans has format suitable for the problem:=20 > # unicode > # Latin letters > 0061:0308 00E4 =C3=A4 > 0065:0308 00EB =C3=AB > 0069:0308 00EF =C3=AF > 006F:0308 00F6 =C3=B6 > 0075:0308 00FC =C3=BC > 0079:0308 00FF =C3=BF >=20 > The code in trans will be applied to u9fs for Mac. >=20 > Kenji Arisawa >=20