* [9fans] trans
@ 2013-06-13 10:28 arisawa
2013-06-13 10:30 ` arisawa
2013-06-14 15:35 ` erik quanstrom
0 siblings, 2 replies; 3+ messages in thread
From: arisawa @ 2013-06-13 10:28 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
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.
Therefore trans has format suitable for the problem:
# unicode
# Latin letters
0061:0308 00E4 ä
0065:0308 00EB ë
0069:0308 00EF ï
006F:0308 00F6 ö
0075:0308 00FC ü
0079:0308 00FF ÿ
The code in trans will be applied to u9fs for Mac.
Kenji Arisawa
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] trans
2013-06-13 10:28 [9fans] trans arisawa
@ 2013-06-13 10:30 ` arisawa
2013-06-14 15:35 ` erik quanstrom
1 sibling, 0 replies; 3+ messages in thread
From: arisawa @ 2013-06-13 10:30 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I forgot to add:
http://plan9.aichi-u.ac.jp/netlib/cmd/trans/
On 2013/06/13, at 19:28, arisawa <arisawa@ar.aichi-u.ac.JP> wrote:
> 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.
> Therefore trans has format suitable for the problem:
> # unicode
> # Latin letters
> 0061:0308 00E4 ä
> 0065:0308 00EB ë
> 0069:0308 00EF ï
> 006F:0308 00F6 ö
> 0075:0308 00FC ü
> 0079:0308 00FF ÿ
>
> The code in trans will be applied to u9fs for Mac.
>
> Kenji Arisawa
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] trans
2013-06-13 10:28 [9fans] trans arisawa
2013-06-13 10:30 ` arisawa
@ 2013-06-14 15:35 ` erik quanstrom
1 sibling, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2013-06-14 15:35 UTC (permalink / raw)
To: 9fans
> Trans originary designed for unicode conversion NFD to NFC.
> Therefore trans has format suitable for the problem:
> # unicode
> # Latin letters
> 0061:0308 00E4 ä
> 0065:0308 00EB ë
> 0069:0308 00EF ï
> 006F:0308 00F6 ö
> 0075:0308 00FC ü
> 0079:0308 00FF ÿ
>
> The code in trans will be applied to u9fs for Mac.
i think that compose and decompose
(rune(1), http://9atom.org/magic/man2html/1/rune)
might also do the job. they rely on runecompose
and runedecompose (runeclass(2),
http://9atom.org/magic/man2html/2/runeclass)
this might be kinder to the old warhorse tr(1). :-)
- erik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-14 15:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-13 10:28 [9fans] trans arisawa
2013-06-13 10:30 ` arisawa
2013-06-14 15:35 ` erik quanstrom
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).