Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!corton!imag!imag.imag.fr From: gourdol@imag.imag.fr (Arnaud Gourdol) Newsgroups: comp.sys.mac.hypercard Subject: Export to RTF files Keywords: Microsoft Word, HyperCard 2.0 Message-ID: <17984@imag.imag.fr> Date: 11 Feb 91 20:03:10 GMT Sender: news@imag.imag.fr Organization: Grenoble University. IMAG-LGI-IHM Human Interface Lines: 19 Nntp-Posting-Host: mac_b2-24.imag.fr I would like to know if anybody knows about an XCMD (or a very nice script) that could export styled text contained in an HyperCard stack to something that Microsoft Word 4.0 could read, presumably some RTF file. I'd be to heaven if it could manage style sheets, but it's not a requirement. It would be great too if it could automatically index words in a given style. BTW it would be really great if HC could provide some user definable styles like bold, italic, group, but that would have no display change, just to know that an active text belongs to a given category or another. Coding it with actual text styles, font and size is painful. If there is nothing that can do the Word export, I'd like to know if there is a way to get style runs in text fields: I want to know that from char 1 to char 9 its the same style, then from char 10 to char 14... The only thing I see is looking the style of one character at a time and to compare with style of previous character. I doubt that this would be very fast, but maybe there is a cleverer algorithm. Another approach could be to write a nice XCMD that would direclty look into the teHandle. Any suggestion? Arnaud.