From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: org export as twiki - Failure to export with error: (wrong-type-argument stringp nil) Date: Thu, 04 Mar 2010 21:08:49 -0800 Message-ID: References: <4B900F08.3070401@ieee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnSBA-0002Ab-9W for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 02:42:36 -0500 Received: from [140.186.70.92] (port=34197 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnSB4-0002AT-Fs for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 02:42:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnSB0-0000lK-0I for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 02:42:30 -0500 Received: from lo.gmane.org ([80.91.229.12]:38513) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnSAz-0000lA-M1 for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 02:42:25 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NnQiJ-000093-Ky for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 07:08:43 +0100 Received: from c-67-164-53-215.hsd1.ca.comcast.net ([67.164.53.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2010 07:08:43 +0100 Received: from cbaoqiu by c-67-164-53-215.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2010 07:08:43 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Mario E. Munich" writes: > Dear Baoqiu, > > thanks a lot for the reply... I have done some level of debugging (I > should have probably done it before, but I was not sure of what was > going on) and I had realized that the problem is in using brackets [ ] > in the text. Hi Mario, Thanks for posting your example Org file. Now I am able to reproduce the problem and know where the bug is. Just as what you said, the problem is caused by the last line that contains strings "double[9]" and "double[3][3]". Here "[9]" and "[3]" are considered footnote references (and I don't think this is what you expected), so some code is executed to find the footnote definitions. The problem happens when the *second* "[3]" is being processed. Strictly speaking, the second "[3]" is NOT considered as a footnote reference according to ``org-footnote-re'' (see org-footnote.el), but some code in org-docbook.el and org-html.el does not use ``org-footnote-re'' and still treats it as a footnote reference. This inconsistency causes the error you saw, which is only visible in org-docbook.el. Before I try to fix this problem, I would like to get the confirmation from Carsten on the footnote syntax: whether the second "[3]", which immediately follows a character "]", should be treated as a footnote reference. To get around of the problem, you can try changing the last line to something like: - =double[9]= was less efficient that =double[3][3]=, Please let me know if you have further questions. > Please find enclosed a simple file that will depict the issue. > > Best regards, > > -Mario > #+FILETAGS: personal > > * Converting org pages to Twiki > - use docbook2twiki http://code.google.com/p/docbook2twiki/ > - Checkout docbook2twiki: <2009-09-24 Thu> > svn checkout http://docbook2twiki.googlecode.com/svn/trunk/ docbook2twiki-read-only > - retrieved r5 from that repository > - Load org-twiki.el > - Publish buffer with: M-x org-export-as-twiki > - double[9] was less efficient that double[3][3], Thanks, -- Baoqiu