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