Article View: comp.sys.mac
Article #20830Re: HyperCard Experts: Some Advise Please
From: Brock Rhone
Date: Tue, 27 Oct 1987 19:00
Date: Tue, 27 Oct 1987 19:00
49 lines
2762 bytes
2762 bytes
In article <2274@im4u.UUCP> Paul Suhler (suhler@im4u.UUCP) at the
U of Texas writes:
<Is it possible to generate a full-blown MacWrite or Word document from
<HyperCard, assuming that you knew the appropriate format? I just wanted
<to insert italicization, but couldn't figure it out by looking at Word
<documents with just FEDIT.
I was wondering about this myself, for the same application as it turns
out. If you have Word 3.01, then there is an easy solution. Word will
read and write files in RTF "Interchange" format which apparently
allows the encoding of all Word's formatting in an ASCII text file.
The code for italics is {\i words in italics}. An RTF file has a
substantial header, but including that is simple.
As an example, a Word document (normal format) looking like this:
---
this is an italic word
this is a bold word
---
where the font is 12 point Geneva and the words 'italic' and 'bold' are
in italics and boldface, respectively, produces the following text file
when saved in RTF format:
---
{\rtf0\mac {\fonttbl{\f0\fswiss Chicago;}{\f3\fswiss Geneva;}{\f4\fmodern
Monaco;}{\f13\fnil Zapf Dingbats;}{\f15\fnil N Helvetica Narrow;}{\f16\f
nil Palatino;}{\f21\fswiss Helvetica;}{\f22\fmodern Courier;}{\f23\ftech
Symbol;}}{\stylesheet{
\sbasedon222\snext0 Normal;}{\s1\li720\sb120 \b\f20\fs36 \sbasedon0
\snext0 2;}}\margr1080\margb1080\widowctrl\ftnbj\ftnrestart\pgnstart0
\sectd \linemod0\linex0\cols1\colsx0\endnhere
\pard\plain this is an {\i italic} word\par
\par
and this is a {\b bold} word\par
\par
}
---
So, this would appear to allow HyperCard (or anything else that can
produce text files) to produce "full-blown" MS-Word documents, with
full access to fonts, style sheets, etc.
Great stuff!
----------------------------------------------------------------------
Brock Rhone
Department of Computer Science
University of British Columbia UUCP ubc-vision!grads!rhone
Vancouver, BC, CANADA V6T 1W5 Phone (604) 733-1531 (home)
----------------------------------------------------------------------
Technical Details
Message-ID:
<1708@ubc-cs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!ubc-vision!ubc-cs!ubc-csgrads!rhoneReferences:
<462@aucs.UUCP> <2274@im4u.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!ubc-vision!ubc-cs!ubc-csgrads!rhone From: rhone@ubc-csgrads.uucp (Brock Rhone) Newsgroups: comp.sys.mac Subject: Re: HyperCard Experts: Some Advise Please Message-ID: <1708@ubc-cs.UUCP> Date: Tue, 27-Oct-87 14:00:47 EST Article-I.D.: ubc-cs.1708 Posted: Tue Oct 27 14:00:47 1987 Date-Received: Fri, 30-Oct-87 07:01:03 EST References: <462@aucs.UUCP> <2274@im4u.UUCP> Sender: nobody@ubc-cs.UUCP Reply-To: rhone@ubc-csgrads.UUCP (Brock Rhone) Distribution: na Organization: UBC Department of Computer Science, Vancouver, B.C., Canada Lines: 49