Macro Language Reference > Macros > Text (Page Level) > tsgmload
  
tsgmload
Description
Loads an SGML file into a stream.
 
Example 309. Load an SGML file into a stream
The example below specifies the name of the stream into which to load the SGML file, the name of the file to load and the default file import options. The example will also scan the stream for undefined tags but will not assign the stream to a frame.
tsgmload "sgml1", "{sgml} doc1.sgml","e",1,0
Syntax
tsgmload streamname:s filename:s ( options:s ( scan:o ( assign:o )? )? )?
tsgmload
[no parameter]
Invoke the Load SGML File into Stream dialog box.
streamname
The name of the stream into which to load the SGML file
filename
The name of the SGML file to be loaded
options
String containing the file import options
8
Ignore 8th bit. Characters that conform to the ASCII standard are 8-bits long. However, the 8th bit is never used for character representation. PTC ALD allows you to ignore this 8th bit.
1
Start a new paragraph for each line.
x
Ignore any coding of the file in format, e.g. characters in angle brackets or in typical show string sequence.
t
Preserve tab characters from the original file.
n
Treat end of line character as line feed (not carriage return) character.
z
Ignore word processor controls.
u
Preserve multiple spaces.
v2
Convert multiple spaces to tabs.
y
Preserve initial spaces.
e
Preserve exact markup.
qe
Convert keyboard quotes to English or Spanish .
qg
Convert keyboard quotes to German
qs
Convert keyboard quotes to Swedish .
qn
Convert keyboard quotes to Norwegian or Russian (guillemets set tight against the word).
qf
Convert keyboard quotes to French or Italian (guillemets set with a space against the word).
qd
Convert keyboard quotes to Danish (reversed guillemets).
qo
Convert keyboard quotes to ? .
q{x}
Convert keyboard quotes to the characters shown either side of the / character. These characters can be edited by the user, e.g. if you wanted quotes to be displayed as the words OPEN and CLOSE, this option would take the form q{OPEN/CLOSE}.
--
Apply a hyphen before one of the character map options to toggle inversion of the selected character map on or off before applying it to the incoming text stream.
options (cont...)
a
Convert text from ANSI character set.
i
Convert text from IBM character set.
o
Convert text from IBM Danish character set.
g
Convert text from IBM Greek character set.
b
Convert text from SmartFont (TextData) character set.
c
Convert text from Mac character set.
s
Convert text from ISO character set.
scan
Specify that PTC ALD should scan the stream for undefined tags.
assign
Specify that PTC ALD should assign the stream to a frame.