| Kind | Examples | Notes |
|---|---|---|
| Gardiner code | A1, G17, Aa1, Ff1 |
Family (one uppercase letter, Aa or Ff), then a number. |
| Variant | A1A, A23h, A1VARA, D2EXTA |
Gardiner code followed by a variant part. |
| Phonetic code | n, nfr, xpr, A, nTrw |
Short name for a sign; case matters (A is G1, a is D36). nn (M22B) and nTrw (R8A) are JSesh additions to the 1988 list. |
| Number | 2, 20, 300 |
Numerals. |
| Nome sign | NL5, NU12 |
Families NL and NU. |
| User sign | US1A1, US22A1VARA |
US, a user number, then a Gardiner-like code. |
The grammar does not check that a code exists: any run of letters and digits is a sign code. A code unknown to the sign database is kept, and its text is drawn in red in place of the sign. A1B1, without a separator, is one unknown code, not two signs.
When JSesh writes a text, it may replace phonetic codes by their Gardiner equivalents (wDA becomes U28).
These codes are signs like the others: they can be placed in groups and take modifiers.
| Code | Sign | Size |
|---|---|---|
. |
half space | half a quadrat wide and high |
.. |
full space | full quadrat |
o |
red point | |
O |
black point | |
// |
full shade | full quadrat |
/ |
quarter shade | half a quadrat wide and high |
h/ |
horizontal shade | full width, half height |
v/ |
vertical shade | half width, full height |
"text" |
small text used as a sign | size of the text |
In small text, ] and " must be preceded by a backslash. The backslash stays in the code and is displayed.
| Operator | Meaning | Example |
|---|---|---|
- |
separates quadrats | i-w |
: |
stacks lines in a quadrat | r:a |
* |
places elements side by side | p*t |
( ) |
groups | (p*t):n, n*(t:r) |
* binds more tightly than :, so p*t:pt means "p*t above pt". Parentheses nest. They may hold several quadrats ((A1-B1)), and those are then treated as one element.
The - can often be omitted, but JSesh always writes it, and new texts should too.
Modifiers come right after the sign code, each one starting with \.
| Modifier | Effect | Example |
|---|---|---|
\ |
mirrors the sign | A1\ |
\N |
scale, in percent | A1\50 |
\RN |
rotation in degrees, clockwise; may be negative; normalised to 0-359 | A1\R90, A1\R-90 |
\l |
wide sign: a line of a quadrat containing only this sign does not force the quadrat to be scaled down to the maximum width | N17\l |
\red |
draws the sign in red | A1\red |
\i |
draws the sign in gray | A1\i |
\shadingN |
shades part of the sign; N is a list of digits, as for quadrat shading (see Colour, shading, marks and alphabetic text) |
A1\shading12 |
\? |
marks a doubtful reading; stored, but not drawn | A1\? |
\name, \nameN |
any other name is stored and written back; if the name is in the colour map of the style, the sign is drawn in that colour | A1\col50 |
If a modifier is repeated, the last one wins (A1\50\200 has scale 200). \name and \name3 are different modifiers. \R and \r need a value: without one they have no effect.
{{x,y,scale}} follows the modifiers:
A1**B1{{120,300,50}}
x and y are in thousandths of the height of A1, and scale is in percent. All three are required, and they cannot be negative. The layout only uses x and y in ** groups (see Ligatures, insertions, kerning and enclosures). Elsewhere only the scale has an effect. {{0,0,100}} is the same as no position at all. {{x,y,scale}} replaces a scale given with \N.
| Form | Meaning | Example |
|---|---|---|
_ after a sign |
end of word | n_ |
__ after a sign |
end of sentence | n__ |
| one white space after a sign | end of word | n w |
| two white spaces after a sign | end of sentence | n w |
= before a sign |
grammatical sign | =n |
These properties are stored and written back, and the editor can set them. They do not change the drawing. They come in this order around a sign: =, code, modifiers, position, word end.
White space after a sign is significant, line breaks included.