(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-15) was last changed on 15-Sep-2008 03:17 by StephenDay  

This page was created on 28-Apr-2008 13:41 by Isonomia

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 3 changed one line
After editing the title page and trying to start a link to {{{ }}} and finding it disappearing I wondered whether creole was intended to replace or overlay html coding. At least from this wiki (if it is creole 1.0 compliant?) it appears that at least some html coding like {{{ }}} is included within the wiki and creole is an addition rather than replacement.
After editing the title page and trying to start a link to {{{ }}} and finding it disappearing I wondered whether creole was intended to replace or overlay html coding. At least from this wiki (if it is creole 1.0 compliant?) it appears that at least some html coding like {{{ }}} is included within the wiki and creole is an addition rather than replacement.
At line 7 changed one line
How should: {{{This is%20a test}}} be displayed?
How should: {{{This is%20a test}}} be displayed?
At line 12 added 79 lines
----
In pure Creole, HTML elements and entities aren't supposed to be preserved. An engine which would do so could probably still be qualified to be "Creole-compliant" if this means anything. Wikicreole.org wasn't Creole-compliant last time I checked, a few weeks ago; you shouldn't try to duplicate its current behavior.
Note: this should eventually be moved to a talk page.
-- [[YvesPiguet]], 2008-Apr-28
Yves, the real question I'm asking is what processing ought to happen on the text input by the user WHEN that text includes HTML which will affect the output displayed and/or affect the whole creole page, if e.g. a <table> element is included. Not explicitly stating the pre-processing environment required by the creole specification is a bit like selling venomous snakes in a supermarket expecting the customer to know that venomous snakes can kill.
I take it the specification would say "All html special characters should be escaped prior to parsing by creole", in which case any special characters in the Creole specification should refer to the escaped characters and not to the original raw characters!!!!
-- [[Isonomia]], 2008-Apr-28
The translator must care about the output format: it should escape less-than, ampersand and double-quote in HTML and XML it produces, or backslash, percent and a few other characters for TeX output, or backslash and brace for RTF output, or parenthesis for Postscript output, etc. But some engines might prefer to pass HTML constructs as is to permit the author to use features not supported natively in Creole. In that case, filtering unsafe HTML constructs might be wise.
-- [[YvesPiguet]], 2008-Apr-29
Yves, the specification isn't very helpful when it comes to deciding what needs to be filtered and what does not. E.g. when text is included as a hyperlink, but isn't a full URL, should it be escaped or should it be urlencoded?
-- [[Isonomia]]
I'm implementing the Creole spec for Ruby and came across the same issue.
It makes sense to me that by default, HTML is escaped; however, strictly no HTML is not pragmatic. I'd like an "allow HTML" block. Using triple braces denotes a "nowiki" block and perhaps we could use something similar (as it feels like a similar idea) like triple brackets "(((" to denote an "html" block.
{{{
(((
<b>bold</b> works here
)))
but <b>bold</b> does not work here but (((<b>works here</b>)))
}}}
Note that it can work "block" or "inline". I can't think of any situation where an accidental triple bracketing would occur. The only situations where this might happen at all is in code, but my guess is this would be triple braced ~{{{}}} for code anyways.
-- [[SunnyHirai]], 2008-Jun-11
One way to incorporate HTML into an implementation could be through a macro:
{{{
<<html>>
<b>bold</b> works here
<</html>>
but <b>bold</b> does not work here but <<html>><b>works here</b><</html>>
}}}
This is the direction I've been going with [[http://creoleparser.googlepages.com|Creoparser.py]]. I've made a little tutorial about its macro support [[http://creoleparserwiki.appspot.com/pages/HTMLMacroExample|here]].
-- [[StephenDay]], 2008-Jun-11
A similar way -- maybe more consistent with creole -- would be to simply double html's delimiters : {{<...> --> <<...>>}}
{{{
Thus <b>this is regular text</b> while <<b>>this is bold text<</b>>.
}}}
This double marking means "I intentionaly insert html code".
The parser should then :
* Escape undoubled html markup.
* Then "simplify" {{{<< to < and >> to >}}}.
Which seems rather clear.
But: there is a imho //major// disadvantage in letting html codable in creole source text : which is that this code is not known by the average user/editor, not even specified by creole's standard, and above all not designed to be easily readable (legible?).
As a consequence, it will highly confuse the people to whom precisely creole (and most wiki language) are targeted. Is that not a basic contradiction ?
Also thinks at all the pretentious html-coders that may -- and will -- use html for the sake of their ego. Either adding features others can't code, or even using html rather than creole tags.
So the Q : is it worth letting html in?
[[spir]] 15-aug-08
spir,
If double angle brackets are used for extensions, then the implementation would be free to use them in any way, including as you suggest for html. But if this html idiom became part of creole, than I think (real) extensions would need to use something other than double angle brackets. :-)
-- [[StephenDay]], 2008-Sept-15
Version Date Modified Size Author Changes ... Change note
15 15-Sep-2008 03:17 5.543 kB StephenDay to previous comment added
14 15-Sep-2008 01:17 5.195 kB spir to previous | to last worth adding html ?
13 08-Aug-2008 17:24 4.132 kB 220.160.100.84 to previous | to last
12 08-Aug-2008 17:23 4.179 kB 220.160.100.84 to previous | to last
11 12-Jun-2008 13:41 4.132 kB StephenDay to previous | to last comment about HTML
10 12-Jun-2008 13:40 4.107 kB StephenDay to previous | to last comment about HTML
9 12-Jun-2008 09:08 3.655 kB 24.82.163.104 to previous | to last
8 16-May-2008 14:05 2.863 kB Isonomia to previous | to last
7 29-Apr-2008 09:52 2.626 kB YvesPiguet to previous | to last Escaping special character in output
6 28-Apr-2008 22:21 2.113 kB Isonomia to previous | to last
5 28-Apr-2008 22:19 2.08 kB Isonomia to previous | to last
4 28-Apr-2008 15:20 1.363 kB YvesPiguet to previous | to last Reply
3 28-Apr-2008 14:09 0.942 kB Isonomia to previous | to last
2 28-Apr-2008 13:42 0.924 kB Isonomia to previous | to last
1 28-Apr-2008 13:41 0.922 kB Isonomia to last
« This page (revision-15) was last changed on 15-Sep-2008 03:17 by StephenDay