Click here to Skip to main content
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 OriginalGriff 349
1 Nirav Prabtani 268
2 _Amy 185
3 CHill60 170
4 Richard Deeming 135
0 OriginalGriff 8,004
1 Sergey Alexandrovich Kryukov 7,017
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2014
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