From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Xiaolong Zhang (HKUCS)" Subject: ox-bibtex.el regexp is not correct when finding bibtex keys Date: Wed, 29 Jun 2016 16:39:21 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIB28-0003HN-1F for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 04:39:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIB23-0006R2-34 for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 04:39:43 -0400 Received: from mail.cs.hku.hk ([147.8.176.10]:37905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIB22-0006M1-DJ for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 04:39:39 -0400 Received: from community.cs.hku.hk (community.cs.hku.hk [147.8.175.17]) by mail.cs.hku.hk (8.14.5+Sun/8.14.5) with ESMTP id u5T8dRXG013479 for ; Wed, 29 Jun 2016 16:39:28 +0800 (HKT) Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com [209.85.214.177]) (authenticated bits=0) by community.cs.hku.hk (8.14.9/8.14.9) with ESMTP id u5T8dMlW020551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 29 Jun 2016 16:39:24 +0800 (HKT) Received: by mail-ob0-f177.google.com with SMTP id o10so3126781obp.2 for ; Wed, 29 Jun 2016 01:39:23 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi list, On line 237-241 of ox-bibtex.el of function org-bibtex-process-bib-files: ;; Update `org-bibtex-html-entries-alist'. (goto-char (point-min)) (while (re-search-forward "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\(\\w+\\)" nil t) (push (cons (match-string 1) (match-string 2)) The regexp does not allow the forward slash character, which is actually allowed for bibtex keys and is the format for DBLP. For example, "DBLP:journals/corr/VeitWVBDAACCCDD15" (http://dblp.uni-trier.de/rec/bibtex/journals/corr/VeitWVBDAACCCDD15) I hope it could be fixed as the current exporting to HTML using ox-bibtex.el does not process citation keys from DBLP. Thank you. Regards, Xiaolong