RE(1)

πŸ“¦
version 0.1 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

re β€” the little program that converts russian texts between different encodings, bestie πŸ¦‹

(it's from the General Commands Manual section, so yeah, that's the re(1) you're looking at πŸ‘‘)


✨ SYNOPSIS ✨

re <infile><outfile><infrmt><outfrmt><f|b|s><u|l|s>

🌸 DESCRIPTION 🌸

okay so real talk: this manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. not me having to hand-write the docs for a whole encoding converter 😭 but we do it for the people.

and what is re? it's a program that converts russian texts between encodings. that's the whole vibe. encodings in, encodings out, slay πŸ’…


πŸŽ€ OPTIONS πŸŽ€

the easiest way to convert some file into readable form (KOI-8)? literally just type this:

re <SourceFile> <DestFile> ? K

and here's what each piece is doing, iykyk:

  • <SourceFile> β€” the unreadable file πŸ™ˆ (your poor eyes)
  • <DestFile> β€” the resulting file πŸ’–
  • ? β€” tells RE that the source codepage is unknown, so RE should analyze the file and determine the source codepage itself πŸ•΅οΈβ€β™€οΈ
  • K β€” tells RE that the destination codepage is KOI-8 ⭐
Note: if you know what the source codepage is, it is better to use it instead of the "?" option. for example, you want to convert a letter.txt file which was written in Win and you know that this file is in the 1251 codepage:
re letter.txt letter2.txt W K

now examine the letter2.txt β€” you should see russian symbols in KOI-8 🌈


πŸ”₯ the known codepages + their abbreviatures πŸ”₯

here's the whole list, no cap, every single one πŸ‘‘

  • W β€” Windows 1251
  • D β€” Dos
  • K β€” KOI-8
  • L β€” Latin
  • I β€” Iso
  • H β€” HEX
  • S β€” ShiftKbrd
  • M β€” Mac
  • A β€” AFF
  • O β€” Odd(UTF8_1)
  • B β€” Base64
  • E β€” Express
  • T β€” T-Html
  • U β€” User
  • "-" β€” uue
  • "_" β€” _xxe
  • "%" β€” %hex
  • "\\" β€” 'hex
  • G β€” Graph_win
  • "<" β€” <binhex>
  • + β€” +UTF7-
  • C β€” C_MIC
  • Y β€” Y_c16
  • Z β€” Z_c32
  • F β€” F(UTF8_2)
  • P β€” Pict
  • N β€” N_Estl
  • V β€” V_Vpp855
  • X β€” X_sp
  • J β€” J_diff

🫢 other options 🫢

the shape of them is: [-v][-E|-R|-N][-e|-s]

  • -v β€” tells what is processing πŸ‘€
  • -n β€” don't tells what is processing (default) 🀫
  • -E β€” converts all p,H from Russian to English
  • -R β€” converts all p,H from English to Russian
  • -N β€” lets all p,H Russian or English as in text (default)
  • -e β€” converts all symbols 0x80 - 0xFF, autodetection is weaker ⚠️
  • -s β€” converts only 64 symbols of Russian Alphabet, except '0401' (default)

πŸ‘‘ AUTHOR πŸ‘‘

this manual page was written by Aigars Mahinovs <aigarius@debian.org>, for the Debian GNU/Linux system (but may be used by others). iconic behaviour fr fr πŸ’œ


and that's the whole page bestie πŸŽ€ β€” this one's from March 21, 2000, and it lives in the RE(1) slot of the manual. go convert some encodings, you got this πŸ’…βœ¨

πŸ“¦ where this page comes from