emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Willem Rein Oudshoorn <woudshoo@xs4all.nl>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: HTML --> Org-mode?
Date: Tue, 27 Jan 2015 21:12:48 -0500	[thread overview]
Message-ID: <CAN_Dec8eDxYKgGCdfHk7LAs4efsdLo4atsvY5peO8idc14O+jw@mail.gmail.com> (raw)
In-Reply-To: <m1fvawoxrb.fsf@Wims-MBP.fritz.box>

[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]

On Tue, Jan 27, 2015 at 1:59 PM, Willem Rein Oudshoorn <woudshoo@xs4all.nl>
wrote:

> Matt Price <moptop99@gmail.com> writes:
>
> > 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,
>
> I added the <a href...> conversion, so that part should work now.
> However, I am not sure I want to do the <span style=...> thing.
> It seems that this requires some CSS parsing to do the right thing.
>
> Also in this example, the italics would span multiple lines, for which I
> think the only way to represent this in org is by enclosing each line in
> a pair of '/'.
>
> However, is there a specific use case where you need the conversion from
> the <span style='...'> to be precise?   (At the moment it will still
> output the content of the <span> but it will not be formatted.
>
> If there is a specific use case, I could maybe make it work for that.
>
> Personally, I use it to edit text fields in salesforce.
> For which I do not care too much if the round trip yields perfect
> results.
>
> Hi Wim,

I am trying to parse the output of citeproc-js, which does produce those
spans -- not veyr elegant, I must say, but that's what I'm working with.
I will try this again in about a day, when I am done with the hard part of
my week!  Thank you very much,
Matt


>
> Wim Oudshoorn
>
>
>

[-- Attachment #2: Type: text/html, Size: 2476 bytes --]

  reply	other threads:[~2015-01-28  2:12 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
2015-01-27 18:59     ` Willem Rein Oudshoorn
2015-01-28  2:12       ` Matt Price [this message]
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=CAN_Dec8eDxYKgGCdfHk7LAs4efsdLo4atsvY5peO8idc14O+jw@mail.gmail.com \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=woudshoo@xs4all.nl \
    /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).