Commit graph

26 commits

Author SHA1 Message Date
wen
886cb4e66a Update to 1.001
Upstream changes:
=== Version 1.001 (2020-11-05)

 lib/PDF/Table.pm  fix edge case where no borders led to no rules [GH 55].

 t/manifest.t, t/pod.t
  Make author-only (AUTHOR_TESTING=1). ref [GH 61]

 lib/PDF/Table.pm, t/pod.t
  POD change =head5 to =head4, to look better and stop older POD checkers
   from complaining (in t/pod.t). Also minimum Test::Pod version 1.52
   (was 1.00). ref [GH 61].

 examples/sample1.pl, t/lib/TestData.pm, INFO/Deprecated, lib/PDF/Table.pm
  Replace deprecated setting names by current names in the POD, examples, and
   t-tests. After November 2022, settings names (args) with a leading dash
   (hyphen) will no longer be permitted.

=== Version 1.000 (2020-11-03)

 INFO/Deprecated, INFO/Table.html, lib/PDF/Table.pm
  Final cleanup of POD and generation of HTML documentation, and listing of
   all deprecated setting names.

 t/lib/PDFAPI2Mock.pm  add linedash dummy call so t tests can run.

 lib/PDF/Table.pm, MANIFEST, examples/border_rules.pl, util/3_examples.pl
  Old "borders" was vertical and horizontal rules PLUS outside rules (frame).
   Separate into "borders" (outside) and "rules" (inside). Add border_rules.pl
   example to illustrate.

 examples/chess.pl  with DejaVu-Sans, can use chess piece images

 .github/worksflows/test.yml, README.md  minor fixes in README to make lint
   run happily, stop checking Table.html.

 examples/*.pl  Allow -A or -B on the command line (case insensitive) to
   override PDFpref file (if any) setting. This speeds up testing for PDF::API2
   vs PDF::Builder (default).

 lib/PDF/Table.pm, INFO/Deprecated, INFO/Table.html, MANIFEST,
   examples/chess.pl, t/PDF-Table.t, t/lib/PDFAPI2Mock.pm, util/3_examples.pl
  Clean up handling of minimum and maximum cell widths (min_w and max_w).
   Clean up handling of background and foreground colors. Add chess.pl example
   to show off color handling. Update t-tests for slight coordinate changes.

 Add row_props (row properties) similar to column_props, to set things on a
   per-row basis.

 If the table spills over to a new page, and next_y and/or next_h was NOT
   given, issue a warning and for a default use 90% of the media height for
   next_y and 80% for next_h (ref ticket #11). This should be better than
   using the (start_)y and (start_)h values for the table.

 Add new, more consistent aliases for a number of settings (ref ticket #13).
   The old setting names are still available for at least TWO YEARS, after
   which, they will be REMOVED. Over the next two years you should update your
   code to use the new setting names. The settings involved are:
      'start_y'               is now 'y'
      'start_h'               is now 'h'
      'row_height'            is now 'min_rh'
      'background_color'      is now 'bg_color'
      'background_color_odd'  is now 'bg_color_odd'
      'background_color_even' is now 'bg_color_even'
      'font_color'            is now 'fg_color'
      'font_color_odd'        is now 'fg_color_odd'
      'font_color_even'       is now 'fg_color_even'
      'font_underline'        is now 'underline'
      'lead'                  is now 'leading'
   These are listed in INFO/Deprecated. In the near future, the examples and
   t-tests will be updated to use the new setting names.

 Ship with Table.html (documentation) in INFO/. Update MANIFEST.

 Remove 010_fonts.pl from the util/3_examples.pl list. I'm still not sure why
   it should be in the examples -- basically, it shows that UTF-8 doesn't work
   with core fonts, but that's already a documented limitation (in
   PDF::Builder). 010_fonts.pl is still in the examples/ directory, if anyone
   wants to play with it.

 Add INFO/Deprecated to list names and interfaces scheduled to be removed in
   the future (at least 2 years). MANIFEST updated.

 Split out older Changes list into INFO/Changes_2019. MANIFEST updated.

 Increase default cell padding to 2pt. See documentation "COMPATIBILITY" for
   how to get the old behavior (0pt padding). t/Basics.t, t/Colspan.t,
   t/PDF-Table.t expected write locations updated. examples/colspan.pl and
   examples/header.pl were widened slightly to accommodate the padding.

 Make "odd/even" row consistent with or without a header (repeated or not),
   particularly when a table is split across pages, and when a row itself is
   split in such a case. See documentation "COMPATIBILITY" for how to get the
   old behavior.

 Header 'repeat' default changed from 0 (no) to 1 (yes), as most of the time
   a user will want to repeat any header on each new page. Suppress repeating
   a header with a value of 0. See documentation "COMPATIBILITY" for how to
   get the old behavior.

 Currently, PDF::Table is shipped to use the new behaviors, with as much
   compatibility as possible with existing code (see $compat_mode in Table.pm).
   Unless you have need to use the old behaviors for existing code, we
   suggest that you leave $compat_mode as 0, use the 'compatibility' setting, or
   individually set the flags, to make use of the new behaviors. Also use the
   new settings names, unless there is a need for compatibility in existing
   code. Eventually, use of the old names will produce warnings, and later,
   error messages, but the old behaviors should be available for a long time.
   You should examine your existing code and plan to update it over time.

 Initialize %arg entries (defaults) so no uninitialized errors. #57 reported by
   Larry Leszczynski (larryl) for text_block() along with PR.

 Minor build process cleanup
 Minor spelling and typo fixes in POD and examples
2020-11-15 07:00:37 +00:00
wiz
5c28de509e p5-PDF-Table: update to 0.12.
Version 0.12.0 (2020-04-09)

 Permit either PDF::API2 or PDF::Builder (#51)
 Don't use UTF-8 with corefonts
 General cleanup of typos and misspellings in Table.pm
 Minimum Perl 5.10 in Makefile.PL (#53)
 More cleanup of text in Table.pm
 Add tools (util) for running PerlCritic, t-tests, examples
 Clean up code to pass PerlCritic
 Clean up examples to run with either API2 or Builder. PDFpref file to declare
   which to use if both available
 Comments in t tests about use of Mock PDFAPI2
 Document needed and optional prerequisite modules
2020-09-07 14:45:32 +00:00
wiz
00da7815c0 *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
wen
d9baa6e49d Update to 0.11.0
Upstream changes:
Version 0.11.0 Colspan feature by domm
2019-09-18 14:29:41 +00:00
wiz
84e123ddd2 Bump PKGREVISIONs for perl 5.30.0 2019-08-11 13:17:48 +00:00
nia
d5c846b3af Update packages using a search.cpan.org HOMEPAGE to metacpan.org.
The former now redirects to the latter.

This covers the most simple cases where http://search.cpan.org/dist/name
can be changed to https://metacpan.org/release/name.

Reviewed by hand to hopefully make sure no unwanted changes sneak in.
2019-06-30 20:14:13 +00:00
wiz
93b46879c7 Recursive bump for perl5-5.28.0 2018-08-22 09:43:40 +00:00
wen
bcacd8f79f Update to 0.10.1
No upstream changelog found.
2018-04-23 13:28:02 +00:00
wiz
920fe634f8 p5-PDF-Table: update to 0.10.0.
Version 0.10.0 Introduces underlined text in cells
2018-03-04 15:35:17 +00:00
wiz
4a27d9e53b p5-PDF-Table: update to 0.9.14.
Changes not documented.
2017-11-24 14:37:00 +00:00
wiz
7037d25cef p5-PDF-Table: update to 0.9.13.
Version 0.9.13 Fixed issue #33 - Desislav Kamenov
2017-09-18 12:02:42 +00:00
ryoon
543e538acd Recursive revbump from lang/perl5 5.26.0 2017-06-05 14:24:20 +00:00
wiz
86a78fce2e Bump PKGREVISION for perl-5.24. 2016-06-08 19:22:13 +00:00
wen
48c701811b Update to 0.9.12
Upstream changes:
Version 0.9.12 - hotfix for failing tests - Desislav Kamenov

Version 0.9.11 Changes by contributors on GitHub - Keith Carangelo, Mohammad S Anwar

3264342 Added cell_render_hook subroutine to create hyperlinks
0fb2e57 Fixed broken link to Rick Measham's tutorial.
8361ec3 Fixed new_page_func valid setting
38610ec Header alignment default should be column alignment
e3ec184 Added parameter checking in the method table(). - Added unit test t/table.t script.
a73e67f Proposed fix to the CPANTS error as below: - Added standard unit test for MANIFEST file (t/manifest.t). - Removed MYMETA.json, MYMETA.yml and Makefile (auto generated files)
2016-06-05 08:15:10 +00:00
mef
dd655617ce Update to 0.9.10
----------------
Version 0.9.10 Changes by contributors on GitHub - azawawi, joenio

6fab323 Modernize hashbang #! to be more perlbrew friendly
58c36df Add relative link to Changes file
efaf173 Simple installation/development commmands
cfbcf48 More README.md simplification
a7889bc Fix README.md
43c2182 Fix warning: Useless use of greediness modifier '?' in regex
db4bc44 Fix #17, page parameter should be optional
f93ed16 "utf8" pragma solves issue with characters rendered wrong
e69524e fix script that test issue #15
5d5628f avoid warnind about use of greediness modifier
2016-02-04 11:56:39 +00:00
agc
2eddae48e5 Add SHA512 digests for distfiles for textproc category
Problems found locating distfiles:
	Package cabocha: missing distfile cabocha-0.68.tar.bz2
	Package convertlit: missing distfile clit18src.zip
	Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 01:59:17 +00:00
wen
71e461a8c8 Update to 0.9.9
Upstream changes:
Version 0.9.8/9

Added MANIFEST.SKIP and fixed a broken build with 0.9.8
Added some utility methods to new()
2015-10-04 10:51:12 +00:00
wiz
2e65d464e8 Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
2015-06-12 10:50:58 +00:00
mef
ffb4b721c4 Update 0.9.3 to 0.9.7
---------------------
Version 0.9.7 - for a detailed log and changed files visit GitHub
----------------------------
- Reviewed and updated README
- Huge POD rewrite
- Adding a small script that generates HTML from POD and applies CSS from
  CPAN. Useful for reviewing the POD before release.
- Added a test for POD validation
- Added an example file that can test GitHub Issues #8, #9, #10
- GitHub [Issue #9] [Issue #10] Fixed cell_props applied to a different
  row when 'Repeat Headers' is enabled
- Introduced column_numbers variable to avoid using $record in a broader
  scope. Further improvement needed.
- Header row height is copied to each new page when 'Repeat Headers' is
  enabled
- Fixed messing up row height when repeat headers is enabled due to
  access by array index vs shift/unshift
- Fixed row height for rows with text blocks
- Headers_props variable has been wrongly initialised with 0 causing a
  copy of the first data row even when header props are not passed as
  parameter
- Added initialisation of header props justify param so that column and
  cell properties are not affecting the default value.
- Fixed an issue with messing up row properties when repeating the header
  row on each page.
- Examples have been formatted.
- One new example added (header.pl) for demonstrating how header row can
  be added to multiple pages.
- No need to export variables. Added one more test.
- Removed pad_w and pad_h local variable as useless
- Fixed typo causing a bug with row_height param.  Added example file for
  row_height. To be used for writing a test.
- Added POD for row_height param
- Row counting should not be skipped if it is first row.
- Added one more test(duplicates existing) but only to have base.
- Extracted PDF::API2 Mock as a separate package.  Created New test with
  the very basics.  Create a new package that will hold predefined data
  for tests so it can be reused.
- Fixed a variable that masks earlier declaration.
- Fixed Issue #4 - Row height is calculated correctly depending on font
  size.  Some variables are renamed to more meaningful.  Row counting is
  done in a new way with single counter that is used for column and cell
  props retrieval.
- Row height is now calculated for each row based on maximum font size
  from all cells.  Refactored some variable names and unified row
  counting during column size calculation phase.
- Fixed doc details in POD
- Cosmetic changes
- Decreased indent and reduced if body.  For easier review, diff with
  whitespace changes disabled.
- Added github url in readme

Version 0.9.6
----------------------------
- Fixed typo in POD. Closes #71816 Thanks to Gregor Herrmann
- Small code refactoring.
- Added patch for infinite loop fix. Closes #77376 Thanks to John Bazik
- Added patch for header justification. Closes #77566 Thanks to James
   Lance
- Added horizontal_borders, vertical_borders params to table(). Closes
  #79883 Thanks to Eric Johnson

Version 0.9.5 - 18.Oct.2011
----------------------------
- MANIFEST was missing sample pdf file.
- Accidently left alternative code for infinite loop fix commented out.
  Fixed.  Added a test for that.

Version 0.9.4 - 17.Oct.2011
----------------------------
- Don't bump row count when row spans a page.  Closes #67401.
- Fixed bug: don't call text_block if record width is exactly cell width.
- Fixed bug in text_block: bottom is (top - height), not (baseline - height).
- Example script typo fixed.  Closes #55133.
- Don't set up strokes when border is 0.  Apparently breaks Acrobat.
  Closes #40705 and #55137.
- Changed print warnings to carp.  Closes #38007.
- Added center justification for columns and cells.  Tests, too.  Closes
  #37924.
- Fixed infinite loop caused by uninitialized $2.  Thanks to Petri
  Kaurinkoski.  Closes #34017.
- Fixed perl warning if $col_prop->{min_w} is undef.  Thanks to Matthias
  Pitzl (NEPOS).  Closes #30720.
- Fixed default header background color bug, closes #28542.
- Added mock PDF::API2 packages to test script and added tests.
- Improve column width calculations so wider content gets wider columns.
  Added column width test.  Thanks to Barrie Slaymaker (RBS).  Closes
  #26158.
2015-04-26 08:48:16 +00:00
wiz
7eeb51b534 Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
2014-05-29 23:35:13 +00:00
wiz
d2ca14a3f1 Bump all packages for perl-5.18, that
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package

Like last time, where this caused no complaints.
2013-05-31 12:39:57 +00:00
asau
1f96787c11 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-25 06:55:37 +00:00
wiz
8b5d49eb78 Bump all packages that use perl, or depend on a p5-* package, or
are called p5-*.

I hope that's all of them.
2012-10-03 21:53:53 +00:00
obache
a7a8ace5fe Revision bump after updating perl5 to 5.14.1. 2011-08-14 14:52:49 +00:00
obache
8dab7386d1 Change MASTER_SITES subdir to usual one. 2011-05-19 04:52:00 +00:00
dmcmahill
9871bee9ea Initial import of textproc/p5-PDF-Table version 0.9.3
This package was submited as part of PR pkg/43929 which adds the Koha Integrated Library System
submitted by Edgar Fuß

-------------------------------------

This module is intended for table generation using PDF::API2
2011-05-18 00:41:10 +00:00