[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#466524: marked as done (bibtex2html: bib2bib fails for field = "text {"}emphase{"} text")



Your message dated Thu, 21 Feb 2008 22:32:03 +0000
with message-id <E1JSJxT-0005tR-0i@ries.debian.org>
and subject line Bug#466524: fixed in bibtex2html 1.91-1
has caused the Debian Bug report #466524,
regarding bibtex2html: bib2bib fails for field = "text {"}emphase{"} text"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
466524: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466524
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: bibtex2html
Version: 1.90-2
Severity: normal


Hello,
bib2bib does not like bib files with the following format:

@InProceedings{somekey,
  author =       "Samuel Colin",
  title =        "A title that {"}confuses{"} bib2bib",
}

bib2bib -c 'author : "Colin"' <this file>
stopped on the first {"}.

The "-delimited fields are a legitimate alternative to {}-delimited 
fields. Furthermore, bibclean seems to prefer the "-delimitation. 

I believe this is because the lexer of bib2bib (and of bibtex2html) does not
handle braces when it has started to read a "-delimited field.

I propose the attached patch to solve the problem.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22 (PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bibtex2html depends on:
ii  ocaml-base-nox [ocaml-base-no 3.10.0-13  Runtime system for ocaml bytecode 
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  texlive-base                  2007-13    TeX Live: Essential programs and f

bibtex2html recommends no packages.

-- no debconf information
--- bibtex_lexer.mll.backup	2008-02-19 10:11:52.000000000 +0100
+++ bibtex_lexer.mll	2008-02-19 10:34:19.000000000 +0100
@@ -105,6 +105,12 @@
   | _   { token lexbuf }
 
 and string = parse
+  | '{'
+      { store_string_char '{';
+      	brace lexbuf;
+	store_string_char '}';
+	string lexbuf
+      }
   | '"'
       { () }
   | "\\\""

--- End Message ---
--- Begin Message ---
Source: bibtex2html
Source-Version: 1.91-1

We believe that the bug you reported is fixed in the latest version of
bibtex2html, which is due to be installed in the Debian FTP archive:

bibtex2html_1.91-1.diff.gz
  to pool/main/b/bibtex2html/bibtex2html_1.91-1.diff.gz
bibtex2html_1.91-1.dsc
  to pool/main/b/bibtex2html/bibtex2html_1.91-1.dsc
bibtex2html_1.91-1_all.deb
  to pool/main/b/bibtex2html/bibtex2html_1.91-1_all.deb
bibtex2html_1.91.orig.tar.gz
  to pool/main/b/bibtex2html/bibtex2html_1.91.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 466524@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated bibtex2html package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 21 Feb 2008 23:13:29 +0100
Source: bibtex2html
Binary: bibtex2html
Architecture: source all
Version: 1.91-1
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Description: 
 bibtex2html - filters BibTeX files and translates them to HTML
Closes: 466524
Changes: 
 bibtex2html (1.91-1) unstable; urgency=low
 .
   * New upstream release. This release fixes a bug with protected double-quotes
     in bibtex fields (closes: Bug#466524).
   * debian/copyright: add proper copyright notice.
Files: 
 33fb92cfc9bc030d9d09324ecd0a6154 1123 tex optional bibtex2html_1.91-1.dsc
 19d9415d5da3681f5b99d9fa1c432e1d 69251 tex optional bibtex2html_1.91.orig.tar.gz
 8dd325b40bdbf52fbb4f8bd72e3f9f96 11442 tex optional bibtex2html_1.91-1.diff.gz
 3e877854b4ba21ecf040998ee26e4191 135116 tex optional bibtex2html_1.91-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHvffWtzWmSeC6BMERAmT6AKDbVWenlqEt1xKJu22KuA5H6ZuqSACeJl7S
ButIF/7TMyXwdXmUeLY86rc=
=jMSf
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: