diff options
Diffstat (limited to 'biblio')
-rw-r--r-- | biblio/bibtex/utils/bibcop/README.md | 1 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.1 | 2 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.dtx | 2 | ||||
-rw-r--r-- | biblio/bibtex/utils/bibcop/bibcop.pdf | bin | 343290 -> 343290 bytes | |||
-rwxr-xr-x | biblio/bibtex/utils/bibcop/bibcop.pl | 29 | ||||
-rw-r--r-- | biblio/ctan-bibdata/ctan.bib | 53 | ||||
-rw-r--r-- | biblio/ctan-bibdata/ctan.pdf | bin | 3654256 -> 3654848 bytes |
7 files changed, 54 insertions, 33 deletions
diff --git a/biblio/bibtex/utils/bibcop/README.md b/biblio/bibtex/utils/bibcop/README.md index 471c4dcdcb..cda41a8ddd 100644 --- a/biblio/bibtex/utils/bibcop/README.md +++ b/biblio/bibtex/utils/bibcop/README.md @@ -36,6 +36,7 @@ $ perl bibcop.pl --fix main.bib > fixed.bib This command will read the `main.bib` file and create `fixed.bib`, which will have the fixed and properly formatted content (well, to some extent). +Be careful, all comments will be removed. If you install the package using [`tlmgr`](https://www.tug.org/texlive/tlmgr.html), you should be able to use `bibcop` directly, without the necessity to mention Perl: diff --git a/biblio/bibtex/utils/bibcop/bibcop.1 b/biblio/bibtex/utils/bibcop/bibcop.1 index 48f55428ed..19bb874117 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.1 +++ b/biblio/bibtex/utils/bibcop/bibcop.1 @@ -1,4 +1,4 @@ -.TH bibcop 1 "2023-01-29" +.TH bibcop 1 "2023-02-13" .SH NAME bibcop \- Style Checker and Fixer of BibTeX Files (.bib) .SH SYNOPSIS diff --git a/biblio/bibtex/utils/bibcop/bibcop.dtx b/biblio/bibtex/utils/bibcop/bibcop.dtx index d3b34027c7..e688e2379e 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.dtx +++ b/biblio/bibtex/utils/bibcop/bibcop.dtx @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{bibcop} %<*package> -[2023-01-29 0.0.8 Style Checker of Bibliography Files] +[2023-02-13 0.0.9 Style Checker of Bibliography Files] %</package> %<*driver> \documentclass{ltxdoc} diff --git a/biblio/bibtex/utils/bibcop/bibcop.pdf b/biblio/bibtex/utils/bibcop/bibcop.pdf Binary files differindex 29fb6056bb..09a4e1e5d0 100644 --- a/biblio/bibtex/utils/bibcop/bibcop.pdf +++ b/biblio/bibtex/utils/bibcop/bibcop.pdf diff --git a/biblio/bibtex/utils/bibcop/bibcop.pl b/biblio/bibtex/utils/bibcop/bibcop.pl index fd774d9019..eb337fc365 100755 --- a/biblio/bibtex/utils/bibcop/bibcop.pl +++ b/biblio/bibtex/utils/bibcop/bibcop.pl @@ -36,7 +36,7 @@ my %args = map { $_ => 1 } @ARGV; my %blessed = ( 'article' => ['doi', 'year', 'title', 'author', 'journal', 'volume', 'number', 'publisher?', 'pages?'], 'inproceedings' => ['doi', 'booktitle', 'title', 'author', 'year', 'pages?', 'organization?', 'volume?'], - 'book' => ['doi', 'title', 'author', 'year', 'publisher'], + 'book' => ['title', 'author', 'year', 'publisher', 'doi?'], 'misc' => ['title', 'author', 'year', 'eprint?', 'archiveprefix?', 'primaryclass?', 'publisher?', 'organization?', 'doi?', 'url?'], ); @@ -232,38 +232,47 @@ sub check_typography { } foreach my $s (@no_space_before) { if ($value =~ /^.*\s\Q$s\E.*$/) { - return "In the '$tag', do not put a space before a $symbols{$s}" + return "In the '$tag', do not put a space before the $symbols{$s}" } } foreach my $s (@no_space_after) { if ($value =~ /^.*\Q$s\E\s.*$/) { - return "In the '$tag', do not put a space after a $symbols{$s}" + return "In the '$tag', do not put a space after the $symbols{$s}" } } foreach my $s (@space_before) { if ($value =~ /^.*[^\s]\Q$s\E.*$/) { - return "In the '$tag', put a space before a $symbols{$s}" + return "In the '$tag', put a space before the $symbols{$s}" } } foreach my $s (@space_after) { my $p = join('', @no_space_before); if ($value =~ /^.*\Q$s\E[^\s\Q$p\E].*$/) { - return "In the '$tag', put a space after a $symbols{$s}" + return "In the '$tag', put a space after the $symbols{$s}" } } foreach my $s (@spaces_around) { if ($value =~ /^.*[^\s]\Q$s\E.*$/ or $value =~ /^.*\Q$s\E[^\s].*$/) { - return "In the '$tag', put spaces around a $symbols{$s}" + return "In the '$tag', put spaces around the $symbols{$s}" } } foreach my $s (@no_spaces_around) { if ($value =~ /^.*\s\Q$s\E\s.*$/) { - return "In the '$tag', don't put spaces around a $symbols{$s}" + return "In the '$tag', don't put spaces around the $symbols{$s}" } } } } +# Check that the type is small letters. +sub check_type_capitalization { + my (%entry) = @_; + my $type = $entry{':type'}; + if (not $type =~ /^[a-z]+$/) { + return "The type '$type' must be lower-cased" + } +} + # Check that no values have non-ASCII symbols. sub check_ascii { my (%entry) = @_; @@ -463,7 +472,7 @@ sub entries { warning("Each BibTeX entry must start with '\@', what is '$char'?"); last; } - } elsif ($char =~ /[a-z]/ and $s eq 'start') { + } elsif ($char =~ /[a-zA-Z]/ and $s eq 'start') { # @article } elsif ($char eq '{' and $s eq 'start') { $entry{':type'} = substr($acc, 1); @@ -472,7 +481,7 @@ sub entries { } elsif ($char =~ /[a-zA-Z0-9]/ and $s eq 'body') { $acc = ''; $s = 'tag'; - } elsif ($char =~ /[a-zA-Z0-9_\.\-\/]/ and $s eq 'tag') { + } elsif ($char =~ /[a-zA-Z0-9_\.\-\/:]/ and $s eq 'tag') { # reading the tag } elsif ($char =~ /[a-zA-Z0-9]/ and $s eq 'value') { # reading the value without quotes or brackets @@ -631,7 +640,7 @@ if (@ARGV+0 eq 0 or exists $args{'--help'} or exists $args{'-?'}) { " --latex Report errors in LaTeX format using \\PackageWarningNoLine command\n\n" . "If any issues, report to GitHub: https://github.com/yegor256/bibcop"); } elsif (exists $args{'--version'} or exists $args{'-v'}) { - info('0.0.8'); + info('0.0.9'); } else { my ($file) = grep { not($_ =~ /^--.*$/) } @ARGV; if (not $file) { diff --git a/biblio/ctan-bibdata/ctan.bib b/biblio/ctan-bibdata/ctan.bib index c655faf221..072f767eee 100644 --- a/biblio/ctan-bibdata/ctan.bib +++ b/biblio/ctan-bibdata/ctan.bib @@ -1,7 +1,7 @@ %% bib file of all CTAN packages %% (C) Herbert Voß %% -%% created at 13-02-2023, 02:00:14 +%% created at 14-02-2023, 02:04:18 %% %% This file is provided under the terms of the LPPL v1.3 or @@ -5042,8 +5042,8 @@ title = {The \texttt{babel} package}, subtitle = {Multilingual support for \LaTeX{}, LuaLaTeX, \XeLaTeX{}, and Plain \TeX{}}, author = {Javier Bezos López and Johannes L. Braams}, - date = {2023-01-23}, - version = {3.85}, + date = {2023-02-13}, + version = {3.86}, license = {lppl1.3}, mirror = {https://mirror.ctan.org/macros/latex/required/babel/base}, url = {https://ctan.org/pkg/babel}, @@ -6703,8 +6703,8 @@ title = {The \texttt{bibcop} package}, subtitle = {Style checker for .bib files}, author = {Yegor Bugayenko}, - date = {2023-01-29}, - version = {0.0.8}, + date = {2023-02-13}, + version = {0.0.9}, license = {mit}, mirror = {https://mirror.ctan.org/biblio/bibtex/utils/bibcop}, url = {https://ctan.org/pkg/bibcop}, @@ -22140,10 +22140,10 @@ title = {The \texttt{epspdf-setup} package}, subtitle = {epspdftk with GUI installer}, author = {Siep Kroonenberg}, - date = {2020-08-29}, + date = {2023-02-13}, version = {0.6.5}, license = {other-free}, - mirror = {https://mirror.ctan.org/support/epspdf-setup}, + mirror = {https://mirror.ctan.org/obsolete/support/epspdf-setup}, url = {https://ctan.org/pkg/epspdf-setup}, annotation = {epspdf-setup is a Windows installer for and . It replaces the epspdftk from the plain @@ -22157,8 +22157,8 @@ title = {The \texttt{epspdf} package}, subtitle = {Converter for PostScript, EPS and PDF}, author = {Siep Kroonenberg}, - date = {2020-01-12}, - version = {0.6.5}, + date = {2023-02-13}, + version = {0.6.5.1}, license = {gpl2}, mirror = {https://mirror.ctan.org/support/epspdf}, url = {https://ctan.org/pkg/epspdf}, @@ -23202,6 +23202,17 @@ url = {https://ctan.org/pkg/euxunicode}, } +@manual{ctan-evangelion-jfm, + title = {The \texttt{Evangelion-JFM} package}, + subtitle = {A Japanese font metric supporting many advanced features}, + author = {Jing Huang}, + date = {2023-02-13}, + version = {1.0.0 (b)}, + license = {mit}, + mirror = {https://mirror.ctan.org/macros/luatex/generic/evangelion-jfm}, + url = {https://ctan.org/pkg/evangelion-jfm}, +} + @manual{ctan-evautofl, title = {The \texttt{evautofl} package}, subtitle = {Pages with cut lines and punch marks}, @@ -30300,9 +30311,9 @@ @manual{ctan-hagenberg-thesis, title = {The \texttt{hagenberg-thesis} package}, - subtitle = {A Collection of \LaTeX{} classes, style files, and example documents for academic manuscripts}, + subtitle = {Collection of \LaTeX{} classes, style files and example documents for academic manuscripts}, author = {Wilhelm Burger and Wolfgang Hochleitner}, - date = {2020-10-29}, + date = {2023-02-13}, version = {}, license = {cc-by-4}, mirror = {https://mirror.ctan.org/macros/latex/contrib/hagenberg-thesis}, @@ -53512,8 +53523,8 @@ title = {The \texttt{postnotes} package}, subtitle = {Endnotes for \LaTeX{}}, author = {Gustavo Barros}, - date = {2022-12-28}, - version = {0.2.0}, + date = {2023-02-13}, + version = {0.2.1}, license = {lppl1.3c}, mirror = {https://mirror.ctan.org/macros/latex/contrib/postnotes}, url = {https://ctan.org/pkg/postnotes}, @@ -55623,8 +55634,8 @@ title = {The \texttt{pst-poker} package}, subtitle = {Drawing poker cards}, author = {Herbert Voß}, - date = {2020-01-21}, - version = {0.03a}, + date = {2023-02-13}, + version = {0.03b}, license = {lgpl3}, mirror = {https://mirror.ctan.org/graphics/pstricks/contrib/pst-poker}, url = {https://ctan.org/pkg/pst-poker}, @@ -58063,8 +58074,8 @@ title = {The \texttt{ResolSysteme} package}, subtitle = {Work on linear systems using xint or pyluatex}, author = {Cédric Pierquet}, - date = {2023-02-10}, - version = {0.1.3}, + date = {2023-02-13}, + version = {0.1.4}, license = {lppl1.3c}, mirror = {https://mirror.ctan.org/macros/latex/contrib/resolsysteme}, url = {https://ctan.org/pkg/resolsysteme}, @@ -69314,8 +69325,8 @@ title = {The \texttt{tipauni} package}, subtitle = {Producing Unicode characters with TIPA commands}, author = {{Unknown}}, - date = {2023-02-12}, - version = {0.7}, + date = {2023-02-13}, + version = {0.7a}, license = {gpl3+,fdl}, mirror = {https://mirror.ctan.org/macros/unicodetex/latex/tipauni}, url = {https://ctan.org/pkg/tipauni}, @@ -77525,8 +77536,8 @@ title = {The \texttt{zref-clever} package}, subtitle = {Clever \LaTeX{} cross-references based on zref}, author = {Gustavo Barros}, - date = {2023-01-03}, - version = {0.3.3}, + date = {2023-02-13}, + version = {0.3.4}, license = {lppl1.3c}, mirror = {https://mirror.ctan.org/macros/latex/contrib/zref-clever}, url = {https://ctan.org/pkg/zref-clever}, diff --git a/biblio/ctan-bibdata/ctan.pdf b/biblio/ctan-bibdata/ctan.pdf Binary files differindex 22dba993ab..687eae9eb9 100644 --- a/biblio/ctan-bibdata/ctan.pdf +++ b/biblio/ctan-bibdata/ctan.pdf |