off topic: МИК ковертор
7 отговора
190 прегледа
off topic: МИК ковертор
Търся конвертор с които да прехвърля едни стари файлове от ДОС-МИК в някоя по-четима кодировка - KOI-8, cp-1251, unicode...
Re: off topic: МИК ковертор
recode <target_charset> име на файла, например:
recode ms-cyrl probe.txt
за да видиш какви подредби поддържа виж recode -l , а за повече информация - нали знаеш - man recode
воля, воля... и пак воля...
recode ms-cyrl probe.txt
за да видиш какви подредби поддържа виж recode -l , а за повече информация - нали знаеш - man recode
воля, воля... и пак воля...
Re: off topic: МИК ковертор
nie sme ot tezi deto chetat man predi da pitat ama za suzhalenie recode ne podurzha MIK, ili pone ne go vizhdam sled recode -l
Re: off topic: МИК ковертор
Какво става като му дадеш recode към cp1251. Доколкото ми е известно ДОС използва IBM - кодови страници, така че не би трябвало да имаш проблеми (кирилицата е IBM 866) ...
воля, воля... и пак воля...
воля, воля... и пак воля...
Редактирано от stinger на
Re: off topic: МИК ковертор
napishi si konvertor
MIK e s kodove 128-191
1251 e 192-255
tochno 64 razlika za vseki simvol
казах
MIK e s kodove 128-191
1251 e 192-255
tochno 64 razlika za vseki simvol
казах
Re: off topic: МИК ковертор
Abe ne sum 100% siguren, no bg-linux moje da poddurja MIK IBM kodirovkata. Instaliraj si bglinux i razgledaj help-a na komandata cyr.
Re: Има една команда tr
Е тука има повече инфо за кирилицата и кодировките.
[линк]
МИК си е наша българска кодировка на Правец и никой друг не е чувал за нея.
Може да конвертираш всякакви текстови файлове с командата tr.
Usage: tr [OPTION]... SET1 [SET2]
Translate, squeeze, and/or delete characters from standard input,
writing to standard output.
-c, --complement first complement SET1
-d, --delete delete characters in SET1, do not translate
-s, --squeeze-repeats replace sequence of characters with one
-t, --truncate-set1 first truncate SET1 to length of SET2
--help display this help and exit
--version output version information and exit
SETs are specified as strings of characters. Most represent themselves.
Interpreted sequences are:
\NNN character with octal value NNN (1 to 3 octal digits)
\\ backslash
\a audible BEL
\b backspace
\f form feed
\n new line
\r return
\t horizontal tab
\v vertical tab
CHAR1-CHAR2 all characters from CHAR1 to CHAR2 in ascending order
[CHAR*] in SET2, copies of CHAR until length of SET1
[CHAR*REPEAT] REPEAT copies of CHAR, REPEAT octal if starting with 0
[:alnum:] all letters and digits
[:alpha:] all letters
[:blank:] all horizontal whitespace
[:cntrl:] all control characters
[:digit:] all digits
[:graph:] all printable characters, not including space
[:lower:] all lower case letters
[:print:] all printable characters, including space
[:punct:] all punctuation characters
[:space:] all horizontal or vertical whitespace
[:upper:] all upper case letters
[:xdigit:] all hexadecimal digits
[=CHAR=] all characters which are equivalent to CHAR
Translation occurs if -d is not given and both SET1 and SET2 appear.
-t may be used only when translating. SET2 is extended to length of
SET1 by repeating its last character as necessary. Excess characters
of SET2 are ignored. Only [:lower:] and [:upper:] are guaranteed to
expand in ascending order; used in SET2 while translating, they may
only be used in pairs to specify case conversion. -s uses SET1 if not
translating nor deleting; else squeezing uses SET2 and occurs after
translation or deletion.
Report bugs to <[email protected]>.
tr \200-\277 \300-\377 < file_to_convert.txt > converted_file.txt
MIK -> CP1251
[линк]
МИК си е наша българска кодировка на Правец и никой друг не е чувал за нея.
Може да конвертираш всякакви текстови файлове с командата tr.
Usage: tr [OPTION]... SET1 [SET2]
Translate, squeeze, and/or delete characters from standard input,
writing to standard output.
-c, --complement first complement SET1
-d, --delete delete characters in SET1, do not translate
-s, --squeeze-repeats replace sequence of characters with one
-t, --truncate-set1 first truncate SET1 to length of SET2
--help display this help and exit
--version output version information and exit
SETs are specified as strings of characters. Most represent themselves.
Interpreted sequences are:
\NNN character with octal value NNN (1 to 3 octal digits)
\\ backslash
\a audible BEL
\b backspace
\f form feed
\n new line
\r return
\t horizontal tab
\v vertical tab
CHAR1-CHAR2 all characters from CHAR1 to CHAR2 in ascending order
[CHAR*] in SET2, copies of CHAR until length of SET1
[CHAR*REPEAT] REPEAT copies of CHAR, REPEAT octal if starting with 0
[:alnum:] all letters and digits
[:alpha:] all letters
[:blank:] all horizontal whitespace
[:cntrl:] all control characters
[:digit:] all digits
[:graph:] all printable characters, not including space
[:lower:] all lower case letters
[:print:] all printable characters, including space
[:punct:] all punctuation characters
[:space:] all horizontal or vertical whitespace
[:upper:] all upper case letters
[:xdigit:] all hexadecimal digits
[=CHAR=] all characters which are equivalent to CHAR
Translation occurs if -d is not given and both SET1 and SET2 appear.
-t may be used only when translating. SET2 is extended to length of
SET1 by repeating its last character as necessary. Excess characters
of SET2 are ignored. Only [:lower:] and [:upper:] are guaranteed to
expand in ascending order; used in SET2 while translating, they may
only be used in pairs to specify case conversion. -s uses SET1 if not
translating nor deleting; else squeezing uses SET2 and occurs after
translation or deletion.
Report bugs to <[email protected]>.
tr \200-\277 \300-\377 < file_to_convert.txt > converted_file.txt
MIK -> CP1251
Re: off topic: МИК ковертор
Сигурен бях че има такава програма, само дето не можех да я намеря:)) Много благодаря. Всъщност точната команда е:
tr '\200'-'\277' '\300'-'\377' <file_in.txt >file_out.txt
Кавичките са важни иначе не се усеща и прави всичко на седмици.
tr '\200'-'\277' '\300'-'\377' <file_in.txt >file_out.txt
Кавичките са важни иначе не се усеща и прави всичко на седмици.