feras Topic Starter
Thanked: 1 Posts: 86
Experience: Experienced OS: Linux variant
|
 |
« on: April 02, 2009, 12:03:12 PM » |
|
Good evening  I want to spell the word that user writes, for example set /p name= > feras
the first letter is "f" it is the 6th letter in the English alphabet the second letter is "e" it is the 5th letter in the English alphabet etc
|
|
|
|
|
|
|
Dias de verano Guest
|
 |
« Reply #2 on: April 02, 2009, 03:23:13 PM » |
|
I think you can do that with IF and ~ I've seen it somewhere before...
That's him sorted then.
|
|
|
|
|
macdad-
Thanked: 39 Posts: 2,520
|
 |
« Reply #3 on: April 02, 2009, 04:01:15 PM » |
|
I believe a FOR loop could be used.
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
Reno
Thanked: 32 Posts: 323

|
 |
« Reply #4 on: April 03, 2009, 12:13:24 AM » |
|
@echo off & title Spelling %*
if "%~1"=="" (goto:eof) else set a=%~1 ver|set/p =%a:~,1% %0 "%a:~1%" usage: C:\>spell "type whatever here"
|
|
|
|
|
|
|
Reno
Thanked: 32 Posts: 323

|
 |
« Reply #6 on: April 03, 2009, 01:40:43 AM » |
|
Thank you all
but until now I can't make the program
ooo, so you are not looking to display charcter by character, you looks for accessing and translating substring "the first letter is "f" it is the 6th letter in the English alphabet" please give me the whole code
pretty useless script i think. not in the mood to write. i pass on this one.
|
|
|
|
|
Dias de verano Guest
|
 |
« Reply #7 on: April 03, 2009, 01:43:34 AM » |
|
pretty useless script i think. not in the mood to write. i pass on this one.
Me too. please give me the whole code Stick a broom up my *censored* and I'll sweep the floor as well! 
|
|
|
|
|
macdad-
Thanked: 39 Posts: 2,520
|
 |
« Reply #8 on: April 03, 2009, 06:10:24 AM » |
|
Spell checker in Word?
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
BatchFileCommand
Thanked: 1 Posts: 339

|
 |
« Reply #9 on: April 03, 2009, 12:05:30 PM » |
|
He never gave what he wanted to do clearly.
|
οτη άβγαλτος μεταφ βαθμολογία
|
|
|
Dias de verano Guest
|
 |
« Reply #10 on: April 03, 2009, 12:09:13 PM » |
|
He never gave what he wanted to do clearly.
I was waiting for somebody to notice that. Tells you something about some of the "helpers" on CH, doesn't it?
|
|
|
|
|
|
|
feras Topic Starter
Thanked: 1 Posts: 86
Experience: Experienced OS: Linux variant
|
 |
« Reply #12 on: April 05, 2009, 04:44:36 AM » |
|
He never gave what he wanted to do clearly. I'm sorry if that was true However, I'm trying to make a game that convert your name in English to another form (Japanese) for example: my name is Feras in English but in Japanese it is Lukushikari  the code that I have requested will replace every letter to it's second form thank you
|
|
|
|
|
|
|
BatchFileCommand
Thanked: 1 Posts: 339

|
 |
« Reply #14 on: April 05, 2009, 03:18:18 PM » |
|
It's impossible... Unless every word had the same amount of letters and had the same amount of characters in the alphabet and they could all cross over to a letter in our alphabet...But of course there isn't a program that can do that. Unless you wanted to translate stuff to pig latin.
|
οτη άβγαλτος μεταφ βαθμολογία
|
|
|