INTERC...:Baudot(3pm)

πŸ“¦
version 1.00 Β· 4 versions
, in debian trixie, ubuntu questing

πŸ’– INTERC...:Baudot(3pm) πŸ’–

ok so bestie, we're reading a manpage today, and this one comes from the User Contributed Perl Documentation corner of the world, filed under the extremely dramatic name INTERC...:Baudot(3pm). The module itself is just called Charset::Baudot. The dots? The vibe? Iconic, no notes. πŸ’…


🌸 NAME 🌸

Charset::Baudot β€” it converts between the INTERCAL variant of Extended Baudot and ASCII. That's it, that's the whole gig. ✨


πŸŽ€ SYNOPSIS πŸŽ€

use Charset::Baudot 'baudot2ascii';

my $a = baudot2ascii"(Baudot text)";

yes bestie, that quote placement is exactly how it's written and we are not touching it. character for character, we respect the source. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Charset::Baudot defines functions that convert between a subset of ASCII and a subset of nonstandard Baudot. The original Baudot only does letters, numbers, and a lil bit of punctuation β€” that's all it came with. πŸ’€

So here's the twist that makes this whole thing work: if you send a "Shift to letters" code while you're already in letters mode, this module treats that as "Shift to lowercase". And if you send a "Shift to figures" code while you're already in figures mode, it treats that as "Shift to symbols". Cute, right? That little trick gets you up to 120 characters of range. πŸŽ‰

But for simplicity, some characters are available in multiple sets, so the actual total is less than that. Not a bug, just the tradeoff. periodt. πŸ’…

Two functions are exportable β€” baudot2ascii and ascii2baudot β€” and they are not exported by default, so you have to ask for them by name. They do the obvious thing to their first argument and hand you back the transformed string. main character energy, minimal drama. πŸ‘‘


🌈 BAUDOT CHARACTER TABLE 🌈

here's every character it recognises. and remember what we said: the "shift" characters have nonstandard meaning here, so read this table with that in mind. 🧚

     set   Letters     Lowercase    Figures    Symbols
  code
    00       N/A          N/A         N/A        N/A
    01        E            e           3        Cents
    02       L/F          L/F         L/F        L/F    (line feed)
    03        A            a           -          +
    04      Space        Space       Space       Tab
    05        S            s          BELL        \
    06        I            i           8          #
    07        U            u           7          =
    08       C/R          C/R         C/R        C/R    (carriage return)
    09        D            d           $          *
    10        R            r           4          {
    11        J            j           '          ~
    12        N            n           ,         XOR
    13        F            f           !          |
    14        C            c           :          ^
    15        K            k           (          <
    16        T            t           5          [
    17        Z            z           "          }
    18        W            w           )          >
    19        L            l           2          ]
    20        H            h          N/A     backspace
    21        Y            y           6          @
    22        P            p           0          Β«
    23        Q            q           1        POUND
    24        O            o           9         NOT
    25        B            b           ?        delete
    26        G            g           &          Β±
    27     Figures      Figures     Symbols    Symbols
    28        M            m           .          %
    29        X            x           /          _
    30        V            v           ;          Β»
    31    Lowercase    Lowercase    Letters    Letters

yes the Β« and the Β» and the Β± are just living in there. multilingual queen. πŸ¦‹


This module is part of CLC-INTERCAL.

Copyright (C) 1999, 2000, 2002, 2006-2008, 2023 Claudio Calvelli, all rights reserved

See files README and COPYING in the distribution for information.


πŸ’œ SEE ALSO πŸ’œ

  • A qualified psychiatrist.
bestie I am not adding anything to that. the manpage said what it said. πŸ’€

πŸ™ˆ POD ERRORS πŸ™ˆ

Hey! The above document had some coding errors, which are explained below:

Around line 144:

Non-ASCII character seen before =encoding in 'Β«'. Assuming UTF-8


and that's the whole page, bestie!! 🌟 this one shipped with perl v5.40.0 and is dated 2025-02-09 β€” so go forth, convert your Baudot, and remember: shift twice and you get lowercase, you're welcome. mwah πŸ’‹ πŸŽ€πŸ«Άβœ¨

πŸ“¦ where this page comes from