Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In C # I want to say the word "a" to "ش" I turned.
What should I do this?
Posted
Updated 15-Nov-12 2:46am
v2
Comments
Sergey Alexandrovich Kryukov 15-Nov-12 10:09am    
What should you do? One thing: explain what do you want to achieve exactly, not on just one example. Translate in one language to another? Speech recognition with translation?
--SA
Abhishek Pant 16-Nov-12 10:51am    
in question you posted here is incorrect as the arabic word represent "St." but not "a"

Here is how:
C#
const char EnglishIndefiniteArticle = 'a';

static char Translate(char input)
{
    if (input == EnglishIndefiniteArticle)
       return 'ش';
    return input;
}


Please, no offense: this is how your question could be understood, really. If you think it's something else, please first see my comment to the question. Accurate formulation of the problem is critically important.

[EDIT]

By the way, if "say" means speech recognition of arbitrary text in some language, and it you hope for automatic translation of the text into another language, your problem is nearly hopeless.

—SA
 
Share this answer
 
v2
Replace the existing one with you want on keypress event
 
Share this answer
 
If you want to convert one character to another in a string, use the Replace method of the string class. If that's not what you mean, explain further.
 
Share this answer
 
ASCII

http://uplod.ir/17hrqikhrfie/char.xlsx.htm
 
Share this answer
 
I've typed a word, for example:

"قشاهئ" and I want a keyboard shortcut for "rahim" turn.
 
Share this answer
 
Comments
Abhishek Pant 16-Nov-12 10:46am    
use have a question or comment option if you want to commment.Please dont post your comment as a solution.
Abhishek Pant 16-Nov-12 10:56am    
from the link you gave above i got rahim as رحيم

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900