1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>hsc - Strip Specific Elements</TITLE>
<LINK REV="owns" TITLE="Thomas Aglassinger" HREF="mailto:agi@giga.or.at">
<LINK REL="Next" HREF="syntax.html">
<LINK REL="Copyright" HREF="../copy.html">
<LINK REL="Previous" HREF="spcattr.html">
<META name="ROBOTS" content="NOINDEX, NOFOLLOW">
</HEAD>
<BODY>
<A HREF="../index.html"><IMG SRC="../image/main.gif" ALT="Contents" ALIGN="middle" WIDTH="70" HEIGHT="16"></A>
<IMG SRC="../image/noindex.gif" ALT="-----" ALIGN="middle" WIDTH="70" HEIGHT="16">
<A HREF="../copy.html"><IMG SRC="../image/copy.gif" ALT="Copyright" ALIGN="middle" WIDTH="70" HEIGHT="16"></A>
<A HREF="../index.html"><IMG SRC="../image/back.gif" ALT="Up" ALIGN="middle" WIDTH="70" HEIGHT="16"></A>
<A HREF="spcattr.html"><IMG SRC="../image/prev.gif" ALT="Previous" ALIGN="middle" WIDTH="70" HEIGHT="16"></A>
<A HREF="syntax.html"><IMG SRC="../image/next.gif" ALT="Next" ALIGN="middle" WIDTH="70" HEIGHT="16"></A>
<HR>
<P ALIGN="right"><I>She looks like the Sunday Comics<BR>She thinks she's Brenda Star<BR>Her nose job is real atomic<BR>All she needs is an old knife scar</I><BR>
(Blondie, "Rip Her to Shreds")
</P>
<H1>Strip Specific Elements</H1>
<H2>SGML Comments</H2>
<P>Usually there should be no need to use sgml-comments, so why not
remove them at all? You can perform this by enabling the switch
<A HREF="../options.html#stripcomment"><KBD>STRIPCOMMENT</KBD></A> when invoking <KBD>hsc</KBD>.</P>
<P>Because of the numerous problems sgml-comments cause, you better use
<A HREF="spctags.html#comments">hsc-comments</A> anyway (see there also
for a discussion of these problems).</P>
<H2>Specific Tags</H2>
<P>..can be passed to the option <A HREF="../options.html#striptags"><KBD>STRIPTAGS</KBD></A>, separated by a
vertical bar (``<CODE>|</CODE>''). For example, to remove all physical styles, use
<KBD>STRIPTAG="B|I|U|TT"</KBD> when invoking <KBD>hsc</KBD>.</P>
<P>You can't strip tags, which have the <A HREF="../macro/flag.html">tag
modifier</A> <CODE>/SPECIAL</CODE> set. But this only concerns the
<CODE><!></CODE>-tag (use the above switch instead) and some of <KBD>hsc</KBD>'s
internal tags, which you should not strip anyway.</P>
<H2>Tags With External References</H2>
<P>These can be removed if you want to create a No-Net-version of your
document. Use the switch <A HREF="../options.html#stripexternal"><KBD>STRIPEXTERNAL</KBD></A> for this task. Tags which
are affected by this must have an URI-type attribute, which has the <A
HREF="../macro/attrib.html#modifier">attribute modifier</A>
<CODE>/STRIPEXT</CODE> set within <I>hsc.prefs</I>.</P>
<P>Currently, this affects only the tags <CODE><A></CODE>, <CODE><IMG></CODE> and
<CODE><LINK></CODE>. This can be useful if you want to create a
``no-net-version'' of your documents.</P>
<H2>Unneeded Linefeeds And White Spaces</H2>
<P>These can be removed, if you heavy use them to structure your
source, but don't want to waste bandwidth for them. You only need to
enable the switch <A HREF="../options.html#compact"><KBD>COMPACT</KBD></A>.</P>
<P>If now someone performs a "View Source" on your html object,it will
be less readable for him, but browsers won't care and display it the
same way. For example,</P>
<PRE>
This is a <B>complete</B>
waste of space...
</PRE>
will turn into
<PRE>
This is a <B>complete</B>
waste of space...
</PRE>
In particular, <KBD>hsc</KBD> does:
<UL>
<LI>replace tabs by a single blank
<LI>replace multiple blanks by a single one
<LI>replace multiple linefeeds by a single one
<LI>remove blanks preceeding a linefeed
<LI>remove blanks at beginning of line
</UL>
<P>Linefeeds and white spaces inside a tag call are also affected by
this option. The tag <CODE><PRE></CODE> temporarily suppresses this option,
until a <CODE></PRE></CODE> occures.</P>
</BODY></HTML>
|