@echo off setlocal enabledelayedexpansion set word=Привет, мир 0987654321 echo %word% set count=0 :next if "!word:~%count%,1!" NEQ "" ( set /a count+=1 if "!word:~%count%,1!" equ "а" set "newword=%newword%a" & goto :next if "!word:~%count%,1!" equ "б" set "newword=%newword%b" & goto :next if "!word:~%count%,1!" equ "в" set "newword=%newword%v" & goto :next if "!word:~%count%,1!" equ "г" set "newword=%newword%g" & goto :next if "!word:~%count%,1!" equ "д" set "newword=%newword%d" & goto :next if "!word:~%count%,1!" equ "е" set "newword=%newword%e" & goto :next if "!word:~%count%,1!" equ "ё" set "newword=%newword%e" & goto :next if "!word:~%count%,1!" equ "ж" set "newword=%newword%zh" & goto :next if "!word:~%count%,1!" equ "з" set "newword=%newword%z" & goto :next if "!word:~%count%,1!" equ "и" set "newword=%newword%i" & goto :next if "!word:~%count%,1!" equ "й" set "newword=%newword%i" & goto :next if "!word:~%count%,1!" equ "к" set "newword=%newword%k" & goto :next if "!word:~%count%,1!" equ "л" set "newword=%newword%l" & goto :next if "!word:~%count%,1!" equ "м" set "newword=%newword%m" & goto :next if "!word:~%count%,1!" equ "н" set "newword=%newword%n" & goto :next if "!word:~%count%,1!" equ "о" set "newword=%newword%o" & goto :next if "!word:~%count%,1!" equ "п" set "newword=%newword%p" & goto :next if "!word:~%count%,1!" equ "р" set "newword=%newword%r" & goto :next if "!word:~%count%,1!" equ "с" set "newword=%newword%s" & goto :next if "!word:~%count%,1!" equ "т" set "newword=%newword%t" & goto :next if "!word:~%count%,1!" equ "у" set "newword=%newword%u" & goto :next if "!word:~%count%,1!" equ "ф" set "newword=%newword%f" & goto :next if "!word:~%count%,1!" equ "х" set "newword=%newword%kh" & goto :next if "!word:~%count%,1!" equ "ц" set "newword=%newword%ts" & goto :next if "!word:~%count%,1!" equ "ч" set "newword=%newword%ch" & goto :next if "!word:~%count%,1!" equ "ш" set "newword=%newword%sh" & goto :next if "!word:~%count%,1!" equ "щ" set "newword=%newword%sh" & goto :next if "!word:~%count%,1!" equ "ъ" set "newword=%newword%'" & goto :next if "!word:~%count%,1!" equ "ы" set "newword=%newword%y" & goto :next if "!word:~%count%,1!" equ "ь" set "newword=%newword%'" & goto :next if "!word:~%count%,1!" equ "э" set "newword=%newword%e" & goto :next if "!word:~%count%,1!" equ "ю" set "newword=%newword%yu" & goto :next if "!word:~%count%,1!" equ "я" set "newword=%newword%ya" & goto :next if "!word:~%count%,1!" equ "А" set "newword=%newword%A" & goto :next if "!word:~%count%,1!" equ "Б" set "newword=%newword%B" & goto :next if "!word:~%count%,1!" equ "В" set "newword=%newword%V" & goto :next if "!word:~%count%,1!" equ "Г" set "newword=%newword%G" & goto :next if "!word:~%count%,1!" equ "Д" set "newword=%newword%D" & goto :next if "!word:~%count%,1!" equ "Е" set "newword=%newword%E" & goto :next if "!word:~%count%,1!" equ "Ё" set "newword=%newword%E" & goto :next if "!word:~%count%,1!" equ "Ж" set "newword=%newword%Zh" & goto :next if "!word:~%count%,1!" equ "З" set "newword=%newword%Z" & goto :next if "!word:~%count%,1!" equ "И" set "newword=%newword%I" & goto :next if "!word:~%count%,1!" equ "Й" set "newword=%newword%I" & goto :next if "!word:~%count%,1!" equ "К" set "newword=%newword%K" & goto :next if "!word:~%count%,1!" equ "Л" set "newword=%newword%L" & goto :next if "!word:~%count%,1!" equ "М" set "newword=%newword%M" & goto :next if "!word:~%count%,1!" equ "Н" set "newword=%newword%N" & goto :next if "!word:~%count%,1!" equ "О" set "newword=%newword%O" & goto :next if "!word:~%count%,1!" equ "П" set "newword=%newword%P" & goto :next if "!word:~%count%,1!" equ "Р" set "newword=%newword%R" & goto :next if "!word:~%count%,1!" equ "С" set "newword=%newword%S" & goto :next if "!word:~%count%,1!" equ "Т" set "newword=%newword%T" & goto :next if "!word:~%count%,1!" equ "У" set "newword=%newword%U" & goto :next if "!word:~%count%,1!" equ "Ф" set "newword=%newword%F" & goto :next if "!word:~%count%,1!" equ "Х" set "newword=%newword%Kh" & goto :next if "!word:~%count%,1!" equ "Ц" set "newword=%newword%Ts" & goto :next if "!word:~%count%,1!" equ "Ч" set "newword=%newword%Ch" & goto :next if "!word:~%count%,1!" equ "Ш" set "newword=%newword%Sh" & goto :next if "!word:~%count%,1!" equ "Щ" set "newword=%newword%Sh" & goto :next if "!word:~%count%,1!" equ "Ъ" set "newword=%newword%'" & goto :next if "!word:~%count%,1!" equ "Ы" set "newword=%newword%Y" & goto :next if "!word:~%count%,1!" equ "Ь" set "newword=%newword%'" & goto :next if "!word:~%count%,1!" equ "Э" set "newword=%newword%E" & goto :next if "!word:~%count%,1!" equ "Ю" set "newword=%newword%Yu" & goto :next if "!word:~%count%,1!" equ "Я" set "newword=%newword%Ya" & goto :next set "newword=%newword%!word:~%count%,1!" & goto :next ) echo %newword% |