Japanese version of xdvi with vector font support.

Submitted by:	MITA Yoshio <mita@ee.t.u-tokyo.ac.jp>
This commit is contained in:
Satoshi Asami 1996-11-09 12:59:11 +00:00
parent 3a0efa087f
commit 0b0882524b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4361
12 changed files with 2115 additions and 0 deletions

View file

@ -0,0 +1,81 @@
# New ports collection makefile for: xdvi-17miyu + patches + vector font library
# Version required: 1.7
# Date created: 8 Nov 1996
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
#
# $Id$
#
DISTNAME= xdvi-17
PKGNAME= jp-vfxdvi${RESOLUTION}-1.7
CATEGORIES+= japanese print
MASTER_SITES= ftp://bacchus.in.kobe-u.ac.jp/pub/tex/dviware/xdvi17/ \
ftp://bacchus.in.kobe-u.ac.jp/pub/tex/dviware/xdvi18/ \
ftp://ftp.hipecs.hokudai.ac.jp/pub/news-archive/fj.comp.texhax/volume95/Sep/ \
ftp://ftp.hipecs.hokudai.ac.jp/pub/news-archive/fj.comp.texhax/volume95/Oct/ \
ftp://ftp.hipecs.hokudai.ac.jp/pub/news-archive/fj.comp.texhax/volume95/Nov/
DISTFILES= xdvi-17.tar.gz xdvi-17miyu.patch-beta6.gz \
xdvi18-okagawa-patch \
950923.02.Z 951007.02.Z 951109.04.Z
MAINTAINER= mita@jp.FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/VFlib.a:${PORTSDIR}/japanese/vflib
RUN_DEPENDS= ${LOCALBASE}/lib/VFlib/vfontcap:${PORTSDIR}/japanese/vflib
WRKSRC= ${WRKDIR}
DIST_SUBDIR= xdvi
USE_IMAKE= yes
XMKMF= xmkmf
EXTRACT_ONLY= xdvi-17.tar.gz
.if !defined(RESOLUTION)
RESOLUTION= 300
RESOLUTION_UNSPECIFIED= yes
.else
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
${RESOLUTION} != 400 && ${RESOLUTION} != 600
RESOLUTION_INVALID= yes
.endif
.endif
pre-fetch:
.if defined(RESOLUTION_UNSPECIFIED)
@echo "Building xdvi with ${RESOLUTION}dpi fonts."
@echo "Set the environment variable RESOLUTION if you want"
@echo "it to use other resolutions."
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
.elif defined(RESOLUTION_INVALID)
@echo "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
@/usr/bin/false
.endif
pre-patch:
@(cd ${WRKDIR} ; \
${GZCAT} ${DISTDIR}/950923.02.Z | uudecode ; \
${GZCAT} ${DISTDIR}/951109.04.Z | uudecode ; \
uudecode ${DISTDIR}/xdvi18-okagawa-patch ; \
gzip -d xdvi18.vflib.patch.gz ; \
${PATCH} < ${FILESDIR}/xdvi18.vflib.patch.of.patch >/dev/null 2>&1; \
gzip -d xdvi-17+ptex.fixed.patch.gz ; \
${PATCH} < ${FILESDIR}/xdvi-17+ptex.fixed.patch.of.patch >/dev/null 2>&1; \
mkdir tmp; \
cd tmp; \
${PATCH} -f < ../xdvi18.vflib.patch >/dev/null 2>&1; \
cd .. ; \
${GZCAT} ${DISTDIR}/xdvi-17miyu.patch-beta6.gz | patch -d . >/dev/null 2>&1; \
${GZCAT} xdvi-pl17+markpage+toc+printdvi+paper.patch.gz | patch -d . >/dev/null 2>&1 ; \
${PATCH} -d . < xdvi-17+ptex.fixed.patch >/dev/null 2>&1; \
${CP} tmp/dnpzeit.c tmp/zeit.c . ; \
)
post-patch:
.if defined(BATCH)
@(cd ${WRKDIR}; sh ${FILESDIR}/customize.sh ${RESOLUTION} BATCH)
.else
@(cd ${WRKDIR}; sh ${FILESDIR}/customize.sh ${RESOLUTION})
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,6 @@
MD5 (xdvi-17.tar.gz) = 71c512f827c7e2ce534b52005720ce6d
MD5 (xdvi-17miyu.patch-beta6.gz) = e7e8a5aae3d0377efd61e027ab38f5b8
MD5 (xdvi18-okagawa-patch) = 2a4ab2bbbf785b8e848fe172ba66df4b
MD5 (950923.02.Z) = 47bae107c47b620d7e38b77595b0adae
MD5 (951007.02.Z) = 1f6222f6638af86476031b9421afdaac
MD5 (951109.04.Z) = a34d3ee40cfe3288f518bb1948a0e6d4

View file

@ -0,0 +1,68 @@
#!/bin/sh
# usage sh customize.sh ${RESOLUTION} [BATCH]
DEFAULT_FONT_PATH=.:/usr/local/lib/fonts/pk$1:/usr/local/share/tex/jfonts/jfms:/usr/local/lib/texmf/fonts/public/ptex/tfm
DONE=no
if [ $# = 2 ] ; then
DONE=yes
fi
echo "Check directory for pkfonts (resolution:$1) and ASCII jTeX's tfm files."
echo
echo "Default is .:/usr/local/share/fonts/pk$1:/usr/local/share/tex/jfonts/jfms:\\"
echo " :/usr/local/lib/texmf/fonts/public/ptex/tfm"
echo "If you use jlatex of ports collection, it should be OK."
echo
while [ "$DONE" != "yes" ]
do
lib "Is it OK (y/n)[y]?"
read ans
case x"${ans}" in
xN*|xn*)
echo "Type DEFAULT_FONT_PATH:"
read DEFAULT_FONT_PATH
echo
echo "DEFAULT_FONT_PATH=${DEFAULT_FONT_PATH}"
;;
*)
DONE=yes
;;
esac
done
echo "DEFAULT_FONT_PATH=${DEFAULT_FONT_PATH}"
CHANGE=`echo ${DEFAULT_FONT_PATH} | sed -e 's/\//\\\\\//g'`
cp Imakefile Imakefile.tmp
cat Imakefile.tmp \
| sed -e "s/DEFAULT_FONT_SIZES=FontSizes300/DEFAULT_FONT_SIZES=FontSizes$1/g"\
| sed -e "s/-DBDPI=300/-DBDPI=$1/g"\
| sed -e "s/DEFAULT_FONT_PATH=CHANGE/DEFAULT_FONT_PATH=${CHANGE}/g" \
> Imakefile
rm Imakefile.tmp
if [ $1 = "360" ] || [ $1 = "400" ] || [ $1 = "600" ] ; then
echo "Default shrink level is set to 5."
cp Imakefile Imakefile.tmp
cat Imakefile.tmp \
| sed -e 's/DEFAULT_SHRINK=\\\"4\\\"/DEFAULT_SHRINK=\\\"5\\\"/g' \
> Imakefile
rm Imakefile.tmp
fi
if [ $# = 1 ] ; then
echo
echo "Do you like to customize Imakefile again by yourself (y/n)[no]?"
read ans
case x"${ans}" in
xY*|xy*)
if [ ${EDITOR} ] ; then
${EDITOR} Imakefile
else
vi Imakefile
fi
;;
esac
fi

View file

@ -0,0 +1,437 @@
*** xdvi.c.orig Sat Jan 13 22:04:23 1996
--- xdvi.c Sat Jan 13 22:04:37 1996
***************
*** 3476,3482 ****
use_ps_special = resource.use_ps_special;
#endif /* PS */
#ifdef USE_ZEIT
! VF_init(resource.fontconf);
#endif /* USE_ZEIT */
#else /* !TOOLKIT */
--- 3476,3482 ----
use_ps_special = resource.use_ps_special;
#endif /* PS */
#ifdef USE_ZEIT
! VF_Init(resource.fontconf);
#endif /* USE_ZEIT */
#else /* !TOOLKIT */
*** dnpzeit.c.orig Sat Nov 9 10:43:17 1996
--- dnpzeit.c Sat Nov 9 10:42:43 1996
***************
*** 3,13 ****
* Written by Y. Hayashi (hayashi@me.aoyama.ac.jp)
**************************************************/
! #include "xdvi.h"
#ifndef X_NOT_STDC_ENV
#include <stdlib.h>
! #endif
static struct _dnplist {
char *name;
--- 3,13 ----
* Written by Y. Hayashi (hayashi@me.aoyama.ac.jp)
**************************************************/
! /*#include "xdvi.h"
#ifndef X_NOT_STDC_ENV
#include <stdlib.h>
! #endif*/
static struct _dnplist {
char *name;
***************
*** 53,59 ****
static void
get_NTT_font(fontp, code)
struct font *fontp;
! int code;
{
struct bitmap *bm;
int bwidth, jiscode;
--- 53,63 ----
static void
get_NTT_font(fontp, code)
struct font *fontp;
! #ifdef NeedWidePrototypes
! long code;
! #else
! int code;
! #endif
{
struct bitmap *bm;
int bwidth, jiscode;
***************
*** 70,77 ****
static void
read_NTT_char(fontp, ch)
struct font *fontp;
! int ch;
{
struct glyph *g;
g = &fontp->glyph[ch];
--- 74,88 ----
static void
read_NTT_char(fontp, ch)
struct font *fontp;
! #ifdef NeedWidePrototypes
! long ch;
! #else
! int ch;
! #endif
!
!
{
+
struct glyph *g;
g = &fontp->glyph[ch];
***************
*** 100,106 ****
double dimconv, pow();
char *p;
! fontp->read_char = read_NTT_char;
fontp->glyph = (struct glyph *)
xmalloc(256 * sizeof(struct glyph), "glyph array");
bzero((char *) fontp->glyph, 256 * sizeof(struct glyph));
--- 111,117 ----
double dimconv, pow();
char *p;
! fontp->read_char = (read_char_proc) read_NTT_char;
fontp->glyph = (struct glyph *)
xmalloc(256 * sizeof(struct glyph), "glyph array");
bzero((char *) fontp->glyph, 256 * sizeof(struct glyph));
*** Imakefile.orig Sat Nov 9 10:43:30 1996
--- Imakefile Sat Nov 9 10:42:48 1996
***************
*** 22,28 ****
TEXFONTS=$(TEXLIB)/fonts
#ifdef Use_ZEIT
! DEFAULT_FONT_PATH=.:$(TEXFONTS)/pk:$(TEXFONTS)/jfms
#else
DEFAULT_FONT_PATH=.:$(TEXFONTS)/pk
#endif /* Use_ZEIT */
--- 22,28 ----
TEXFONTS=$(TEXLIB)/fonts
#ifdef Use_ZEIT
! DEFAULT_FONT_PATH=CHANGE
#else
DEFAULT_FONT_PATH=.:$(TEXFONTS)/pk
#endif /* Use_ZEIT */
***************
*** 72,79 ****
#endif
#ifdef Use_ZEIT
! DEFAULT_FONTCONFDIR=$(TEXFONTS)/zeit
! DEFAULT_FONTCONF=$(DEFAULT_FONTCONFDIR)/FontConf
#ifdef Use_NTTZEIT
ZEIT_DEFS=-DUSE_ZEIT -DNTTZEIT -DDEFAULT_FONTCONF=\"$(DEFAULT_FONTCONF)\"
#else
--- 72,79 ----
#endif
#ifdef Use_ZEIT
! DEFAULT_FONTCONFDIR=/usr/local/lib/VFlib
! DEFAULT_FONTCONF=$(DEFAULT_FONTCONFDIR)/vfontcap
#ifdef Use_NTTZEIT
ZEIT_DEFS=-DUSE_ZEIT -DNTTZEIT -DDEFAULT_FONTCONF=\"$(DEFAULT_FONTCONF)\"
#else
***************
*** 175,181 ****
CDEBUGFLAGS=-g
! VFLIB=VFlib-1.32/VFlib.a
#ifdef Use_ZEIT
DEPLIBS=$(VFLIB) XawClientDepLibs
LOCAL_LIBRARIES=$(VFLIB) XawClientLibs
--- 175,181 ----
CDEBUGFLAGS=-g
! VFLIB=/usr/local/lib/VFlib.a
#ifdef Use_ZEIT
DEPLIBS=$(VFLIB) XawClientDepLibs
LOCAL_LIBRARIES=$(VFLIB) XawClientLibs
***************
*** 267,273 ****
#endif /* Use_MAKEPK */
#ifdef Use_ZEIT
! InstallNonExecFile(VFlib-1.32/FontConf, $(DEFAULT_FONTCONFDIR))
#endif /* Use_ZEIT */
#ifdef Use_PRINTDVI
--- 267,273 ----
#endif /* Use_MAKEPK */
#ifdef Use_ZEIT
!
#endif /* Use_ZEIT */
#ifdef Use_PRINTDVI
*** dvi_draw.c.orig Sat Nov 9 10:43:58 1996
--- dvi_draw.c Sat Nov 9 10:42:43 1996
***************
*** 124,130 ****
* Byte reading routines for dvi file.
*/
! #define xtell(pos) (lseek(fileno(dvi_file), 0L, SEEK_CUR) - \
(currinf.end - (pos)))
static ubyte
--- 124,130 ----
* Byte reading routines for dvi file.
*/
! #define xtell(pos) (lseek(fileno(dvi_file), (off_t)0, SEEK_CUR) - \
(currinf.end - (pos)))
static ubyte
***************
*** 176,182 ****
{
currinf.pos += offset;
if (!currinf.virtual && currinf.pos > currinf.end)
! (void) lseek(fileno(dvi_file), (long) (currinf.pos - currinf.end),
SEEK_CUR);
}
--- 176,182 ----
{
currinf.pos += offset;
if (!currinf.virtual && currinf.pos > currinf.end)
! (void) lseek(fileno(dvi_file), (off_t) (currinf.pos - currinf.end),
SEEK_CUR);
}
***************
*** 824,830 ****
set_char(WIDEARG(ubyte, int) ch)
#else /* NeXT */
set_char(ch)
! WIDEARG(ubyte, int) ch;
#endif /* NeXT */
#else
void
--- 824,830 ----
set_char(WIDEARG(ubyte, int) ch)
#else /* NeXT */
set_char(ch)
! WIDEARG(long, int) ch;
#endif /* NeXT */
#else
void
***************
*** 959,967 ****
}
#if defined(KANJI) && !defined(ASCIIDNP)
long
set_char2(ch)
! int ch;
{
register struct glyph *g;
#ifdef PTEX
--- 959,973 ----
}
#if defined(KANJI) && !defined(ASCIIDNP)
+ #if NeedFunctionPrototypes
long
set_char2(ch)
! long ch;
! #else
! long
! set_char2(ch)
! int ch;
! #endif
{
register struct glyph *g;
#ifdef PTEX
***************
*** 1062,1070 ****
#else
void
load_n_set_char(cmd, ch)
! WIDEARG(ubyte, int) cmd;
#endif
! WIDEARG(ubyte, int) ch;
{
if (load_font(currinf.fontp)) { /* if not found */
Fputs("Character(s) will be left blank.\n", stderr);
--- 1068,1076 ----
#else
void
load_n_set_char(cmd, ch)
! WIDEARG(ubyte, long) cmd;
#endif
! long ch;
{
if (load_font(currinf.fontp)) { /* if not found */
Fputs("Character(s) will be left blank.\n", stderr);
***************
*** 1092,1098 ****
set_vf_char(WIDEARG(ubyte, int) ch)
#else /* NeXT */
set_vf_char(ch)
! WIDEARG(ubyte, int) ch;
#endif /* NeXT */
#else
void
--- 1098,1104 ----
set_vf_char(WIDEARG(ubyte, int) ch)
#else /* NeXT */
set_vf_char(ch)
! long ch;
#endif /* NeXT */
#else
void
***************
*** 1158,1164 ****
set_no_char(cmd, ch)
ubyte cmd;
#endif
! ubyte ch;
{
if (currinf.virtual) {
currinf.fontp = currinf.virtual->first_font;
--- 1164,1170 ----
set_no_char(cmd, ch)
ubyte cmd;
#endif
! long ch;
{
if (currinf.virtual) {
currinf.fontp = currinf.virtual->first_font;
***************
*** 1495,1501 ****
oldinfo.end = currinf.end;
}
else {
! (void) lseek(fileno(dvi_file), file_pos,
SEEK_SET);
oldinfo.pos = oldinfo.end;
}
--- 1501,1507 ----
oldinfo.end = currinf.end;
}
else {
! (void) lseek(fileno(dvi_file), (off_t)file_pos,
SEEK_SET);
oldinfo.pos = oldinfo.end;
}
***************
*** 1675,1684 ****
ROUNDUP(unshrunk_paper_h, shrink_factor) + 1);
#ifdef PAGENUM
! (void) lseek(fileno(dvi_file), page_index[current_page].offset,
SEEK_SET);
#else
! (void) lseek(fileno(dvi_file), page_offset[current_page], SEEK_SET);
#endif /* PAGENUM */
bzero((char *) &currinf.data, sizeof(currinf.data));
--- 1681,1690 ----
ROUNDUP(unshrunk_paper_h, shrink_factor) + 1);
#ifdef PAGENUM
! (void) lseek(fileno(dvi_file), (off_t) page_index[current_page].offset,
SEEK_SET);
#else
! (void) lseek(fileno(dvi_file), (off_t) page_offset[current_page], SEEK_SET);
#endif /* PAGENUM */
bzero((char *) &currinf.data, sizeof(currinf.data));
*** zeit.c.orig Sat Nov 9 10:43:09 1996
--- zeit.c Sat Nov 9 10:42:44 1996
***************
*** 3,14 ****
* Written by Y. Hayashi (hayashi@me.aoyama.ac.jp)
******************************************************/
! #include "xdvi.h"
#ifndef X_NOT_STDC_ENV
#include <stdlib.h>
#endif
!
#include "jtfm.h"
#ifndef SEEK_SET
--- 3,14 ----
* Written by Y. Hayashi (hayashi@me.aoyama.ac.jp)
******************************************************/
! /*#include "xdvi.h"
#ifndef X_NOT_STDC_ENV
#include <stdlib.h>
#endif
! */
#include "jtfm.h"
#ifndef SEEK_SET
***************
*** 258,264 ****
static void
get_ZEIT_font(fontp, code)
struct font *fontp;
! int code;
{
struct bitmap *bm;
int bwidth;
--- 258,264 ----
static void
get_ZEIT_font(fontp, code)
struct font *fontp;
! long code;
{
struct bitmap *bm;
int bwidth;
***************
*** 297,303 ****
static void
read_ZEIT_char(fontp, ch)
struct font *fontp;
! int ch;
{
struct bitmap *bm;
struct glyph *g;
--- 297,303 ----
static void
read_ZEIT_char(fontp, ch)
struct font *fontp;
! long ch;
{
struct bitmap *bm;
struct glyph *g;
***************
*** 354,360 ****
double dimconv;
int n, index, code, width, height, depth;
! fontp->read_char = read_ZEIT_char;
fontp->kglyph = (struct glyph **)
xmalloc(sizeof(struct glyph *) * KTABLESIZE, "read_ZEIT_index");
dimconv = fontp->dimconv;
--- 354,360 ----
double dimconv;
int n, index, code, width, height, depth;
! fontp->read_char = (read_char_proc) read_ZEIT_char;
fontp->kglyph = (struct glyph **)
xmalloc(sizeof(struct glyph *) * KTABLESIZE, "read_ZEIT_index");
dimconv = fontp->dimconv;

View file

@ -0,0 +1,38 @@
*** gs-view.c.orig Sat Jan 13 18:33:59 1996
--- gs-view.c Sat Jan 13 18:34:19 1996
***************
*** 126,132 ****
#ifdef PS_LITERAL
fflush(temp_ps_file);
! lseek(fileno(temp_ps_file), 0L, SEEK_SET);
#endif /* PS_LITERAL */
{
--- 126,132 ----
#ifdef PS_LITERAL
fflush(temp_ps_file);
! lseek(fileno(temp_ps_file), (off_t)0, SEEK_SET);
#endif /* PS_LITERAL */
{
*** font_open.c.orig Sat Jan 13 18:29:22 1996
--- font_open.c Sat Jan 13 18:39:14 1996
***************
*** 137,143 ****
#else
#if NeedFunctionPrototypes
#if !defined(__386BSD__) && !defined(SVR4)
! extern char *getcwd (char *, int);
#endif
#else
extern char *getcwd ();
--- 137,143 ----
#else
#if NeedFunctionPrototypes
#if !defined(__386BSD__) && !defined(SVR4)
! extern char *getcwd (char *, size_t);
#endif
#else
extern char *getcwd ();

View file

@ -0,0 +1,19 @@
*** SelFile.c.orig Sat Jan 13 18:40:29 1996
--- SelFile.c Sat Jan 13 18:42:35 1996
***************
*** 46,52 ****
/* BSD 4.3 errno.h does not declare errno */
extern int errno;
extern int sys_nerr;
! extern char *sys_errlist[];
#include <sys/param.h>
#include <X11/cursorfont.h>
--- 46,52 ----
/* BSD 4.3 errno.h does not declare errno */
extern int errno;
extern int sys_nerr;
! /*extern char *sys_errlist[];*/
#include <sys/param.h>
#include <X11/cursorfont.h>

View file

@ -0,0 +1,120 @@
*** dvi_init.c.orig Sat Jan 13 19:16:24 1996
--- dvi_init.c Sat Jan 13 19:17:18 1996
***************
*** 262,268 ****
if (iskanjifont(fontp->fontname)) {
fontp->flags |= FONT_KANJI;
fontp->fsize = (float) size_found;
! fontp->set_char_p = set_char2;
}
else {
fontp->fsize = (float) size_found / 5;
--- 262,268 ----
if (iskanjifont(fontp->fontname)) {
fontp->flags |= FONT_KANJI;
fontp->fsize = (float) size_found;
! fontp->set_char_p = (set_char_proc) set_char2;
}
else {
fontp->fsize = (float) size_found / 5;
*** gf.c.orig Sat Jan 13 19:17:24 1996
--- gf.c Sat Jan 13 19:17:46 1996
***************
*** 58,64 ****
static void
read_GF_char(fontp, ch)
register struct font *fontp;
! ubyte ch;
{
register struct glyph *g;
ubyte cmnd;
--- 58,64 ----
static void
read_GF_char(fontp, ch)
register struct font *fontp;
! long ch;
{
register struct glyph *g;
ubyte cmnd;
*** pk.c.orig Sat Jan 13 19:17:57 1996
--- pk.c Sat Jan 13 19:18:20 1996
***************
*** 107,113 ****
static void
read_PK_char(fontp, ch)
register struct font *fontp;
! ubyte ch;
{
int i, j;
int n;
--- 107,113 ----
static void
read_PK_char(fontp, ch)
register struct font *fontp;
! long ch;
{
int i, j;
int n;
*** xdvi.h.orig Sat Jan 13 19:18:35 1996
--- xdvi.h Sat Jan 13 19:38:03 1996
***************
*** 215,221 ****
#if NeedFunctionPrototypes
#ifndef TEXXET
! typedef long (*set_char_proc)(WIDEARG(ubyte, int));
#else /* TEXXET */
typedef void (*set_char_proc)(WIDEARG(ubyte, int), WIDEARG(ubyte, int));
#endif /* TEXXET */
--- 215,221 ----
#if NeedFunctionPrototypes
#ifndef TEXXET
! typedef long (*set_char_proc)(WIDEARG(long, int));
#else /* TEXXET */
typedef void (*set_char_proc)(WIDEARG(ubyte, int), WIDEARG(ubyte, int));
#endif /* TEXXET */
***************
*** 351,357 ****
#define NOMAGSTP (-29999)
#if NeedFunctionPrototypes
! typedef void (*read_char_proc)(struct font *, WIDEARG(ubyte, int));
#else
typedef void (*read_char_proc)();
#endif
--- 351,357 ----
#define NOMAGSTP (-29999)
#if NeedFunctionPrototypes
! typedef void (*read_char_proc)(struct font *, WIDEARG(long, int));
#else
typedef void (*read_char_proc)();
#endif
***************
*** 536,547 ****
extern void open_dvi_file(void);
extern Boolean check_dvi_file(void);
#ifndef TEXXET
! extern long set_char(WIDEARG(ubyte, int));
#if defined(KANJI) && !defined(ASCIIDNP)
! extern long set_char2(int);
#endif /* KANJI && !ASCIIDNP */
! extern long load_n_set_char(WIDEARG(ubyte, int));
! extern long set_vf_char(WIDEARG(ubyte, int));
#else
extern void set_char(WIDEARG(ubyte, int), WIDEARG(ubyte, int));
extern void load_n_set_char(WIDEARG(ubyte, int), WIDEARG(ubyte, int));
--- 536,547 ----
extern void open_dvi_file(void);
extern Boolean check_dvi_file(void);
#ifndef TEXXET
! extern long set_char(WIDEARG(long, int));
#if defined(KANJI) && !defined(ASCIIDNP)
! extern long set_char2(long);
#endif /* KANJI && !ASCIIDNP */
! extern long load_n_set_char(WIDEARG(long,long));
! extern long set_vf_char(long);
#else
extern void set_char(WIDEARG(ubyte, int), WIDEARG(ubyte, int));
extern void load_n_set_char(WIDEARG(ubyte, int), WIDEARG(ubyte, int));

View file

@ -0,0 +1,80 @@
*** xdvi-17+ptex.fixed.patch.orig Thu May 30 00:45:59 1996
--- xdvi-17+ptex.fixed.patch Thu May 30 00:49:10 1996
***************
*** 2,13 ****
*** xdvi.old/Imakefile Thu Nov 9 02:46:11 1995
--- xdvi.ptex/Imakefile Thu Nov 9 02:48:42 1995
***************
! *** 7,12 ****
! --- 7,13 ----
! #define Use_ZEIT
! #define Use_NTTZEIT
! #define Use_PS
! + #define Use_PTEX
#include "XDvi.defs"
#include "XDvi.rules"
--- 2,13 ----
*** xdvi.old/Imakefile Thu Nov 9 02:46:11 1995
--- xdvi.ptex/Imakefile Thu Nov 9 02:48:42 1995
***************
! *** 12,17 ****
! --- 12,18 ----
! #define Use_PRINTDVI
! #define Use_PAGENUM
! #define Use_PAPER
! + #define Use_PTEX
#include "XDvi.defs"
#include "XDvi.rules"
***************
*** 39,62 ****
DEFAULT_FONTCONFDIR=$(TEXFONTS)/zeit
DEFAULT_FONTCONF=$(DEFAULT_FONTCONFDIR)/FontConf
***************
! *** 121,129 ****
! #endif /* Use_PS */
!
SRCS=xdvi.c dvi_init.c dvi_draw.c fontfmts.c vf.c util.c font_open.c tpic.c \
! ! SELFILE_SRCS PS_SRCS
OBJS=xdvi.o dvi_init.o dvi_draw.o fontfmts.o vf.o util.o font_open.o tpic.o \
! ! SELFILE_OBJS PS_OBJS
!
DEFINES=$(DEFS) -DDEFAULT_FONT_PATH=\"$(DEFAULT_FONT_PATH)\" \
-DDEFAULT_VF_PATH=\"$(DEFAULT_VF_PATH)\" \
! --- 134,142 ----
! #endif /* Use_PS */
!
SRCS=xdvi.c dvi_init.c dvi_draw.c fontfmts.c vf.c util.c font_open.c tpic.c \
! ! SELFILE_SRCS PS_SRCS PTEX_SRCS
OBJS=xdvi.o dvi_init.o dvi_draw.o fontfmts.o vf.o util.o font_open.o tpic.o \
! ! SELFILE_OBJS PS_OBJS PTEX_OBJS
!
DEFINES=$(DEFS) -DDEFAULT_FONT_PATH=\"$(DEFAULT_FONT_PATH)\" \
-DDEFAULT_VF_PATH=\"$(DEFAULT_VF_PATH)\" \
diff -c -N xdvi.old/README.ptex xdvi.ptex/README.ptex
--- 39,62 ----
DEFAULT_FONTCONFDIR=$(TEXFONTS)/zeit
DEFAULT_FONTCONF=$(DEFAULT_FONTCONFDIR)/FontConf
***************
! *** 232,240 ****
! #define PAPER_OBJS paper.o
!
SRCS=xdvi.c dvi_init.c dvi_draw.c fontfmts.c vf.c util.c font_open.c tpic.c \
! ! SELFILE_SRCS PS_SRCS MARKPAGE_SRCS TOC_SRCS PRINT_SRCS PAPER_SRCS
OBJS=xdvi.o dvi_init.o dvi_draw.o fontfmts.o vf.o util.o font_open.o tpic.o \
! ! SELFILE_OBJS PS_OBJS MARKPAGE_OBJS TOC_OBJS PRINT_OBJS PAPER_OBJS
!
DEFINES=$(DEFS) -DDEFAULT_FONT_PATH=\"$(DEFAULT_FONT_PATH)\" \
-DDEFAULT_VF_PATH=\"$(DEFAULT_VF_PATH)\" \
! --- 233,241 ----
! #define PAPER_OBJS paper.o
!
SRCS=xdvi.c dvi_init.c dvi_draw.c fontfmts.c vf.c util.c font_open.c tpic.c \
! ! SELFILE_SRCS PS_SRCS MARKPAGE_SRCS TOC_SRCS PRINT_SRCS PAPER_SRCS PTEX_SRCS
OBJS=xdvi.o dvi_init.o dvi_draw.o fontfmts.o vf.o util.o font_open.o tpic.o \
! ! SELFILE_OBJS PS_OBJS MARKPAGE_OBJS TOC_OBJS PRINT_OBJS PAPER_OBJS PTEX_OBJS
!
DEFINES=$(DEFS) -DDEFAULT_FONT_PATH=\"$(DEFAULT_FONT_PATH)\" \
-DDEFAULT_VF_PATH=\"$(DEFAULT_VF_PATH)\" \
diff -c -N xdvi.old/README.ptex xdvi.ptex/README.ptex

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
DVI Previewer for X. + Japanese patch + vector font support

View file

@ -0,0 +1,6 @@
This is xdvi-17 + miyupath + markpage + toc + printdvi + VFlib patch.
jp-vflib package is need to be installed in advance.
This package can compile in 118dpi, 240dpi, 300dpi , 360dpi, 400dpi
or 600dpi fonts.
MITA Yoshio <mita@jp.FreeBSD.org>

View file

@ -0,0 +1,7 @@
@cwd /usr/X11R6
bin/xdvi
man/man1/xdvi.1.gz
@cwd /usr/local
lib/tex/xdvipaper.dvi2ps-j
lib/tex/xdvipaper.dvips
lib/tex/xdvipaper.jdvi2kps