emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] blorg.el


From: Bastien Guerry
Subject: Re: [Orgmode] blorg.el
Date: Wed, 30 Jan 2008 07:59:26 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Hi Rick,

Rick Moynihan <address@hidden> writes:

> I've been meaning to mention that blorg produces invalid XML for atom feeds
> (perhaps also RSS/HTML).  Most obviously it doesn't appear to entity escape
> characters the following characters properly '<', '>', '&', which should be
> rendered as &gt; &lt; and &amp; respectively.

Trying to fix this is dangerous, it might break other things.  If the
issue is just XML validation, I won't do it for now - sorry.

> Also I think <img> tags aren't closed properly, i.e. they're rendered as
>
> <img src="foo.jpg">
>
> rather than the correct:
>
> <img src="foo.jpg"/>

Fixed in 0.75d.

> Another issue I have, is that sometimes when calling blorg-publish it
> doesn't render links properly, i.e. [[http://foo.com/][foo]] will be
> displayed in the HTML/XML rather than:
>
> <a href="http://foo.com";>foo</a>
>
> This doesn't always happen, but seems to occur when either:
>
> - you run blorg-publish without a C-u prefix argument.
> - or, you have an orglink which runs across a line break, e.g.
>
> [[http://foo.com/]| <--- newline
> [foo]]

(Of course, blorg should use Org's HTML converter.  This is in the plan
for the next org-based blogging system, so I'm not willing to try fixing
this neither...)

> Also, it'd be great if there was a way to easily embed flash video content
> onto the pages, by using custom links, e.g.
>
> [[youtube:http://www.youtube.com/watch?v=fu8rAWciQNs]]
>
> Which would be expanded into the appropriate embeded object:
>
> <object width="425" height="355"><param name="movie"
> value="http://www.youtube.com/v/fu8rAWciQNs&rel=1";></param><param
> name="wmode" value="transparent"></param><embed
> src="http://www.youtube.com/v/fu8rAWciQNs&rel=1";
> type="application/x-shockwave-flash" wmode="transparent" width="425"
> height="355"></embed></object>

What about a simple dynamic block ?

(defun org-dblock-write:youtube (params)
  "Insert a header from a file."
  (let ((url (plist-get params :url)))
    (insert 
     (format "<object width=\"425\" height=\"355\"><param name=\"movie\"
value=\"%s\"></param><param name=\"wmode\"
value=\"transparent\"></param><embed src=\"%s\"
type=\"application/x-shockwave-flash\" wmode=\"transparent\"
width=\"425\" height=\"355\"></embed></object>" url url))))

#+BEGIN: youtube :url "http://www.youtube.com/watch?v=fu8rAWciQNs";
#+END: 

Should expand in the correct block of text.

HTH,

-- 
Bastien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]