texlive[41332] Master: ietfbibs (8jun16)
commits+karl at tug.org
commits+karl at tug.org
Fri Jun 10 00:56:07 CEST 2016
Revision: 41332
http://tug.org/svn/texlive?view=revision&revision=41332
Author: karl
Date: 2016-06-10 00:56:07 +0200 (Fri, 10 Jun 2016)
Log Message:
-----------
ietfbibs (8jun16)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/CHANGELOG.md
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/LICENSE.md
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/Makefile
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/README.md
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib.awk
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/ids.tex
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib.awk
trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfcs.tex
trunk/Master/tlpkg/tlpsrc/ietfbibs.tlpsrc
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/CHANGELOG.md (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/CHANGELOG.md 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,11 @@
+## [v1.0.0](https://github.com/mor1/ietfbibs/tree/v1.0.0) (2016-06-08)
+[Full Changelog](https://github.com/mor1/ietfbibs/compare/v0.0.1...v1.0.0)
+
++ Update RFC and Internet Draft parsers
++ Provide script harnesses
++ Provide PDF generation via LaTeX
+
+
+## [v1.0.0](https://github.com/mor1/ietfbibs/tree/v0.0.1)
+
+First import to GitHub.
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/CHANGELOG.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/LICENSE.md
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/LICENSE.md (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/LICENSE.md 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,19 @@
+Copyright (c) 2000-2016 Richard Mortier <mort at cantab.net>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/LICENSE.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/Makefile (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/Makefile 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,20 @@
+.PHONY = all clean
+
+LATEX = latexmk -xelatex
+
+all: rfcs.pdf ids.pdf
+
+clean:
+ $(LATEX) -C
+ $(RM) rfcs.bib rfcs.bbl rfcs.run.xml
+ $(RM) ids.bib ids.bbl ids.run.xml
+ $(RM) -r auto
+
+rfcs.bib:
+ ./rfc2bib >| rfcs.bib
+
+ids.bib:
+ ./id2bib >| ids.bib
+
+%.pdf: %.tex %.bib
+ $(LATEX) $*
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/README.md 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,9 @@
+IETF BibTeX Creation
+====================
+
+This project is licensed under the MIT license.
+
+These are some [gawk](https://www.gnu.org/software/gawk/) scripts for processing
+various IETF index files to produce BibTeX. As regex based parsers they're quite
+brittle and rely on consistent formatting of the input. Also included are some
+shell scripts to drive them.
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib 2016-06-09 22:53:55 UTC (rev 41331)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib 2016-06-09 22:56:07 UTC (rev 41332)
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/x-shellscript
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib.awk
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib.awk (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib.awk 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,96 @@
+# Copyright(c) 2000-2016 Richard Mortier <mort at cantab.net>
+# Copyright(c) 2010 Paul Jakma <paul at jakma.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+BEGIN {
+ FS="[\"<>]";
+ RS="(\n[A-Za-z0-9].*\n[^ ]+\n)* \"";
+
+ # banner
+ printf("% This file auto-generated from id-index.txt by id2bib.awk\n");
+ printf("% by Richard Mortier <mort at cantab.net>.\n");
+ printf("%\n");
+ printf("% Date: %s\n", strftime());
+ printf("\n");
+ printf("@string{ietf=\"{IETF}\"}\n\n");
+}
+
+function get_authors(field, i, first) {
+ first = 1;
+ authors = "";
+
+ for (i = field; i <= NF; i++) {
+ if (length($i) == 0) continue;
+ if ($i ~ /[0-9]{1,2}[-/][[:alpha:]]{3}[-/][0-9]{2}/)
+ break;
+ if ($i ~ /(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}/)
+ break;
+
+ if (first) first = 0;
+ else authors = authors " and ";
+ authors = authors $i;
+ }
+ return i;
+}
+
+NF > 1 {
+ # guard '$', '_', '#' from BibTeX/LaTeX in all fields
+ gsub(/\$/, "\\$", $0 ); # ");
+ gsub(/_/, "\\_", $0 ); # ");
+ gsub(/#/, "\\" "#", $0 ); # ");
+
+ for (i = 1; i <= NF; i++) {
+ gsub(/[ \n\t]+/, " ", $i);
+ sub(/^[ ]+/,"",$i);
+ }
+
+ title = gensub(/([A-Z])/, "{\\1}", "g", $1);
+ idstr = $3;
+ abstract = $4;
+
+ authors = "";
+ n=split($2, authors_date, ",");
+ for (i=0; i<n-1; i++)
+ {
+ a = authors_date[i];
+ gsub(/[ \n\t]+/, " ", a);
+ sub(/^[ ]+/, "", a);
+
+ if(a == "") continue;
+ else if(authors == "") authors = a
+ else authors = authors " and " a;
+ }
+ date = authors_date[n-1];
+ split(date, ymd, "-");
+ year = ymd[1];
+ month = ymd[2];
+ day = ymd[3];
+
+ printf("@Misc{id:%s,\n", idstr) ;
+ printf(" author = {%s},\n", authors) ;
+ printf(" title = {%s},\n", title) ;
+ printf(" howpublished = {Internet Draft},\n") ;
+ printf(" month = %s,\n", month) ;
+ printf(" year = %s,\n", year) ;
+ printf(" note = {%s},\n", "<" idstr ".txt>") ;
+ printf(" abstract = {%s},\n", abstract) ;
+ printf(" url = {{http://tools.ietf.org/html/%s}},\n", idstr);
+ printf("}\n\n") ;
+}
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/id2bib.awk
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/ids.tex
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/ids.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/ids.tex 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,16 @@
+\documentclass{book}
+
+\usepackage{showkeys}
+\usepackage[
+ backend=biber,
+ natbib=true,
+ style=numeric,
+ sorting=none
+ ]{biblatex}
+
+\bibliography{ids}
+
+\begin{document}
+\nocite{*}
+\printbibliography
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/ids.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib 2016-06-09 22:53:55 UTC (rev 41331)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib 2016-06-09 22:56:07 UTC (rev 41332)
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/x-shellscript
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib.awk
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib.awk (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib.awk 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,117 @@
+# Copyright(c) 2000-2016 Richard Mortier <mort at cantab.net>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files(the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+BEGIN {
+ FS="[.] "; RS="\n\n";
+
+ printf("% This file auto-generated from rfc-index.txt by rfc2bib.awk\n");
+ printf("% by Richard Mortier <mort at cantab.net>.\n");
+ printf("%\n");
+ printf("% Date: %s\n", strftime());
+ printf("\n");
+ printf("@string{ietf=\"{IETF}\"}\n\n");
+}
+
+/^[0-9][0-9][0-9][0-9] Not Issued./ {
+ number = substr($1, 0, 4);
+ gsub(/^0+/, "", number);
+
+ printf("@TechReport{rfc:%s,\n", number);
+ printf(" key = {RFC%s},\n", number);
+ printf(" author = {N/A},\n");
+ printf(" title = {{Not Issued}},\n");
+ printf(" institution = ietf,\n");
+ printf(" type = {{RFC}},\n");
+ printf(" year = {N/A},\n");
+ printf("}\n\n");
+ next;
+}
+
+/^[0-9][0-9][0-9][0-9] /{
+ gsub(/[\n]/, "", $0);
+ gsub(/[ ]+/, " ", $0);
+
+ # guard '$', '_', '#' from BibTeX/LaTeX in all fields
+ gsub(/\$/, "\\$", $0 ); # ");
+ gsub(/_/, "\\_", $0 ); # ");
+ gsub(/#/, "\\" "#", $0 ); # ");
+
+ number = substr($1, 0, 4);
+ gsub(/^0+/, "", number);
+ printf("@TechReport{rfc:%s,\n", number);
+ printf(" key = {RFC%s},\n", number);
+
+ # authors are all the fields "in the middle"; can be separated by
+ # commas or ampersands
+ authors = $2;
+ for(i=3; i < NF-1; i++)
+ {
+ if(length( $(i) ) > 1)
+ {
+ authors =( authors ".~" $(i) );
+ }
+ else
+ {
+ authors =( authors "." $(i) );
+ }
+ }
+ gsub(/,| &/, " and", authors);
+ gsub(/^ /, "", authors);
+ if(length(authors) == 0)
+ {
+ authors = "author list not available";
+ }
+ printf(" author = {%s},\n", authors );
+
+ # guard capitals and '&' in the title
+ tmp = substr($1, 6);
+ title = gensub(/([A-Z])/, "{\\1}", "g", tmp);
+ gsub(/&/, "\\" "\\&", title ); # ");
+ gsub(/ - /, " -- ", title ); # ");
+ printf(" title = {%s},\n", title);
+
+ # just let the institution be the IETF for now
+ printf(" institution = ietf,\n");
+
+ y_fld = $(NF-1);
+ y_pos = length(y_fld) - 3;
+ year = substr(y_fld, y_pos, 4);
+ if(length(year) == 0)
+ {
+ year = "{year not available}";
+ }
+ printf(" year = %s,\n", year);
+
+ printf(" type = {RFC},\n");
+ printf(" number = %s,\n", number);
+
+ # early RFCs: mmm-dd-yyyy; later RFCs: month yyyy
+ m_fld = $(NF-1);
+ gsub(/-| |\n|[0-9]/, "", m_fld);
+ month = substr(tolower(m_fld), 0, 3);
+ if(length(month) == 0)
+ {
+ month = "{month not available}";
+ }
+ printf(" month = %s,\n", month);
+
+ printf(" annote = {%s},\n", $NF);
+ printf("}\n\n");
+}
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfc2bib.awk
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfcs.tex
===================================================================
--- trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfcs.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfcs.tex 2016-06-09 22:56:07 UTC (rev 41332)
@@ -0,0 +1,16 @@
+\documentclass{book}
+
+\usepackage{showkeys}
+\usepackage[
+ backend=biber,
+ natbib=true,
+ style=numeric,
+ sorting=none
+ ]{biblatex}
+
+\bibliography{rfcs}
+
+\begin{document}
+\nocite{*}
+\printbibliography
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/bibtex/ietfbibs/rfcs.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2016-06-09 22:53:55 UTC (rev 41331)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2016-06-09 22:56:07 UTC (rev 41332)
@@ -300,7 +300,7 @@
hpsdiss hrefhide hrlatex hvfloat hvindex
hypdvips hyper hypernat hyperref hyperxmp hyph-utf8 hyphen-base
hyphenat hyphenex hyplain
- ibycus-babel ibygrk icsv idxcmds idxlayout ieeepes
+ ibycus-babel ibygrk icsv idxcmds idxlayout ieeepes ietfbibs
ifetex iffont ifmslide ifmtarg ifnextok ifoddpage ifplatform ifsym
iftex ifthenx ifxetex
iitem ijmart ijqc
Modified: trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc 2016-06-09 22:53:55 UTC (rev 41331)
+++ trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc 2016-06-09 22:56:07 UTC (rev 41332)
@@ -85,6 +85,7 @@
depend harvard
depend harvmac
depend historische-zeitschrift
+depend ietfbibs
depend ijqc
depend inlinebib
depend iopart-num
Added: trunk/Master/tlpkg/tlpsrc/ietfbibs.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list