Table of Contents

LPDH Reference


Shading (also sometimes referred to as hatching) allows documents to represent damaged/unreadable parts of source texts.

Shading is based on the principle that each quadrat (and glyph) is virtually divided in 4 (rectangular) sub-regions.

These sub-regions inside a virtual quadrat square can be shaded individually to precisely represent the damaged parts of the source texts.

Shading is performed on individual quadrats and individual glyphs with the \# operator. When used as is (\#), the shading is done on all 4 sub-regions. Otherwise, you can specify individual sub-regions that you want to shade by adding their corresponding number (1 to 4) right after the pound sign (#).

The shading modifier will be applied to the outermost group of glyphs (when parentheses are used) preceeding it.

A1\#     ---> shade A1 completely (sub-regions 1, 2, 3 and 4)
A1\#1    ---> shade only top-left sub-region
A1\#12   ---> shade top-left (1) and top-right (2) sub-regions

A1:(X1*X1)\#    ---> shade the region occupied by X1*X1 (notice they are 
                     grouped with parentheses)
A1\#13:X1*X1    ---> shade the left-half of the region occupied by A1
(A1:X1*X1)\#    ---> shade the whole quadrat
..\#            ---> shade a space glyph
..\#:N1         ---> shade the top half of quadrat (space glyph
                     only will be shaded) 

Another shading modifier exists to shade sequences of adjacent quadrats. This operator is the #b...#e pair and acts on all quadrats between the code pair.

#b A1:X1*X1 #e   ---> shade a single whole quadrat
#b C1 G17 G1 #e  ---> shade the 3 quadrats C1, G17 and G1
#b .. .. .. #e   ---> shade 3 empty spaces quadrats