From mboxrd@z Thu Jan 1 00:00:00 1970 From: arisawa Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: Date: Thu, 13 Jun 2013 19:28:29 +0900 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: [9fans] trans Topicbox-Message-UUID: 65bf8dd0-ead8-11e9-9d60-3106f5b1d025 Hello, 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. Three lines in rule file: alice bob bob carol carol alice will rotate "alice", "bob" and "carol" in text. 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 The code in trans will be applied to u9fs for Mac. Kenji Arisawa