Ben Pfaff [Wed, 10 Jun 2020 16:58:32 +0000 (16:58 +0000)]
tests: Fix misspelling in test name.
John Darrington [Sun, 7 Jun 2020 10:32:44 +0000 (12:32 +0200)]
Whitespace changes only.
Remove whitespace following opening parentheses and preceding closing
parentheses.
John Darrington [Sun, 7 Jun 2020 10:24:27 +0000 (12:24 +0200)]
Update recommended gnulib commit
John Darrington [Sun, 7 Jun 2020 13:41:54 +0000 (15:41 +0200)]
Fix crash when using the find function.
It looks as if some experimental code had escaped the lab here.
Friedrich Beckmann [Sun, 7 Jun 2020 09:49:05 +0000 (11:49 +0200)]
fixed wrong goto case after opening .sav file
When a .sav file was openend, then a wrong "goto case" option
is visible in the variable view. With this fix you can
open a new dataset via the file browser and the correct menu
is shown.
Friedrich Beckmann [Sun, 7 Jun 2020 07:08:01 +0000 (09:08 +0200)]
fixed goto case dialog
The goto case dialog did not work. The GtkTreeModel cast of the datasheet
does not work because datasheet is not derived from treemodel. Changed
types from casenumber to gint because the gtktreemodel function returns gint.
casenumber is long which my be bigger than int but the treemodel cant handle
this anyway.
Friedrich Beckmann [Sat, 6 Jun 2020 19:00:53 +0000 (21:00 +0200)]
fixed variable type change during text import bug #58298
Changing the variable type during the import dialog resulted
in a crash. The reason is that the import data is stored as
strings in a treeview and converted to union value depending
on the variable type. When the variable type is changed, there
is a discrepancy between then caseproto in the reader and the
variable. This results in an assertion.
As a fix I store the dictionary at the time of creation of the
casereader. When a variable is changed i reinitialize the
casereader.
John Darrington [Sun, 31 May 2020 11:38:21 +0000 (13:38 +0200)]
Remove #include "gl/dosname.h"
This file is no longer part of gnublib
Friedrich Beckmann [Fri, 5 Jun 2020 09:33:52 +0000 (11:33 +0200)]
avoid crash by drag-n-drop in variable dialog #58457
The drag-n-drop was enabled in the variable dialog but
actually doing it results in a crash. See:
https://savannah.gnu.org/bugs/index.php?58475
Friedrich Beckmann [Fri, 5 Jun 2020 06:26:13 +0000 (08:26 +0200)]
improve deletion of consecutive variables #55357
Deleting many variables (like 300) via the gui
in a dataset with many variables (like 500) results
in long gui response times because each variable is
deleted individually by iteration. This results in many
items-changed callbacks which will result in long
gui waiting times. This patch reduces the number of
callbacks and the gui response is much faster.
John Darrington [Sun, 31 May 2020 11:31:45 +0000 (13:31 +0200)]
psppire: Deal properly with inverted variable selections.
When deleting variables, if the start of a selected range is greater
than the end of the range, then swap the start and end.
Friedrich Beckmann [Sun, 31 May 2020 22:39:59 +0000 (00:39 +0200)]
insert variables in var view (#55357)
The variable insert procedure inserted new variables
via the datasheet window even if the variable
window was visible. Directly after startup the
dataview is not realized and that prevents a correct
update of the variable view. I changed the procedure
such that the ssw items_changed_cb is called for
the widgets in the variable view and the window
is correctly updated.
John Darrington [Sun, 26 Apr 2020 12:25:34 +0000 (14:25 +0200)]
Correct syntax when generating code for autorecode with blanks as missing
Friedrich Beckmann [Thu, 7 May 2020 15:11:52 +0000 (17:11 +0200)]
Makefile.am - added check for debian package directory
The debian package is now also maintained via git
https://salsa.debian.org/science-team/pspp
but that repository contains the distribution package. Due to the
.git directory the make process assumes that we are building
a distribution file and adds a check for some missing files. That
check fails if the distribution is under git control. I checked
for the existance of the debian directory as an indicator that
we are building the debian package and disable the check.
John Darrington [Sun, 26 Apr 2020 12:59:11 +0000 (14:59 +0200)]
Fix crash when bad autorecode /blank is encountered.
Closes bug #58255.
Friedrich Beckmann [Tue, 14 Apr 2020 15:09:30 +0000 (17:09 +0200)]
MacOS: added a setup section to avoid script in application bundle
MacOS Catalina has added security features which do not allow to
start an application via a script in an application bundle. See:
https://savannah.gnu.org/bugs/?58128
With this change the application does not need to set environment
variables before start for the relocation.
Friedrich Beckmann [Tue, 14 Apr 2020 15:03:34 +0000 (17:03 +0200)]
svg2png: Adapted syntax to gimp 2.10.18
The svg2png syntax for gimp does not work for gimp 2.10.18
on MacOS. I replaced the list command with the alternative
syntax.
Friedrich Beckmann [Tue, 14 Apr 2020 15:01:08 +0000 (17:01 +0200)]
Smake: added more files to remove for clean target
Some file locations are moved and there are some new files which
are generated. I added some files to the clean target.
Ben Pfaff [Sat, 22 Feb 2020 19:50:16 +0000 (19:50 +0000)]
documentation: Fix build with some versions of makeinfo.
Reported by Jeremy Lavergne.
John Darrington [Sun, 9 Feb 2020 09:15:21 +0000 (10:15 +0100)]
Fix order of arguments in error message
John Darrington [Sun, 9 Feb 2020 12:01:12 +0000 (13:01 +0100)]
Fix bug #57731.
John Darrington [Sun, 2 Feb 2020 10:51:42 +0000 (11:51 +0100)]
Fix bug #57722.
The McNemar binomial probability should use the minimum of the two dissimilar
group counts.
Ben Pfaff [Fri, 10 Jan 2020 05:53:54 +0000 (05:53 +0000)]
psppire-output-window: Avoid calling gdk_window_begin_draw_frame twice.
gdk_window_begin_draw_frame() and gdk_window_end_draw_frame() have to
be paired and not recursive, but this code didn't honor that.
Thanks to Harry Thijssen and John Darrington for pointing out the
issue.
Ben Pfaff [Fri, 10 Jan 2020 03:26:57 +0000 (03:26 +0000)]
LIST: Fix case numbering.
Case numbering was wrong when a starting case or a step was specified.
Bug #57534.
Ben Pfaff [Thu, 9 Jan 2020 07:22:05 +0000 (07:22 +0000)]
ascii: Correct multiple bugs regarding output width.
The SET WIDTH setting was ignored. This makes the code honor it for
output to a file. For output to a terminal, the terminal's width is
used instead.
Honor changes to SET WIDTH as well.
The code to detect terminal size changes wasn't properly signal safe,
and it was scattered across multiple files. This centralizes it and
makes it signal safe.
There were bugs in updates to min_hbreak in corner cases. This fixes
them.
Thanks to Frans Houweling and John Darrington for reporting these
bugs.
Ben Pfaff [Thu, 9 Jan 2020 07:22:49 +0000 (07:22 +0000)]
ascii: Fix parsing of -O width=<n> option.
Ben Pfaff [Wed, 1 Jan 2020 17:19:14 +0000 (17:19 +0000)]
pivot-table: Avoid ctime_r() for portability reasons.
ctime_r() isn't in mingw or Gnulib and it's best to avoid it in any
case because POSIX says it is obsolescent and it has buffer overflow
issues.
Reported by Harry Thijssen.
Ben Pfaff [Mon, 30 Dec 2019 15:05:04 +0000 (15:05 +0000)]
spv: Make parser generators compatible with python3.
Ben Pfaff [Mon, 30 Dec 2019 06:59:09 +0000 (06:59 +0000)]
doc: PRINT on DO REPEAT is not yet implemented.
Reported by Nolan Void.
Ben Pfaff [Mon, 30 Dec 2019 06:42:02 +0000 (06:42 +0000)]
spv: Run Python at build time via $PYTHON variable.
This was accidentally being run as literal "python" rather than through
a variable, so it failed on systems where there is no "python" binary
but only python2 or python3.
Ben Pfaff [Mon, 30 Dec 2019 06:35:16 +0000 (06:35 +0000)]
psppire-import-assistant: Implement quotation checkbox and combo box.
This seems to have been overlooked.
Bug #57457.
Ben Pfaff [Mon, 30 Dec 2019 02:48:53 +0000 (02:48 +0000)]
pspp-convert: Add options for selecting variables and controlling output.
Ben Pfaff [Sun, 29 Dec 2019 16:25:57 +0000 (16:25 +0000)]
cairo: Fix font scaling.
It's really a mystery why a 9-point font doesn't appear 9 points tall
in PDF (etc.) output, but it doesn't. I guess we're doing something
wrong somewhere. But until we figure out the underlying issue, we need
to scale down font sizes for PDF and not for on-screen use.
This is a slightly better fix for font sizes than the previous commit
3c15b41c036 (pivot-table: Kluge dropping default 9-point font to make
output readable.)
Ben Pfaff [Sun, 29 Dec 2019 15:53:25 +0000 (15:53 +0000)]
pivot-table: Kluge dropping default 9-point font to make output readable.
The default font size for SPV output is normally 9 points, but that
makes the output window hard to read. This drops that default entirely,
which seems to make the output use a system or Pango default. This is
probably not the right thing to do--probably we need a way to magnify
the fonts for on-screen display.
This reverts part of commit
e3c3fbe8b, which wasn't intended to have a
visible effect but did because it inadvertently introduced a 9-point
default.
Reported by John Darrington.
Ben Pfaff [Sun, 29 Dec 2019 15:38:57 +0000 (15:38 +0000)]
pspp-convert: Add --labels, --recode to usage message.
Ben Pfaff [Sun, 29 Dec 2019 07:50:47 +0000 (07:50 +0000)]
pspp-convert: Add --labels and --recode options.
Requested by Dave Trollope <dave@knowledgehound.com>.
Ben Pfaff [Sun, 29 Dec 2019 07:33:37 +0000 (07:33 +0000)]
pspp-output: Correct manpage.
This was a cut-and-paste error made without thinking.
Ben Pfaff [Sat, 19 Oct 2019 05:30:43 +0000 (05:30 +0000)]
Add support for reading and writing SPV files.
Ben Pfaff [Sun, 29 Dec 2019 05:46:31 +0000 (05:46 +0000)]
pivot-table: Add support for hiding footnotes.
This will get its first real user in an upcoming commit.
Ben Pfaff [Sun, 29 Dec 2019 05:50:39 +0000 (05:50 +0000)]
pivot-table: Add support for hiding the caption.
This will receive its first real user in an upcoming commit that adds
support for SPV files.
Ben Pfaff [Sun, 29 Dec 2019 05:39:50 +0000 (05:39 +0000)]
output: Refine support for footnotes, subscripts, and superscripts.
The code for all this wasn't fully plumbed through from the pivot table
code down to the drivers. This commit fixes all that up.
Ben Pfaff [Thu, 26 Dec 2019 17:34:14 +0000 (17:34 +0000)]
table: Factor out common code and improve comments.
Ben Pfaff [Thu, 26 Dec 2019 05:50:41 +0000 (05:50 +0000)]
table: Replace table_joined_cell by table_cell.
This eliminates some special cases.
Ben Pfaff [Thu, 26 Dec 2019 01:14:32 +0000 (01:14 +0000)]
render: Fix up layer violation in add_footnote_page().
The layering violation came from having to look up the default style
for a footer, so we fix it by forbidding footnotes from using the
default style.
Ben Pfaff [Thu, 26 Dec 2019 01:02:43 +0000 (01:02 +0000)]
table: Get rid of TAL_* constants.
These were the same as TABLE_STROKE_* so get rid of the extras.
Ben Pfaff [Thu, 26 Dec 2019 00:52:33 +0000 (00:52 +0000)]
table: Get rid of TAB_* for horizontal and vertical alignment.
Until now, either TAB_LEFT, TAB_RIGHT, etc. could be used or the
area_style mechanism could be used. The latter has a superset of the
former's features, so this commit eliminates the former.
Ben Pfaff [Thu, 26 Dec 2019 00:43:45 +0000 (00:43 +0000)]
pivot-table: Make pivot_area_get_default_style() return a static copy.
The existing callers all want to make their own copy, but an upcoming
new caller wants an existing one, so refactor the interface a bit.
Ben Pfaff [Thu, 26 Dec 2019 00:41:22 +0000 (00:41 +0000)]
table: Add pool parameter to area_style_copy(), font_style_copy().
This was inconsistent since the clone functions took them but the
copy functions didn't.
Ben Pfaff [Wed, 25 Dec 2019 23:21:05 +0000 (23:21 +0000)]
table: Move tab.h into table.h and rename tab_*() to table_*().
Ben Pfaff [Wed, 25 Dec 2019 23:13:35 +0000 (23:13 +0000)]
table: Merge tab.c into table.c.
Ben Pfaff [Wed, 25 Dec 2019 23:02:42 +0000 (23:02 +0000)]
tab: Merge struct tab_table into struct table.
Ben Pfaff [Wed, 25 Dec 2019 22:33:37 +0000 (22:33 +0000)]
table: Require headers to be set at table creation.
It used to be important for these to be adjustable, but no longer.
Ben Pfaff [Wed, 25 Dec 2019 22:26:25 +0000 (22:26 +0000)]
table: Get rid of table_class.
There is only one provider now, so we can slowly get rid of the extra
layer.
Ben Pfaff [Wed, 25 Dec 2019 21:38:49 +0000 (21:38 +0000)]
table: Simplify interface for number of rows and columns.
Nothing ever changes the number of rows or columns in a table after
initializing it anymore, so the more complicated interface is not needed.
Ben Pfaff [Wed, 25 Dec 2019 21:28:32 +0000 (21:28 +0000)]
tab: Fix overlap between table enumerations.
These enumerations overlapped with TAB_STYLE_MASK.
Ben Pfaff [Wed, 25 Dec 2019 17:01:49 +0000 (17:01 +0000)]
table: Get rid of table_cell destructors, which were unused.
Ben Pfaff [Sat, 7 Dec 2019 23:54:50 +0000 (23:54 +0000)]
pivot-table: Initialize subtype, command_id for pivot tables.
Ben Pfaff [Mon, 21 Oct 2019 03:04:22 +0000 (03:04 +0000)]
pivot-table: Make template pivot_values localized.
This will be used in an upcoming commit.
Ben Pfaff [Sat, 19 Oct 2019 05:55:47 +0000 (05:55 +0000)]
pivot-table: Also dump sizing info in pivot_table_dump().
Ben Pfaff [Sat, 19 Oct 2019 05:53:00 +0000 (05:53 +0000)]
pivot-table: Minor comment and style improvements.
No behavioral changes.
Ben Pfaff [Sat, 19 Oct 2019 05:51:10 +0000 (05:51 +0000)]
pivot-table: Make struct pivot_cell public.
Ben Pfaff [Sat, 19 Oct 2019 05:49:11 +0000 (05:49 +0000)]
pivot-table: New public functions for default area and border styles.
These will have additional users in upcoming commits.
Ben Pfaff [Sat, 19 Oct 2019 05:41:58 +0000 (05:41 +0000)]
render: Change style for footnote blocks.
This better matches the style output by SPSS.
Ben Pfaff [Sat, 19 Oct 2019 05:41:25 +0000 (05:41 +0000)]
driver: Do not accumulate marked-up text.
The output engine accumulates lines of text into blocks and outputs them
all at once. This doesn't currently work for text with markup, so this
commit disables it. It might be better to make it work, hence this
commit also adds an XXX marker.
Ben Pfaff [Sat, 19 Oct 2019 05:20:02 +0000 (05:20 +0000)]
table-item: Generalize support for layer info.
This adds support for an arbitrary number of layer text items and allows
the layer text items to have footnotes.
Ben Pfaff [Mon, 2 Dec 2019 03:29:31 +0000 (03:29 +0000)]
bit-vector: Add new functions for working with bit vectors.
These will receive their first users in an upcoming commit.
Ben Pfaff [Tue, 25 Dec 2018 04:53:09 +0000 (20:53 -0800)]
zip-reader: New function zip_reader_contains_member().
This function will have its first user in an upcoming commit.
Ben Pfaff [Mon, 26 Nov 2018 00:20:29 +0000 (16:20 -0800)]
zip-reader: New function zip_member_read_all().
This will have its first user in an upcoming commit.
Ben Pfaff [Fri, 11 Oct 2019 05:09:13 +0000 (05:09 +0000)]
table: Make table_collect_footnotes() not return NULL footnotes.
This simplifies the callers a bit.
Ben Pfaff [Fri, 11 Oct 2019 04:57:45 +0000 (04:57 +0000)]
cairo: Make footnote markers smaller than normal text size.
Ben Pfaff [Fri, 11 Oct 2019 04:15:45 +0000 (04:15 +0000)]
pivot-table: Add reference counts.
This will be more useful in an upcoming commit.
Ben Pfaff [Sun, 8 Dec 2019 02:13:37 +0000 (02:13 +0000)]
string-array: New function string_array_parse().
This will acquire its first user in an upcoming commit.
Ben Pfaff [Sun, 29 Dec 2019 04:51:50 +0000 (04:51 +0000)]
spv-file-format: Update.
John Darrington [Sun, 15 Dec 2019 08:57:40 +0000 (09:57 +0100)]
Ensure that PRAGMA_COLUMNS etc can be overridden
John Darrington [Sun, 15 Dec 2019 08:57:40 +0000 (09:57 +0100)]
Remove unused #include directives
John Darrington [Sun, 15 Dec 2019 08:57:40 +0000 (09:57 +0100)]
Remove trailing whitespace from files
Ben Pfaff [Sun, 15 Dec 2019 04:26:55 +0000 (04:26 +0000)]
spv-file-format: Improve documentation.
Ben Pfaff [Sat, 14 Dec 2019 22:28:10 +0000 (22:28 +0000)]
ascii: Open output file immediately instead of deferring it.
I do not know of a good reason to defer it, and it can be surprising to
the user if there is no output file at all if there is no output.
Ben Pfaff [Sun, 8 Dec 2019 15:46:25 +0000 (15:46 +0000)]
Smake: Add unicase/u8-totitle module.
Should fix link error caused by commit
80bafa137 (i18n: New function
utf8_to_title().)
Reported by John Darrington.
Ben Pfaff [Sat, 7 Dec 2019 19:07:11 +0000 (19:07 +0000)]
command: Put command_ids in output into title case.
This is closer to compatibility.
Ben Pfaff [Sun, 8 Dec 2019 00:51:44 +0000 (00:51 +0000)]
i18n: New function utf8_to_title().
Ben Pfaff [Sat, 7 Dec 2019 23:55:24 +0000 (23:55 +0000)]
doc: Correct documentation for pspp-convert.
Ben Pfaff [Sun, 10 Nov 2019 23:53:05 +0000 (23:53 +0000)]
string-array: Drop unused parameter from STRING_ARRAY_INITIALIZER.
This macro had no users.
Ben Pfaff [Sun, 1 Dec 2019 23:52:06 +0000 (23:52 +0000)]
spv-file-format.texi: Updates.
Ben Pfaff [Sun, 1 Dec 2019 23:52:47 +0000 (23:52 +0000)]
doc: Remove useless local variables from top-level texi files.
Ben Pfaff [Sun, 1 Dec 2019 23:45:45 +0000 (23:45 +0000)]
pspp-convert: Support decrypting SPV files.
Also, now properly understands and documents the PKCS #7 padding used
for all encrypted files.
Special thanks to Alan Mead for assistance.
John Darrington [Sat, 30 Nov 2019 12:49:03 +0000 (13:49 +0100)]
Documentation: Correct some inappropriate uses of @xref
John Darrington [Sat, 30 Nov 2019 12:37:07 +0000 (13:37 +0100)]
Update copyright notice for doc/pspp.texi
John Darrington [Fri, 29 Nov 2019 06:56:25 +0000 (07:56 +0100)]
remove stray spaces from po/automake.mk
John Darrington [Thu, 28 Nov 2019 09:09:50 +0000 (10:09 +0100)]
Remove #include <assert.h> from files which don't need it
John Darrington [Wed, 27 Nov 2019 09:14:01 +0000 (10:14 +0100)]
Delete trailing whitespace at line endings.
John Darrington [Sun, 24 Nov 2019 06:41:07 +0000 (07:41 +0100)]
Fix typos in comments
* src/ui/gui/memorandum.txt: Fix typo.
* tests/language/command.at: Remove doubled word.
John Darrington [Sun, 24 Nov 2019 06:41:07 +0000 (07:41 +0100)]
Documentation: Fix various typos
* doc/statistics.texi: Fix typos.
* doc/utilities.texi: filesystem -> file system
John Darrington [Sun, 24 Nov 2019 06:41:07 +0000 (07:41 +0100)]
Remove stray semicolon
* src/ui/gui/psppire-dialog-action-select.c: Remove extra ;
John Darrington [Sun, 24 Nov 2019 06:41:07 +0000 (07:41 +0100)]
acinclude.m4: Quote arguments to AC_DEFINE
John Darrington [Sun, 24 Nov 2019 06:41:07 +0000 (07:41 +0100)]
Update perl-module to GPLv3+
* perl-module/PSPP.xs:
* perl-module/README:
Ben Pfaff [Sun, 10 Nov 2019 18:29:17 +0000 (18:29 +0000)]
LOOP: Limit number of iterations when IF clauses present.
The LOOP command is limited by the MXLOOPS setting in some cirumstances.
Until now, if an IF clause was present, MXLOOPS was disregarded.
However, this behavior does not match SPSS behavior. This commit makes
LOOP honor MXLOOPS even when IF is present, for compatibility.
With this commit, only the presence of an index clause makes LOOP
disregard MXLOOPS.
Thanks to Frans Houweling for reporting this bug.
John Darrington [Tue, 5 Nov 2019 15:49:35 +0000 (16:49 +0100)]
Fixed incorrect syntax generated by the Select Random Cases dialog.
Reported by: Eric E Graig
Ben Pfaff [Sat, 19 Oct 2019 05:57:32 +0000 (05:57 +0000)]
pivot-table: Use ctime_r() instead of ctime(), for thread safety.
Ben Pfaff [Fri, 11 Oct 2019 04:32:31 +0000 (04:32 +0000)]
ascii: Avoid buffer overread outputting page longer than allocated lines.
This does seem like an odd case but I triggered it at one point and it
costs little to check for it.