JSesh 9 Documentation

Older forms of the code

Everything on this page is still read, so old texts keep working. Do not use these forms in new texts.

Where the "Origin" column says "not recorded", the code does not say where the form comes from.

How a legacy file is recognised

JSesh chooses how to read a file (its dialect) from the file name and its first bytes:

Test, in this order Dialect Encoding Header handling
name ends in .hie TKSESH iso-8859-1 none
starts with @ WINGLYPH windows-1252 first line skipped
starts with ++Created by: MacScribe MACSCRIBE MacRoman leading ++ and +O lines skipped
starts with ++JSesh_Info JSESH1 UTF-8 read as document preferences
anything else JSESH system default none

Only two things depend on the dialect once the file is read:

  • in TKSESH, philological marks are parentheses (below);
  • in MACSCRIBE, \r means \R (below).

If a file does not parse, it is read again line by line. Lines with an error become plain text preceded by an error message, so that nothing is lost and they can be corrected. In that second reading, philological marks are always signs, even for a .hie file.

Legacy forms still read

Sign codes

Form Read as Written back as Origin
J1, J12 (any code starting with J) Aa1, Aa12 Aa1, Aa12 not recorded
Ff2 V49A V49A not recorded
` | Ff1 | Ff1 not recorded
A23H, A23V variants A23h, A23v when normalised unchanged, unless normalised not recorded
UG1M2N3 tksesh user sign unchanged tksesh

Modifiers

Form Read as Written back as Origin
\r1, \r2, \r3 rotation by quarter turns: \R270, \R180, \R90 \R form original Manuel
\t1, \t2, \t3 the same rotation, mirrored \ and the \R form original Manuel
\s1, \s2... scale divided by √2 at each step (\s1 is 70 %, \s2 is 49 %) \N not recorded
\rN in a MacScribe file \RN, so \r90 is 90 degrees \RN MacScribe

Operators

Form Current form Notes Origin
a&&b a**b Same absolute group. not recorded
t^^w t^^^w Same ligature. not recorded
a#n a##n One # as overwrite only works right after a sign, and not before signs starting with b, e or 1-4. MacScribe
$ $r, $b Toggles between red and black. not recorded
# before a sign, -#, -#-, #- #b, #e Toggles shading. not recorded
-#b, -#e #b, #e with a separator The - is part of the token. not recorded
A1#-, A1# followed by spaces A1#1234 After a sign only. not recorded

Cartouches

The uppercase forms come from MacScribe. <S, <H, <F and <G, without a part letter, are also what JSesh writes for a complete enclosure (see Ligatures, insertions, kerning and enclosures), so these four are not obsolete.

Form Meaning Current form
<Sb, <Fb, <Hb start only <s1-...-s0>
<Sm, <Fm, <Hm middle: no extremity <s0-...-s0>
<Se, <Fe, <He end only <s0-...-s2>
<b, <m, <e same, for a plain cartouche <1-...-0>, <0-...-0>, <0-...-2>

There is no part form for G: <Gb reads as <G followed by the sign b. A cartouche opened with one of these forms can be closed with any end token, and cannot be followed by a modifier.

Philological marks as parentheses (tksesh)

In .hie files (Tksesh), philological marks are parentheses around a list of quadrats. They must then be balanced, and they count as elements of a quadrat line: [[A1:B1]]:C1 is one quadrat.

Only the opening mark gives the kind: [[-A1-"] is accepted as an erased group.

JSesh writes these documents back as .hie in iso-8859-1, with the marks as parentheses.

Known bug: in this mode, minor additions and dubious readings ([(A1)] and [?-A1-?]) are written as null-A1-null, which damages the text. Save such texts as .gly files.

Tab stops and horizontal rules

Form Meaning Origin
?N absolute tab: the next item is placed at absolute position N, in tab units (tabUnitWidth) Winglyph
{lA,B} thin horizontal rule from A % to B % of the width of the text (the page, or the zone, if it has a width; one quadrat at least): {l0,100} goes across the text, {l10,90} leaves 10 % on each side. Positions start at the beginning of the text: in right-to-left text, {l0,50} is the right half. Values are clamped to 0–100. Formerly in tab units not recorded
{LA,B} wide horizontal rule not recorded

JSesh lays out and saves ?N and the rules, but no editor command creates them. A ?N after a %tab is ignored. For the current tabs, %tab, see Lines, pages, zones and files.

Toggles which are dropped

Form Name in the code Effect
? LACUNA none
?? LINE_LACUNA none
^ OMIT none

These tokens are accepted, but they do not reach the model. They are lost when the text is saved. The exception is the running forms of the next section.

Running variant and running lacuna

Form Reading
^-..-..-^ %haplography
?-..-..-? %lacuna

The form is a mark (^ or ?), -, one or more dots items (. or ..) separated by -, -, and the same mark again. Each dot is half a quadrat: with n dots the size is n × 50 %. So ^-..-..-^ (4 dots) is two quadrats long, and ?-.-? half a quadrat. JSesh writes it back in the % form.

Anything else is read as before: ^-..-? is a dropped toggle, two spaces' worth of nothing, and a dropped toggle again.

Transliteration encoding

In +t blocks, the "Utrecht font" encoding is always converted to MdC, whatever the dialect:

Input ! @ # £ % & *, ß " c
Result ^h ^H ^x ^X ^s ^t ^T ^d s

So these characters cannot be used literally in transliteration.

MacScribe forms that are not supported

Some forms found in MacScribe files have no equivalent in JSesh, and are not implemented. Some are errors, but several are read silently as something else, so a MacScribe file can parse and still be wrong.

MacScribe form Meaning in MacScribe, from the notes What JSesh does
.f elastic space half space, then sign f
.v, .h vertical and horizontal half quadrat half space, then sign v or h
!/ justified end of line line break, then a quarter shade
\u, \d on "text" text above or below, taking no space kept as an unknown modifier, no effect
A## alone, X1##^^D39 hatched sign syntax error
# between signs normal superposition read as overwrite, with the limits given above
% tabulation syntax error
^b, ^e, ^w, /^ arrows ^ dropped, then sign b, e or w; or /, then ^ dropped
+u, +d, +n text above, below, as a note read as text in an unknown script
+L, +O in the body syntax error
k\200\150 two successive scales the last value replaces the first