emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien Guerry <bzg@altern.org>
To: Rick Moynihan <rick@calicojack.co.uk>
Cc: emacs-orgmode@gnu.org, Dimitris Kapetanakis <katepano@gmail.com>
Subject: Re: blorg.el
Date: Wed, 30 Jan 2008 07:59:26 +0100	[thread overview]
Message-ID: <87ve5blrxt.fsf@bzg.ath.cx> (raw)
In-Reply-To: <479F4195.40906@calicojack.co.uk> (Rick Moynihan's message of "Tue, 29 Jan 2008 15:09:09 +0000")

Hi Rick,

Rick Moynihan <rick@calicojack.co.uk> 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

  parent reply	other threads:[~2008-01-30  6:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-29 11:44 blorg.el Dimitris Kapetanakis
2008-01-29 15:18 ` blorg.el bzg
2008-01-29 15:09   ` blorg.el Rick Moynihan
2008-01-29 15:54     ` blorg.el Dimitris Kapetanakis
2008-01-30  6:59     ` Bastien Guerry [this message]
2008-02-19 10:18       ` blorg.el Rick Moynihan
2008-02-19 13:10         ` blorg.el Bastien Guerry
2008-02-21  0:44           ` blorg.el Steven Lumos
  -- strict thread matches above, loose matches on Subject: below --
2008-01-30  5:25 blorg.el Dimitris Kapetanakis
2008-01-30  6:29 ` blorg.el Bastien Guerry

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=87ve5blrxt.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=katepano@gmail.com \
    --cc=rick@calicojack.co.uk \
    /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).