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