[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 |
|
---|
[4045bae8] | 40 | &lfs70_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} &&
|
---|
[4045bae8] | 86 | ./configure --prefix=/usr \
|
---|
| 87 | --disable-static \
|
---|
| 88 | --disable-doc-build \
|
---|
| 89 | --enable-default-catalog=/etc/sgml/catalog \
|
---|
| 90 | --enable-http \
|
---|
| 91 | --enable-default-search-path=/usr/share/sgml &&
|
---|
[e7323adb] | 92 | make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</userinput></screen>
|
---|
[dbfc8e65] | 93 |
|
---|
[9327a61] | 94 | <para>To test the results, issue: <command>make check</command>. As many as
|
---|
[4045bae8] | 95 | nine of the 23 tests may fail. Do not be alarmed.</para>
|
---|
[ea92fe5] | 96 |
|
---|
[e7323adb] | 97 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[dbfc8e65] | 98 |
|
---|
[e7323adb] | 99 | <screen role="root"><userinput>make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; install &&
|
---|
| 100 | ln -v -sf onsgmls /usr/bin/nsgmls &&
|
---|
| 101 | ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
|
---|
| 102 | ln -v -sf ospam /usr/bin/spam &&
|
---|
| 103 | ln -v -sf ospcat /usr/bin/spcat &&
|
---|
| 104 | ln -v -sf ospent /usr/bin/spent &&
|
---|
| 105 | ln -v -sf osx /usr/bin/sx &&
|
---|
| 106 | ln -v -sf osx /usr/bin/sgml2xml &&
|
---|
| 107 | ln -v -sf libosp.so /usr/lib/libsp.so</userinput></screen>
|
---|
[402131a2] | 108 |
|
---|
[e7323adb] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="commands">
|
---|
| 112 | <title>Command Explanations</title>
|
---|
| 113 |
|
---|
[4045bae8] | 114 | <para><parameter>sed -i 's/32,/253,/...unicode.syn}</parameter>:
|
---|
[9f06afd] | 115 | These seds prevent some annoying messages that may otherwise appear
|
---|
[2441e46] | 116 | while running <command>openjade</command>.</para>
|
---|
[9f06afd] | 117 |
|
---|
[e7323adb] | 118 | <para><parameter>--disable-static</parameter>: This switch prevents
|
---|
| 119 | the building of the static library.</para>
|
---|
[9f06afd] | 120 | <!-- Why don't we want the static library? -->
|
---|
[e7323adb] | 121 |
|
---|
| 122 | <para><parameter>--enable-http</parameter>: This switch adds support
|
---|
| 123 | for HTTP.</para>
|
---|
| 124 |
|
---|
| 125 | <para><parameter>--enable-default-catalog=/etc/sgml/catalog</parameter>:
|
---|
| 126 | This switch sets the path to the centralized catalog.</para>
|
---|
| 127 |
|
---|
| 128 | <para><parameter>--enable-default-search-path</parameter>: This switch
|
---|
| 129 | sets the default value of <envar>SGML_SEARCH_PATH</envar>.</para>
|
---|
| 130 |
|
---|
| 131 | <para><option>--enable-xml-messages</option>: This switch adds
|
---|
| 132 | support for XML Formatted Messages.</para>
|
---|
| 133 |
|
---|
[9f06afd] | 134 | <para><option>--disable-doc-build</option>: This switch prevents the
|
---|
| 135 | <command>configure</command> script checking if you have
|
---|
| 136 | <application>xmlto</application> installed. If you have
|
---|
[2441e46] | 137 | <application>xmlto</application>, you can remove this option.</para>
|
---|
[9f06afd] | 138 |
|
---|
[e7323adb] | 139 | <para><command>make
|
---|
| 140 | pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</command>: This sets the
|
---|
| 141 | pkgdatadir variable in the <filename>Makefile</filename> from
|
---|
| 142 | <filename class="directory">/usr/share/OpenSP</filename> to <filename
|
---|
| 143 | class="directory">/usr/share/sgml/OpenSP-&opensp-version;</filename>.</para>
|
---|
| 144 |
|
---|
| 145 | <para><command>ln -v -sf ...</command>: These commands create the
|
---|
| 146 | <application>SP</application> equivalents of
|
---|
| 147 | <application>OpenSP</application> executables and libraries.</para>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Library</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
| 158 |
|
---|
| 159 | <seglistitem>
|
---|
| 160 | <seg>onsgmls, osgmlnorm, ospam, ospcat, ospent, osx, and the
|
---|
| 161 | <application>SP</application> equivalent symlinks: nsgmls, sgml2xml,
|
---|
| 162 | sgmlnorm, spam, spcat, spent, and sx</seg>
|
---|
| 163 | <seg>libosp.so and the <application>SP</application> equivalent symlink:
|
---|
| 164 | libsp.so</seg>
|
---|
| 165 | <seg>/usr/include/OpenSP, /usr/share/doc/OpenSP, and
|
---|
| 166 | /usr/share/sgml/OpenSP-&opensp-version;</seg>
|
---|
| 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
| 169 |
|
---|
| 170 | <variablelist>
|
---|
| 171 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 172 | <?dbfo list-presentation="list"?>
|
---|
| 173 | <?dbhtml list-presentation="table"?>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="onsgmls">
|
---|
| 176 | <term><command>onsgmls</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>is used to process SGML files.</para>
|
---|
| 179 | <indexterm zone="opensp onsgmls">
|
---|
| 180 | <primary sortas="b-onsgmls">onsgmls</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="osgmlnorm">
|
---|
| 186 | <term><command>osgmlnorm</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>prints on the standard output a normalized document instance
|
---|
| 189 | for the SGML document contained in the concatenation of the entities
|
---|
| 190 | with system identifiers .nf and .fi.</para>
|
---|
| 191 | <indexterm zone="opensp osgmlnorm">
|
---|
| 192 | <primary sortas="b-osgmlnorm">osgmlnorm</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="ospam">
|
---|
| 198 | <term><command>ospam</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>is a markup stream editor.</para>
|
---|
| 201 | <indexterm zone="opensp ospam">
|
---|
| 202 | <primary sortas="b-ospam">ospam</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="ospcat">
|
---|
| 208 | <term><command>ospcat</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>prints effective system identifiers found in the catalogs.</para>
|
---|
| 211 | <indexterm zone="opensp ospcat">
|
---|
| 212 | <primary sortas="b-ospcat">ospcat</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="ospent">
|
---|
| 218 | <term><command>ospent</command></term>
|
---|
| 219 | <listitem>
|
---|
| 220 | <para>provides access to <application>OpenSP</application>'s
|
---|
| 221 | entity manager.</para>
|
---|
| 222 | <indexterm zone="opensp ospent">
|
---|
| 223 | <primary sortas="b-ospent">ospent</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="osx">
|
---|
| 229 | <term><command>osx</command></term>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>is an SGML normalizer or used to convert
|
---|
| 232 | SGML files to XML files.</para>
|
---|
| 233 | <indexterm zone="opensp osx">
|
---|
| 234 | <primary sortas="b-osx">osx</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="nsgmls">
|
---|
| 240 | <term><command>nsgmls</command></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>is a symlink to <command>onsgmls</command>.</para>
|
---|
| 243 | <indexterm zone="opensp nsgmls">
|
---|
| 244 | <primary sortas="g-nsgmls">nsgmls</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
| 249 | <varlistentry id="sgml2xml">
|
---|
| 250 | <term><command>sgml2xml</command></term>
|
---|
| 251 | <listitem>
|
---|
| 252 | <para>is a symlink to <command>osx</command>.</para>
|
---|
| 253 | <indexterm zone="opensp sgml2xml">
|
---|
| 254 | <primary sortas="g-sgml2xml">sgml2xml</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="sgmlnorm">
|
---|
| 260 | <term><command>sgmlnorm</command></term>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>is a symlink to <command>osgmlnorm</command>.</para>
|
---|
| 263 | <indexterm zone="opensp sgmlnorm">
|
---|
| 264 | <primary sortas="g-sgmlnorm">sgmlnorm</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="spam">
|
---|
| 270 | <term><command>spam</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>is a symlink to <command>ospam</command>.</para>
|
---|
| 273 | <indexterm zone="opensp spam">
|
---|
| 274 | <primary sortas="g-spam">spam</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
| 279 | <varlistentry id="spcat">
|
---|
| 280 | <term><command>spcat</command></term>
|
---|
| 281 | <listitem>
|
---|
| 282 | <para>is a symlink to <command>ospcat</command>.</para>
|
---|
| 283 | <indexterm zone="opensp spcat">
|
---|
| 284 | <primary sortas="g-spcat">spcat</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | <varlistentry id="spent">
|
---|
| 290 | <term><command>spent</command></term>
|
---|
| 291 | <listitem>
|
---|
| 292 | <para>is a symlink to <command>ospent</command>.</para>
|
---|
| 293 | <indexterm zone="opensp spent">
|
---|
| 294 | <primary sortas="g-spent">spent</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
| 299 | <varlistentry id="sx">
|
---|
| 300 | <term><command>sx</command></term>
|
---|
| 301 | <listitem>
|
---|
| 302 | <para>is a symlink to <command>osx</command>.</para>
|
---|
| 303 | <indexterm zone="opensp sx">
|
---|
| 304 | <primary sortas="g-sx">sx</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
| 308 |
|
---|
| 309 | <varlistentry id="libosp">
|
---|
| 310 | <term><filename class='libraryfile'>libosp.so</filename></term>
|
---|
| 311 | <listitem>
|
---|
| 312 | <para>contains functions required by the
|
---|
| 313 | <application>OpenSP</application> programs to parse, validate and
|
---|
| 314 | manipulate SGML and XML files.</para>
|
---|
| 315 | <indexterm zone="opensp libosp">
|
---|
| 316 | <primary sortas="c-libosp">libosp.so</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
| 320 |
|
---|
| 321 | <varlistentry id="libsp">
|
---|
| 322 | <term><filename class='libraryfile'>libsp.so</filename></term>
|
---|
| 323 | <listitem>
|
---|
| 324 | <para>is a symlink to
|
---|
| 325 | <filename class='libraryfile'>libosp.so</filename>.</para>
|
---|
| 326 | <indexterm zone="opensp libsp">
|
---|
| 327 | <primary sortas="g-libsp">libsp.so</primary>
|
---|
| 328 | </indexterm>
|
---|
| 329 | </listitem>
|
---|
| 330 | </varlistentry>
|
---|
| 331 |
|
---|
| 332 | </variablelist>
|
---|
| 333 |
|
---|
| 334 | </sect2>
|
---|
[7ff89fa4] | 335 |
|
---|
| 336 | </sect1>
|
---|