From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mario E. Munich" Subject: Re: Re: org export as twiki - Failure to export with error: (wrong-type-argument stringp nil) Date: Fri, 5 Mar 2010 00:15:26 -0800 Message-ID: References: <4B900F08.3070401@ieee.org> Reply-To: mariomu@ieee.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0338296329==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnShG-0003T0-Og for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 03:15:46 -0500 Received: from [140.186.70.92] (port=58869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnShE-0003Sq-Hl for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 03:15:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnShB-00064h-Td for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 03:15:43 -0500 Received: from posteaux1.caltech.edu ([131.215.239.119]:33848 helo=mail.alumni.caltech.edu) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnShB-00064R-DH for emacs-orgmode@gnu.org; Fri, 05 Mar 2010 03:15:41 -0500 Received: from mail-pz0-f173.google.com (mail-pz0-f173.google.com [209.85.222.173]) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 7A9893F038E for ; Fri, 5 Mar 2010 00:15:27 -0800 (PST) Received: by pzk3 with SMTP id 3so386705pzk.24 for ; Fri, 05 Mar 2010 00:15:27 -0800 (PST) In-Reply-To: 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: Baoqiu Cui Cc: emacs-orgmode@gnu.org, Carsten Dominik --===============0338296329== Content-Type: multipart/alternative; boundary=000e0cd32f546400360481095129 --000e0cd32f546400360481095129 Content-Type: text/plain; charset=ISO-8859-1 Dear Baoqui, thanks a lot for the solution to the problem, it works. I learned a little bit more about org-mode today and I keep learning everyday how to best use such a great emacs mode. Best regards, -Mario On Thu, Mar 4, 2010 at 9:30 PM, Baoqiu Cui wrote: > "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. > > > > Please find enclosed a simple file that will depict the issue. > > 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 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 > wanted), 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 caused the problem you saw, and it is only visible in > DocBook exporter. > > Before I try to fix the problem, I'd like to get Carsten's confirmation > on the footnote reference syntax: whether the second "[3]", which > immediately follows a character "]", should be treated as a footnote > reference. > > To get around this 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. > > > 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 > --000e0cd32f546400360481095129 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Baoqui,

thanks a lot for the solution to the problem, it works.= I learned a little bit more about org-mode today and I keep learning every= day how to best use such a great emacs mode.

Best regards,

-Mario

On Thu, Mar 4, 2010 at 9:30 PM, Ba= oqiu Cui <cbaoqiu= @yahoo.com> wrote:
"Mario E. Munich" <mariomu= @ieee.org> 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 =A0brackets = [ ]
> in the text.
>
> Please find enclosed a simple file that will depict the issue.

Hi Mario,

Thanks for posting your example Org file. =A0Now I am able to reproduce
the problem and know where the bug is.

Just as you said, the problem is caused by the last line that contains
strings "double[9]" and "double[3][3]". =A0Here "[= 9]" and "[3]" are
considered footnote references (and I don't think this is what you
wanted), 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 footno= te
reference according to ``org-footnote-re'' (see org-footnote.el), b= ut
some code in org-docbook.el and org-html.el does not use
``org-footnote-re'' and still treats it as a footnote reference. = =A0This
inconsistency caused the problem you saw, and it is only visible in
DocBook exporter.

Before I try to fix the problem, I'd like to get Carsten's confirma= tion
on the footnote reference syntax: whether the second "[3]", which=
immediately follows a character "]", should be treated as a footn= ote
reference.

To get around this problem, you can try changing the last line to
something like:

=A0- =3Ddouble[9]=3D was less efficient that =3Ddouble[3][3]=3D,

Please let me know if you have further questions.

> Best regards,
>
> -Mario
> #+FILETAGS: personal
>
> * Converting org pages to Twiki
> =A0 - use docbook2twiki http://code.google.com/p/docbook2twiki/
> =A0 =A0 - Checkout docbook2twiki: <2009-09-24 Thu>
> =A0 =A0 =A0 svn checkout http://docbook2twiki.googlecode.com/svn/tru= nk/ docbook2twiki-read-only
> =A0 =A0 =A0 - retrieved r5 from that repository
> =A0 =A0 - Load org-twiki.el
> =A0 =A0 - Publish buffer with: M-x org-export-as-twiki
> =A0 - double[9] was less efficient that double[3][3],
>
>

Thanks,

--
Baoqiu

--000e0cd32f546400360481095129-- --===============0338296329== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0338296329==--