An Emacs major mode is available which makes editing ATF files a bit easier and gives access to the template generator and checker.
For Mac OS X I recommend Aquamacs, at http://www.aquamacs.org
For Windows I would ordinarily recommend EmacsW32 from http://www.ourcomments.org/Emacs/EmacsW32.html; however, the most recent version there (EmacsW32 version 1.58 based on Emacs 23 CVS from 20090226) does not start up consistently and I therefore recommend against upgrading if you already have a working Win32 Emacs installation on your machine.
If you do not yet have Emacs on your Windows machine, I recommend downloading this locally cached version of an older release of EmacsW32 which is known to work.
If you are adventurous, you may like to experiment with
the pretest releases coming directly from
the Gnu project. Download the file named
emacs-23.X.XX-bin-i386.zip, where X.XX will be digits
(e.g., emacs-23.0.93-bin-i386.zip). Unzip the file--a
typical location would be C:\Program Files\Emacs--and run
the program bin/addpm.exe to create an entry on your
Start menu.
It is best to install the DejaVu fonts before installing ATF mode; see the fonts page for further information.
c:\Documents and Settings\s\Application
Data..emacs file; this will be in your
home directory and it may be hidden. It is possible that it may not
exist, if your Emacs installation creates it on demand when needed to
store configuration options. To locate this file it is easiest to use
Emacs: type ctrl-x ctrl-f and enter the filename as
~/.emacs. If the file does not exist, Emacs will create it..emacs file to include the following line:
(load-file "~/cdl-init.el")(The file name will be different if you do not extract the files to your home directory or
Application Data under Windows).If you name your files using the extension .atf, Emacs
will automatically switch into ATF mode when you create a new file or
load an existing one.
If you name your files using another extension, for example
.txt, you can set the mode explicitly by typing Esc-x (escape
then x) and then entering atf-mode at the prompt.
You can now use the ATF menu to read the ATF mode help, which will in turn tell you how to use the other menu items effectively.
.atf extension,
enter ATF mode manuallyAs of 2009-05-04, atf-mode enables outline-minor-mode; use the 'ATF mode help' item from the ATF menu and read the 'Selective Display' section for more information.
Although you can use the menu, there are two particularly useful keystrokes for working with the checker:
Before you begin checking, ensure the XML-RPC Customization option 'Xml Rpc Allow Unicode String' is set to 'nil'.
To find this option, try Options -> Customize Emacs -> Settings
Matching Regexp and type xml-rpc-* at the prompt.
Emacs includes a package named tramp which can be used
to edit files on a remote machine. This means that if you work on a
project which is hosted on cdl.museum.upenn.edu you can
keep the files there and edit them using Emacs. When you save the
file it is saved back to the server.
Tramp is activated automatically when you type a filename that
starts with a forward slash (/). Tramp filenames have
the following syntax:
/<USER>@<MACHINE>:<FILE>
This works with directories, too, which can then be clicked on to open files; and you can also use <TAB>-completion, so tramp will go away and get the list of files that complete for you.
So, if you are part of a project named, say, dcclt,
and you have the DCCLT password, you can start by typing the Emacs
command to open a file:
C-x C-f
You'll get a prompt Find file: which
may have some filename or directory already there. You can ignore
anything that may be there and type starting with the forward
slash:
/dcclt@cdl.museum.upenn.edu:sources/<TAB>
You should be prompted for a password and then see a list of the sources. Click on a file to open it.
Windows needs additional programs to enable Tramp to work effectively, but installing them is not hard:
putty from the
PuTTY Download Page. Use the Windows installer that installs
everything.PropertiesAdvanced tabEnvironment Variables buttonPath variable in
System Variables fieldPath variableVariable
value field, for example ;C:\Program Files\PuTTy,
to the end of the line. Remember the semi-colon first -
It's important..emacs by typing C-x C-f and answering ~/.emacs at the Find
File: prompt. Now add the following line to
.emacs and then save the file:
(setq tramp-default-method "plink")
Check the XML-RPC Customization option 'Xml Rpc Allow Unicode String': if it is not set to 'nil', then set it to 'nil' and try again.
(To find this option, try Options -> Customize Emacs -> Settings
Matching Regexp and type xml-rpc-* at the prompt.)
If you are having difficulty connecting via a graphical user interface to SSH and friends, check that all of the following are correct:
cdl.museum.upenn.edu/home/ followed by your
project's abbreviation, in lowercase letters.The Emacs ATF package includes an input method which is based on the Emacs MULE TeX input method but adds some characters which are useful for cuneiform transliterations. If the ATF mode package is installed correctly this input method is available under the name 'Cuneiform'.
To use this input method:
\) to switch the Cuneiform input method on and off; when the method is enabled you will see a backslash at the left end of the status lineThe Cuneiform transliteration input method is based on control
sequences used by the typesetting package TeX, with some additions.
In general these sequences start with the backslash character,
followed by an accent character, then the character that will receive
the accent. These sequences are notated as, e.g., \-v-s
in the following table (meaning, in this case, that you type the
backslash, then v, then s, which gives you shin, š).
Note that the table below restricts the list of available characters to those needed for cuneiform transliteration; many more characters are available following the same principles.
See also the Unicode for cuneiform transliteration page and the fonts page. If you don't see the subscript x character you probably need to update to the latest fonts.
| Sequence | Accent Name | Available for: | Results: |
| \-' | Acute | aeiuAEIUsS | áéíúÁÉÍÚśŚ |
| \-` | Grave | aeiuAEIU | àèìùÀÈÌÙ |
| \-= | Macron | aeiuAEIU | āēīūĀĒĪŪ |
| \-^ | Circumflex | aeiuAEIU | âêîûÂÊÎÛ |
| \-v | Hachek | sS | šŠ |
| \-d | Dot-under | sStT | ṣṢṭṬ |
Several other characters are provided using the following sequences:
| \-h , \-H | ḫ , Ḫ |
| \-j , \-J | ŋ , Ŋ |
| \-[ , \-] | ˹ , ˺ |
| \-_[ , \-_] | ⸤ , ⸥ |
(Note that lower left/right square brackets are not used in ATF; they are provided for use in citing published work.)
A few characters require typing a word after the backslash:
| \times | × |
| \alef | ʾ |
| \ayin | ʿ |
If you are using the #atf: use unicode protocol you
must also type the grapheme index numbers as Unicode subscripts using
the \-<digit> sequences:
| \-0 | 0 |
| \-1 | 1 |
| ... | |
| \-9 | 9 |
| \-+ | + |
| \-x | x |