This page explains how to create OTF (Oracc Text Format) files in order to generate OpenOffice documents from ATF files and other text, in order to write books, articles, etc., that draw on Oracc transliterations and translations. OpenOffice (.odt) files can then be saved as Word (.docx) or other word-processing or typesetting formats. There is also a more technical description here.
Work in Emacs or another text editor. Save your file in your project's /00atf/
directory as [FILENAME].otf
.
Structural elements begin on a new line and start with the @
sign. New paragraphs start after an empty line Inline elements start with @
and are enclosed in { }
.
When you have finished, run the Oracc Command oracc odt
to generate an OpenOffice file called [FILENAME].odt
. You can then copy it off the Oracc server and edit and format it further if you wish.
Here is a very simple example, consisting of an introduction, catalogue and edition of a text from the CAMS/GKAB corpus.
@document @project cams/gkab @section introduction @h1 Rituals to obtain an oracular decision This composition from Neo-Assyrian Huzirina contains incantations and rituals. It was copied by the @i{šamallû ṣeḫru} (junior apprentice) Nabu-šabši. @end section @section catalog @catalog @record @:copy STT 1, 73 @:exc_no SU 51/1 + SU 51/25 @:prov Huzirina @:period Neo-Assyrian @:lit Reiner 1960; Hunger 1968: no. 380 (colophon); Butler 1998: 349–77 (ms A); CAMS http://oracc.org/cams/gkab/stt_1_73/ @:edit Greta Van Buylaere @end record @end catalog @end section @section edition @h2 STT 1, 73 @atffile stt_1_073.atf @end section @end document
Structural elements begin on a new line and start with the @
sign.
@document
element, you need to declare the project and, if relevant, subproject which the document belongs to: e.g., @project rinap/rinap4
or @project etcsri
./00any/
and the ATF file gilgamesh.atf
is in /00atf
, write @atffile ../00atf/gilgamesh.atf
.@section introduction
from @section bibliography
. If not, then Oracc will generate the OpenOffice document with a default paragraph style throughout. Each section must end with an @end section
line.@h1
headings, etc., within a section.#
sign, anywhere in the file. It will be ignored during the conversion to ODT format.@section catalog
element and must comprise one or more @record
elements.@catalog
entries. Each @record
comprises onr or more of the following single-line entries in any order of your choosing. (Here they are listed in alphabetical order.) Note the colon after the @
sign.@:ass_no K 3459
.@:copy STT 1, 72
.@:dimen 34 × 56 × 24 mm
.@:edit Graham Cunningham
.@:exc_no ND 4536
.@:exemplar N1
.@section bibliography
for longer ones).@:mus_no BM 79862
.@:period Old Babylonian
.@:prov Nimrud NT Room 12
.The Akkadian word @akk{šamallû} @i{originally} meant "merchant's assitant".
.100 m@sup{2}.
.The Akkadian word @akk{šamallû} means "apprentice".
.The Sumerian word @sux{lugal} means "king".
.You can define further inline formatting styles in the style file [http://oracc.museum.upenn.edu/doc/developer/opendocument/].
18 Dec 2019Eleanor Robson
Eleanor Robson, 'Oracc Text Format (OTF)', Oracc: The Open Richly Annotated Cuneiform Corpus, Oracc, 2019 [http://oracc.museum.upenn.edu/doc/help/convertingatf/otf/]