Cuneify Test/Demo Page

In the examples below, the Cuneified display uses iframe to include entire cuneified documents into the Test/Demo page. The HTML/CSS implementation can be explored using the browser inspector facility.

Test t01-a

Basic features: signs and breakage.

ATF

1. a ba
2. a#-ba
3. [a]-ba#-bu
4. [a & ba]

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t02-ne

Config: cfy-key passes font and styleset to class.
Salt: ATF \3 selects salt3.

ATF

1. ne
2. balag balag\3

Configuration

cfy-key	cfy-lak-ss01-150-early-osl

Cuneified

Test t03-sajgal2

Liga: space splits liga but a configuration substitution rule can override this.
A liga substitution can in turn be broken up by ATF `\ '.

ATF

1. saŋ ŋal₂
2. saŋ\ ŋal₂

Configuration

cfy-key	cfy-rsp-0-150-middle-osl
saŋ &w ŋal₂ => saŋ ŋal₂ .

Cuneified

Test t04-f-default

Format: Text can be left-justified

ATF

1. a ba bu bi

Configuration

cfy-key	cfy-gudea-0-150-middle-osl
cfy-format left

Cuneified

Test t05-f-spread

Format: Default is 'spread' which justifies left and right

ATF

1. a ba bu bi

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t06-f-penult

Format: penult justifies left and right and puts extra space in the penultimate location, i.e., the last word space.

ATF

1. a ba bu bi

Configuration

cfy-key	cfy-gudea-0-150-middle-osl
cfy-format penult

Cuneified

Test t07-f-sa4

LGS: In addition to the main transliteration, ATF provides a secondary transliteration called LGS (Linearized Grapheme Stream) which can be used to insert formatting effects where it would be difficult to do so otherwise.

ATF

1. mu-un-sa₄
=: MU UN HU NA₂

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t08-f-return

Format: In ATF ';' is used to indicate that the scribe has split the line between rulings; such lines are usually right-justified in the manuscripts.

ATF

1. mu-še₃ mu-un;-sa₄

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t09-f-sa4r

LGS: ATF does not allow a ';'-linebreak within compounds but it can be emulated using the LGS.

ATF

1. mu-še₃ mu-un-sa₄
=: MU EŠ₂ MU UN HU; NA₂

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t10-d+en

Liga: ATF '+' is mapped to U+200D ZERO WIDTH JOINER. Discretionary ligatures can be defined in the font accordingly.

ATF

1. {d}en {d}+en

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t11-f-cspread

Format: The char-spread option justifies text by inserting space between characters.

ATF

1. a-ba-bu-bi
2. ensik

Configuration

cfy-key	cfy-gudea-0-150-middle-osl
cfy-format char-spread

Cuneified

Test t12-f-cpenult

Format: The char-penult option justifies text by inserting space between characters and puts extra space before the last character in the line.

ATF

1. a-ba-bu-bi
2. ensik

Configuration

cfy-key	cfy-gudea-0-150-middle-gudea
cfy-format char-penult

Cuneified

Test t13-r-ruled

Ruled: Tablet rulings by default are 1px solid black.

ATF

1. a ba
2. a-ba
3. a-ba

Configuration

cfy-key	cfy-gudea-0-150-middle-gudea
cfy-format ruled

Cuneified

Test t14-r-ruled

Ruled: Tablet ruling width, color, and style can be reset.

ATF

1. a ba
2. a-ba
3. a-ba

Configuration

cfy-key	cfy-gudea-0-150-middle-gudea
cfy-format ruled 2px #F00 dashed

Cuneified

Test t15-r-boxed

Ruled: the boxed format puts a ruled box around the text.

ATF

1. a ba
2. a-ba
3. a-ba

Configuration

cfy-key	cfy-gudea-0-150-middle-gudea
cfy-format boxed

Cuneified

Test t16-r-column

Ruled: cuneify can also put rulings between columns.

ATF

1. a & ba
2. a & ba
3. a & ba

Configuration

cfy-key	cfy-gudea-0-150-middle-.
cfy-format crule

Cuneified

Test t17-width

Format: Default text width is 100%, but this is configurable.

ATF

1. a ba
2. a ba

Configuration

cfy-key	cfy-gudea-0-150-middle-.
cfy-format boxed
cfy-width 100px

Cuneified

Test t18-r-column

Ruled: Column widths are set using cfy-colwidths.

ATF

1. a & ba
2. a & ba
3. a & ba

Configuration

cfy-key	cfy-gudea-0-150-middle-.
cfy-format crule
cfy-colwidths	20px 50px 50px .

Cuneified

Test t19-font

ATF: ATF font switches have the form %01, %02.

ATF

1. ne %01 ne %02 ne

Configuration

cfy-key	cfy-nni-0-150-late-.
cfy-font %01 rsp
cfy-font %02 cfy-lak-ss01-200-early-.

Cuneified

Test t20-zwnj

ATF: To break up a ligature within a word use `\-'

ATF

1. pad₃ ši\-ru

Configuration

cfy-key	cfy-lak-ss01-150-early-osl

Cuneified

Test t21-macgugar

LGS: hyphenation can be preserved with LGS

ATF

1. lu₂-{d}suen u₃ lugal-dalla mu-gid₂
=: LU₂-DINGIR+EN-ZU U₃ LUGAL-MAŠ;-GU₂-GAR₃
	MU-GID₂

Configuration

cfy-key	cfy-gudea-0-150-middle-osl

Cuneified

Test t22-spkill

Format: spacing in spread mode can be suppressed with '\<'

ATF

1. kur ma₂-gan
2. kur\< ma₂-gan

Configuration

cfy-key	cfy-gudea-0-150-middle-osl
cfy-format char-spread

Cuneified

Test t23-spforce

Format: by default spaces are suppressed when a line is indented; to force a space use '\>'

ATF

1. kur ma₂-gan;{ki}-ta
2. kur\< ma₂-gan;{ki}\>-ta

Configuration

cfy-key	cfy-emc-0-150-middle-osl
cfy-format char-spread

Cuneified

Test t24-spforce

Format: \> at the start of line must be followed by a single space;
the ATF processor handles this specially to ensure it works as
intended.

ATF

1. alan
2. \> alan

Configuration

cfy-key	cfy-emc-0-150-middle-osl
cfy-format char-spread

Cuneified

Test t25-flex

Format: surfaces and columns can be arrayed in a grid with config options

ATF

@composite
@m=object statue
@m=surface arm
@h1 Arm
1.	gu₃
@m=surface body
@h1 Body
@m column 1
1.	nin
@m column 2
1.	dub

Configuration

cfy-key	cfy-emc-0-200-middle-gudea
cfy-format char-penult
cfy-format ruled
cfy-format boxed
cfy-grid surfaces auto
cfy-grid columns auto
cfy-ui no-CuneifyBar

Cuneified