mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
2005-07-25 Angus Leeming <leeeming@lyx.org>
* dt2dv.c: Enable to handle .dvi files containing strings longer than 1024 chars. * Makefile: enable the to work out of the box on both *nix and Windows machines under the MinSYS environment. * man2ps: build fixes See https://marc.info/?l=lyx-devel&m=115228143031699
This commit is contained in:
parent
d6f9fdcaef
commit
78a15c0448
11
3rdparty/dtl/dt2dv.c
vendored
11
3rdparty/dtl/dt2dv.c
vendored
@ -10,6 +10,8 @@
|
|||||||
- Geoffrey Tobin G.Tobin@ee.latrobe.edu.au
|
- Geoffrey Tobin G.Tobin@ee.latrobe.edu.au
|
||||||
- fixes: Michal Tomczak-Jaegermann ntomczak@vm.ucs.ualberta.ca
|
- fixes: Michal Tomczak-Jaegermann ntomczak@vm.ucs.ualberta.ca
|
||||||
Nelson H. F. Beebe beebe@math.utah.edu
|
Nelson H. F. Beebe beebe@math.utah.edu
|
||||||
|
Angus Leeming leeming@lyx.org: Enable dt2dv to handle .dvi files
|
||||||
|
containing strings longer than 1024 chars.
|
||||||
- Reference: "The DVI Driver Standard, Level 0",
|
- Reference: "The DVI Driver Standard, Level 0",
|
||||||
by The TUG DVI Driver Standards Committee.
|
by The TUG DVI Driver Standards Committee.
|
||||||
Appendix A, "Device-Independent File Format".
|
Appendix A, "Device-Independent File Format".
|
||||||
@ -2229,7 +2231,7 @@ xfer_len_string
|
|||||||
/* transfer (length and) quoted string from dtl to dvi file, */
|
/* transfer (length and) quoted string from dtl to dvi file, */
|
||||||
/* return number of bytes written to dvi file. */
|
/* return number of bytes written to dvi file. */
|
||||||
{
|
{
|
||||||
U4 k, k2;
|
U4 k, k2, lstr_maxsize;
|
||||||
Lstring lstr;
|
Lstring lstr;
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
@ -2238,12 +2240,13 @@ xfer_len_string
|
|||||||
fprintf (stderr, "(xfer_len_string) : entering xfer_len_string.\n");
|
fprintf (stderr, "(xfer_len_string) : entering xfer_len_string.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
init_Lstring (&lstr, LSIZE);
|
|
||||||
|
|
||||||
/* k[n] : length of special string */
|
/* k[n] : length of special string */
|
||||||
|
|
||||||
k = get_unsigned (dtl);
|
k = get_unsigned (dtl);
|
||||||
|
|
||||||
|
lstr_maxsize = (k > LSIZE) ? k : LSIZE;
|
||||||
|
init_Lstring (&lstr, lstr_maxsize);
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
PRINT_PROGNAME;
|
PRINT_PROGNAME;
|
||||||
@ -2573,7 +2576,7 @@ fontdef
|
|||||||
#ifdef HEX_CHECKSUM
|
#ifdef HEX_CHECKSUM
|
||||||
/* c[4] : (hexadecimal) checksum : I (gt) would prefer this */
|
/* c[4] : (hexadecimal) checksum : I (gt) would prefer this */
|
||||||
xfer_hex (4, dtl, dvi);
|
xfer_hex (4, dtl, dvi);
|
||||||
#else /NOT HEX_CHECKSUM */
|
#else /*NOT HEX_CHECKSUM */
|
||||||
/* c[4] : checksum (octal, for comparison with tftopl's .pl file) */
|
/* c[4] : checksum (octal, for comparison with tftopl's .pl file) */
|
||||||
xfer_oct (4, dtl, dvi);
|
xfer_oct (4, dtl, dvi);
|
||||||
#endif
|
#endif
|
||||||
|
6
3rdparty/dtl/man2ps
vendored
6
3rdparty/dtl/man2ps
vendored
@ -25,16 +25,16 @@ case `basename $0` in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# We can use either GNU groff or Sun Solaris troff + dpost
|
# We can use either GNU groff or Sun Solaris troff + dpost
|
||||||
if [ -x /usr/local/bin/groff ]
|
if [ which groff > /dev/null ]
|
||||||
then # GNU groff
|
then # GNU groff
|
||||||
TROFF="groff $FORMAT"
|
TROFF="groff $FORMAT"
|
||||||
TROFF2PS="cat"
|
TROFF2PS="cat"
|
||||||
elif [ -x /usr/lib/lp/postscript/dpost ]
|
+elif [ which dpost > /dev/null ]
|
||||||
then # Solaris 2.1
|
then # Solaris 2.1
|
||||||
TROFF="troff $FORMAT"
|
TROFF="troff $FORMAT"
|
||||||
TROFF2PS="/usr/lib/lp/postscript/dpost"
|
TROFF2PS="/usr/lib/lp/postscript/dpost"
|
||||||
else
|
else
|
||||||
echo "Cannot find troff-to-PostScript filter"
|
+ echo "Cannot find troff-to-PostScript filter" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user