summaryrefslogtreecommitdiffstats
path: root/textproc/nfbtrans/files
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1998-08-30 02:32:23 +0000
committermax <max@FreeBSD.org>1998-08-30 02:32:23 +0000
commitf33cbf79c808c14ac067fd00b16865a74d6e4d9a (patch)
tree3c4c9ad0e9116301fca241b12ec291a232a1c5b1 /textproc/nfbtrans/files
parent20bafa5e84bd28bd343f5dc06d22972db7069424 (diff)
downloadFreeBSD-ports-f33cbf79c808c14ac067fd00b16865a74d6e4d9a.zip
FreeBSD-ports-f33cbf79c808c14ac067fd00b16865a74d6e4d9a.tar.gz
New port, nfbtrans:
NFBTRANS is a very accurate Grade Two braille translator. It can also back translate a Grade Two file into normal text. The program has many options which allow the user to customize its operation. Formatting commands can be used to generate Tables of Contents, ink print page numbers, running headers and much more. Translation rules are in a text file and can easily be modified by the user. The program can be configured to hyphenate words to save space. Because the copyright status is unclear, I'm marking this as RESTRICTED until I can find out from the author.
Diffstat (limited to 'textproc/nfbtrans/files')
-rw-r--r--textproc/nfbtrans/files/patch-aa41
-rw-r--r--textproc/nfbtrans/files/patch-ab48
-rw-r--r--textproc/nfbtrans/files/patch-ac23
-rw-r--r--textproc/nfbtrans/files/patch-ad11
4 files changed, 123 insertions, 0 deletions
diff --git a/textproc/nfbtrans/files/patch-aa b/textproc/nfbtrans/files/patch-aa
new file mode 100644
index 0000000..8e83aa8
--- /dev/null
+++ b/textproc/nfbtrans/files/patch-aa
@@ -0,0 +1,41 @@
+--- makefile.orig Sun Aug 30 06:13:32 1998
++++ makefile Sun Aug 30 07:58:37 1998
+@@ -3,6 +3,11 @@
+ #translation software written by the National Federation of the Blind
+ #compile under the Unix operating system.
+ #
++#Installation prefix:
++PREFIX?=/usr/local
++#Library path:
++UNIX_PATH?=${PREFIX}/lib/nfbtrans/
++#
+ #The source and object files are as follows:
+
+ SRCFILES=nfbtrans.c nfbpatch.c
+@@ -10,7 +15,7 @@
+ LIBS= -ltermcap
+
+ #Compiler and linking flags are as follows:
+-CFLAGS=-O
++CFLAGS+=-O -dUNIX_PATH=${UNIX_PATH}
+ CC=gcc
+ LDFLAGS=-Bdynamic
+
+@@ -22,6 +27,7 @@
+ @echo "ultrix"
+ @echo "aix"
+ @echo "linux"
++ @echo "freebsd"
+ all: nfbtrans
+
+ #Lint can wait a while
+@@ -31,6 +37,9 @@
+
+ ultrix:
+ $(MAKE) CFLAGS=-O
++
++freebsd:
++ ${MAKE} all CFLAGS="${CFLAGS} -Dfreebsd"
+
+ linux:
+ $(MAKE) CFLAGS=-O
diff --git a/textproc/nfbtrans/files/patch-ab b/textproc/nfbtrans/files/patch-ab
new file mode 100644
index 0000000..2608e9a
--- /dev/null
+++ b/textproc/nfbtrans/files/patch-ab
@@ -0,0 +1,48 @@
+--- nfbtrans.c.orig Wed Aug 19 16:30:14 1998
++++ nfbtrans.c Sun Aug 30 08:34:55 1998
+@@ -2,7 +2,9 @@
+ #define LINT_ARGS
+ #define DOS
+ #else
+-#define UNIX_PATH "/usr/local/lib/"
++#ifndef UNIX_PATH
++#define UNIX_PATH "/usr/local/lib/nfbtrans/"
++#endif
+ #endif /* unix */
+ #ifndef lint
+ #endif /* lint */
+@@ -24,7 +26,7 @@
+ #include <fcntl.h>
+ #include <stdarg.h>
+ #define MAXARGS 7
+-#if defined(sunos) || defined(linux)
++#if defined(sunos) || defined(linux) || defined(freebsd)
+ #define max(a,b) (((a) > (b)) ? (a) : (b))
+ #define min(a,b) (((a) < (b)) ? (a) : (b))
+ #endif
+@@ -4731,7 +4733,12 @@
+ for (;;)
+ {
+ fprintf(stderr, "Enter dictionary word <RETURN> to skip: ");
++#ifdef freebsd
++ fgets(temp, sizeof(temp), stdin);
++ temp[strlen(temp)-1] = '\0';
++#else
+ gets(temp);
++#endif
+ if (!temp[0])
+ break; /* skip, don't store as rejected */
+ strupr(temp);
+@@ -5242,7 +5249,12 @@
+ for (;;)
+ {
+ fprintf(stderr, "enter word <RETURN> to exit: ");
++#ifdef freebsd
++ fgets(field, (sizeof(field_) - (field - field_)), stdin);
++ field[strlen(field-1)] = '\0';
++#else
+ gets(field);
++#endif
+ if (strlen(field) < 2)
+ break;
+ strupr(field);
diff --git a/textproc/nfbtrans/files/patch-ac b/textproc/nfbtrans/files/patch-ac
new file mode 100644
index 0000000..425a44d
--- /dev/null
+++ b/textproc/nfbtrans/files/patch-ac
@@ -0,0 +1,23 @@
+--- nfbpatch.c.orig Thu Feb 6 12:00:00 1997
++++ nfbpatch.c Sun Aug 30 05:44:36 1998
+@@ -31,9 +31,11 @@
+ #include <unistd.h>
+
+ #define CASE_SHIFT 32 /* diference between upper and lower case */
++#ifndef freebsd
+ #define SYSVR4 /* use with gcc and solaris 2.1 see getpgrp. Also defines
+ * usleep. Wasn't able to link with /usr/ucblib/libucb.a
+ * Really no need for delay anyway */
++#endif
+ #ifdef ultrix
+ #define ECHOCTL TCTLECH
+ #endif
+@@ -97,7 +99,7 @@
+ int i;
+
+ i = tcgetpgrp(0);/* Use stdin as the file descriptor */
+-#ifdef SYSVR4
++#if defined(SYSVR4) || defined(freebsd)
+ if (i == getpgrp())
+ return (1);
+ #else
diff --git a/textproc/nfbtrans/files/patch-ad b/textproc/nfbtrans/files/patch-ad
new file mode 100644
index 0000000..1735977
--- /dev/null
+++ b/textproc/nfbtrans/files/patch-ad
@@ -0,0 +1,11 @@
+--- nfbtrans.cnf.orig Sun Aug 30 06:11:38 1998
++++ nfbtrans.cnf Sun Aug 30 07:52:45 1998
+@@ -30,7 +30,7 @@
+ ;s0=~[DL instructs juliet printer to ignore formfeed in spool mode
+ so=15 sound enabled
+ sp=0 spool mode off don't use dos print for backround printing
+-st=c:\stat.txt statistics file
++st=stat.txt statistics file
+ ;tv=2000 timming value for microsoft C not used otherwise
+
+ ;Assign extension types
OpenPOWER on IntegriCloud