RE: ACTION 614-12: Smart Quotes

On 2015-09-10 16:52, Robie, Jonathan wrote:

> Suppose we did this:
> 
> ExtStringConstructor ::= "~~|" ExtStringText "|~~"
> ExtStringText := ((Char* - "~~{") | "~~{" Expr "}~~")*
> 
> That makes our earlier example look like this:
> 
> ~~| ~~{ "${" }~~ |~~

I think this is workable.

[...]

> Since you can embed any arbitrary expression, you can effectively do
> an escape by assigning a sequence to a string variable.

The spec should note this.

The following should be legal though:

~~| this is ~~{ a ~~|nested example|~~ here }~~ you see |~~

Similarly,

~~| ~~{
     " }~~ |~~"  (: just a string :)
}~~ |~~
should be possible I think.

Liam


-- 
Liam Quin, W3C
XML Activity Lead;
Digital publishing; HTML Accessibility

Received on Friday, 11 September 2015 00:36:12 UTC