Literary versus Math Context in the Nemeth Code

This page is a summary of a lot of information scattered throughout the Nemeth Code book and may be somewhat difficult to follow without some of the background information on other pages. It is intended primarily as a Reference page for the pages on the use of the English-letter, Numeric, and Punctuation Indicators.

Introduction

When I first started trying to understand the Nemeth code I got the impression that I could apply the rules if I could distinguish for each cell whether it was literary context or math context. For example, many symbols, including numbers, variables, and mathematical symbols, are always mathematical. However, the situation isn't quite that simple: some symbols change context depending on their surroundings and some are even ignored in determining context in certain situations.

Also, the rules are somewhat easier to state if one adds a third, special context involving unembellished grouping symbols.

Introduction to Spaces and Literary Context

The nature of a space affects the use of the LI according to Rule IV, Section 27. This distinction is not made explicit in the Nemeth Reference but it seems to me a natural way of explaining the rules.

Literary versus mathematical spaces

In some cases the Nemeth rules require the deletion of spaces used in print and vice versa. The following rules refer to spaces in braille, not print.

  1. The required space between a shape that is followed by a plural, possessive, or ordinal ending and an optional following symbol that labels or identifies the shape is a literary space and is an exception to the general rule that such an ending does not terminate a mathematical expression. [IV 27b]
  2. The required space between a function name (spelled out or not) and an optional following argument is a mathematical space [27a] as is the required space between a shape symbol and an optional following symbol that labels the shape [27b] with the exception of the situation described in the previous rule.
  3. Spaces embedded in mathematical expressions or anywhere within mathematical context are mathematical spaces. This includes, but is not limited to, the required spaces preceding and following any of the Rule XX comparators [27-f], the required space following a mathematical comma in an enclosed list [27-d], the space between items in matrices and determinants [27-c], and spaces used in aligned sets of equations and other "pretty-printing" situations. [27-f]
  4. The required space preceding [27-b-3] or following [26-b-3] a sign of omission is a mathematical space. (Shapes used as signs of omission follow the semantics for signs of omission and not shapes.)
  5. If a linebreak replaces a space, it has the same context as the corresponding space
  6. Spaces are assumed to be literary spaces if not explicitly indicated otherwise according to these rules.

Literary, Text, or Prose Context

Literary context affects the use of the LI and the non-use of the PI. Literary context preceding certain punctuation marks can also necessitate the use of an intervening NI if a number would otherwise follow the punctuation. The purpose of the LI is to ensure that a letter or letter sequence used as a mathematical symbol is not misread as a braille single-letter contraction or short form word. An LI is thus only needed where a word would be appropriate, i.e. both preceded and followed by literary context.

The following situations are literary context:

  1. sequences of one or more letters and/or literary braille letter signs meant as either words, single-letter or short-form word contractions, abbreviations, or acronyms as opposed to mathematical symbols
  2. items in rule 1. whether in upper, lower, or mixed case and whether set in regular or non-regular type
  3. items in rule 1. even when typeset above or below the baseline are literary context at that level (but a change in level defaults to math context)[38iv]
  4. a literary space or a line break functioning as a literary space [38i]
  5. a literary (upper-cell) numeral or numeric symbol as would be on a title page [38ii]
  6. immediately following a spelled-out function name preceded by literary context and not followed by an argument [38v]
  7. a literary comma (dot 2)
  8. the open (left) single (inner) quotation mark, (dot 6) followed by (dots 236)
  9. an apostrophe (dot 3) not preceded by a PI
  10. any of the following lower-cell literary punctuation marks whether or not it has been preceded by a PI [38vii]
  11. the effect of a hyphen, short dash, long dash, or ellipsis is as follows
  12. the effect of an unembellished grouping symbol is as follows

Unembellished Grouping Symbols

Nemeth braille doesn't use the lower-cell (dots 2356) parentheses of literary braille but has its own grouping symbols including left and right parentheses, left and right brackets, etc. as defined in Rule XVIII. These symbols can be embellished with subscripts, superscripts, primes and even modifiers. An embellished grouping symbol together with its embellishment creates mathematical context just as any any other mathematical expression and is not a special case. However unembellished grouping symbols give rise to several special situations.

Grouping symbols in mathematics

Mathematics often uses one of a pair of grouping symbols without the other, uses non-matching grouping symbols, or uses a left (open) grouping symbol where one might expect a right (close) one and vice versa. Nemeth wisely limits any rules that distinguishes between left and right grouping symbols to the first two constructs below and there are no new rules—like the use of the same cell for the question mark and open double quote mark carried over from literary braille—that rely on only one or the other form being allowed in certain contexts.

Nemeth takes a generally syntactical approach to mathematics and thus includes symbols such as the vertical bars used to indicate absolute value as grouping symbols.

Special Nemeth contexts that utilize unembellished grouping symbols

  1. A symbolic name in contact with both its opening and closing unembellished grouping signs—even if they are not of the same type—creates a special construct here called a simple label, e.g., (a) or [iii]. This construct is commonly used to indicate the argument of a function of one variable, e.g., f(x).
  2. Two or more items separated by dot 6 mathematical commas (with their required following spaces) and enclosed within a pair of grouping signs form a construct known as an enclosed list if all the items meet certain restrictions. This construct is commonly used to indicate the arguments of a function of two or more variables, e.g., f(x, y).
  3. An intervening PI is required if an apostrophe or any literary punctuation mark that uses one of the six lower-cell signs would otherwise be in contact with a preceding unembellished (or embellished) grouping sign

Mathematical Context

Proper identification of mathematical context is necessary to the proper use certain punctuation marks and also of the Punctuation Indicator.

When a comma is used in a mathematical context, it must be transcribed as either a mathematical comma or contracted comma as appropriate.

A PI must precede any of the six cells also used as Nemeth numerals when they are used as punctuation marks immediately following otherwise mathematical context. An intervening PI is also required before the apostrophe of a possessive ending following a mathematical expression but the context remains mathematical following the s.

These items all create or maintain mathematical context:

An aside on ambiguities in the source.

There can be ambiguities in poorly typeset or poorly marked-up technical material that make it impossible to be sure that the corresponding Nemeth code is correct in cases where Nemeth would transcribe the various possibilities differently. Some of these ambiguities could be resolved by humans. One possibility for machine transcription is to produce a list of ambiguities to be resolved by human intervention. Technical material set by modern electronic typesetting methods should be less likely to have ambiguities than older material.

Last updated March 1, 2002.

Home Main Nemeth Page