Bash: T9 simulator (intuitive text phone)
paul0007
Posted messages
5
Status
Member
-
Anonymous user -
Anonymous user -
Hello,
I'm looking to create a T9 simulator
So I need to write a Bash script that converts text to numbers and vice versa.
Could you please suggest a solution?
I'm looking to create a T9 simulator
So I need to write a Bash script that converts text to numbers and vice versa.
Could you please suggest a solution?
2 answers
-
Hi,
Do you have a beginning of an algorithm?
How does T9 work?
An example of text and the corresponding numbers for the transformation of the text?
There is still a minimum of research and explanations to provide before anyone helps you!-
Hello,
I have defined the different possible combinations
a = 2
b = 22
c = 222
d = 3
e = 33
f = 333
g = 4
h = 44
i = 444
j = 5
k = 55
l = 555
m = 6
n = 66
o = 666
p = 7
q = 77
r = 777
s = 7777
t = 8
u = 88
v = 888
w = 9
x = 99
y = 999
z =9999
However, I have no idea for the code (I just started with bash..), I was thinking of using tr.
Can you help me? -
-
-