Re: [O] Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]

2013-05-20 Thread Kelvin Hu
Hi,

Thanks for your quick replies, I have not subscribed the org mailing list
yet, so I had to search this mailing list and then found your nice
solution, and sorry for the late reply.

Usually I read org manual through org mode's official website, seems now
the description of html quoting(
http://orgmode.org/org.html#Quoting-HTML-tags) is still unchanged, maybe
some extra effort is needed to update this page?

and I noticed the patch is modifying **org.texi**, but I cannot find it in
my org mode package (I installed org mode through emacs' package management
system), so where can I find this file?

Thanks in advance,
Kelvin


Re: [O] Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]

2013-05-18 Thread Nicolas Goaziou
Hello,

Eric Abrahamsen e...@ericabrahamsen.net writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 Kelvin Hu ini.kel...@gmail.com writes:

 Hi all,

 First of all, I am really appreciate your good work - org mode.

 Currently I meet something wrong when I am trying to export an org
 buffer into html, as org manual
 described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags
 quoted with @ should be exported as tags, but not transformed to 
 lt; and gt;. Now assume we have following contents:

 - @a href=somewheresome text@/a

 The syntax for this has changed, now any backend-specific blocks can be
 exported with @@backend:foo@@. So yours should be:

 @@html:a href=somewheresome text/a@@

 The manual's wrong, I think: if you look at the ascii or latex export
 sections they mention this syntax, but it looks like html got left
 behind.

 Yours,
 Eric

 A documentation patch to that effect...

Applied, with a slight twist, as the syntax is not limited to simple
tags.

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]

2013-05-17 Thread Eric Abrahamsen
Kelvin Hu ini.kel...@gmail.com writes:

 Hi all,

 First of all, I am really appreciate your good work - org mode.

 Currently I meet something wrong when I am trying to export an org
 buffer into html, as org manual
 described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags
 quoted with @ should be exported as tags, but not transformed to 
 lt; and gt;. Now assume we have following contents:

 - @a href=somewheresome text@/a

The syntax for this has changed, now any backend-specific blocks can be
exported with @@backend:foo@@. So yours should be:

@@html:a href=somewheresome text/a@@

The manual's wrong, I think: if you look at the ascii or latex export
sections they mention this syntax, but it looks like html got left
behind.

Yours,
Eric

 then I do exporting with following code(executed in that org buffer):

 (org-export-as 'html nil nil t nil)

 the output is:

 ul class=org-ul
 li@lt;a href=somewheregt;some text@lt;/agt;
 /li
 /ul

 As you see, the quoted tag a is exported as transformed but not
 original html tag.

 Hope my description is not ambiguous, and it can do a little help for
 you to fix this issue.

 Thanks  Regards,
 Kelvin

 Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
 of 2013-03-18 on MARVIN
 Package: Org-mode version 8.0.2 (8.0.2-10-g3e1d83-elpa @
 d:/SDTs/Emacs/lisp/org/)




Re: [O] Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]

2013-05-17 Thread Eric Abrahamsen
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Kelvin Hu ini.kel...@gmail.com writes:

 Hi all,

 First of all, I am really appreciate your good work - org mode.

 Currently I meet something wrong when I am trying to export an org
 buffer into html, as org manual
 described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags
 quoted with @ should be exported as tags, but not transformed to 
 lt; and gt;. Now assume we have following contents:

 - @a href=somewheresome text@/a

 The syntax for this has changed, now any backend-specific blocks can be
 exported with @@backend:foo@@. So yours should be:

 @@html:a href=somewheresome text/a@@

 The manual's wrong, I think: if you look at the ascii or latex export
 sections they mention this syntax, but it looks like html got left
 behind.

 Yours,
 Eric

A documentation patch to that effect...

E

From 14d5a493375197bcdcbd0b292e1d9990f12cb83a Mon Sep 17 00:00:00 2001
From: Eric Abrahamsen e...@ericabrahamsen.net
Date: Sat, 18 May 2013 10:20:33 +0800
Subject: [PATCH] org.texi: Correct syntax for exporting HTML fragments

---
 doc/org.texi | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 1c8b835..6f0afed 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -11133,11 +11133,11 @@ to @code{nil} will not insert any postamble.
 @subsection Quoting HTML tags
 
 Plain @samp{} and @samp{} are always transformed to @samp{lt;} and
-@samp{gt;} in HTML export.  If you want to include simple HTML tags
-which should be interpreted as such, mark them with @samp{@@} as in
-@samp{@@bbold text@@/b}.  Note that this really works only for
-simple tags.  For more extensive HTML that should be copied verbatim to
-the exported file use either
+@samp{gt;} in HTML export.  If you want to include simple HTML tags which
+should be interpreted as such, mark them with @samp{html:} as in
+@samp{html:bbold text/b}.  Note that this really works only for
+simple tags.  For more extensive HTML that should be copied verbatim to the
+exported file use either
 
 @cindex #+HTML
 @cindex #+BEGIN_HTML
-- 
1.8.2.3