Word Processing. Spell checking How does Word know that “storey” is misspelled?

38
Word Processing

Transcript of Word Processing. Spell checking How does Word know that “storey” is misspelled?

Page 1: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Word Processing

Page 2: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spell checking

• How does Word know that “storey” is misspelled?

Page 3: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spell checking

• How does Word know that “storey” is misspelled?• Look up every word in a dictionary. Report the ones that are

not there.

AbrahamAngryBalloonCoverlet. . .Polypeptide. . .StoreStoryStranger. . .Zebra

Page 4: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spellchecker implemented in EXCEL

Word Spelled Right? Dictionary

story YES alfredbluecoverletcraniumgeorgeorangepolypeptideprosperousstorystrangerzebrazither

Page 5: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Word Spelled Right? Dictionary

story YES alfredbluecoverletcraniumgeorgeorangepolypeptideprosperousstorystrangerzebrazither

=IF(ISNA( MATCH(A3,D3:D24,0) ),"NO","YES")

Page 6: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Word Spelled Right? Dictionary

story YES alfredbluecoverletcraniumgeorgeorangepolypeptideprosperousstorystrangerzebrazither

=IF(ISNA( MATCH(A3,D3:D24,0) ),"NO","YES")

Page 7: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spellchecker implemented in EXCEL

Word Spelled Right? Dictionary

storey NO alfredbluecoverletcraniumgeorgeorangepolypeptideprosperousstorystrangerzebrazither

Page 8: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spellchecker implemented in EXCEL

Word Spelled Right? Dictionary

store NO alfredbluecoverletcraniumgeorgeorangepolypeptideprosperousstorystrangerzebrazither

Page 9: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spellchecker implemented in EXCEL

Word Spelled Right? Dictionary

store YES alfredbluecoverletcraniumgeorgeorangepolypeptideprosperousstorystrangerzebrazitherstore

Page 10: Word Processing. Spell checking How does Word know that “storey” is misspelled?

What does this do?

Add “storey” to thedictionary

Page 11: Word Processing. Spell checking How does Word know that “storey” is misspelled?

What does this do?

Add “storey” to a temporary list ofwords to ignore

Page 12: Word Processing. Spell checking How does Word know that “storey” is misspelled?

How does it pick the words for this list?

Minimal edit distance

How many characters must be changed to match a dictionary word?

Page 13: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Spell checking

• How does it know what characters form a word?• Any sequence of letters with no spaces, digits or punctuation

– (c>=’A’ and c<=‘Z’) or (c>=’a’ and c<=‘z’)

Page 14: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Document treesdocument

para para

section

This is the beginning of a lovely story about two people that don’t like chocolate.

The reason that they don’t like chocolate is because of a dog that they had when they were little.

Page 15: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

Centered

Justified

Page 16: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

Where in the tree does the centering information go?

Page 17: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

Where in the tree does the centering information go?

aligncentered

Page 18: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

How will alignment change if I enter BACKSPACE?

aligncentered

Page 19: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

How will alignment change if I enter BACKSPACE?

aligncentered

para

Page 20: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

How will alignment change if I enter BACKSPACE?

aligncentered

Page 21: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocolate.

How will bolding change if I enter BACKSPACE 3 times?

aligncentered

Page 22: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocola

How will bolding change if I enter BACKSPACE 3 times?

aligncentered

Page 23: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocola

What will happen to alignment if I hit ENTER and make a newparagraph?

aligncentered

Page 24: Word Processing. Spell checking How does Word know that “storey” is misspelled?

document

para

section

This is the beginning of a lovely story about two people that don’t like

The reason that they don’t like chocolate is because of a dog that they had when they were little.

bold

chocola

What will happen to alignment if I hit ENTER and make a newparagraph?

aligncentered

paraalign

centered

Page 25: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes

• Different attributes are stored a different levels of the document tree

– Document– Section– Paragraph– Character

Page 26: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Underline

Page 27: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Indentation

Page 28: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Font size

Page 29: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Highlight Color

Page 30: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Tabs

Page 31: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Bulleted Lists

Page 32: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Page Headers

Headers apply to many paragraphs

Different headers in different chapters of a book

Page numbers

Page 33: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Style attributes at which level?

–Document

–Section

–Paragraph

–Character

Margins

Page 34: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Different Views

Page 35: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Outline View

Heading 1

Some text in heading 1

I am heading 2

This is some other text

Another Heading 2

Some more text

Page 36: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Outline View

Heading 1

Some text in heading 1

I am heading 2

This is some other text

Another Heading 2

Some more text

Double click here

Page 37: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Review

• Spell checking– Find each word (sequence of letters)– Look up each word in the dictionary

• Dictionary is just a list of words

– If it doesn’t match find similar words

Page 38: Word Processing. Spell checking How does Word know that “storey” is misspelled?

Review

• Style information– Document trees

• Different information at different levels

– Document– Section

• Margins, Headers, Footers, Page numbers

– Paragraph• Alignment, indentation, bullets

– Characters• Font, bold, color