XHTML MARKUP TOOL TUTORIAL

Instructions

This document explains the procedure of using the Mac.Dot template. The template makes conversion of a text file into a XHTML file very easy.

Copy the whole text which is to be marked up in to the template at the place indicated in the file. Also copy or type out the title of the document at the two places indicated in the document.

Then proceed with markup of the document by using the TOOLBAR buttons or the associated keystrokes as indicated later in this document.

When markup of the whole file is complete, copy all the text into NOTEPAD and save the file with HTML extension.

The following sections describe how different elements of the document should be marked up.

HEADINGS

No selection required

Place your pointer at the beginning of the heading or at least in the first line of the heading.

The assumption is that one heading is not more than one paragraph

The macro types out the code and places the insertion pointer at the beginning of the next paragraph

PARAGRAPHS

No selection required

Place your pointer at the beginning of the paragraph or at least in the first line of the paragraph.

The macro types out the code and places the insertion pointer at the beginning of the next paragraph

PAGE NUMBERING

Some of the books have a different type of numbering for the pages containing Contents, Foreword, Acknowledgements etc. Generally roman numerals are used for numbering these pages. These pages are reffered to as PAGE FRONT here and for marking them the toolbar button PAGE FRONT will have to be used. On clicking this button, you are prompted to type the page number. Alternatively, the keyboard shortcut ALT + G can also be used.

The page numbering is restarted with a different format for the pages holding the main content of the book. The page numbering here is reffered to as PAGE NORMAL. The text of the normal page element must be a number. Alphanumeric characters are not allowed. for marking them the toolbar button PAGE NORMAL will have to be used. On clicking this button, you are prompted to type the page number. Alternatively, the keyboard shortcut ALT + N can also be used.

At he end, books may contain index, appendices etc and could have a different type of numbering for these pages. These pages are freered to as PAGE SPECIAL. The page numbering is normally non-numeric. For marking them the toolbar button PAGE SPECIAL will have to be used. On clicking this button, you are prompted to type the page number. Alternatively, the keyboard shortcut ALT + S can also be used.

NOTE: In all the above cases of page numbering you will have to delete the page numbering as it appears in the file and type it out when you are prompted to do so on using a toolbar nutton or keyboard shortcut.

EMPPHASIZE

If some wordsm pharases or paragraphs are shown to be important in the file being marked through use of bigger font size, undrlinning, bold etc., then select the text and use the EMPHASIZE button from the tool bar. Alternatively, the keyboard shortcut ALT M can be used.

STRONG

If some text is of even greater importance, then it should be marked using the STRONG toolbar button after selecting the text. Alternatively, the keyboard shortcut ALT P can be used.

QUOTE

If the quotation is inline, that is it occurs inside a paragraph, select the text and use the QUOTE toolbar button. Alternatively, use the keyboard shortcut ALT + Q.

BLOCK QUOTE

If the the quotation is on block level, that is it occurs separately like a paragraph, select the text and use the BLOCK QUOTE toolbar button. Alternatively, use the keyboard shortcut ALT + U.

BULLETED LIST

A bulleted list is of the following type:

To apply appropriate tags, select the whole list first and then press the BULLETED LIST button or press the keyboard shortcut ALT + B. The list will then look as follows.

<ul> </ul>

now remove the bullets from all the items and click the LIST ITEM button after selecting each item individually. Alternatively, use the keyboard shortcut ALT + L. The list will now look as follows.

<ul>

<li>Keyboard</li>

<li>Mouse</li>

<li>Monitor</li>

<li>Speaker</li>

</ul>

ORDERED LIST

A ordered list is of the following type. All the items in the list are numbered in a sequence.

1. Hard Disk 2. Floppy 3. CD ROM 4. DVD

To markup, select the whole list and click the ORDERED LIST button or press ALT O. The result will be as follows.

    5. Hard Disk 6. Floppy 7. CD ROM 8. DVD

now remove the numbering before each item and select them individually and click the LIST ITEM button or press ALT + L. The result is as shown below.

  1. Hard Disk
  2. Floppy
  3. CD ROM
  4. DVD

TABLE

If a table or tabular statement is encountered in the file being markedup, the following steps should be taken.

1. The cntent needs to be converted into a table if it not organized exactly inside a table. That is the content may appear with uniform spacing between the different columns but this might have been achievd using TABS. The macros created here will work properly only if the the content is actually a table. Try to convert the text into table using the following menu command TABLE>CONVERT>TEXT TO TABLE 2. Once the table is there, place the cursor anywhere inside the table and click the TABLE nutton on the toolbar or press the keyborrd shortcut ALT + T. Table tags will be placed before and after the table as shown below. Sl.No Name of Student Percentage 1 Sailesh Kumar 61% 2 Ashoak Kanaujiya 60% 3 Geetanjali 56%
3. In the table, mark the column headings using the TABLE HEADING button or the keyboard shoutcut ALT + H. Just place the insertion pointer inside the cell containing the heading and click the button or press the keyboard shortcut. The table heading tags as shown below will appear. 1 Sailesh Kumar 61% 2 Ashoak Kanaujiya 60% 3 Geetanjali 56%
Sl.No Name of Student Percentage
4. Now place the cursor anywhere in the first row(which contains the column headings and they have been marked) and press the TABLE ROW button or press ALT + R. Row tags are placed at the beginning and of the row as shown below. 1 Sailesh Kumar 61% 2 Ashoak Kanaujiya 60% 3 Geetanjali 56%
Sl.No Name of Student Percentage
5. Now place the cursor in each cell of the table and click the TABLE CELL button or press ALT + C. The cell content will be enclosed in the table cell tag as shown below. 2 Ashoak Kanaujiya 60% 3 Geetanjali 56%
Sl.No Name of Student Percentage
1 Sailesh Kumar 61%
6. Now place the cursor anywhere in the row whose cells have been marked and click the TABLE ROW button or press ALT + R. The table row will be marked. IMPORTANT: ALWAYS MARK THE TABLE CELLS BEFORE USING THE TABLE ROW BUTON. The result will be as shown below 2 Ashoak Kanaujiya 60% 3 Geetanjali 56%
Sl.No Name of Student Percentage
1 Sailesh Kumar 61%
7. Repeat the steps 5 & 6 listed above for each reow in the table. Finally the table will look like as shown below.
Sl.No Name of Student Percentage
1 Sailesh Kumar 61%
2 Ashoak Kanaujiya 60%
3 Geetanjali 56%
8. Conversion of the tabular text into table may be a bit difficult or time taking but it is worth the effort because the macros will not work and the text will have to be marked manually by typing out the tags for each heading, cell, row.

SIDEBAR

Select the text constituting the Side Bar and click the SIDEBAR button on the toolbar. Alternatively, press ALT + I.

NOTE REF (REFERENCE)

Documents at times have references to Notes which may be on the same page or somewhere else in the document. For example, in the following paragraph there is a reference mark 1 after the word RAM. The note follows after one paragraph.

The Primary memory of the computer is essential for the functioning of the computer. RAM 1 is the working memory of the computer.

The hard disk is a part of the secondary memory of the computer. It has a large capacity. Hard Disks of 40 to 80 GB capacity are common these days.

Note 1: RAM stands for Random Access Memory.

For markup, first select the note reference which is a generally a number (1 in this case and click the NOTE REF button on the toolbar. CONTROL + 7 is the keyboard shortcut for this button. The following markup will happen.

The Primary memory of the computer is essential for the functioning of the computer. RAM 1 is the working memory of the computer. The hard disk is a part of the secondary memory of the computer. It has a large capacity. Hard Disks of 40 to 80 GB capacity are common these days.

Note 1: RAM stands for Random Access Memory.

Now place the cursor just before the note body (Note 1 in this case) and click the toolbar nutton NOTE BODY or press CONTROL + 8. The result wil be as follows.

The Primary memory of the computer is essential for the functioning of the computer. RAM 1 is the working memory of the computer. The hard disk is a part of the secondary memory of the computer. It has a large capacity. Hard Disks of 40 to 80 GB capacity are common these days.
Note 1: RAM stands for Random Access Memory.

IMPORTAN: THE NOTE REFERENCE AND THE CORRESPONDING NOTE TEXT SHOULD BE MARKED TOGETHER IN SUCCESSION. THIS IS IMPORTANT BECAUSE BOTH OF THEM NEED TO HAVE THE SAME ID WHICH WILL BE DIFFERENCT IF SOME OTHER MARKING IS DONE IN BETWEEN.