emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Wim Oudshoorn" <woudshoo@xs4all.nl>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>,
	Willem Rein Oudshoorn <woudshoo@xs4all.nl>
Subject: Re: HTML --> Org-mode?
Date: Tue, 27 Jan 2015 14:58:00 +0100	[thread overview]
Message-ID: <b9bab1617a6f9a88da5dd0bf26648aa2.squirrel@webmail.xs4all.nl> (raw)
In-Reply-To: <CAN_Dec_NU7Bk9_8Cp+c5v1jN=JZyHqjPsjZiK6MnWg0sqb+hHQ@mail.gmail.com>

> Thank you Willem,
>
> This looks very helpful.
>
> I am trying the code out in a scratch buffer and I am unable to gnerate
> org
> syntax, e.g. with this test string:
>
> (h-2-o-insert-org-source-for-html  "<p><a
> href=\"http://example.org/\">hello</a>
> <span style=\"font-style:italic;\">world<br/> foo</span></p>" )
>
>
> Am I doing something wrong?  Thanks,
> Matt


No you are not doing anything wrong.
What happens is that:

1. I have not implemented links.  This should be easy
   to fix and I will do this when I get home.
2. Similarly for the <span> element.   However I do not
   exactly know what the corresponding Org syntax should be?
   Would you expect:

   /world/
   /foo/

   Or is there a structured element in org mode that renders
   a block as italics?

I will see what I can do about point 2.

In general, I am a bit torn between:

- faithful transformation.
- Getting readable org source.

I am leaning towards the readable org source and
sacrificing the faithfulness.

Wim Oudshoorn.

  reply	other threads:[~2015-01-27 13:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 20:15 HTML --> Org-mode? Matt Price
2015-01-26 20:31 ` Tory S. Anderson
     [not found]   ` <CAN_Dec_FD7ys9zoOQ3pNym+E_0=D=acHUapKYHbQWxjL=huoNA@mail.gmail.com>
     [not found]     ` <87a9154670.fsf@gmail.com>
2015-01-27  4:42       ` Matt Price
2015-01-27  8:23 ` Willem Rein Oudshoorn
2015-01-27 11:55   ` Matt Price
2015-01-27 13:58     ` Wim Oudshoorn [this message]
2015-01-27 18:59     ` Willem Rein Oudshoorn
2015-01-28  2:12       ` Matt Price
2015-01-27  8:27 ` Eric S Fraga
2015-01-27  9:51 ` Albert Krewinkel

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=b9bab1617a6f9a88da5dd0bf26648aa2.squirrel@webmail.xs4all.nl \
    --to=woudshoo@xs4all.nl \
    --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).