[squeak-dev] Clashing semantics for #asCollection between Stream parser(S) and MaClientServer

tim Rowledge tim at rowledge.org
Tue Aug 13 01:11:02 UTC 2019



> On 2019-08-12, at 5:47 PM, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> 
> Hi Tim,
> 
[snip]
> If MaClientServer implements String >> #asCollection, then that's a mistake, which breaks #,.

Yeah, probably. I doubt Chris did it capriciously though, so he may have some good reasons.

> 
> I came to the conclusion that without a proper html generator, GoogleWikiCompiler cannot create correct output.

Oh, well I have just a couple of minutes ago been generating pages that safari is perfectly happy with using 

(GoogleWikiCompiler process: '= *Hello*
_italic stuff_
A link [link]
A longer link to an outside site [foo>http:\\www.foo.com/wibble]

Should be a paragraph break before this. 
---
This should     be preformatted ---
* abullet
*  another one
** bullet2
# an unordered list
# a second unordered item
{{{
some code := other}}}

|| Table header row || second column||
|| 4 || 5 thing ||
') asString 


> I have attached a version of GoogleWikiCompiler (attached), which uses our internal tool: StreamingHtmlCanvas (also attached) to generate html.
> Yes, that's another dependency, but that's how things go, isn't it? :)
> 
> Also, I had to convert the address variable to a string in links actions. I think you've done the same in your image.

Sounds like it -
GoogleWikiDomNode a
		attributes: { 'href' -> ((address as: String), '.html') };
for example.

I'll take a look at your changes too. I do wonder how little of the Xtreams package one could load to get a working parser; it doesn't appear to use a lot so far? Adding 4Mb to my image seems a bit much. What other value does Xtreams have?

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Don't document the program; program the document.




More information about the Squeak-dev mailing list