Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/ghostscript-8.15/ drwxr-xr-x |
Viewing file: Htmstyle.htm (27.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | HTML coding and style guidelines for Ghostscript documentationTable of contentsFor other information, see the Ghostscript overview. IntroductionThe most important intention in casting Ghostscript's documentation into Hypertext Markup Language (HTML) from simple text form is to improve its usefulness greatly to those who use, install, and build Ghostscript: everything else is details. The wide spread of World Wide Web browsers now makes it possible to distribute documents which are not only readable as text, but also richly cross-linked as hypertext. Using hypertext through a browser can reduce the effort required to find and use the information people often need in order to use Ghostscript. The remainder of this document expresses the guidelines used to create the HTML form of the Ghostscript documentation. The guidelines are intended to encourage
Here are those guidelines. Appearance and contentsWhat the user sees browsing the documentation, and what a document developer or editor sees working with it, are different. This section is about what the user sees. Page structureA Ghostscript document in HTML form should consist of
This document is an example of this standard visible structure. Also see below about "Structuring comments" in HTML source code. Where it makes sense to modify the standard structure to make the document more usable, do that. See Readme.htm for an example: the introductory material at the beginning of the visible header, before the table of contents. Links to outside the Ghostscript documentation
Links to sites and documents outside the ghostscript distribution
must carry the Avoid gratuitous commercial links; for instance, link the title of a book to its publisher, not to one particular on-line bookseller. See Language.htm for an example, the reference to the PostScript Language Reference Manual. Similarly, where you have a choice, refer to free software rather than commercial products. See Make.htm for an example, the reference to InfoZip unzip (where many commercial products provide similar functions). Images and graphicsUse no graphics or images. The documents are text-only, so nothing is lost when a document is converted into ASCII text. This is an explicit initial design goal of the HTML documentation. index.htmlindex.html is not a part of the visible Ghostscript documentation itself, but when it is placed with all the *.htm files in a directory and a browser refers to the directory name alone, most servers are configured to deliver a file named index.html by default. This one does nothing except immediately to open the introductory Ghostscript document Readme.htm. This is intended to make life easier for both webmasters and users. HTML large structureHTML <head>Besides the essential HTML structure elements, Ghostscript HTML document's <head> consists of three elements in this order:
HTML <body>A Ghostscript HTML document's <body> consists of five elements in this order:
This document for an example of that structure. HTML inner structureStructuring commentsSpecial comment lines within the HTML files mark internally the visible sections of the document. They make it easy for both document developers and programs to handle the HTML code. Each of these comments is exactly 80 characters wide, and each important section of a document is bracketed by a unique beginning and ending pair. View the source code of this document for an example of these structuring comments. The sections they mark are:
Headers: <Hn>Give a header <Hn> this structure: <h2><a name="Head_anchor"></a>Header text</h2> That is, the opening header tag, an anchor, the header text, and the closing tag. Represent every header in the table of contents, linked <a href="#...">...</a> to the header. Of course, the headers are also convenient linkage points for references from other documents. Anchors: <a name="...">Give an anchor a name consisting only of letters, digits, dots ("."), hyphens ("-"), and underscores ("_"), but not white space or other punctuation marks. This ensures that the name is readable and that an entire name always appears on a single line of HTML source both where it's defined and everywhere it's used, making it simple to find anchors by text search in the HTML source code. Choose anchor names to be readable and meaningful in the HTML source code. For instance:
Anchors should be empty, that is
Place an anchor within a paragraph (indented paragraph, list item, head, etc.) and at its beginning.
The presentation of textSections of textParagraphs: <p>Define unindented paragraphs with <p>, never with explicit line breaks <br>, and make them ragged-right, not right-filled or centered. Put the paragraph tag <p> on a line alone, except when it is followed immediately by an anchor. Don't place the anchor before the paragraph tag. Indented paragraphs: <blockquote>Define indented paragraphs with <blockquote>. Avoid elaborate nested indentation -- that is, more than two levels. It is generally a poor idea to try to make indentation carry too much weight of meaning for text, so use indentation simply to separate visual elements for easier reading. Explicit line breaks: <br>Use explicit line breaks <br> sparingly, and never as a substitute for paragraph tags. Do use them in
Preformatted text: <pre>Use preformatted text <pre> exclusively for material that must be presented with exact spacing in a monospaced font, such as extended coding examples. Where extended preformatted text seems likely to be wider than a typical browser window, reduce the font size: <font size="-1"><pre> The use of different font facesDo not use named fonts. Use only standard markup to specify fonts, as shown in this table.
Lists: <ul>, <ol>, <dl>Don't over-use lists: instead simply use clear wording in running text wherever possible. Use a list where the special formatting improves the material's clarity and readability. Most simple lists should be unordered (bulleted) lists <ul>. Use an ordered (numbered or alphabetized) list <ol> only where the exact ordering or an exact count is important. Where entries in a descriptive list <dl> contain extended descriptions <dd> -- especially if the descriptions contain paragraph breaks or tables -- improve the spacing between entries by making each entry a separate list. That is, enclose each entry in a separate list to give it more readable spacing, rather than putting many <dt>...<dd>... entries in a single list:
This may be more work for the HTML writer, but the results for the reader are often much better. Tables: <table>Readability for the user and the HTML writerFormat tables to be as readable as possible both with a browser and when converted to plain text. Browsers and converters of all kinds handle tables idiosyncratically, so there seems to be more art than science to reaching this end, which accounts for all the detail in the guidelines for tables: it is the reason for all the uses of background color bgcolor, horizontal rules <hr>, and explicit spacing. Secondarily, arrange HTML source code for tables to be readable by the writer and developer. Specific guidelines for coding tables
HTML code for typical tablesThe HTML source code for a typical large table should look like this: <table cellpadding=0 cellspacing=0> <tr><th colspan=5 bgcolor="#CCCC00"><hr><font size="+1">Large table</font><hr> <tr> <th align=left>... <td> <th align=left>... <td> <th align=left>... <tr> <td>... <td> <td>... <td> <td>... ... </table> The HTML source code for a typical small table should look like this: <table cellpadding=0 cellspacing=0> <tr> <td>... <td> <td>... <tr> <td>... <td> <td>... ... </table> Tags not usedDon't use optional tags (ones not required by the HTML standard). These include </dd>, </dt>, </li>, </p>, </tr>, </th>, and </td>. Creating a new documentName the new document in 8+3 formatIf you create a new Ghostscript HTML document, choose for it a name in 8+3 format for cross-platform compabitility: Name.htm where "Name" is no more than eight characters. Begin the new file name with an upper-case letter like the existing names, which are in mixed case beginning with upper-case letters. Use spelling, not case, to distinguish between names: that is, don't create a new file whose name differs from an existing one only by the difference between upper and lower case, because some platforms can't store two such files. Use an existing document as a modelTo create an entirely new Ghostscript document, plagiarize this one for the structuring comments and other useful parts. Then, using the structuring comments as a guide to the sections of the document (in a text editor, search for "<!-- ["):
You now have a template document ready for new contents. Write new references to go in Readme.htmWrite material to go in Readme.htm that describes the new document, and links to it from two sections:
Other considerationsFollow the other guidelines here, including which elements of the document should go in which section according to the structuring comments, and anchoring every <Hn> header. As you create text and headers, you will want to rebuild the table of contents from the headers occasionally. Pete Kaiser <kaiser@acm.org> wrote a package of GNU emacs functions specifically to handle Ghostscript HTML documentation, including functions to build a table of contents from headers in an HTML document, and to build and maintain tables and other structures built along the guidelines in this document. MiscellanyUse <> to bracket links to visible email addresses (mailto) in running text. This makes it easy for a user to cut and paste the entire name and address into another document or mailer, for instance Free Software Foundation <gnu@gnu.org> For exponentiation use "^" (not "**" or "exp()") plus writing the exponent as a superscript in <small> size: Something^<sup><small>exponent</small></sup>. to look like this: Something^exponent This is intended for readability both in a browser and as plain text. Copyright © 1996, 2000 Aladdin Enterprises. All rights reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license contained in the file LICENSE in this distribution. For more information about licensing, please refer to http://www.ghostscript.com/licensing/. For information on commercial licensing, go to http://www.artifex.com/licensing/ or contact Artifex Software, Inc., 101 Lucas Valley Road #110, San Rafael, CA 94903, U.S.A., +1(415)492-9861. Ghostscript version 8.15, 22 September 2004 |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0078 ]-- |