maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Sharing HTML to Evernote (or other services) (https://talk.maemo.org/showthread.php?t=57629)

conny 2010-07-02 10:38

Sharing HTML to Evernote (or other services)
 
Hi,

I've just added sharing support to Conboy (extras-devel), but sharing to Evernote does not really work as expected. I'm converting the notes to HTML and then sending it using the sharing dialog.

The problem is, the HTML is not really recognized by Evernote, instead it shows up as .acgi file with HTML inside.

The same happens if I share the HTML directly using Petrovich. Does anyone has an idea, what wrong with it? Is it an Evernote problem or am I doing something wrong? Maybe the HTML needs to be valid XHTML or something?

Also are there other services that accept HTML files?

Thanks!
Conny

pH5 2010-07-02 11:16

Re: Sharing HTML to Evernote (or other services)
 
My guess is that you have to convert to ENML, unless the evernote sharing plugin is doing that for you.
Check out the Evernote API Overview. It states that:

Quote:

The contents of Notes within the Evernote service must strictly comply with the XML definition found within the ENML DTD. The reference version of this DTD is located at:
http://xml.evernote.com/pub/enml2.dtd

conny 2010-07-02 11:25

Re: Sharing HTML to Evernote (or other services)
 
Quote:

Originally Posted by pH5 (Post 738434)
My guess is that you have to convert to ENML, unless the evernote sharing plugin is doing that for you.
Check out the Evernote API Overview. It states that:

Hmm, yea, I was thinking about his as well, but when sending a simple ENML file via the sharing dialog the outcome is the same. I tried by sending the following:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note>
  <b><font size="5">Here is a sample document:</font></b>
  <br/>
  bla bla bla
  <br/>                                                                                   
</en-note>

So it looks like the Evernote sharing plugin is very limited, or I'm still doing somthing wrong :confused:


All times are GMT. The time now is 04:26.

vBulletin® Version 3.8.8