2016-12-15 14:11:36 +01:00
|
|
|
---
|
2024-01-09 09:40:54 +01:00
|
|
|
gnuplot-6.0.0/configure.ac | 2 +-
|
|
|
|
gnuplot-6.0.0/docs/Makefile.am | 12 ++++++++----
|
|
|
|
gnuplot-6.0.0/src/gadgets.h | 2 +-
|
|
|
|
gnuplot-6.0.0/src/gplt_x11.c | 9 ++++++---
|
|
|
|
gnuplot-6.0.0/src/plot.c | 16 ++++++++++++++++
|
|
|
|
gnuplot-6.0.0/src/term.h | 6 +++---
|
|
|
|
6 files changed, 35 insertions(+), 12 deletions(-)
|
2016-12-15 14:11:36 +01:00
|
|
|
|
2024-01-09 09:40:54 +01:00
|
|
|
--- gnuplot-6.0.0/configure.ac
|
|
|
|
+++ gnuplot-6.0.0/configure.ac 2024-01-09 08:20:41.748328467 +0000
|
|
|
|
@@ -383,7 +383,7 @@ if test "$with_readline" != no; then
|
|
|
|
dnl check for terminal library
|
|
|
|
dnl this is a very cool solution from octave's configure.in
|
|
|
|
gp_tcap=""
|
|
|
|
- for termlib in ncurses curses termcap terminfo termlib; do
|
|
|
|
+ for termlib in tinfo ncurses curses termcap terminfo termlib; do
|
|
|
|
AC_CHECK_LIB(${termlib}, tputs, [gp_tcap="$gp_tcap -l$termlib"])
|
|
|
|
case "$gp_tcap" in
|
|
|
|
*-l${termlib}*)
|
|
|
|
--- gnuplot-6.0.0/docs/Makefile.am
|
|
|
|
+++ gnuplot-6.0.0/docs/Makefile.am 2024-01-08 10:32:22.372964142 +0000
|
|
|
|
@@ -29,7 +29,7 @@
|
2007-01-16 00:15:11 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# default is what is needed for interactive gnuplot
|
2015-01-23 15:40:26 +01:00
|
|
|
-gih_DATA = gnuplot.gih
|
|
|
|
+gih_DATA = gnuplot.gih gnuplot-fr.gih
|
|
|
|
gihdir = @GIHDIR@
|
|
|
|
|
2024-01-09 09:40:54 +01:00
|
|
|
noinst_PROGRAMS = checkdoc doc2ipf doc2tex doc2gih doc2hlp \
|
|
|
|
@@ -111,7 +111,7 @@ wxhelp_figures wxhelp/*.html wxhelp/wgnu
|
2016-12-15 14:11:36 +01:00
|
|
|
wxhelp/wgnuplot.htc wxhelp/doc2html$(EXEEXT) windows/wgnuplot.htk \
|
2024-01-09 09:40:54 +01:00
|
|
|
svg_figures html/*.html html/*.svg html/*.hhc html/*.hhk \
|
|
|
|
webp_figures html/*.webp html/figure_mask.png \
|
2016-12-15 14:11:36 +01:00
|
|
|
-windows/*.png gnuplot.htb gnuplot.texi gnuplot-eldoc.el $(ELCS)
|
|
|
|
+windows/*.png gnuplot.htb gnuplot.texi gnuplot-eldoc.el $(ELCS) gnuplot-fr.gih
|
2015-01-23 15:40:26 +01:00
|
|
|
|
|
|
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(DOCHEADERS) $(EXTRA_DIST)
|
|
|
|
|
2024-01-09 09:40:54 +01:00
|
|
|
@@ -271,17 +271,21 @@ gnuplot.hlp: doc2hlp$(EXEEXT) $(srcdir)/
|
2015-01-23 15:40:26 +01:00
|
|
|
doc2hlp_SOURCES = doc2hlp.c termdoc.c
|
|
|
|
|
|
|
|
### gnuplot interactive help format
|
|
|
|
-gih: gnuplot.gih
|
|
|
|
+gih: gnuplot.gih gnuplot-fr.gih
|
|
|
|
|
|
|
|
gnuplot.gih: doc2gih$(EXEEXT) $(srcdir)/gnuplot.doc
|
2016-12-15 14:11:36 +01:00
|
|
|
$(AM_V_GEN)./doc2gih$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.gih
|
2015-01-23 15:40:26 +01:00
|
|
|
|
|
|
|
+gnuplot-fr.gih: doc2gih$(EXEEXT) $(srcdir)/gnuplot-fr.doc
|
2016-12-15 14:11:36 +01:00
|
|
|
+ $(AM_V_GEN)./doc2gih$(EXEEXT) $(srcdir)/gnuplot-fr.doc gnuplot-fr.gih
|
2015-01-23 15:40:26 +01:00
|
|
|
+
|
|
|
|
doc2gih_SOURCES = doc2gih.c termdoc.c
|
|
|
|
|
|
|
|
# To include all terminals in the .gih file
|
|
|
|
-allgih: alldoc2gih$(EXEEXT) $(srcdir)/gnuplot.doc
|
|
|
|
+allgih: alldoc2gih$(EXEEXT) $(srcdir)/gnuplot.doc $(srcdir)/gnuplot-fr.doc
|
2016-12-15 14:11:36 +01:00
|
|
|
@echo "generate gnuplot.gih with all terminals"
|
|
|
|
$(AM_V_at)./alldoc2gih$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.gih
|
|
|
|
+ $(AM_V_at)./alldoc2gih$(EXEEXT) $(srcdir)/gnuplot-fr.doc gnuplot-fr.gih
|
2015-01-23 15:40:26 +01:00
|
|
|
|
|
|
|
alldoc2gih_SOURCES = doc2gih.c termdoc.c
|
|
|
|
alldoc2gih_CPPFLAGS = -DALL_TERM_DOC $(AM_CPPFLAGS)
|
2024-01-09 09:40:54 +01:00
|
|
|
--- gnuplot-6.0.0/src/gadgets.h
|
|
|
|
+++ gnuplot-6.0.0/src/gadgets.h 2024-01-08 09:16:58.124450437 +0000
|
|
|
|
@@ -524,7 +524,7 @@ extern TBOOLEAN clip_lines2;
|
2010-05-12 18:26:55 +02:00
|
|
|
extern TBOOLEAN clip_points;
|
2020-07-17 10:10:21 +02:00
|
|
|
extern TBOOLEAN clip_radial;
|
2010-05-12 18:26:55 +02:00
|
|
|
|
|
|
|
-#define SAMPLES 100 /* default number of samples for a plot */
|
|
|
|
+#define SAMPLES 500 /* default number of samples for a plot */
|
|
|
|
extern int samples_1;
|
|
|
|
extern int samples_2;
|
|
|
|
|
2024-01-09 09:40:54 +01:00
|
|
|
--- gnuplot-6.0.0/src/gplt_x11.c
|
|
|
|
+++ gnuplot-6.0.0/src/gplt_x11.c 2024-01-08 09:16:58.124450437 +0000
|
|
|
|
@@ -2518,9 +2518,12 @@ exec_cmd(plot_struct *plot, char *comman
|
2007-01-16 00:15:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
/* X11_justify_text(mode) - set text justification mode */
|
|
|
|
- else if (*buffer == 'J')
|
2015-01-23 15:40:26 +01:00
|
|
|
- sscanf(buffer, "J%d", (int *) &plot->jmode);
|
|
|
|
-
|
2007-01-16 00:15:11 +01:00
|
|
|
+ else if (*buffer == 'J') {
|
|
|
|
+ int jmode;
|
2015-01-23 15:40:26 +01:00
|
|
|
+ sscanf(buffer, "J%d", &jmode);
|
2007-01-16 00:15:11 +01:00
|
|
|
+ plot->jmode = jmode;
|
|
|
|
+ }
|
2015-01-23 15:40:26 +01:00
|
|
|
+
|
2007-01-16 00:15:11 +01:00
|
|
|
else if (*buffer == 'A')
|
2007-04-12 17:32:27 +02:00
|
|
|
sscanf(buffer + 1, "%lf", &plot->angle);
|
2015-01-23 15:40:26 +01:00
|
|
|
|
2024-01-09 09:40:54 +01:00
|
|
|
--- gnuplot-6.0.0/src/plot.c
|
|
|
|
+++ gnuplot-6.0.0/src/plot.c 2024-01-08 09:16:58.124450437 +0000
|
|
|
|
@@ -296,6 +296,22 @@ main(int argc_orig, char **argv)
|
2009-05-28 04:44:00 +02:00
|
|
|
rl_getc_function = getc_wrapper;
|
2007-04-12 17:32:27 +02:00
|
|
|
#endif
|
2010-09-18 01:08:13 +02:00
|
|
|
|
2007-01-16 00:15:11 +01:00
|
|
|
+#ifdef __linux__
|
|
|
|
+ if (!getenv("GNUHELP")) {
|
2007-05-11 16:55:36 +02:00
|
|
|
+ const char* msg = setlocale(LC_MESSAGES, NULL);
|
|
|
|
+ if (msg) {
|
2007-01-16 00:15:11 +01:00
|
|
|
+ char hfile[64];
|
|
|
|
+ struct stat buf;
|
2012-04-02 16:02:56 +02:00
|
|
|
+
|
2012-02-13 12:47:52 +01:00
|
|
|
+ sprintf(hfile, "/usr/share/gnuplot/%s/gnuplot-", gnuplot_version);
|
2007-05-11 16:55:36 +02:00
|
|
|
+ strncat(hfile, msg, 2);
|
|
|
|
+ strcat (hfile, ".gih");
|
2007-01-16 00:15:11 +01:00
|
|
|
+ if (stat(hfile, &buf) == 0)
|
2012-04-02 16:02:56 +02:00
|
|
|
+ setenv("GNUHELP", strdup(hfile), 0);
|
2007-01-16 00:15:11 +01:00
|
|
|
+ }
|
|
|
|
+ }
|
2007-04-12 17:32:27 +02:00
|
|
|
+#endif
|
|
|
|
+
|
2009-05-28 04:44:00 +02:00
|
|
|
#if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDITLINE)
|
2007-04-12 17:32:27 +02:00
|
|
|
/* T.Walter 1999-06-24: 'rl_readline_name' must be this fix name.
|
2013-04-01 20:27:45 +02:00
|
|
|
* It is used to parse a 'gnuplot' specific section in '~/.inputrc'
|
2024-01-09 09:40:54 +01:00
|
|
|
--- gnuplot-6.0.0/src/term.h
|
|
|
|
+++ gnuplot-6.0.0/src/term.h 2024-01-08 09:16:58.124450437 +0000
|
|
|
|
@@ -233,9 +233,9 @@
|
2007-01-16 00:15:11 +01:00
|
|
|
#include "emf.trm"
|
|
|
|
|
|
|
|
/* Roland DXY800A plotter */
|
|
|
|
-/* #include "dxy.trm" */
|
|
|
|
+#include "dxy.trm"
|
|
|
|
/* QMS/EXCL laserprinter (Talaris 1590 and others) */
|
|
|
|
-/* #include "excl.trm" */
|
|
|
|
+#include "excl.trm"
|
|
|
|
|
|
|
|
/* fig graphics */
|
|
|
|
#include "fig.trm"
|
2024-01-09 09:40:54 +01:00
|
|
|
@@ -268,7 +268,7 @@
|
2015-01-23 15:40:26 +01:00
|
|
|
/* #include "imagen.trm" */
|
2007-01-16 00:15:11 +01:00
|
|
|
|
|
|
|
/* Kyocera Prescribe printer */
|
|
|
|
-/* #include "kyo.trm" */
|
|
|
|
+#include "kyo.trm"
|
|
|
|
|
|
|
|
/* Frame Maker MIF 3.00 format driver */
|
2015-01-23 15:40:26 +01:00
|
|
|
#ifdef HAVE_MIF
|