Click here to Skip to main content
11,641,067 members (58,071 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ascii
In C # I want to say the word "a" to "ش" I turned.
What should I do this?
Posted 15-Nov-12 2:45am
rahim71294
Edited 15-Nov-12 2:46am
v2
Comments
Sergey Alexandrovich Kryukov at 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 at 16-Nov-12 10:51am
   
in question you posted here is incorrect as the arabic word represent "St." but not "a"
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Here is how:
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
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Replace the existing one with you want on keypress event
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

ASCII

http://uplod.ir/17hrqikhrfie/char.xlsx.htm
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

I've typed a word, for example:

"قشاهئ" and I want a keyboard shortcut for "rahim" turn.
  Permalink  
Comments
Abhishek Pant at 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 at 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)

  Print Answers RSS
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 145
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 380
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 125
4 Afzaal Ahmad Zeeshan 89


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100