Top Navigational Bar

Toshiba SL and SX Printers Do Not Right Justi
DocumentID: 646173
Revision Date: 29-Feb-96 8:19:13 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: The Toshiba SL and SX printers do not right justify properly. Marking "Character Cell Centers around Print Head (Using HMI)" in "Misc. Questions" fixes the left justification problem, but does not fix right justification. Solutions: To perform inter-character spacing we have to perform the following calculation: 1/2(prev char width)+adjust+1/2(next char width). Every calculation causes roundoff error, so the lines will not match up exactly. The roundoff can be so bad that this method really is not any better than the justification we already do.

We have run into a brick wall. Adding inter-character spacing to justify a line causes horizontal movement strings to go out between characters, but the horizontal movement string resets the printer's knowledge of the width of the previous character. The result is that the printer does not move at all for the characters. The only way to get around this problem is to turn PS off while doing horizontal movement, and that undermines the whole premise of trying to make justification work on these printers.

The Toshiba printers have been doing PS horizontal motion wrong in WP 5.0. They turn off PS, send the relative movement string, and turn PS back on again. The result is that each movement is identical and a line with many spaces will not line up with a line with one space. The correct way to do PS horizontal movement is to calculate the distance from the center of the left character to the center of the character following the white space. So, to move a quarter inch, WP would have to send a relative motion command of
(1/4"+prev_char_width/2+next_char_width/2). I have implemented this in WP 5.1, but the problem is rounding error. If we get off by 1/60" it looks funny.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.