cgreek-tlg-find-wordform for looking up word forms in the
TLG word index. If you type M-x
cgreek-tlg-get-wordcounts, you will be prompted for a betacode
string to search for (it will be interpreted as a regular expression;
if you want to match only at the beginning of a word, put a space at
the beginning). You will then be offered a list of matching word forms
with counts of their occurrences in the entire TLG corpus. Here, for instance,
is the result of a search on the string "YH/FIZ" (Ψηφιζ, with
acute over η):
In this result buffer, you may then move to any line containing a word form and get a list of works containing it by pressing the space bar:
You may limit this to a specific author by specifying a TLG author number
(you can find these from the "*TLG authtab*" buffer in the cgreek package).
If (as in this example) you do not specify an author, you get a list of all
matches in all authors. Moving the cursor to a line in this result buffer
and pressing spacebar will open the work in question. You'll then have
to find the actual occurrences by searching (e.g. with C-s):
the TLG indexes themselves list only the works in which forms occur, not the
locations within those works.
If you use this package (or find that it's unusable), I would appreciate
your comments.
grep(standard Unix tools)
flex or lex (standard Unix tool)
This is strictly a build-it-from-source installation, though the build should not raise any serious problems if you have a working C compiler and a version of lex. It should work for Unices (Linux, the BSDs, Solaris, etc) if you can get Emacs 20 and the cgreek package to work. Something like it may also work for Windows systems running Meadow, though I haven't heard any verification of this.
mv tlgindexutil.tgz ~/cgreek-emacs20
cd ~/cgreek-emacs20
tar -zxf tlgindexutil-0.1.2.tgz/cdrom/.
~cgreek-emacs20/tlg/.make installTLGDIR=/path/to/the/cdrom/
INSTALLDIR=/where/to/install/it/
/mnt/cdrom/ and install in /home/smith/tlgstuff/make install TLGDIR=/mnt/cdrom/ INSTALLDIR=/home/smith/tlgstuff/
cgreek-tlgindexutil.el:C-x C-f ~/cgreek-emacs20/tlg/cgreek-tlgindexutil.el
(defvar cgreek-tlgwordlist-program
"~/cgreek-emacs20/tlg/tlgwlist"
"*Program to create word form list from tlgwlist.inx.")
(defvar cgreek-tlgwordcounts-program
"~/cgreek-emacs20/tlg/tlgwcounts"
"*Program to search tlgwcnts.inx for word form counts.")
(defvar cgreek-tlg-wordlist-expanded
"~/cgreek-emacs20/tlg/tlgwlist.expanded"
"*Expanded version of tlgwcnts.inx.")
~/cgreek-emacs20/tlg/,
just leave this alone. However, if you've changed the install location, then be
sure you change all occurrences of ~/cgreek-emacs20/tlg/ to the
directory in which you installed. Save any changes, then evaluate the buffer
to load the commands (`M-x eval-buffer'). The commands should now work.
dotemacs.el (which will be in ~/cgreek-emacs20/
or the equivalent directory on your system):(load "cgreek-tlgindexutil")dotemacs.el (can be done
from a dired window or by loading the file and choosing the
option Byte-compile And Load under the Emacs-Lisp
menu).