[e7323adb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[50d3491a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[f6f7820] | 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY opensp-download-http "&sourceforge-dl;/openjade/OpenSP-&opensp-version;.tar.gz">
|
---|
[9f06afd] | 8 | <!ENTITY opensp-download-ftp " ">
|
---|
| 9 | <!ENTITY opensp-md5sum "670b223c5d12cee40c9137be86b6c39b">
|
---|
| 10 | <!ENTITY opensp-size "1.5 MB">
|
---|
| 11 | <!ENTITY opensp-buildsize "32 MB">
|
---|
| 12 | <!ENTITY opensp-time "1.0 SBU">
|
---|
[50d3491a] | 13 | ]>
|
---|
| 14 |
|
---|
[8223b66] | 15 | <sect1 id="opensp" xreflabel="OpenSP-&opensp-version;">
|
---|
[e7323adb] | 16 | <?dbhtml filename="opensp.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>OpenSP-&opensp-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="opensp">
|
---|
| 25 | <primary sortas="a-OpenSP">OpenSP</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to OpenSP</title>
|
---|
| 30 |
|
---|
[47274444] | 31 | <para>
|
---|
| 32 | The <application>OpenSP</application> package contains a
|
---|
| 33 | <application>C++</application> library for using SGML/XML files.
|
---|
| 34 | This is useful for validating, parsing and manipulating SGML and XML
|
---|
| 35 | documents.
|
---|
| 36 | </para>
|
---|
[e7323adb] | 37 |
|
---|
[b3148f55] | 38 | &lfs101_checked;
|
---|
[00555b0f] | 39 |
|
---|
[e7323adb] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[47274444] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&opensp-download-http;"/>
|
---|
| 45 | </para>
|
---|
[e7323adb] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[47274444] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&opensp-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[e7323adb] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[47274444] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &opensp-md5sum;
|
---|
| 55 | </para>
|
---|
[e7323adb] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[47274444] | 58 | <para>
|
---|
| 59 | Download size: &opensp-size;
|
---|
| 60 | </para>
|
---|
[e7323adb] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[47274444] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &opensp-buildsize;
|
---|
| 65 | </para>
|
---|
[e7323adb] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[47274444] | 68 | <para>
|
---|
| 69 | Estimated build time: &opensp-time;
|
---|
| 70 | </para>
|
---|
[e7323adb] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">OpenSP Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[47274444] | 77 | <para role="required">
|
---|
| 78 | <xref linkend="sgml-common"/>
|
---|
| 79 | </para>
|
---|
[e7323adb] | 80 |
|
---|
[9f06afd] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[47274444] | 82 | <para role="optional">
|
---|
| 83 | <xref linkend="xmlto"/>
|
---|
| 84 | </para>
|
---|
[9f06afd] | 85 |
|
---|
[977061b0] | 86 | <para condition="html" role="usernotes">User Notes:
|
---|
| 87 | <ulink url="&blfs-wiki;/opensp"/></para>
|
---|
| 88 |
|
---|
[e7323adb] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
| 92 | <title>Installation of OpenSP</title>
|
---|
| 93 |
|
---|
[47274444] | 94 | <para>
|
---|
| 95 | Install <application>OpenSP</application> by running the following
|
---|
| 96 | commands:
|
---|
| 97 | </para>
|
---|
[e7323adb] | 98 |
|
---|
[4045bae8] | 99 | <screen><userinput>sed -i 's/32,/253,/' lib/Syntax.cxx &&
|
---|
| 100 | sed -i 's/LITLEN 240 /LITLEN 8092/' \
|
---|
[9f06afd] | 101 | unicode/{gensyntax.pl,unicode.syn} &&
|
---|
[512f843] | 102 |
|
---|
[4045bae8] | 103 | ./configure --prefix=/usr \
|
---|
[07078cc] | 104 | --disable-static \
|
---|
[4045bae8] | 105 | --disable-doc-build \
|
---|
| 106 | --enable-default-catalog=/etc/sgml/catalog \
|
---|
| 107 | --enable-http \
|
---|
| 108 | --enable-default-search-path=/usr/share/sgml &&
|
---|
[512f843] | 109 |
|
---|
[e7323adb] | 110 | make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</userinput></screen>
|
---|
[dbfc8e65] | 111 |
|
---|
[47274444] | 112 | <para>
|
---|
| 113 | To test the results, issue: <command>make check</command>. As many as
|
---|
| 114 | nine of the 23 tests may fail. Do not be alarmed.
|
---|
| 115 | </para>
|
---|
[ea92fe5] | 116 |
|
---|
[47274444] | 117 | <para>
|
---|
| 118 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
[dbfc8e65] | 120 |
|
---|
[92c1c66] | 121 | <screen role="root"><userinput>make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; \
|
---|
| 122 | docdir=/usr/share/doc/OpenSP-&opensp-version; \
|
---|
| 123 | install &&
|
---|
| 124 |
|
---|
| 125 | ln -v -sf onsgmls /usr/bin/nsgmls &&
|
---|
[e7323adb] | 126 | ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
|
---|
[92c1c66] | 127 | ln -v -sf ospam /usr/bin/spam &&
|
---|
| 128 | ln -v -sf ospcat /usr/bin/spcat &&
|
---|
| 129 | ln -v -sf ospent /usr/bin/spent &&
|
---|
| 130 | ln -v -sf osx /usr/bin/sx &&
|
---|
| 131 | ln -v -sf osx /usr/bin/sgml2xml &&
|
---|
[e7323adb] | 132 | ln -v -sf libosp.so /usr/lib/libsp.so</userinput></screen>
|
---|
[402131a2] | 133 |
|
---|
[e7323adb] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="commands">
|
---|
| 137 | <title>Command Explanations</title>
|
---|
| 138 |
|
---|
[47274444] | 139 | <para>
|
---|
| 140 | <command>sed -i 's/32,/253,/...unicode.syn}</command>:
|
---|
| 141 | These seds prevent some annoying messages that may otherwise appear
|
---|
| 142 | while running <command>openjade</command>.
|
---|
| 143 | </para>
|
---|
[9f06afd] | 144 |
|
---|
[1a518e97] | 145 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 146 | href="../../xincludes/static-libraries.xml"/>
|
---|
[e7323adb] | 147 |
|
---|
[47274444] | 148 | <para>
|
---|
| 149 | <parameter>--enable-http</parameter>: This switch adds support
|
---|
| 150 | for HTTP.
|
---|
| 151 | </para>
|
---|
| 152 |
|
---|
| 153 | <para>
|
---|
| 154 | <parameter>--disable-doc-build</parameter>: This switch prevents the
|
---|
| 155 | <command>configure</command> script checking if you have
|
---|
| 156 | <application>xmlto</application> installed. If you have
|
---|
| 157 | <application>xmlto</application>, you can remove this option.
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
| 161 | <parameter>--enable-default-catalog=/etc/sgml/catalog</parameter>:
|
---|
| 162 | This switch sets the path to the centralized catalog.
|
---|
| 163 | </para>
|
---|
| 164 |
|
---|
| 165 | <para>
|
---|
| 166 | <parameter>--enable-default-search-path</parameter>: This switch
|
---|
| 167 | sets the default value of <envar>SGML_SEARCH_PATH</envar>.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | <option>--enable-xml-messages</option>: This switch adds
|
---|
| 172 | support for XML Formatted Messages.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
| 176 | <command>
|
---|
| 177 | make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;
|
---|
| 178 | </command>: This sets the
|
---|
| 179 | pkgdatadir variable in the <filename>Makefile</filename> from
|
---|
| 180 | <filename class="directory">/usr/share/OpenSP</filename> to <filename
|
---|
| 181 | class="directory">/usr/share/sgml/OpenSP-&opensp-version;</filename>.
|
---|
| 182 | </para>
|
---|
| 183 |
|
---|
| 184 | <para>
|
---|
| 185 | <command>ln -v -sf ...</command>: These commands create the
|
---|
| 186 | <application>SP</application> equivalents of
|
---|
| 187 | <application>OpenSP</application> executables and libraries.
|
---|
| 188 | </para>
|
---|
[e7323adb] | 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2 role="content">
|
---|
| 193 | <title>Contents</title>
|
---|
| 194 |
|
---|
| 195 | <segmentedlist>
|
---|
| 196 | <segtitle>Installed Programs</segtitle>
|
---|
| 197 | <segtitle>Installed Library</segtitle>
|
---|
| 198 | <segtitle>Installed Directories</segtitle>
|
---|
| 199 |
|
---|
| 200 | <seglistitem>
|
---|
| 201 | <seg>onsgmls, osgmlnorm, ospam, ospcat, ospent, osx, and the
|
---|
| 202 | <application>SP</application> equivalent symlinks: nsgmls, sgml2xml,
|
---|
| 203 | sgmlnorm, spam, spcat, spent, and sx</seg>
|
---|
| 204 | <seg>libosp.so and the <application>SP</application> equivalent symlink:
|
---|
| 205 | libsp.so</seg>
|
---|
| 206 | <seg>/usr/include/OpenSP, /usr/share/doc/OpenSP, and
|
---|
| 207 | /usr/share/sgml/OpenSP-&opensp-version;</seg>
|
---|
| 208 | </seglistitem>
|
---|
| 209 | </segmentedlist>
|
---|
| 210 |
|
---|
| 211 | <variablelist>
|
---|
| 212 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 213 | <?dbfo list-presentation="list"?>
|
---|
| 214 | <?dbhtml list-presentation="table"?>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="onsgmls">
|
---|
| 217 | <term><command>onsgmls</command></term>
|
---|
| 218 | <listitem>
|
---|
[47274444] | 219 | <para>
|
---|
[4c24eb0a] | 220 | is used to process SGML files
|
---|
[47274444] | 221 | </para>
|
---|
[e7323adb] | 222 | <indexterm zone="opensp onsgmls">
|
---|
| 223 | <primary sortas="b-onsgmls">onsgmls</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="osgmlnorm">
|
---|
| 229 | <term><command>osgmlnorm</command></term>
|
---|
| 230 | <listitem>
|
---|
[47274444] | 231 | <para>
|
---|
| 232 | prints on the standard output a normalized document instance for
|
---|
| 233 | the SGML document contained in the concatenation of the entities
|
---|
[4c24eb0a] | 234 | with system identifiers .nf and .fi
|
---|
[47274444] | 235 | </para>
|
---|
[e7323adb] | 236 | <indexterm zone="opensp osgmlnorm">
|
---|
| 237 | <primary sortas="b-osgmlnorm">osgmlnorm</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="ospam">
|
---|
| 243 | <term><command>ospam</command></term>
|
---|
| 244 | <listitem>
|
---|
[47274444] | 245 | <para>
|
---|
[4c24eb0a] | 246 | is a markup stream editor
|
---|
[47274444] | 247 | </para>
|
---|
[e7323adb] | 248 | <indexterm zone="opensp ospam">
|
---|
| 249 | <primary sortas="b-ospam">ospam</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="ospcat">
|
---|
| 255 | <term><command>ospcat</command></term>
|
---|
| 256 | <listitem>
|
---|
[47274444] | 257 | <para>
|
---|
[4c24eb0a] | 258 | prints effective system identifiers found in the catalogs
|
---|
[47274444] | 259 | </para>
|
---|
[e7323adb] | 260 | <indexterm zone="opensp ospcat">
|
---|
| 261 | <primary sortas="b-ospcat">ospcat</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="ospent">
|
---|
| 267 | <term><command>ospent</command></term>
|
---|
| 268 | <listitem>
|
---|
[47274444] | 269 | <para>
|
---|
| 270 | provides access to <application>OpenSP</application>'s
|
---|
[4c24eb0a] | 271 | entity manager
|
---|
[47274444] | 272 | </para>
|
---|
[e7323adb] | 273 | <indexterm zone="opensp ospent">
|
---|
| 274 | <primary sortas="b-ospent">ospent</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
| 279 | <varlistentry id="osx">
|
---|
| 280 | <term><command>osx</command></term>
|
---|
| 281 | <listitem>
|
---|
[47274444] | 282 | <para>
|
---|
| 283 | is an SGML normalizer or used to convert
|
---|
[4c24eb0a] | 284 | SGML files to XML files
|
---|
[47274444] | 285 | </para>
|
---|
[e7323adb] | 286 | <indexterm zone="opensp osx">
|
---|
| 287 | <primary sortas="b-osx">osx</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
| 292 | <varlistentry id="nsgmls">
|
---|
| 293 | <term><command>nsgmls</command></term>
|
---|
| 294 | <listitem>
|
---|
[47274444] | 295 | <para>
|
---|
[4c24eb0a] | 296 | is a symlink to <command>onsgmls</command>
|
---|
[47274444] | 297 | </para>
|
---|
[e7323adb] | 298 | <indexterm zone="opensp nsgmls">
|
---|
[b960e3ec] | 299 | <primary sortas="b-nsgmls">nsgmls</primary>
|
---|
[e7323adb] | 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
| 304 | <varlistentry id="sgml2xml">
|
---|
| 305 | <term><command>sgml2xml</command></term>
|
---|
| 306 | <listitem>
|
---|
[47274444] | 307 | <para>
|
---|
[4c24eb0a] | 308 | is a symlink to <command>osx</command>
|
---|
[47274444] | 309 | </para>
|
---|
[e7323adb] | 310 | <indexterm zone="opensp sgml2xml">
|
---|
[b960e3ec] | 311 | <primary sortas="b-sgml2xml">sgml2xml</primary>
|
---|
[e7323adb] | 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="sgmlnorm">
|
---|
| 317 | <term><command>sgmlnorm</command></term>
|
---|
| 318 | <listitem>
|
---|
[47274444] | 319 | <para>
|
---|
[4c24eb0a] | 320 | is a symlink to <command>osgmlnorm</command>
|
---|
[47274444] | 321 | </para>
|
---|
[e7323adb] | 322 | <indexterm zone="opensp sgmlnorm">
|
---|
[b960e3ec] | 323 | <primary sortas="b-sgmlnorm">sgmlnorm</primary>
|
---|
[e7323adb] | 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
| 328 | <varlistentry id="spam">
|
---|
| 329 | <term><command>spam</command></term>
|
---|
| 330 | <listitem>
|
---|
[47274444] | 331 | <para>
|
---|
[4c24eb0a] | 332 | is a symlink to <command>ospam</command>
|
---|
[47274444] | 333 | </para>
|
---|
[e7323adb] | 334 | <indexterm zone="opensp spam">
|
---|
[b960e3ec] | 335 | <primary sortas="b-spam">spam</primary>
|
---|
[e7323adb] | 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
| 339 |
|
---|
| 340 | <varlistentry id="spcat">
|
---|
| 341 | <term><command>spcat</command></term>
|
---|
| 342 | <listitem>
|
---|
[47274444] | 343 | <para>
|
---|
[4c24eb0a] | 344 | is a symlink to <command>ospcat</command>
|
---|
[47274444] | 345 | </para>
|
---|
[e7323adb] | 346 | <indexterm zone="opensp spcat">
|
---|
[b960e3ec] | 347 | <primary sortas="b-spcat">spcat</primary>
|
---|
[e7323adb] | 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
| 351 |
|
---|
| 352 | <varlistentry id="spent">
|
---|
| 353 | <term><command>spent</command></term>
|
---|
| 354 | <listitem>
|
---|
[47274444] | 355 | <para>
|
---|
[4c24eb0a] | 356 | is a symlink to <command>ospent</command>
|
---|
[47274444] | 357 | </para>
|
---|
[e7323adb] | 358 | <indexterm zone="opensp spent">
|
---|
[b960e3ec] | 359 | <primary sortas="b-spent">spent</primary>
|
---|
[e7323adb] | 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
| 364 | <varlistentry id="sx">
|
---|
| 365 | <term><command>sx</command></term>
|
---|
| 366 | <listitem>
|
---|
[47274444] | 367 | <para>
|
---|
[4c24eb0a] | 368 | is a symlink to <command>osx</command>
|
---|
[47274444] | 369 | </para>
|
---|
[e7323adb] | 370 | <indexterm zone="opensp sx">
|
---|
[b960e3ec] | 371 | <primary sortas="b-sx">sx</primary>
|
---|
[e7323adb] | 372 | </indexterm>
|
---|
| 373 | </listitem>
|
---|
| 374 | </varlistentry>
|
---|
| 375 |
|
---|
| 376 | <varlistentry id="libosp">
|
---|
[4c24eb0a] | 377 | <term><filename class="libraryfile">libosp.so</filename></term>
|
---|
[e7323adb] | 378 | <listitem>
|
---|
[47274444] | 379 | <para>
|
---|
| 380 | contains functions required by the
|
---|
| 381 | <application>OpenSP</application> programs to parse, validate and
|
---|
[4c24eb0a] | 382 | manipulate SGML and XML files
|
---|
[47274444] | 383 | </para>
|
---|
[e7323adb] | 384 | <indexterm zone="opensp libosp">
|
---|
| 385 | <primary sortas="c-libosp">libosp.so</primary>
|
---|
| 386 | </indexterm>
|
---|
| 387 | </listitem>
|
---|
| 388 | </varlistentry>
|
---|
| 389 |
|
---|
| 390 | <varlistentry id="libsp">
|
---|
[4c24eb0a] | 391 | <term><filename class="libraryfile">libsp.so</filename></term>
|
---|
[e7323adb] | 392 | <listitem>
|
---|
[47274444] | 393 | <para>
|
---|
| 394 | is a symlink to
|
---|
[4c24eb0a] | 395 | <filename class="libraryfile">libosp.so</filename>
|
---|
[47274444] | 396 | </para>
|
---|
[e7323adb] | 397 | <indexterm zone="opensp libsp">
|
---|
[b960e3ec] | 398 | <primary sortas="c-libsp">libsp.so</primary>
|
---|
[e7323adb] | 399 | </indexterm>
|
---|
| 400 | </listitem>
|
---|
| 401 | </varlistentry>
|
---|
| 402 |
|
---|
| 403 | </variablelist>
|
---|
| 404 |
|
---|
| 405 | </sect2>
|
---|
[7ff89fa4] | 406 |
|
---|
| 407 | </sect1>
|
---|