Here is a list of 11 strokes:
http://www.121chineselessons.com/wp-content/uploads/2012/02/...
Every word's strokes has a pre-determined "correct" order.
Once you list out the word's strokes, there are only a a couple of possibilities of characters left.
A blog post on `Chinese Python`. http://reganmian.net/blog/2008/11/21/chinese-python-translat...
while running:
guess = int(raw_input('Enter integer: '))
if guess == number:
print 'Congratulations'
running = False
elif guess < number:
print 'No, higher'
else:
print 'No, lower'
translates to 當 運行:
猜測 = 整數(輸入('輸入數字: '))
如果 猜測 == 數字:
印出 '恭喜'
運行 = 假
假使 猜測 < 數字:
印出 '錯了, 再大'
否則:
印出 '錯了, 再小'
But if we map English words in programming to single Chinese characters, we wouldn't need spaces, so perhaps 當運:
猜=整(輸('輸入數字: '))
如猜==數:
印'恭喜'
運=假
否如猜<數:
印'錯了, 再大'
否:
印'錯了, 再小'
And if we made the syntax more C-like to fully make use of the spaceless syntax 當運{
猜=整(輸('輸入數字: '))
如猜==數{印'恭喜';運=假}
否如猜<數{印'錯了, 再大'}
否{印'錯了, 再小'}
}
One could program on one's smartphone screen on the train! 當運:
猜=整(輸('輸入數字: '))
如猜==數:印('恭喜');運=假;
否如猜<數:印('錯了, 再大');
否:印('錯了, 再小')For Arabic the challenge is more akin to this type of problem: "create a computer that can handle a cursive form of the Latin alphabet". You could start with something really rudimentary like allow for Arabic characters in isolated form. It would be ugly and challenging to read, but a start. Wouldn't be too hard to add the initial, medial and final forms, eventually diacritics as well.
Yeah, there is a famous computer geek who invented a super nice Chinese input method named "Cangjie" in Assembly and it can be used with a special Chinese CPU. (Now he is an old man.)
Also, although Japanese has been (through deliberate effort) simplified to about 2,000 characters needed to be considered literate, it still takes until high-school for students to be able to fully read and write all 2,000.