Printing
Printing is the process of transferring your document from the computer to a piece of paper.
Introduction and Concepts
Printing documents in Japanese is somewhat different than printing in English. In Japanese each character occupies the same space (including punctuation), and lines are ended when they are full (even in the middle of a word). In English words are normally not split, each character occupies a different amount of space, and text is usually not written vertically. Combining Japanese and English text leads to a number of further complexities.
WARNING! Windows CE versions of JWPce cannot print even though several pages of the Page Layout dialog box can be accessed.File Representations
One major issue in printing is how the text on the screen corresponds with what is printed. Depending on the settings, JWPce will either attempt to approximate on the screen how text will appear printed, or will ignore most of the printer settings and display the text in a manner that provides the best screen display.
In order to make JWPce responsive and make best use of limited screen resolution and size, JWPce makes a number of adjustments in the way text is displayed on the screen:
- Line width: Normally JWPce uses the line width of the display window not the line width of the printer, but this can be modified.
- Justified ASCII text: In order to save time, ASCII text is not justified on the screen, but is justified when printed.
- Line spacing: JWPce displays screen text with a slightly compressed line spacing. This allows more text to be displayed on the screen.
- Vertical text: Vertical text is supported only in printing (not on the screen).
- Page breaks: Soft page breaks are not indicated on the display, but hard page breaks are shown as gray lines across the screen.
JWPce, however, does visually represent much of the file formatting .
WARNING! Keep in mind that JWPce has no page layout display mode in which all parts of a page can be viewed at one time (margins, headers, footers, etc.)Related Topics
Actually Printing Something
Before going into details, Let' discuss the process used to print a document in general. JWPce allows you to print all of a document, selected pages, or selected text from the document.
To start, select the File/Print... command (Alt+P) , or select the Print button from the toolbar.. This causes the standard Windows Print dialog to be displayed. From this dialog you can choose the printer and a number of characteristics for that printer (paper size, layout, portrait or landscape*, etc.). Additionally, you can set the number of copies to be printed (if the printer supports multiple copies). Finally, from the Print dialog you can select the part of the document to be printed.
Printing the Entire Document
If you select the All ??? pages** button in the Print dialog, the entire document will be printed. This is the default if you do not select text before entering the Print dialog.
Printing Some Pages
If you select the Pages button, and enter values in the from and to edit boxes you can print specific pages from the document. If you have selected text before entering the Print dialog, this will be the default. In this case the from and to edit boxes will already have page entries that include the selected text.
If you print part of a document using this method (instead of the Selection setting, below), entire pages are printed instead of parts of pages. This allows header and footer information as well as page numbers to be printed correctly.
Printing Selected Text
If you select text before entering the Print dialog you can select the Selection button, and only the selected text will be printed. This method allows you to control exactly what is printed, but prevents JWPce from accurately generating page numbers. The first page printed will be numbered 1, and page numbers will increase from there.
* JWPce will automatically set portrait or landscape mode to match the document mode. If you change portrait/landscape in the Print dialog, the setting in the document will also change.** "???" will be replaced with the number of pages in your document.
Printing and Color Kanji
Characters are printed in black unless you have selected the option to print Color Kanji in color. (See the Color Kanji feature. This option is controlled from the Misc Page of the Options dialog box (Utilities/Options... or Ctrl+O).
Related Topics
Page Breaks and Formatting
The document is reformatted for the printer during printing. After printing, if you are using the Dynamic or Fixed width modes, the document will return to its original form. But if you are using the Printer width mode, any changes you make to document formatting before you send the document to the printer will remain.
Normally a page break is inserted into the document whenever the page becomes full. You can, however, force a page break by using the Edit/Insert Page Break (Ctrl+Enter) command. JWPce does not display normal page breaks on the screen; however, inserted page breaks are shown as a dark gray stripe.
Related Topics
The Page Layout Dialog Box
WARNING! Not all pages of the Page Layout dialog box are available in Windows CE versions, since printing is not supported from Windows CE.The pages in the Page Layout dialog box are:
The Page Layout box is a multi-page dialog box that contains most of the controls and options used to control printing. Many of the settings in this dialog box are stored along with the document files (Margins [This File Settings section], Headers/Footers, and Summary); some are global settings that are stored in JWPce's configuration file (Margins [Default Settings section], Date/Time, and Advanced).
- Margins, Vertical Printing, and Paper Orientation
- Headers and Footers (Page Numbering)
- Document Summary
- Date and Time
- Advanced Layout Options
Related Topics
Margins, Vertical Printing, and Paper Orientation
The margins, the paper orientation (portrait or landscape), and print direction (horizontal or vertical) are all set on the Margins page of the Page Layout dialog box.
JWPce maintains two sets of each of these parameters: Default Settings and This File Settings. When a new file is generated, the Default Settings are used to initialize the margins for the file. Changing the Default Settings has no effect on a file after it has been created.
Margins
The margins specify the distances between the edges of the paper and your text (not counting headers and footers). Margins are specified in units of inches or cm (this can be set on the General page of the Options dialog box [Utilities/Options... or Ctrl+O]). By default the margins are set to 1 inch on all sides.
When vertical printing is invoked (below), the margins do not rotate with the text, thus the Top margin is the margin at the top of the page in portrait mode. The margins DO rotate, however, when you print in Landscape mode.
Landscape
Text is normally printed in Portrait mode, where a standard sheet of paper is taller than wide when being read. In Landscape mode, the text is printed such that the page would be wider than tall. (Also see vertical printing below.)
This setting can also be changed in the Print dialog box.
Vertical Printing
English is normally written horizontally, however, Japanese is written with either orientation. JWPce will print vertically, if the Vertical box is checked.
JWPce prints vertically by rotating the individual Japanese characters (kana, kanji, and JASCII)*. English text is not rotated when printed vertically.
For example, here is text printed horizontally:
![]()
and here is the same text printed vertically
![]()
Other Information
Also shown on this page of the dialog box is the number of kanji characters that fit on a line (given the chosen margins). This value can be used if you want to use the Fixed line width mode to emulate this printer configuration on some other system.
Further, there are two buttons that copy the margins settings as a group (margins, landscape, and vertical) to and from the default settings:
- From Default: Copies the default margins settings to the current file.
- From This File: Copies the margins settings from the current file to the default settings. All files generated subsequently will have these margin settings as the default.
* For people interested in the technical issues, a number of characters are not rotated, and some characters have to be both rotated and translated.
Headers and Footers (Page Numbering)
A header is a line of text that is printed across the top of each page, and a footer is similarly a line of text printed across the bottom. The headers and footers for a document are defined in the Headers/Footers page of the Page Layout dialog box.
Normally, the same header and footer are printed on all pages, however the following controls can be used to modify this behavior:
- No First Page: If selected, this suppresses printing of headers and footers on the first page of the document.
- Odd & Even: If selected, even and odd pages have different headers and footers. If you intend to print your document double-sided, this can be useful.
Headers and footers consist of three strings that are located at different places across the top or bottom of the text. You may define any, all, or none of these strings. The Left string is aligned with the left edge of the text; the Center string is centered on the page; and the Right string is aligned with the right edge of the text.
The Edit control is used to select a header or footer for editing. Depending on the settings of the Odd & Even control, there will be different choices in this list box:
Odd & Even not selected Odd & Even selected Header Header, Odd Pages Footer Header, Even Pages Footer, Odd Pages Footer, Even Pages
The Header and Footer Strings
Any text you wish can be entered in the Left, Center, and Right strings. However, there are a number of special codes you can insert to cause special information to be printed with the document. The text indicated by a special code is inserted when the document is printed, thus what is printed depends on the value at the time of printing.
Tip: You can use multiple special codes in the header/footer strings, and combine special codes and fixed text.The special codes are:
code prints &D current date &F file name and path &N file name &T current time &L document summary title &S document summary subject &A document summary author &K document summary keyword &C document summary comment && the & character
Tip: You don't have to memorize the special codes, there is a list of them in the dialog box.Header and Footer Example
As an example, to generate headers and footers similar to those in this document, the settings would be:
header/footer value action header, left &L title, so it can be changed by simply changing the document summary header, right --- no JWPce equivalent footer, left &D print date footer, right &P page number
Page Numbers
Tip: Page numbers are generated in JWPce using the headers and footers feature, and the &P code.
Header and Footer Locations
The locations of headers and footers are controlled by options in the Advanced page of the Page Layout dialog box. Generally you should not need to change these values.
Related Topics
Document Summary
The document summary can be edited on the Summary page of the Page Layout dialog box. The summary consists of five lines of Japanese text that you can use to store any information you want. The five lines are called Title, Subject, Author, Keywords, and Comments. The text in these lines can be used in printing headers and footers.
Related Topics
Date and Time
This dialog box consists of a Japanese edit controls for the Date and Time is set on the Date/Time page of the Page Layout dialog.
WARNING! The Date and Time settings affect all files, not just the current file. These settings are stored in the JWPce configuration.This dialog box consists of a Japanese edit control for both the Date and the Time, and AM and PM values.
Several special codes can be used in the Date and Time strings. These codes cause special information to be inserted when the file date or time is printed.
code prints &Y year in long format (1998) &y year in short format (98) &M month (as a number) &D day (as a number) &H hour (in 24 hour format) &h hour (in 12 hour format) &N minute &A AM string or PM string (see below) && the & character
Tip: You don't have to memorize the special codes, there is a list of them in the dialog box.AM and PM
The AM and PM edit boxes determine the values that are inserted when you use the special code &A. Special codes cannot be used in the AM and PM strings.
Examples
Here are examples using the Date and Time controls, generated on March 11, 1992 at 11:57 PM.
American (default) Japanese string code sample code sample Date Time AM PM Related Topics
Advanced Layout Options
The Advanced page of the Page Layout dialog box contains options that control the locations of the headers and footers, and how English text embedded within Japanese text is formatted. The options set on this page are stored in the JWPce configuration and affect all documents.
Header and Footer Locations
When headers or footers are included in your document, they are printed in the margins space above or below the main part of the text. The Top (lines) and Bottom (lines) parameters determine the number of lines above or below the text that headers and footers are printed. By default, these parameters are 1, which will leave a single blank line between the text and the header or footer. Increasing this number will move the header/footer further away from the main text; decreasing it will move the header/footer closer to the text.
Similarly, the Left (kanji) and Right (kanji) determine the amount of space that the left and right headers and footers are moved into the left or right margins. If these values are 0, the headers/footers will align with the margins. If they are increased, the header and footer will move out into the margins. Their values are in units of the width of a single kanji character, and default to 1.*
ASCII Text Positions
This parameter determines how ASCII text is printed when a Tab character follows it. If the Justify ASCII Text option is checked, the text is spaced uniformly within the available space. The effects of this parameter are only visible when the document is printed. This formatting is not displayed on the screen to improve the screen update speed.
Related Topics
* I personally find that moving the headers and footers into the left and right margins more clearly distinguishes them from the main text.
Printing Options and Fonts
Most printer related settings are controlled from the Page Layout dialog box. The exception to this is font settings, which are controlled from the Font/Format page of the Options dialog (Utilities/Options... or Ctrl+O). This page allows you to specify the print font:
- Points: This control determines the size of the printed text on the page. From this size, JWPce determines the ASCII (English) font, and the number of characters that will fit on a line. This is a very important parameter.
- Automatic Selection: If this box is selected, JWPce automatically chooses the best font for your printer based on the current screen font, the available fonts, and the printer resolution.
- font list: down list contains all the possible fonts for printing. If you have disabled the Automatic Selection font selection, this list will be active and will contain all valid printing fonts.
In Automatic Selection font setting, JWPce will attempt to match the current screen font to the printer. If you are using one of the included bitmapped fonts, JWPce will automatically choose the best matching bitmapped font for the printer. If you are using a TrueType display font, JWPce will simply use the same TrueType font for the printer.
Generally you should leave the printer font set to Automatic Selection. There are some cases, however, when you might want to specify a printer font yourself. The most notable of these is if you have installed a on-TrueType (bitmapped) font* and want to use it for printing. JWPce only knows how the adjust the default bitmap fonts that are distributed with JWPce, so if you install other fonts, it cannot tell which is the best match for the screen font.
You may also want to consider not using Automatic Selection font selection when you are using a bitmapped font for the display and want to use a TrueType font for printing. This may seem a strange thing to do, but remember that the bitmapped fronts have been optimized for display at their specific resolutions, and can sometimes look better than TrueType fonts.
WARNING! Vertical printing is only supported for TrueType fonts that contain a vertical glyph substitution table (this should be included in all fonts, but you never know). If you use a TrueType font without such a table, JWPce will default to using the bitmapped fonts for vertical printing.Related Topics
* When working with TrueType fonts, the screen and printer will always use the same font.
Next Chapter: Options and Settings