Program for converting letters into symbols.

6 respostas [Última entrada]
Piriponzolo
Desconectado
Joined: 02/19/2016

Hello to everyone!
Can you tell me, please, a program for converting letters and numbers into symbols? Thanks for your attention and have a nice day.

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Letters and digits are symbols. Maybe you want the tr command, but I am not sure: could you give examples of inputs and the related expected outputs?

Piriponzolo
Desconectado
Joined: 02/19/2016

For example so in order to have my particular alphabet:

A= ≽
B= ∯
etc ......

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

tr cannot do that because it "supports only single-byte characters" (excerpt from its info document). sed -e s/A/≽/g -e s/B/∯/g does work though:
$ printf 'aA bB\n' | sed -e s/A/≽/g -e s/B/∯/g
a≽ b∯

andyprough
Conectado
Joined: 02/12/2015

Hey, this is kind of fun

$ printf 'purple people eaters\n' | sed -e s/p/∯/g -e s/u/≽/g -e s/l/ƒ/g -e s/e/₡/g -e s/r/௹/g
∯≽௹∯ƒ₡ ∯₡o∯ƒ₡ ₡at₡௹s

andyprough
Conectado
Joined: 02/12/2015

Are you talking about emoji's? Like turning :) into a yellow smiley face picture?

Piriponzolo
Desconectado
Joined: 02/19/2016

For example so in order to have my particular alphabet:

A= ≽
B= ∯
etc ......