emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Insert validation link in postamble
@ 2009-03-03  9:20 Sebastian Rose
  2009-03-03  9:54 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Rose @ 2009-03-03  9:20 UTC (permalink / raw)
  To: emacs-orgmode Org-Mode

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


This patch inserts a link into the postamble to validate the XHTML 1.0
via http://validator.w3.org/

By clicking on the link, the page will be validated in a new browser
window (or tab).


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 804 bytes --]

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 95b9ad8..b359da1 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -4067,6 +4067,7 @@ lang=\"%s\" xml:lang=\"%s\">
          (when org-export-creator-info
            (insert (format "<p class=\"creator\">HTML generated by org-mode %s in emacs %s</p>\n"
                            org-version emacs-major-version)))
+         (insert "<p class=\"xhtml-validation\"><a href=\"http://validator.w3.org/check?uri=referer\" target=\"_blank\">Validate XHTML 1.0</a></p>")
          (insert "</div>"))
 
        (if org-export-html-with-timestamp
</#part>

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Insert validation link in postamble
  2009-03-03  9:20 Insert validation link in postamble Sebastian Rose
@ 2009-03-03  9:54 ` Carsten Dominik
  2009-03-03  9:56   ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-03-03  9:54 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode Org-Mode

Hi Sebastian,

should this really be its own paragraph?  I think it could be in the  
creator line.....

- Carsten

On Mar 3, 2009, at 10:20 AM, Sebastian Rose wrote:

>
> This patch inserts a link into the postamble to validate the XHTML 1.0
> via http://validator.w3.org/
>
> By clicking on the link, the page will be validated in a new browser
> window (or tab).
>
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 95b9ad8..b359da1 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -4067,6 +4067,7 @@ lang=\"%s\" xml:lang=\"%s\">
>          (when org-export-creator-info
>            (insert (format "<p class=\"creator\">HTML generated by  
> org-mode %s in emacs %s</p>\n"
>                            org-version emacs-major-version)))
> +         (insert "<p class=\"xhtml-validation\"><a href=\"http://validator.w3.org/check?uri=referer 
> \" target=\"_blank\">Validate XHTML 1.0</a></p>")
>          (insert "</div>"))
>
>        (if org-export-html-with-timestamp
> </#part>
>
> -- 
> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449  
> Hannover
> Tel.:  +49 (0)511 - 36 58 472
> Fax:   +49 (0)1805 - 233633 - 11044
> mobil: +49 (0)173 - 83 93 417
> Http:  www.emma-stil.de
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Insert validation link in postamble
  2009-03-03  9:54 ` Carsten Dominik
@ 2009-03-03  9:56   ` Carsten Dominik
  2009-03-03 10:22     ` Sebastian Rose
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-03-03  9:56 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode Org-Mode


On Mar 3, 2009, at 10:54 AM, Carsten Dominik wrote:

> Hi Sebastian,
>
> should this really be its own paragraph?  I think it could be in the  
> creator line.....

Actually, I take that back.

I have applied your patch, but wrapped it into a variable
org-export-html-validation-link which defaults to nil.

- Carsten


>
>
> - Carsten
>
> On Mar 3, 2009, at 10:20 AM, Sebastian Rose wrote:
>
>>
>> This patch inserts a link into the postamble to validate the XHTML  
>> 1.0
>> via http://validator.w3.org/
>>
>> By clicking on the link, the page will be validated in a new browser
>> window (or tab).
>>
>> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
>> index 95b9ad8..b359da1 100644
>> --- a/lisp/org-exp.el
>> +++ b/lisp/org-exp.el
>> @@ -4067,6 +4067,7 @@ lang=\"%s\" xml:lang=\"%s\">
>>         (when org-export-creator-info
>>           (insert (format "<p class=\"creator\">HTML generated by  
>> org-mode %s in emacs %s</p>\n"
>>                           org-version emacs-major-version)))
>> +         (insert "<p class=\"xhtml-validation\"><a href=\"http://validator.w3.org/check?uri=referer 
>> \" target=\"_blank\">Validate XHTML 1.0</a></p>")
>>         (insert "</div>"))
>>
>>       (if org-export-html-with-timestamp
>> </#part>
>>
>> -- 
>> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449  
>> Hannover
>> Tel.:  +49 (0)511 - 36 58 472
>> Fax:   +49 (0)1805 - 233633 - 11044
>> mobil: +49 (0)173 - 83 93 417
>> Http:  www.emma-stil.de
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Insert validation link in postamble
  2009-03-03  9:56   ` Carsten Dominik
@ 2009-03-03 10:22     ` Sebastian Rose
  2009-03-03 10:35       ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Rose @ 2009-03-03 10:22 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Carsten Dominik, emacs-orgmode Org-Mode

Carsten Dominik <dominik@science.uva.nl> writes:
> On Mar 3, 2009, at 10:54 AM, Carsten Dominik wrote:
>
>> Hi Sebastian,
>>
>> should this really be its own paragraph?  I think it could be in the creator
>> line.....
>
> Actually, I take that back.
>
> I have applied your patch, but wrapped it into a variable
> org-export-html-validation-link which defaults to nil.
>
> - Carsten

I'm fine with this.
Also, I found that there is no attribut `target' anymore in XHTML.

But we would receive more error reports if the default was to add the
validation link.

The variable is great though, because I now can change it to validate
local HTML, just as FF developer-toolbar does.


Thanks,



--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Insert validation link in postamble
  2009-03-03 10:22     ` Sebastian Rose
@ 2009-03-03 10:35       ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-03-03 10:35 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode Org-Mode


On Mar 3, 2009, at 11:22 AM, Sebastian Rose wrote:

> Carsten Dominik <dominik@science.uva.nl> writes:
>> On Mar 3, 2009, at 10:54 AM, Carsten Dominik wrote:
>>
>>> Hi Sebastian,
>>>
>>> should this really be its own paragraph?  I think it could be in  
>>> the creator
>>> line.....
>>
>> Actually, I take that back.
>>
>> I have applied your patch, but wrapped it into a variable
>> org-export-html-validation-link which defaults to nil.
>>
>> - Carsten
>
> I'm fine with this.
> Also, I found that there is no attribut `target' anymore in XHTML.
>
> But we would receive more error reports if the default was to add the
> validation link.
>
> The variable is great though, because I now can change it to validate
> local HTML, just as FF developer-toolbar does.

The variable is a boolean currently.  You want it
to specify the link?

- Carsten

>
>
>
> Thanks,
>
>
>
> --
> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449  
> Hannover
> Tel.:  +49 (0)511 - 36 58 472
> Fax:   +49 (0)1805 - 233633 - 11044
> mobil: +49 (0)173 - 83 93 417
> Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-03 10:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-03  9:20 Insert validation link in postamble Sebastian Rose
2009-03-03  9:54 ` Carsten Dominik
2009-03-03  9:56   ` Carsten Dominik
2009-03-03 10:22     ` Sebastian Rose
2009-03-03 10:35       ` Carsten Dominik

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).