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