Home / Microsoft / Microsoft DOS / spelling
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2  All - (Bottom) Print
Author Topic: spelling  (Read 1118 times)
feras
Topic Starter
Beginner



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

Code: [Select]
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
IP logged
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #1 on: April 02, 2009, 02:22:53 PM »

I think you can do that with IF and ~ I've seen it somewhere before...
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
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.
IP logged
macdad-
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #3 on: April 02, 2009, 04:01:15 PM »

I believe a FOR loop could be used.
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Reno
Hopeful



Thanked: 32
Posts: 323




« Reply #4 on: April 03, 2009, 12:13:24 AM »

Code: [Select]
@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"
IP logged
feras
Topic Starter
Beginner



Thanked: 1
Posts: 86

Experience: Experienced
OS: Linux variant

« Reply #5 on: April 03, 2009, 12:40:14 AM »

Thank you all

but until now I can't make the program

please give me the whole code
IP logged
Reno
Hopeful



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.
IP logged
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.

Quote
please give me the whole code

Stick a broom up my *censored* and I'll sweep the floor as well!  ::)

IP logged
macdad-
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #8 on: April 03, 2009, 06:10:24 AM »

Spell checker in Word?
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
BatchFileCommand
Hopeful



Thanked: 1
Posts: 339




« Reply #9 on: April 03, 2009, 12:05:30 PM »

He never gave what he wanted to do clearly.
IP logged

οτη άβγαλτος μεταφ βαθμολογία
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?
IP logged
BC_Programmer
Mastermind


Thanked: 697
Posts: 15,881

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« Reply #11 on: April 03, 2009, 12:44:17 PM »

hmm, it's relatively trivial and useless. Smells like some form of homework.
IP logged

My Blog

BASeBlock 2.3.0 (NOW WITH MACGUFFINS!)
feras
Topic Starter
Beginner



Thanked: 1
Posts: 86

Experience: Experienced
OS: Linux variant

« Reply #12 on: April 05, 2009, 04:44:36 AM »

Quote
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  ;D

the code that I have requested will replace every letter to it's second form

thank you
IP logged
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #13 on: April 05, 2009, 12:47:48 PM »

You can't change the English letters in a name and get Japanese...
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
BatchFileCommand
Hopeful



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.
IP logged

οτη άβγαλτος μεταφ βαθμολογία
Pages: [1] 2  All - (Top) Print 
Home / Microsoft / Microsoft DOS / spelling « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.11 seconds with 20 queries.