230 likes | 344 Views
Creating Documents. Chapter 5, Exploring the Digital Domain. Creating Documents. the history of text processing how text is represented word processing applications desktop publishing software an HTML primer Web publishing applications. In this chapter, you will learn about . . .
E N D
Creating Documents Chapter 5, Exploring the Digital Domain
Creating Documents • the history of text processing • how text is represented • word processing applications • desktop publishing software • an HTML primer • Web publishing applications In this chapter, you will learn about . . .
A Short History of Text Processing • keypunch machines • line editors, text editors • (standalone) word processors • word processing software • desktop publishing software • Web publishing
Representing Text • text symbols are represented by digital character codes • text is represented by sequences of character codes • strings • files
ASCII • each character code = 8 (or 7) bits • character set includes • Latin alphabet (uppercase, lowercase) • numerals • punctuation, special symbols • control characters • collating sequence • “plaintext”
Unicode • developed by U.S. consortia and ISO • includes • Latin alphabet (compatible with ASCII) • European alphabets • Middle Eastern scripts • Asian scripts • originally, 2-byte code (>65,000 symbols) • currently, up to 4 bytes (>4 billion symbols)
Basic Word Processing • inserting, deleting text • cut, copy, and paste • formatting characters, paragraphs, etc. • display (printing) • WYSIWYG
Desktop Publishing • page layout and design • motif: copy editor’s copy board • frames (text, picture) • chaining, linking text frames for text flow • master pages, templates • prepress color separation • PostScript output
HTML Philosophy • separates content vs. presentation • author controls content and prescribes the presentation • client interprets presentation • user may set browser preferences
HTML document • plaintext file with “.html” or “.htm” extension • consists of markup codes: tags • paired tags <tag_id>content affected by tag</tag_id> • standalone tags <tag_id>content after the tag
HTML Document Structure <!DOCTYPE> <html> <head> <title>description of the page</title> <meta name=“metaname” content=“metacontent”> other head elements… </head> <body> body elements go here </body> </html>
HTML Examples <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/ REC-html40/loose.dtd> <title>My First Web Page</title> <meta name=“Author” content=“R.S. Quinby”> <meta name=“Keywords” content=“money, fame”>
HTML Text: Paragraphs <p>A paragraph is one of the simplest text elements in HTML. Paragraphs in HTML are usually displayed as blocks of text.</p> <p>These blocks have some spacing above and below them.</p> A paragraph is one of the simplest text elements in HTML. Paragraphs in HTML are usually displayed As blocks of text. These blocks have some spacing above and below them.
HTML Text: Line Breaks <p>roses are red,<br>violets are Blue,<br>sugar is sweet<br>...</p> Roses are red, Violets are blue, Sugar is sweet …
HTML Text: Headings <h1>The Story of My Life</h1> <h2>In the Beginning</h2> The Story of My Life In the Beginning
HTML Text: Lists <ul> <ol> <ol type=“a”> <li>first item <li>first item <li>first item <li>second item <li>second item <li>second item <li>third item <li>third item <li>third item </ul> </ol> </ol> • first item 1. first item a. first item • second item 2. second item b. second item • third item 3. third item c. third item
HTML Text: Fonts, Sizes <p><font face=“verdana, arial, sans-serif” size=“5”> Now is the time for all good women to come to the aid of their country.</font></p> <p><font face= “georgia, times, serif” size=“-1”> Now is the time for all good men to come to the aid of their country.</font></p> Now is the time for all good women to come to the aid of their country. Now is the time for all good men to come to the aid of their country.
HTML Text: Styles Font styles such as italics, bold, and underlining <p>Words or phrases may be set in <i>italics</i> or <b>boldface</b>.</p> <p>You may also <u>underline</u> words.</p> Words or phrases may be set in italics or boldface. You may also underline words.
HTML Text: Styles, part II Subscripts and superscripts <p>a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup></p> <p>H<sub>2</sub>0</p> a2 + b2 = c2 H20
HTML Text: Styles, part III Font colors <p><font color=“red”>A rose is a rose is a rose.</font></p> <p><font color=“#FF0000”>A rose is a rose is a rose.</font></p> A rose is a rose is a rose. A rose is a rose is a rose.
<img src=“logo.gif”> Inline Graphics • images that are placed on the page along with text and other elements • restricted to accepted image file formats (“.gif”, “.jpg”, and “.png”)
Hyperlinks • references to other elements: pages, images, resources, etc. • causes automatic request for linked element example: <a href=“http://cs.furman.edu/digitaldomain/”>Exploring the Digital Domain</a>
Web Publishing Applications • tag editors • help with editing HTML code • e.g., BBEdit • HTML generators (editors) • WYSIWYG design views • e.g., Macromedia Dreamweaver