emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: odt export bug, I think.
Date: Thu, 18 Aug 2011 05:17:49 +0530	[thread overview]
Message-ID: <81sjozsiqi.fsf@gmail.com> (raw)
In-Reply-To: <CAN_Dec_ibAgbGFuhdWP60FpKuRKt5uK6hVf7gGF78jW--E_Mrg@mail.gmail.com> (Matt Price's message of "Tue, 16 Aug 2011 16:52:46 -0400")


Hello Matt

> Hi,
>
> I think I've found an odt export bug.  Certain complex URL's stored
> within links can end up being rendered with forbidden characters,
> e.g. '<' and '>'.  so, e.g., a link to this URL:
>
> http://www.jstor.org.myaccess.library.utoronto.ca/sici?origin=
> sfx%253Asfx&sici=1363-3554%25281995%252939%253C182%253E1.0.CO%253B2-L
> &
>
> was rendered in content.xml like this:
> xlink:href="http://www.jstor.org/sici?origin=sfx:sfx&amp;sici=
> 1363-3554(1995)39<182>1.0.CO;2-L&amp;"


I have some understanding of what the issue is. I would like to
know/confirm a few things before proceeding ahead:

1. How does the original URL look like? 
2. Where does the URL come from? Is it generated by an application or is
   it hand copied by you from your browser.
3. How do you enter the URL in to the org file. Specifically do you

   - Simply type it. ie type the open brackets, paste the link, paste
     the description, close  the brackets etc.
  
  Or

   - You use C-c l to store the link in Org file.

  Note that question 3 is very crucial because. This is because for the
  URL that you have provided what you see with C-c l on the link is
  different from what is actually stored in the Org file. (You can see
  how actually Org stores the link by backspacing from beyond the link
  or by toggling descriptive/literal links in the menu bar)

Please respond to Question 1 keeping behaviour in 3 mind. I am
specifically interested in seeing whether the app/database (if there is
one) actually provides a hexified link or not. I also see the
possibility that one could have handcrafted the URL in an one-off sense
by concatenating key/val pairs and forming the query string oneself. In
this case (a novice) user may not have hexified the URL to begin with.

ps: If my understanding is correct you are also having similar problems
with the html export (M-x org-export-as-html) as well. Either html file
is malformed or the link in the html export file simply doesn't
work. (TIP: odt exporter is derived from the html exporter. So it is
always a good idea to check the status of html export whenever one runs
in to issues with odt exporter)

I anticipate that fix for this issue might need some discussions with
Bastien, David Maus and may be others.

Jambunathan K.




>
> resulting in a syntax error when libreoffice tries to load it.  I've
> attached a minimal test file that reproduces the bug. 
>
> This is happening under a recent git snapshot of org-mode, using an
> emacs snapshot from 2011-04.  Not sure if there are other xml-related
> packages whose versions I should be tracking.
>
> Thanks as always, and let me know what I can do to help with this.
>
> Matt
>
>
>
>

-- 

  reply	other threads:[~2011-08-17 23:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 20:52 odt export bug, I think Matt Price
2011-08-17 23:47 ` Jambunathan K [this message]
2011-08-18  0:44   ` Matt Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81sjozsiqi.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).