ArticleslgStudy

science

Digital encoding of APL symbols

Digital encoding of APL symbols is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Digital encoding of APL symbols rather than just read about it. In short: The programming language APL uses a number of symbols, rather than words from natural language, to identify operations, similarly to mathematical symbols. Prior to the wide adoption of Unicode, a number of special-purpose EBCDIC and non-EBCDIC code pages were used to represent the symbols required for writing APL.

Digital encoding of APL symbols — main illustration
Digital encoding of APL symbols — illustration

Key takeaways

  • Digital encoding of APL symbols belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Digital encoding of APL symbols to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Digital encoding of APL symbols from memory before moving on to harder problems.

Reference excerpt

The programming language APL uses a number of symbols, rather than words from natural language, to identify operations, similarly to mathematical symbols. Prior to the wide adoption of Unicode, a number of special-purpose EBCDIC and non-EBCDIC code pages were used to represent the symbols required for writing APL.

Character sets Due to its origins on IBM Selectric-based teleprinters, APL symbols have traditionally been represented on the wire using a unique, non-standard character set. In the 1960s and 1970s, few terminal devices existed which could reproduce them, the most popular ones being the IBM 2741 and IBM 1050 fitted with a specific APL print head. Over time, with the universal use of high-quality graphic display, printing devices and Unicode support, the APL character font problem has largely been eliminated.

Character repertoire IBM assigns the following character IDs (GCGIDs) to APL syntax, which are used in the definitions of its code pages.

EBCDIC code pages

Code page 293 Code page 293 (CCSID 293), called "APL (USA)", is an EBCDIC code page which includes APL symbols, in addition to preserving the basic Latin letters and Western Arabic numerals at their usual EBCDIC locations.

Code page 310 Code page 310 ("Graphic Escape APL/TN") includes a larger gamut of symbols, but does not itself include the basic Latin letters or the basic digits. It is used alongside Code page 37 (2), with the Code page 310 codes being prefixed by the Graphic Escape (EBCDIC 0x08) control character.

Code page 351 Code page 351 ("GDDM Default (USA)") contains most of the characters of Code page 293 and Code page 310 (except ⍷, epsilon with underline) in addition to the letters and digits, by replacing several control characters with symbols.

7-bit modified ASCII

Code page 371 (IR-68)

Code page 371, registered for use with ISO/IEC 2022 as ISO-IR-68, is a 7-bit heavily modified ASCII, designed by the APL Working Group of the Canadian Standards Association, intended for use with APL in an environment allowing overstriking of characters using the BS (backspace, 0x08) control code.

8-bit modified and/or extended ASCII

Code page 907 Code page 907 is used by the IBM 3812, like code page 906.

Code page 909 Code page 909 is another encoding for APL, differing from code page 907 in not including the underlined characters, assigning different codes to the APL characters which fall in the 0xB0–DF range, and replacing some of the C0 replacement graphics from code page 437 with alternative encodings for certain APL symbols.

Code page 910 Code page 910 is similar to code page 909, but with fewer duplicate horizontal arrows, using the same C0 graphics as code page 437, and including some additional characters.

Unicode Most APL symbols are present in Unicode, in the Miscellaneous Technical range, although some APL products may not yet feature Unicode, and some APL symbols may be unused or unavailable in a given vendor's implementation. As of 2010, Unicode allows APL to be stored in text files, published in print and on the web, and shared through email and instant messaging. Entering APL characters still requires the use of either a specific input method editor or keyboard mapping, or of a specific touch interface. APL keyboard mappings are available for free for the most common operating systems, or can be obtained by adding the Unicode APL symbols to existing keyboard map.

Underscored alphabetic characters Missing from Unicode are the traditional underscored alphabetic characters included in some of the APL code pages; their usage has been eliminated or deprecated in most APL implementations. These were produced on APL printing terminals by over-striking a straight capital letter with an underscore character. Some tables show them simulated with underlined and italic markup, not listing Unicode mappings. IBM assigns them GCGIDs as "LA480000" (which they name "A Line Below Capital/A Underscore (APL)"), "LB480000" ("B Line Below Capital/B Underscore (APL)") and so forth, under the "L" series used for Latin letters. The use of an even number (48) rather than an odd number (47) is due to being uppercase: compare the use of SD110000 for a lone acute accent ´, LA110000 for the lowercase á, and LA120000 for the uppercase Á. They are included in IBM's private use area scheme, encoded in reverse‑alphabetical order in the odd-numbered code points from U+F8BF to U+F8F1. Homologous uses of 47 include the "SD" (diacritic) series GCGID SD470000 for "Line Below/Discontinuous Underscore"—i.e. macron below, distinct from the ASCII underscore which is SP090000 ("Underline/Continuous Underscore")—and the "A" (Arabic letter) series GCGID AD470009 for the ḏāl, for example. Unicode's Latin Extended Additional block includes the following capital "Line Below" characters with the macron below diacritic, for Semitic transcription (it includes a pre-composed ẖ only in lowercase):

U+1E06 Ḇ LATIN CAPITAL LETTER B WITH LINE BELOW U+1E0E Ḏ LATIN CAPITAL LETTER D WITH LINE BELOW U+1E34 Ḵ LATIN CAPITAL LETTER K WITH LINE BELOW U+1E3A Ḻ LATIN CAPITAL LETTER L WITH LINE BELOW U+1E48 Ṉ LATIN CAPITAL LETTER N WITH LINE BELOW U+1E5E Ṟ LATIN CAPITAL LETTER R WITH LINE BELOW U+1E6E Ṯ LATIN CAPITAL LETTER T WITH LINE BELOW U+1E94 Ẕ LATIN CAPITAL LETTER Z WITH LINE BELOW However, this does not cover the entire ISO basic Latin alphabet, and IBM's reference glyphs for the APL characters show them both underlined and oblique, and tables simulating them with markup may follow suit. Unicode's Mathematical Alphanumeric Symbols block includes italic characters for use in notations where they are contrastive with non-italic characters. Unicode also includes combining forms of the macron below and underscore in the Combining Diacritical Marks block; the characters above canonically decompose with the former:

U+0331 ◌̱ COMBINING MACRON BELOW U+0332 ◌̲ COMBINING LOW LINE

Keyboard layout There are mnemonics associating an APL character with a letter: ? (question mark) on Q, ⋆ (power) on P, ρ (rho) on R, ⊥ (base value) on B, ⊤ (eNcode) on N, ∣ (modulus) on M and so on. This makes it easier for an English-language speaker to type APL on a non-APL keyboard, providing one has visual feedback on one's screen. Also, decals have been produced for attachment to standard keyboards, either on the front of the keys or on the top of them.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Digital encoding of APL symbols

Start with the simplest possible case. Write down what Digital encoding of APL symbols claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Digital encoding of APL symbols before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Digital encoding of APL symbols ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Digital encoding of APL symbols

In research
Digital encoding of APL symbols appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Digital encoding of APL symbols in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Digital encoding of APL symbols is common in secondary-school and first-year university syllabi. It links to neighbouring topics APL programming language family, Character sets, so understanding it makes those chapters shorter.
In everyday life
Look for Digital encoding of APL symbols outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Digital encoding of APL symbols” →

How to study Digital encoding of APL symbols in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Digital encoding of APL symbols means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Digital encoding of APL symbols out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Digital encoding of APL symbols in simple terms?

The programming language APL uses a number of symbols, rather than words from natural language, to identify operations, similarly to mathematical symbols. Prior to the wide adoption of Unicode, a number of special-purpose EBCDIC and non-EBCDIC code pages were used to represent the symbols required…

Why does Digital encoding of APL symbols matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Digital encoding of APL symbols?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Digital encoding of APL symbols.

Tags

  • APL programming language family
  • Character sets

Keep exploring