 //=========\\
||  ptexenc  ||
 \\=========//

1. What is `ptexenc'?

  `ptexenc' is a useful library for Japanese pTeX
(which stands for publishing TeX, and is a extension of
TeX by ASCII Co.) and its surrounding tools.
`ptexenc' provides a better way of handling character encodings.

  `ptexenc' is not an official product of ASCII Co.,
so pTeX and other tools need some patches to make use of it.
Some patches are included within this archive.

  `ptexenc' was derived from pTeX first,
and then added some extensions by N. Tsuchimura
with help of T. Tanaka.
Its license is modified BSD (same as pTeX).

------------------------------------------------------------

2. Outline

  Typically, we need TeX Live 2007 to install `ptexenc.'
`ptexenc' depends on kpathsea and the directory structure
of TeX Live 2007.

  As `ptexenc' is a mere library, users will not be conscious of it,
but software developer will be blessed with it.
It's because they can simplify the sources
with separating the character coding operation.
However, many applications do not have `ptexenc' support now,
we supply patches to the following software as examples:
-- ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ptex-src-3.1.10.tar.gz
-- ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/mendexk2.6e.tar.gz
-- ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/jvf/makejvf-1.1a.tar.gz
  (Note: Some of them are distributed via CTAN,
   but the CTAN version tends to be old.) 

  The patches included in this archive provide `autoconf'
support, too.  This means that installation processes
of those applications are unified, though the installation
processes will differ from the originally documented ones.

  Moreover, this archive includes a patch on pTeX which adapts
pTeX to TeX Live 2007, because officially pTeX is developed 
on the basis of teTeX-3.0, but not of TeX Live 2007.

------------------------------------------------------------

3. How to install

(1) Extract `source.tar.bz2' of TeX Live 2007.

(2) Extract ptexenc-*.tar.gz at the same height as kpathsea,
    i.e., under `texk/'.

(3) Extract ptex-src-*.tar.gz, etc.
    It is convenient to remove version numbers from
    their directory names like bellow.

  texk/kpathsea (from TeX Live)
  texk/ptexenc
  texk/web2c/ptex
  texk/mendexk
  texk/makejvf

(4) Apply following patches under 'texk/ptexenc/patches' directory.
 -- ptex-src-3.1.10-ptexenc.patch
 -- ptex-src-3.1.10-texlive2007.patch
 -- mendexk2.6e-ptexenc.patch
 -- makejvf-1.1a-ptexenc.patch
    (Note: jmpost-0.04b-ptexenc.patch doesn't work now.)

(5) Edit 'texk/configure' to add next one line
    after "PKGS=" around line 6600.

  "ptexenc makejvf mendexk web2c/ptex"

(6) ̤ ./configure && make
