Rich Text (RTF)
Todd Blanchard
tblanchard at mac.com
Sat Apr 15 08:04:40 UTC 2006
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)
>
>
More information about the Squeak-dev
mailing list
|