Installation Instructions for CGreek with Windows NT,XP

Written by William Furley

Basic functionality

  1. Download latest emacs version of CGreek.
  2. Unpack (with e.g. WinZip) to a suitable location within your emacs installation (20 or 21); e.g. .../emacs/site-lisp/cgreek-emacs20
  3. Add the following lines to your .emacs (or _emacs) file:
    (setq bdf-directory-list
          '("c:/progs/emacs/site-lisp/cgreek-emacs20/bdf"))
    (setq w32-bdf-filename-alist
          (w32-find-bdf-fonts bdf-directory-list))
    (setq w32-use-w32-font-dialog nil)
    (add-to-list 'load-path "c:/progs/emacs/site-lisp/cgreek-emacs20")
    (load-library "dotemacs")
    
    Note: Make sure all the paths are complete (e.g. "c:/progs/emacs/site-lisp...") and correct (i.e. match your installation).
  4. In emacs open file "dotemacs.el". Check that the following line corresponds to your installation.
    (setq load-path (cons "c:/progs/emacs/site-lisp/cgreek-emacs20" load-path))
    
  5. Test the installation by restarting emacs. Does the CGreek menu appear? Do the Greek and Latin modes work?

To read the TLG disk

  1. Download precompiled versions of the two utility programmes tlg2cit.exe and tlg2emacs.exe from www.rzuser.uni-heidelberg.de/~q67/Info. Place them in the directory "~/cgreek-emacs20/tlg".
  2. In emacs open the file "cgreek-util.el" and check that the following definitions all match your installation (i.e. change the letter corresponding to your CDRom drive, whether 'd' or 'e' or whatever, and check the paths for correctness):
    (defvar cgreek-tlg-directory
      (if (memq system-type' (ms-dos windows-nt)) "e:/" "/cdrom/")
    
    (defvar cgreek-tlg2emacs-program
      (expand-file-name
       (if (featurep 'meadow)
           "~/cgreek-meadow/tlg/tlg2emacs"
         "c:/progs/emacs/site-lisp/cgreek-emacs20/tlg/tlg2emacs"))
      "*Program name for invoking a TLG-to-CGreek converter.")
    
    (defvar cgreek-tlg2citation-program
      (expand-file-name
       (if (featurep 'meadow)
           "~/cgreek-meadow/tlg/tlg2cit"
         "c:/progs/emacs/site-lisp/cgreek-emacs20/tlg/tlg2cit"))
      "*Program name to extract citation information from tlg txt file.")
    
  3. Test the functionality by restarting emacs and opening a file on the TLG using the CGreek menu -->Open file --> TLG format.

Printing

  1. Install a recent version of Ghostscript.
  2. Configure ps-printing for emacs with lines like these (make sure your paths are correct):
    (setenv "GS_LIB" "c:/progs/gs/gs8.00/lib;c:/progs/gs/fonts/")
    (setq ps-lpr-command "c:/progs/gs/gs8.00/bin/gswin32c")
    (setq ps-lpr-switches '("-q" "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2"))
    (setq ps-printer-name t)
    (global-set-key [f3] 'ps-print-buffer-with-faces)
    
    (setq ps-print-color-p 'black-white)
    (setq ps-use-face-background nil)
    (setq ps-paper-type 'a4)
    (setq ps-font-size 10)
    (setq ps-print-control-characters nil)
    (setq ps-multibyte-buffer nil)
    
  3. For further configuration of ps-printing consult the CGreek manual.

Disclaimer

These instructions have been put together for the benefit of any Windows user interested, but the author is neither an emacs expert nor a computer specialist, merely a classicist who has been helped in installing CGreek successfully on the Windows XP platform by the author of CGreek, TAKAHASHI Naoto, and Alexej Kryokov.


Last modified: 17 August 2006