SILS iSchool

week of 01 October 2020



Value Added | daily

Class Schedule

Basics | sessions 01-03
  1. 13 Aug intro and clients | lecture | labs
  2. 20 Aug servers and command line | lecture | labs
  3. 27 Aug networks and protocols | lecture | labs
Web Development | sessions 04-07

  1. 03 Sep structural layer | lecture | labs
  2. 10 Sep presentational layer | lecture | labs
  3. 17 Sep using a structure | lecture | labs
  4. 24 Sep behavioral layer | lecture | labs
Dealing with Markup | sessions 08-09
  1. 01 Oct control objects and display | lecture | labs
  2. 08 Oct tools that read markup | lecture | labs
Working with Data | sessions 10-13
  1. 15 Oct formulas, functions, vectors | lecture | labs
  2. 22 Oct data display | lecture | labs
  3. 29 Oct manipulate data sets | lecture | labs
  4. 05 Nov relational data bases | lecture | labs
Presentation | session 14
  1. 12 Nov designing and delivering a presentation | lecture | labs


Use this time to go to Project Gutenberg to select a text file to mark up for Task 03.
You can either use the exercises below on your document or on the linked document provided.

Exercises to practice some of the object markup tools

Practice setting up a document using either the document you have selected from Project Gutenberg, or use The Awful German Language, by Mark Twain. If you haven't done it already, copy it all, then paste it into a Word document so we can work with it. The screenshots on this page will be of a different document, but the procedures you follow will be the same

back to top

File naming

The document is now ready to be formatted with more sophisticated tools. Save it as

  • LastName.FirstName.YYYYMMDD.Twain.German.docx
  • as an example, James.Hinton.17950212.Twain.German.docx

Saving it as a .docx allows you to do some object manipulation not available in a .txt file. If you choose to use another markup tool, be sure to use one that creates files that can be opened in a basic laptop that has MSOffice installed.

Set this document up for publishing. The instructions below assume you use MSWord. You don't have to use this tool, but if you use another tool, be sure that the end result meets the specs.

back to top

Find and replace

Use the find and replace tool (it's easiest to use CNTL+H) to tidy up the text. You can see that there is a single paragraph mark each time the line needs to break, and there are two consecutive paragraph marks each time a new paragraph starts. We need to replace all the non-essential paragraph marks with blank spaces, so that the text will wrap automatically all the way to the end of each paragraph. This is a multi-step process.

  1. Find and replace the end of paragraph markup

    This means you need to find two consecutive paragraph marks because the raw text uses a paragraph mark to break a line and uses two consecutive paragraph marks to denote a paragraph break. Either use the More and Special buttons to find a Paragraph mark, or type in ^p^p.

    You want to replace these markup symbols with some special mark not in the text [so you can differentiate between end of sentence breaks and end of paragraph breaks]. You could mark the end of each paragraph by using three @ characters, by typing in @@@. In fact, you want to replace all to make sure it actually goes through the entire text and replaces everything.

    You now have used the @@@ symbols to mark the paragraphs.

  2. Find and replace the end of sentence markup

    What was the end of sentence markup? It was a single paragraph mark. So you need to find all the single paragraph marks [^p] and replace them all with a space.

    Why a space?

    • Because the source document has no space between words that end one line and begin the next. You need to add a space to keep the words separate.
    • Put your cursor in the window and enter a space with the space bar. Then replace all to make sure it actually goes through the entire text and replaces everything.

    You have now taken out all the unnecessary paragraph marks and allowed the text to wrap in each paragraph.

  3. Now you need to go back and put the paragraph breaks back in

    So find all the symbols that marked the paragraph breaks.

    • Remember, you replaced the end of paragraph markup a few minutes ago by marking the location with @@@. So, you want to replace these marks with a single paragraph mark.
    • Type in ^p and replace all to make sure it actually goes through the entire text and replaces everything.
[MSWord 2007 CNTL+H dialog box]

How many replacements do you think it will make? If you replaced the original end of paragraph markup with new symbols, this find and replace action should put an actual paragraph ending mark in the same number of places.

Now the document is set up with all the lines wrapping, with paragraph marks used only to designate a true break between paragraphs. It may not be perfect, so be ready to modify some items if you discover problems. We want to have a good-looking product.

back to top

Page setup

Set the document up for the a printer. But before you do that, be sure that your program is set up to work for you and not against you. From File, find your Options,

[MSWord 2007 Word Options selector]

and be sure your measurement units are in inches. [do this for this exercise only; you can use any measurement unit you prefer in your own work]

[MSWord 2007 options dialog box]

Set up the pages so that they will print out in European letter paper format, on both sides of the paper in portrait orientation. The pages should have a .5 inch gutter with mirrored margins, .75 inch margins inside and outside, 1 inch margins top and bottom.

Note: this size is just for this practice exercise.
For your task 03, you need to set up a page for an e-reader.
[MSWord 2007 paper setup dialog box] [MSWord 2007 margins dialog box]

back to top

Themes and style sheets

Format the document so that it looks like a polished product. Apply the Urban theme template from the Theme Style Gallery (so that you will have access to a pre-set stylesheet).

[MSWord 2007 Themes selector]

This will provide you a CSS-like set of styles that you will modify in future exercises.

back to top

Modify a style

Since the document is now formatted with all text in the Normal style, we need to modify the Normal style

[MSWord 2007 styles sidebar]

Using the Styles sidebar, select all the instances of the Normal style so that you can modify the style

Modify the paragraph property to 0" indentation and Auto spacing before and after

[MSWord 2007 paragraph properties dialog box]

This has allowed us to modify our Style Sheet so that each time we use the Normal style, we will have the indentation we want and the correct spacing between paragraphs

back to top

week of 01 October lab | objects practice | display practice