This document describes how to deal with complex layouts, such as tabular formatting, in ATF.
Some tablets have unusual layouts that are hard to describe using the standard hierarchy of lines-within-columns-within-surfaces such as obverse or reverse. Blocks of text may be upside-down relative to the rest, for instance, or run from reverse to obverse.
In such cases, it is best not to use the standard structure codes such as @obverse
and @column 1
but to use the @surface
tag instead. For instance:
&P363868 = TCL 06, 13 #atf: lang akk-stdbab #project: cams #atf: use unicode @tablet @column 1 $ (column runs from obverse to reverse) @surface obv top $ start of obverse missing $ single ruling 1'. [... an]-na#-a-ti ana?# DUH.LAL₃ 2'. [...] {na₄}GIŠ.NU₁₁.GAL $ single ruling @surface 90 degrees $ single ruling 1. [...] $HA $SU x [...] x $KI $KAL E₂.GAL MAH {d}LUGAL.IR₉.RA $ rest of surface missing @surface 270 degrees 1. [...] {d#}40 GUB-MEŠ {mul}dele-bat {mul}ŠU.GI {mul}UR.GU.LA
The online version (on CAMS [http://oracc.org/cams/gkab/P363686]) does not attempt to replicate the directionality of the writing, but it describes and preserves the orientations and relationships of the blocks of text.
Simple tables, with just a few columns, can be edited in Emacs with &
before each cell of the table (and @&
serving the same function in the translation).
To mark text that spans more than one column — such as table headers, interlinear notes, or colophons — add the number of columns spanned to the preceding &
. For instance &3
precedes text that spans three columns of a table.
See the Advanced ATF and Lexical Conventions pages for more information about cells and fields.
For ease of editing, larger more complex tables — such as tabular administrative accounts or astronomical ephemerides — are best edited in OpenOffice [http://www.openoffice.org/] Calc, a free, open-source spreadsheet program (also available as NeoOffice [http://www.neooffice.org/] Calc for Macs). Using Calc will enable you to manage column spacing while still being able to validate and lemmatise your ATF. Calc spreadsheet filenames have the extension .ods
so we will refer to them as ODS files here.
If you don't already have it, download and install OpenOffice [http://www.openoffice.org/download/index.html] or NeoOffice [http://www.neooffice.org/neojava/en/maindownload.php] as you would any other application from the web.
If you have not already done so, install the relevant Unicode keyboard layout for your computer, to make the typing of transliteration and lemmatisation as simple as possible.
When you first open OpenOffice, by default it will open a word processing window. Choose File > New > Spreadsheet
from the menus at the top of the screen. Calc spreadsheets behave much like commercially available packages such as Microsoft Excel; if you have used spreadsheets before you will find it quite intuitive to use. The Help
menu also offers a lot of support.
Like many spreadsheet programmes, Calc will automatically reformat much of what you type. To edit ATF, you need to switch this functionality off. First select the whole spreadsheet and choose Format > Cells...
from the menus. In the resulting dialogue box, scroll down the Category
list and select Text
. Now choose OK
to save and close the dialogue box.
You may also want to turn off Calc's autocomplete functionality, which can be rather confusing. To do this, go to the Tools > Cell Contents
menu item and deselect both AutoCalculate
and AutoInput
.
Make sure you have a Unicode font such as DejaVu selected as the default. To do this, select the whole table and choose Format > Cells...
from the menus. In the dialogue box that opens, choose Fonts
from the bar running across the top, then select the font you want.
However, there is no point in doing any more formatting than this (such as italics, underlining, different fonts or font sizes), as the ATF processor ignores formatting and will not replicate it in lemmatising (see below). In particular, do not use superscript for determinatives, glosses or phonetic complements; continue to use the ATF brackets as normal.
You may sometimes find it useful to split the screen, either horizontally or vertically. For instance, you may want to look at transliteration and translation together, and/or the beginnings and ends of long lines. To do this, find the thick black lines that are above and to the right of the vertical and horizontal scroll bars. You can drag them down or across as you like to split the screen, so that the two halves move independently.
Now you are ready to type your ATF document. ODS files can only contain a single ATF document, which must be entered in Sheet 1 of the spreadsheet. The ATF processor ignores all other sheets.
NOTE that in the following image the language protocol line should read #atf: lang akk-x-stdbab
according to current Oracc conventions.
&-lines, #-lines, $-lines and line-numbers all go in Column A, each in their own row. The following columns must remain empty. (The contents of Column A may look as though they spill over; but the visible column boundaries show that the cells have not been merged.)
The transliteration starts in Column B, with a separate spreadsheet cell for each cell of the table.
You can mark line breaks within a cell with a semicolon ;
just as you would mark them in any ATF.
For text that runs across more than one cell of table, you can merge cells of the spreadsheet. Select the cells to be merged and choose Format > Merge Cells > Merge Cells
from the menus.
For text that runs across the whole table — such as headers, interlinear comments, colophons and doxologies — add a single space and a vertical bar |
after the period, in the same cell, like this: 1. |
Save and name your file as you would for any ATF file, but make sure that it has a .ods
extension (e.g., tcl_06_22.ods
).
Translation proceeds in much the same way.
You will need to check your ATF with the web service ATF checker [http://oracc.museum.upenn.edu/util/atfproc.html]; you can't check it in Emacs.
Click Browse ...
to choose the ODS file you wish to validate.
Click the check ATF
button if it is not already selected.
The checker will return a page of error messages or a notice that the file is clean. Error messages begin with strings that look like this: tcl_06_22.ods.atf:87:P363695:
. The first part is the file name (tcl_06-22.ods
) with the extension .atf
appended. Then comes the line number, 87
, which equates to the row number of the ODS file, so that errors are easy to locate. Finally, there is the P-number of your text.
To return to the checker page, use the Back
facility on your web browser.
Keep correcting and checking the file until it is clean.
When your ATF is clean, you can lemmatise it by clicking the Lemmatize
button on the ATF checker [http://oracc.museum.upenn.edu/util/atfproc.html] page (once you have selected the ODS file you wish to lemmatise).
The lemmatiser will return a new page giving a link to a new, lemmatised ODS file for you to download.
Save it on to your computer and edit the lemmatisation as you would normally. Lemmatisation lines are also tabular, with the lemmatisations immediately below the transliterated cell to which they relate.
To check your edited lemmatisation, make sure you choose the Check lemmatization
button on the checker web page.
To relemmatise your file, choose Lemmatize
and download the new ODS file that results.
NOTE that in the following image the language protocol line should read #atf: lang akk-x-stdbab
according to current Oracc conventions.
You (or your project manager, as appropriate) should treat ODS files just like ATF files. They are stored in a project's /00atf
directory and can be re-opened and edited just like ATF files.
To count the lemmata in an ODS file you can do the following:
Open your ODS file in Calc, as normal.
Click on Sheet 2
at the bottom left of the window.
In any cell of Sheet 2, type this formula:
=COUNTIF(Sheet1.<RANGE>;"#lem:")+COUNTIF(Sheet1.<RANGE>;">;")
where <RANGE>
is the range of cells containing the transliteration and lemmatisation of your tablet. For instance:
=COUNTIF(Sheet1.A10:N130;"#lem:")+COUNTIF(Sheet1.A10:N130;">;")
counts the lemmata in the cells ranging from Column A, Row 10 to Column N, Row 130 in Sheet 1.
Press ENTER
and the lemcount will appear.
You can leave this formula in the spreadsheet, as the ATF processor ignores everything that is not in Sheet 1.
Eleanor Robson
Eleanor Robson, 'Complex Layouts in ATF', Oracc: The Open Richly Annotated Cuneiform Corpus, Oracc, 2019 [http://oracc.museum.upenn.edu/doc/help/editinginatf/complexlayouts/]