& joins two or more signs:
p&t
stp&n&ra
JSesh first looks for a predefined ligature for these signs. Otherwise, for two signs, it places the smaller one in a ligature zone of the larger one, and for three signs it places the first and third around the second, if the zones exist. Otherwise the signs are not arranged.
Only signs can be joined with &, not groups.
^^^ and &&& place a whole group in the ligature zones of a sign:
t^^^w group before the sign
w&&&t group after the sign
t^^^w&&&n both
(a:b)^^^w&&&(c:d)
The middle element must be a sign. The group after &&& goes in the bottom zone of the sign if there is one, otherwise in its "after" zone. If the sign has no zone, the operator has the same effect as *.
%insert places a group in the free space of a sign, computed from the actual shapes:
%insert[dir=bs,dw=20](D36,(n:t))
| Option | Value | Meaning |
|---|---|---|
dir |
required | where the inserted element goes, relative to the target |
target |
1 (default) or 2 |
which argument is the target; the other one is inserted |
dw |
integer, 0 by default | enlarges the target's frame horizontally, in percent of the inserted element's width |
dh |
integer, 0 by default | enlarges the target's frame vertically, in percent of the inserted element's height |
dir |
Position |
|---|---|
s, e |
start, end |
t, b |
top, bottom |
ts, te |
top-start, top-end |
bs, be |
bottom-start, bottom-end |
c |
centre |
"Start" and "end" follow the writing direction: start is left in left-to-right text and right in right-to-left text.
Arguments are in reading order. %insert[dir=bs](A,B) and %insert[dir=bs,target=2](B,A) insert B into A, but B is read first in the second one. Both arguments accept any content a group accepts, so insertions can nest:
%insert[dir=te](%insert[dir=bs](t,w),t)
%hkern and %vkern bring the groups before and after them closer, so that they are about one inter-sign space apart where their signs are closest.
p*%hkern*q in a line of a quadrat
p:%vkern:q between the lines of a quadrat
p-%hkern-q between quadrats
%hkern only acts between elements of a line, or between quadrats in text written in lines. %vkern only acts between lines of a quadrat, or between quadrats in text written in columns. Elsewhere the operator is ignored. Options are accepted and saved (%hkern[a=1]), but none is used yet.
** builds a group where each sign has an explicit position:
A1**B1{{120,300,50}}**C1{{0,500,100}}
The signs are placed from their {{x,y,scale}}. The group needs at least two signs. Shading signs are moved to the front of the group, so that they are drawn first.
## draws two signs on top of each other, both centred:
a##n
Both operands must be signs.
| Start | End | Enclosure |
|---|---|---|
< |
> |
cartouche |
<s |
s> |
serekh |
<h |
h> |
Hwt-sign |
<f |
f> |
castle |
<g |
g> |
circular enclosure |
JSesh's normal spelling of a complete enclosure uses an uppercase letter on the left and a plain > on the right. Always separate the content with -:
<-ra-mn:n-xpr->
<S-Hr-nfr->
The content is a sequence of quadrats. Alphabetic text and toggles are allowed inside. Line breaks, zones and superscripts are not. An enclosure is an element of a quadrat line: it can be followed by * or :, but it cannot be used in a ligature.
A digit after the letter says how each end is drawn, which allows for a cartouche split over several lines or columns:
<1-ra-mn-0> start only
<0-ra-mn-2> end only
<s1-Hr-s0> serekh, start only
| Digit | Cartouche, serekh, castle, enclosure | Hwt-sign |
|---|---|---|
0 |
nothing drawn | unused |
1 |
normal start | no square |
2 |
ending part (for a cartouche, the knot) | square in the lower part (text in lines) |
3 |
square in the upper part |
The default is 1 at the start and 2 at the end. Digit 3 needs a type letter (<h3).
The type written at the end has no effect: only the start token gives the type. A trailing modifier (<s-A1-s>\R90) is accepted and ignored.