JSesh 9 Documentation

Colour, shading, marks and alphabetic text

Colour and shading

Colour and shading toggles

Toggle Effect
$r following items are red
$b following items are black
#b following items are shaded
#e following items are no longer shaded
n-$r-Hr-nfr-$b-w

A toggle changes the state of the following top-level items, across line breaks and zone limits. $r-A1-%zone(A2) makes A2 red.

The state applies to a whole top-level item. A toggle inside a group or a cartouche changes the state of the whole enclosing quadrat: (A1-$r-B1) is entirely red, and <-$r-A1-$b-> has no effect on it. To colour one sign in a group, use \red.

Shading

# and a list of digits after a quadrat shade parts of it:

A1#12        top half
A1:B1#34     bottom half
A1#1234      whole quadrat
Digit Part
1 top, start side
2 top, end side
3 bottom, start side
4 bottom, end side

Digits must be in increasing order. The shading applies to the whole quadrat and comes at its very end: A1#12*B1 is an error. Quadrat shading, \shadingN and the shading signs (see Signs, quadrats and sign modifiers) are three independent mechanisms.

Philological marks

Marks Meaning Drawn as
[[ ]] erased signs [ ]
[& &] editor addition < >
[{ }] editor superfluous { }
[" "] previously readable [\| \|]
[' '] scribe addition ' '
[( )] minor addition ( )
[? ?] dubious half brackets

In current JSesh, each mark is a sign, not a pair of parentheses:

n-[[-w-r-]]-a

Marks can therefore be left open, overlap, or be used in a quadrat (]]*B1). This is deliberate: real texts sometimes open a mark once and close it twice. The reading as parentheses, used by tksesh, is described in Older forms of the code.

Alphabetic text, superscripts, comments

Alphabetic text

+ and a script letter start a text block, and +s returns to hieroglyphs:

+lThe word +ibook+s-G1-+tjw+s
Letter Script
l latin
b bold
i italic
t transliteration
c coptic
g greek
h hebrew (laid out right to left)
r cyrillic
any other lowercase letter kept and written back; drawn with the latin font

A block ends at a + followed by a lowercase letter or by another +, or at the end of the input. A new block can therefore follow directly, as +i does above. Any other + is part of the text. \+ is a literal + and \\ a literal backslash. Line breaks and tabulations in a block become spaces.

In transliteration, letters are the MdC letters, and ^ makes the next letter uppercase: +t^nfr+s.

Superscripts

| starts a superscript, used for instance for line numbers. It ends at the next -:

|12-A1-B1

A backslash escapes the character after it: \- is a literal hyphen and \\ a literal backslash. Hence |a\\- is the superscript a\: the backslash is doubled so that it does not protect the closing hyphen. Superscripts are only allowed at top level, not in a group or a cartouche.

Comments

++ starts a comment, which ends like a text block:

++ checked against the original +s-A1

Comments are not displayed, but they are saved back. Comments at the very beginning of a file may be document metadata (see Lines, pages, zones and files).