Hi all,
Has anyone written any rich text support for Squeak since the big hoohah in 2003 (starting with http://thread.gmane.org/ gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? I couldn't find anything in the list archives or on SqueakMap, but it never hurts to ask. Thanks, Josh |
Am Friday, 14. April 2006 17:18 schrieb Josh Gargus:
> Hi all, > > Has anyone written any rich text support for Squeak since the big > hoohah in 2003 (starting with http://thread.gmane.org/ > gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? > > I couldn't find anything in the list archives or on SqueakMap, but > it never hurts to ask. > > Thanks, > Josh Don't know, but I wonder if support for the open document format would be a nice to have feature. Martin |
Martin Kuball wrote:
> Am Friday, 14. April 2006 17:18 schrieb Josh Gargus: > >> Hi all, >> >> Has anyone written any rich text support for Squeak since the big >> hoohah in 2003 (starting with http://thread.gmane.org/ >> gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? >> >> I couldn't find anything in the list archives or on SqueakMap, but >> it never hurts to ask. >> >> Thanks, >> Josh >> > > Don't know, but I wonder if support for the open document format would > be a nice to have feature. > > Martin > I am actually just starting to implement a RTF parser, could use some help :) I've found the original RTF specs from MS. This is the link, if you don't want to google it yourself: http://www.microsoft.com/downloads/details.aspx?familyid=ac57de32-17f0-4b46-9e4e-467ef9bc5540&displaylang=en It's pretty good explained how they expect you to parse the stuff. I've found some pages on undocumented RTF keywords, but I don't really think it is worth bothering about these. The thing is that I am new to Squeak and would need help with the API. One thing is that I need some kind of tokenizer to parse an RTF string. I cannot find a combination of ReadStream and TextStream what I feel would be the thing I need. Or is there some other standard/recommended way to do this in Squeak? Could you help me on that? Thanks! Martin R. (another one) |
Welcome Martin,
MR> The thing is that I am new to Squeak and would need help MR> with the API. One thing is that I need some kind of tokenizer MR> to parse an RTF string. I cannot find a combination of in two projects I used String findTokens to parse the input into tokens and feed these into a Dictionary. In one case the Dictionary just returns another string, in the other case the Value of the Associations in the Dictionary is just the block of code necessary to deal with the token. MR> ReadStream and TextStream what I feel would be the thing I need. MR> Or is there some other standard/recommended way to do this in Squeak? MR> Could you help me on that? I'm too new myself to know if there is a standard way to do this. Cheers Herbert mailto:[hidden email] |
In reply to this post by Martin Ruskov
I used ReadStream's mostly when doing my html parser. It took a bit
of getting used to, but I actually got fairly dependent on them. Key methods I relied on are next next: aNumber peek peekFor: aCharacter upTo: aCharacter upToAll: aString match: aString back skip: aNumber position position: aNumber Pretty straightforward. On Apr 14, 2006, at 11:39 PM, Martin Ruskov wrote: > I am actually just starting to implement a RTF parser, could use some > help :) > I've found the original RTF specs from MS. This is the link, > if you don't want to google it yourself: > http://www.microsoft.com/downloads/details.aspx? > familyid=ac57de32-17f0-4b46-9e4e-467ef9bc5540&displaylang=en > It's pretty good explained how they expect you to parse the stuff. > I've found some pages on undocumented RTF keywords, > but I don't really think it is worth bothering about these. > > The thing is that I am new to Squeak and would need help > with the API. One thing is that I need some kind of tokenizer > to parse an RTF string. I cannot find a combination of > ReadStream and TextStream what I feel would be the thing I need. > Or is there some other standard/recommended way to do this in Squeak? > Could you help me on that? > > Thanks! > > Martin R. (another one) > > |
> Pretty straightforward.
There is SmaCC, the Smalltalk Compiler Compiler, that I usually use for such a tasks. It generates scanner and parser classes from definitions similar to the ones of the well known unix tools lex/flex, yacc/bison. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch |
In reply to this post by Martin Kuball
Hello,
> > Has anyone written any rich text support for Squeak since the big > > hoohah in 2003 (starting with http://thread.gmane.org/ > > gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? > > > > I couldn't find anything in the list archives or on SqueakMap, but > > it never hurts to ask. > > > > Thanks, > > Josh > > Don't know, but I wonder if support for the open document format would > be a nice to have feature. As Alan has written a few days ago, Takashi, Scott and others are working on WYSIwiki. Takashi went whole 8.5 yards so we can export and import a Squeak project, err, a Tweak project to ODF, which is readable by OpenOffice. -- Yoshiki |
Am Sunday, 16. April 2006 00:42 schrieb Yoshiki Ohshima:
> Hello, > > > > Has anyone written any rich text support for Squeak since the > > > big hoohah in 2003 (starting with http://thread.gmane.org/ > > > gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? > > > > > > I couldn't find anything in the list archives or on SqueakMap, > > > but it never hurts to ask. > > > > > > Thanks, > > > Josh > > > > Don't know, but I wonder if support for the open document format > > would be a nice to have feature. > > As Alan has written a few days ago, Takashi, Scott and others are > working on WYSIwiki. Takashi went whole 8.5 yards so we can export > and import a Squeak project, err, a Tweak project to ODF, which is > readable by OpenOffice. > > -- Yoshiki You mean this TiddlyWiki thing? But what has this to do with Squeak and ODF export/import? Martin |
Martin,
> > As Alan has written a few days ago, Takashi, Scott and others are > > working on WYSIwiki. Takashi went whole 8.5 yards so we can export > > and import a Squeak project, err, a Tweak project to ODF, which is > > readable by OpenOffice. > > > > -- Yoshiki > > You mean this TiddlyWiki thing? But what has this to do with Squeak > and ODF export/import? We are working on a system that we tentatively call WYSIWiki. It is written in Tweak and has no relationship with TiddlyWiki. And, (one of) the external file format is ODF. -- Yoshiki |
Am Sunday, 16. April 2006 11:21 schrieb Yoshiki Ohshima:
> Martin, > > > > As Alan has written a few days ago, Takashi, Scott and others > > > are working on WYSIwiki. Takashi went whole 8.5 yards so we > > > can export and import a Squeak project, err, a Tweak project to > > > ODF, which is readable by OpenOffice. > > > > > > -- Yoshiki > > > > You mean this TiddlyWiki thing? But what has this to do with > > Squeak and ODF export/import? > > We are working on a system that we tentatively call WYSIWiki. It > is written in Tweak and has no relationship with TiddlyWiki. > > And, (one of) the external file format is ODF. > > -- Yoshiki Ah, but WyisiWike is a general term for wikis like TidlyWikie, isn't it? Do you have a web page for the project? Martin |
In reply to this post by Martin Ruskov
have a look at Smacc this is a compiler compiler.
Stef On 15 avr. 06, at 08:39, Martin Ruskov wrote: > Martin Kuball wrote: >> Am Friday, 14. April 2006 17:18 schrieb Josh Gargus: >> >>> Hi all, >>> >>> Has anyone written any rich text support for Squeak since the big >>> hoohah in 2003 (starting with http://thread.gmane.org/ >>> gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? >>> >>> I couldn't find anything in the list archives or on SqueakMap, but >>> it never hurts to ask. >>> >>> Thanks, >>> Josh >>> >> >> Don't know, but I wonder if support for the open document format >> would >> be a nice to have feature. >> >> Martin >> > Hello all, > > I am actually just starting to implement a RTF parser, could use some > help :) > I've found the original RTF specs from MS. This is the link, > if you don't want to google it yourself: > http://www.microsoft.com/downloads/details.aspx? > familyid=ac57de32-17f0-4b46-9e4e-467ef9bc5540&displaylang=en > It's pretty good explained how they expect you to parse the stuff. > I've found some pages on undocumented RTF keywords, > but I don't really think it is worth bothering about these. > > The thing is that I am new to Squeak and would need help > with the API. One thing is that I need some kind of tokenizer > to parse an RTF string. I cannot find a combination of > ReadStream and TextStream what I feel would be the thing I need. > Or is there some other standard/recommended way to do this in Squeak? > Could you help me on that? > > Thanks! > > Martin R. (another one) > > |
In reply to this post by Yoshiki Ohshima
Is it related to the pier wiki that support Logo execution?
Now I understand why lot of japanese gets active in pier :) Stef >>> Has anyone written any rich text support for Squeak since the big >>> hoohah in 2003 (starting with http://thread.gmane.org/ >>> gmane.comp.lang.smalltalk.squeak.general/27624/focus=27669)? >>> >>> I couldn't find anything in the list archives or on SqueakMap, but >>> it never hurts to ask. >>> >>> Thanks, >>> Josh >> >> Don't know, but I wonder if support for the open document format >> would >> be a nice to have feature. > > As Alan has written a few days ago, Takashi, Scott and others are > working on WYSIwiki. Takashi went whole 8.5 yards so we can export > and import a Squeak project, err, a Tweak project to ODF, which is > readable by OpenOffice. > > -- Yoshiki > |
Stef,
> Is it related to the pier wiki that support Logo execution? Not really. I would say that both of these are different experiments under similar goal and direction. > Now I understand why lot of japanese gets active in pier :) So, probably it is more active than you think, hehe. The Logo one wasn't done by Japanese guys. -- Yoshiki |
In reply to this post by Martin Kuball
Martin,
> > We are working on a system that we tentatively call WYSIWiki. It > > is written in Tweak and has no relationship with TiddlyWiki. > > > > And, (one of) the external file format is ODF. > > > > -- Yoshiki > > Ah, but WyisiWike is a general term for wikis like TidlyWikie, isn't > it? Do you have a web page for the project? Perhaps. It is not going to be "the" name of the system, so don't worry about it too much. > Do you have a web page for the project? Not at this point. Takashi's blog occationally writes the progress in very subtle and suggestive way^^; http://d.hatena.ne.jp/propella/20060414/p1 -- Yoshiki |
In reply to this post by Yoshiki Ohshima
> Stef,
> >> Is it related to the pier wiki that support Logo execution? > > Not really. I would say that both of these are different > experiments under similar goal and direction. > >> Now I understand why lot of japanese gets active in pier :) > > So, probably it is more active than you think, hehe. Excellent! I like to see good and flexible software used to create new spaces :) > The Logo one > wasn't done by Japanese guys. > > -- Yoshiki > |
Free forum by Nabble | Edit this page |