From ff79e08c4e182a0ca600f033c8baa842056f92f9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 25 Mar 2016 22:06:44 +0000 Subject: bibtexperllibs (25mar16) git-svn-id: svn://tug.org/texlive/trunk@40139 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/support/bibtexperllibs/BibTeXParser.3pm | 26 +++++++-------- .../support/bibtexperllibs/BibTeXParserAuthor.3pm | 38 +++++++++++++++------- .../support/bibtexperllibs/BibTeXParserEntry.3pm | 37 ++++++++++++--------- .../doc/support/bibtexperllibs/LaTeXToUnicode.3pm | 8 ++--- .../bibtexperllibs/LaTeXToUnicodeTables.3pm | 8 ++--- .../scripts/bibtexperllibs/BibTeX/Parser.pm | 20 ++++-------- .../scripts/bibtexperllibs/BibTeX/Parser/Author.pm | 21 +++++------- .../scripts/bibtexperllibs/BibTeX/Parser/Entry.pm | 37 +++++++++++---------- .../support/bibtexperllibs/BibTeX-Parser/Changes | 3 ++ .../support/bibtexperllibs/BibTeX-Parser/META.yml | 2 +- .../bibtexperllibs/BibTeX-Parser/Makefile.PL | 2 +- .../support/bibtexperllibs/BibTeX-Parser/README | 4 +-- .../support/bibtexperllibs/BibTeX-Parser/dist.ini | 2 +- .../bibtexperllibs/BibTeX-Parser/t/13_output.t | 11 +++++-- .../BibTeX-Parser/t/bibs/english.bib | 2 +- .../source/support/bibtexperllibs/README | 11 ++++--- 16 files changed, 127 insertions(+), 105 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParser.3pm b/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParser.3pm index fa79185547d..fb4922b4805 100644 --- a/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParser.3pm +++ b/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParser.3pm @@ -124,16 +124,13 @@ .\" ======================================================================== .\" .IX Title "BibTeX::Parser 3pm" -.TH BibTeX::Parser 3pm "2015-10-24" "perl v5.10.1" "User Contributed Perl Documentation" +.TH BibTeX::Parser 3pm "2016-03-24" "perl v5.10.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" BibTeX::Parser \- A pure perl BibTeX parser -.SH "VERSION" -.IX Header "VERSION" -version 0.65 .SH "SYNOPSIS" .IX Header "SYNOPSIS" Parses BibTeX files. @@ -168,11 +165,6 @@ Parses BibTeX files. \& } \& } .Ve -.SH "NAME" -BibTeX::Parser \- A pure perl BibTeX parser -.SH "VERSION" -.IX Header "VERSION" -version 0.65 .SH "FUNCTIONS" .IX Header "FUNCTIONS" .SS "new" @@ -187,18 +179,26 @@ Parameters: .SS "next" .IX Subsection "next" Returns the next parsed entry or undef. -.SS "\s-1SEE\s0 \s-1ALSO\s0" -.IX Subsection "SEE ALSO" +.SH "NOTES" +.IX Header "NOTES" +The fields \f(CW\*(C`author\*(C'\fR and \f(CW\*(C`editor\*(C'\fR are canonized, see +BibTeX::Parser::Author +.SH "SEE ALSO" +.IX Header "SEE ALSO" .IP "\(bu" 4 BibTeX::Parser::Entry .IP "\(bu" 4 BibTeX::Parser::Author +.SH "VERSION" +.IX Header "VERSION" +version 0.69 .SH "AUTHOR" .IX Header "AUTHOR" -Gerhard Gossen +Gerhard Gossen and +Boris Veytsman .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" -This software is copyright (c) 2013 by Gerhard Gossen. +This software is copyright (c) 2013\-2016 by Gerhard Gossen and Boris Veytsman .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserAuthor.3pm b/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserAuthor.3pm index 0f1509c5489..75f48fa183d 100644 --- a/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserAuthor.3pm +++ b/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserAuthor.3pm @@ -124,16 +124,13 @@ .\" ======================================================================== .\" .IX Title "BibTeX::Parser::Author 3pm" -.TH BibTeX::Parser::Author 3pm "2015-10-24" "perl v5.10.1" "User Contributed Perl Documentation" +.TH BibTeX::Parser::Author 3pm "2016-03-24" "perl v5.10.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" -BibTeX::Parser::Author -.SH "VERSION" -.IX Header "VERSION" -version 0.65 +BibTeX::Author \- Contains a single author for a BibTeX document. .SH "SYNOPSIS" .IX Header "SYNOPSIS" This class ist a wrapper for a single BibTeX author. It is usually created @@ -153,11 +150,6 @@ by a BibTeX::Parser. \& \& my ($first, $von, $last, $jr) = BibTeX::Author\->split($fullname); .Ve -.SH "NAME" -BibTeX::Author \- Contains a single author for a BibTeX document. -.SH "VERSION" -.IX Header "VERSION" -version 0.65 .SH "FUNCTIONS" .IX Header "FUNCTIONS" .SS "new" @@ -182,12 +174,34 @@ with four strings, some of them possibly empty. .SS "to_string" .IX Subsection "to_string" Return string representation of the name. +.SH "NOTES" +.IX Header "NOTES" +BibTeX allows three representations of a person's name: +.IP "1." 4 +First von Last +.IP "2." 4 +von Last, First +.IP "3." 4 +von Last, Jr, First +.PP +The module always converts the first form to the second of third one +to allow simple string comparisons. +.PP +The algorithm to determine the von part is the following: von part +consists of tokens where the first letter at brace level 0 is in lower case. +Anything in a \*(L"special characters\*(R" is on brace level 0. Thus the following +tokens are considered von parts: \f(CW\*(C`von\*(C'\fR, \f(CW\*(C`\eNOOP{von}Von\*(C'\fR, and +the following token is not: \f(CW\*(C`{von}\*(C'\fR +.SH "VERSION" +.IX Header "VERSION" +version 0.69 .SH "AUTHOR" .IX Header "AUTHOR" -Gerhard Gossen +Gerhard Gossen and +Boris Veytsman .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" -This software is copyright (c) 2013 by Gerhard Gossen. +This software is copyright (c) 2013\-\-2016 by Gerhard Gossen and Boris Veytsman. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserEntry.3pm b/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserEntry.3pm index c145295b33a..e2d9405b1cf 100644 --- a/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserEntry.3pm +++ b/Master/texmf-dist/doc/support/bibtexperllibs/BibTeXParserEntry.3pm @@ -124,16 +124,13 @@ .\" ======================================================================== .\" .IX Title "BibTeX::Parser::Entry 3pm" -.TH BibTeX::Parser::Entry 3pm "2015-10-24" "perl v5.10.1" "User Contributed Perl Documentation" +.TH BibTeX::Parser::Entry 3pm "2016-03-24" "perl v5.10.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" -BibTeX::Parser::Entry -.SH "VERSION" -.IX Header "VERSION" -version 0.65 +BibTeX::Parser::Entry \- Contains a single entry of a BibTeX document. .SH "SYNOPSIS" .IX Header "SYNOPSIS" This class ist a wrapper for a single BibTeX entry. It is usually created @@ -152,13 +149,10 @@ by a BibTeX::Parser. \& my @editors = $entry\->editor; \& \& ... +\& +\& print $entry\->to_string; \& } .Ve -.SH "NAME" -BibTeX::Entry \- Contains a single entry of a BibTeX document. -.SH "VERSION" -.IX Header "VERSION" -version 0.65 .SH "FUNCTIONS" .IX Header "FUNCTIONS" .SS "new" @@ -207,21 +201,32 @@ objects. The parameters can either be BibTeX::Author objects or strings. .PP Note: You can also change the authors with \f(CW$entry\fR\->field('editor', \f(CW$editors_string\fR) -.SS "\fIfieldlist()\fP" -.IX Subsection "fieldlist()" +.SS "fieldlist ()" +.IX Subsection "fieldlist ()" Returns a list of all the fields used in this entry. .SS "has($fieldname)" .IX Subsection "has($fieldname)" Returns a true value if this entry has a value for \f(CW$fieldname\fR. -.SS "raw_bibtex" -.IX Subsection "raw_bibtex" +.SS "raw_bibtex ()" +.IX Subsection "raw_bibtex ()" Return raw BibTeX entry (if available). +.SS "to_string ([options])" +.IX Subsection "to_string ([options])" +Returns a text of the BibTeX entry in BibTeX format. Options is +a hash. Currently only the option \f(CW\*(C`canonize_names\*(C'\fR +is supported. If true (the default), authors' and editors' +names are translated into canonical bibtex form. The command +\&\f(CW\*(C`$entry\->to_string(canonize_names=>0)\*(C'\fR overrides this behavior. +.SH "VERSION" +.IX Header "VERSION" +version 0.69 .SH "AUTHOR" .IX Header "AUTHOR" -Gerhard Gossen +Gerhard Gossen and +Boris Veytsman .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" -This software is copyright (c) 2013 by Gerhard Gossen. +This software is copyright (c) 2013\-2016 by Gerhard Gossen and Boris Veytsman .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicode.3pm b/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicode.3pm index 8c53a9fb0ec..32f5e8a75bf 100644 --- a/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicode.3pm +++ b/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicode.3pm @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "LaTeX::ToUnicode 3pm" -.TH LaTeX::ToUnicode 3pm "2015-10-24" "perl v5.10.1" "User Contributed Perl Documentation" +.TH LaTeX::ToUnicode 3pm "2015-12-28" "perl v5.10.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -133,7 +133,7 @@ LaTeX::ToUnicode \- Convert LaTeX commands to Unicode .SH "VERSION" .IX Header "VERSION" -version 0.03 +version 0.04 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 @@ -171,10 +171,10 @@ If true, the commands introduced by the package `german' (e.g. \f(CW\*(C`"a\*(C' note the missing backslash) are also handled. .SH "AUTHOR" .IX Header "AUTHOR" -Gerhard Gossen +Gerhard Gossen and Boris Veytsman .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" -This software is copyright (c) 2010 by Gerhard Gossen. +This software is copyright (c) 2010\-2015 by Gerhard Gossen and Boris Veytsman .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicodeTables.3pm b/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicodeTables.3pm index 5ffd04ef9b8..1092bb89be4 100644 --- a/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicodeTables.3pm +++ b/Master/texmf-dist/doc/support/bibtexperllibs/LaTeXToUnicodeTables.3pm @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "LaTeX::ToUnicode::Tables 3pm" -.TH LaTeX::ToUnicode::Tables 3pm "2015-10-24" "perl v5.10.1" "User Contributed Perl Documentation" +.TH LaTeX::ToUnicode::Tables 3pm "2015-12-28" "perl v5.10.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -133,7 +133,7 @@ LaTeX::ToUnicode::Tables \- Character tables for LaTeX::ToUnicode .SH "VERSION" .IX Header "VERSION" -version 0.03 +version 0.04 .SH "CONSTANTS" .IX Header "CONSTANTS" .ie n .SS "%COMMANDS" @@ -170,10 +170,10 @@ The keys of this hash are the literal escape sequences. Command names of formatting commands like \f(CW\*(C`\ett\*(C'\fR .SH "AUTHOR" .IX Header "AUTHOR" -Gerhard Gossen +Gerhard Gossen and Boris Veytsman .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" -This software is copyright (c) 2010 by Gerhard Gossen. +This software is copyright (c) 2010\-2015 by Gerhard Gossen and Boris Veytsman .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser.pm b/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser.pm index 607e661e112..5f0354f403b 100644 --- a/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser.pm +++ b/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser.pm @@ -1,6 +1,6 @@ package BibTeX::Parser; { - $BibTeX::Parser::VERSION = '0.68'; + $BibTeX::Parser::VERSION = '0.69'; } # ABSTRACT: A pure perl BibTeX parser use warnings; @@ -265,9 +265,6 @@ __END__ BibTeX::Parser - A pure perl BibTeX parser -=head1 VERSION - -version 0.66 =head1 SYNOPSIS @@ -302,15 +299,7 @@ Parses BibTeX files. } } -=for stopwords jr von - -=head1 NAME - -BibTeX::Parser - A pure perl BibTeX parser - -=head1 VERSION -version 0.65 =head1 FUNCTIONS @@ -346,6 +335,11 @@ L =back +=head1 VERSION + +version 0.69 + + =head1 AUTHOR Gerhard Gossen and @@ -353,7 +347,7 @@ Boris Veytsman =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013-2015 by Gerhard Gossen and Boris Veytsman +This software is copyright (c) 2013-2016 by Gerhard Gossen and Boris Veytsman This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Author.pm b/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Author.pm index fbd532211b4..c19bd885776 100644 --- a/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Author.pm +++ b/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Author.pm @@ -1,6 +1,6 @@ package BibTeX::Parser::Author; { - $BibTeX::Parser::Author::VERSION = '0.68'; + $BibTeX::Parser::Author::VERSION = '0.69'; } use warnings; @@ -309,11 +309,7 @@ __END__ =head1 NAME -BibTeX::Parser::Author - -=head1 VERSION - -version 0.65 +BibTeX::Author - Contains a single author for a BibTeX document. =head1 SYNOPSIS @@ -333,13 +329,7 @@ by a BibTeX::Parser. my ($first, $von, $last, $jr) = BibTeX::Author->split($fullname); -=head1 NAME -BibTeX::Author - Contains a single author for a BibTeX document. - -=head1 VERSION - -version 0.66 =head1 FUNCTIONS @@ -401,6 +391,11 @@ Anything in a "special characters" is on brace level 0. Thus the following tokens are considered von parts: C, C<\NOOP{von}Von>, and the following token is not: C<{von}> +=head1 VERSION + +version 0.69 + + =head1 AUTHOR Gerhard Gossen and @@ -408,7 +403,7 @@ Boris Veytsman =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013--2015 by Gerhard Gossen and Boris Veytsman. +This software is copyright (c) 2013--2016 by Gerhard Gossen and Boris Veytsman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Entry.pm b/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Entry.pm index 6986f0a6608..9e6ab110c0c 100644 --- a/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Entry.pm +++ b/Master/texmf-dist/scripts/bibtexperllibs/BibTeX/Parser/Entry.pm @@ -1,6 +1,6 @@ package BibTeX::Parser::Entry; { - $BibTeX::Parser::Entry::VERSION = '0.68'; + $BibTeX::Parser::Entry::VERSION = '0.69'; } use warnings; @@ -218,6 +218,10 @@ sub raw_bibtex { sub to_string { my $self = shift; + my %options=@_; + if (!exists($options{canonize_names})) { + $options{canonize_names}=1; + } my @fields = grep {!/^_/} keys %$self; @fields = sort { $self->{_fieldnums}->{$a} <=> @@ -225,11 +229,11 @@ sub to_string { my $result = '@'.$self->type."{".$self->key.",\n"; foreach my $field (@fields) { my $value = $self->field($field); - if ($field eq 'author') { + if ($field eq 'author' && $options{canonize_names}) { my @names = ($self->author); $value = join(' and ', @names); } - if ($field eq 'editor') { + if ($field eq 'editor' && $options{canonize_names}) { my @names = ($self->editors); $value = join(' and ', @names); } @@ -246,11 +250,7 @@ __END__ =head1 NAME -BibTeX::Parser::Entry - -=head1 VERSION - -version 0.66 +BibTeX::Parser::Entry - Contains a single entry of a BibTeX document. =head1 SYNOPSIS @@ -275,13 +275,7 @@ by a BibTeX::Parser. -=head1 NAME - -BibTeX::Parser::Entry - Contains a single entry of a BibTeX document. - -=head1 VERSION -version 0.66 =head1 FUNCTIONS @@ -353,9 +347,18 @@ Returns a true value if this entry has a value for $fieldname. Return raw BibTeX entry (if available). -=head2 to_string () +=head2 to_string ([options]) + +Returns a text of the BibTeX entry in BibTeX format. Options is +a hash. Currently only the option C +is supported. If true (the default), authors' and editors' +names are translated into canonical bibtex form. The command +C<$entry-Eto_string(canonize_names=E0)> overrides this behavior. + +=head1 VERSION + +version 0.69 -Returns a text of the BibTeX entry in BibTeX format =head1 AUTHOR @@ -364,7 +367,7 @@ Boris Veytsman =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013-2015 by Gerhard Gossen and Boris Veytsman +This software is copyright (c) 2013-2016 by Gerhard Gossen and Boris Veytsman This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Changes b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Changes index 3785e372e7e..e39743738f4 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Changes +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Changes @@ -1,5 +1,8 @@ Revision history for BibTeX-Parser +0.69 2016-03-24 15:13:50-04:00 + Added option canonize_names to Entry::to_string + 0.68 2016-03-10 13:45:31-05:00 Now we preserve the order of entries diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/META.yml b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/META.yml index 6ccee5fe89c..4ad914183f5 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/META.yml +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: BibTeX-Parser -version: 0.68 +version: 0.69 abstract: A pure perl BibTeX parser author: - Gerhard Gossen and Boris Veytsman diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Makefile.PL b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Makefile.PL index da91d807db7..e135d79029f 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Makefile.PL +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/Makefile.PL @@ -29,7 +29,7 @@ my %WriteMakefileArgs = ( "TEST_REQUIRES" => { "Test::More" => "0.88" }, - "VERSION" => "0.68", + "VERSION" => "0.69", "test" => { "TESTS" => "t/*.t" } diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/README b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/README index 185cd151198..2f76b0bc279 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/README +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/README @@ -1,9 +1,9 @@ This archive contains the distribution BibTeX-Parser, -version 0.68: +version 0.69: A pure perl BibTeX parser -This software is copyright (c) 2013--2015 by Gerhard Gossen and Boris Veytsman +This software is copyright (c) 2013--2016 by Gerhard Gossen and Boris Veytsman This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/dist.ini b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/dist.ini index ca341ef139b..386d1f20257 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/dist.ini +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/dist.ini @@ -1,5 +1,5 @@ name = BibTeX-Parser -version = 0.68 +version = 0.69 author = Gerhard Gossen and Boris Veytsman license = Perl_5 copyright_holder = Gerhard Gossen and Boris Veytsman diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/13_output.t b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/13_output.t index e298aa5a59e..ba0ea673cad 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/13_output.t +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/13_output.t @@ -15,13 +15,20 @@ my $parser = new BibTeX::Parser $fh; while (my $entry = $parser->next) { if($entry->key eq 'key01') { - my $result='@ARTICLE{key01, + my $result1='@ARTICLE{key01, year = {1950}, author = {Duck, Donald and Else, Someone}, title = {Title text}, month = {January~1}, }'; - is($entry->to_string,$result); + my $result2='@ARTICLE{key01, + year = {1950}, + author = {Donald Duck and Someone Else}, + title = {Title text}, + month = {January~1}, +}'; + is($entry->to_string,$result1); + is($entry->to_string(canonize_names=>0),$result2); } } diff --git a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/bibs/english.bib b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/bibs/english.bib index c7cd3409222..021b0d58f9e 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/bibs/english.bib +++ b/Master/texmf-dist/source/support/bibtexperllibs/BibTeX-Parser/t/bibs/english.bib @@ -1,4 +1,4 @@ -$Id: english.bib,v 1.3 2016/03/10 19:00:02 boris Exp $ +$Id: english.bib,v 1.4 2016/03/24 22:47:03 boris Exp $ Please notify Adrian F Clark of any additions or corrections to this list. diff --git a/Master/texmf-dist/source/support/bibtexperllibs/README b/Master/texmf-dist/source/support/bibtexperllibs/README index 65d114cced2..97327b97139 100644 --- a/Master/texmf-dist/source/support/bibtexperllibs/README +++ b/Master/texmf-dist/source/support/bibtexperllibs/README @@ -1,18 +1,19 @@ BibTeX Perl Libs - Version 1.0 + Version 1.1 Gerhard Gossen and Boris Veytsman This package provides BibTeX related Perl libraries by Gerhard Gossen, -maintained and repacked by Boris Veytsman, boris@varphi.com, for -TeXLive and other TDS-compliant distributions. The libraries are -written in pure Perl, so shoud work out of the box on any -architecture. +maintained and repackaged by Boris Veytsman for TeXLive and other +TDS-compliant distributions. The libraries are written in pure Perl, +so shoud work out of the box on any architecture. To use them in your scripts, add to the @INC variable the directory scripts/bibtexperllibs inside your TeX distribution. Changes: + version 1.1 Upgraded BibTeX::Parser to v0.69 + version 1.0 Upgraded BibTeX::Parser to v0.68 and LaTeX::ToUnicode to 0.04 version 0.2 New upstream version for BibTeX::Parser (0.66) -- cgit v1.2.3