Export (0) Print
Expand All
Expand Minimize

2.1.480 Part 4 Section 2.15.3.65, wpJustification (Emulate WordPerfect 6.x Paragraph Justification)

a. The standard does not specify exactly how to emulate WordPerfect 6.x paragraph justification.

In Office, this element specifies that Word should perform a specific algorithm when determining the contents of each line in a fully justified paragraph (resulting from the use of the jc element. This setting typically results in more words being fitted into lines (by reducing inter-word spacing as necessary).

Typically, applying full justification to a paragraph does not change the placement of line breaks, as inter-word spacing is expanded to ensure the resulting text is fully justified. This element, when present with a val attribute value of true (or equivalent), specifies that Word shall determine the contents of each line in a fully justified paragraph using the following algorithm:

For each line in the fully justified paragraph,

Determine the actual line width, Ff535660.84640c72-83ef-47d5-933d-439166a07e99(en-us,office.12).jpg, in pixels.

Calculate the effective line width by the following factor:

Ff535660.352f328d-428b-4733-bb30-bc6f95a8b414(en-us,office.12).jpg

Determine the text that can be displayed in a line of the effective line width.

Decrease the inter-word spacing as necessary to fit that text in the actual line width.

[Example: Consider a WordprocessingML document with one or more paragraphs using full paragraph justification:

<w:p>
  <w:pPr>
    <w:jc w:val="both" />
  </w:pPr>
  …
</w:p>

If this compatibility setting is turned on:

<w:compat>
  <w:wpJustification />
</w:compat>

Then, for a line 1000 pixels wide, Word would calculate the effective width as follows:

Ff535660.a7f98370-15df-4269-8a47-3ab01064f4a6(en-us,office.12).jpg

This effective width is then used to determine how much text can be displayed on line. After calculating the text, Word can display the text on the actual line, fully justified. end example]

This note applies to the following products: 2007, 2007 SP1, 2007 SP2.

Show:
© 2014 Microsoft