Skip to content

Commit bdd57fa

Browse files
authored
Merge pull request #225 from mnishz/print_for_Vim_8.1
Update print from Vim 8.0 to 8.1
2 parents 6d463a7 + 6e64eb3 commit bdd57fa

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

doc/print.jax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*print.txt* For Vim バージョン 8.0. Last change: 2010 Jul 20
1+
*print.txt* For Vim バージョン 8.1. Last change: 2010 Jul 20
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar

en/print.txt

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*print.txt* For Vim version 8.0. Last change: 2010 Jul 20
1+
*print.txt* For Vim version 8.1. Last change: 2010 Jul 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -99,25 +99,25 @@ If the option is empty, then vim will use the system default printer for
9999
HPUX: hp-roman8,
100100
EBCDIC: ebcdic-uk)
101101
global
102-
Sets the character encoding used when printing. This option tells VIM which
102+
Sets the character encoding used when printing. This option tells Vim which
103103
print character encoding file from the "print" directory in 'runtimepath' to
104104
use.
105105

106106
This option will accept any value from |encoding-names|. Any recognized names
107-
are converted to VIM standard names - see 'encoding' for more details. Names
108-
not recognized by VIM will just be converted to lower case and underscores
107+
are converted to Vim standard names - see 'encoding' for more details. Names
108+
not recognized by Vim will just be converted to lower case and underscores
109109
replaced with '-' signs.
110110

111-
If 'printencoding' is empty or VIM cannot find the file then it will use
112-
'encoding' (if VIM is compiled with |+multi_byte| and it is set an 8-bit
113-
encoding) to find the print character encoding file. If VIM is unable to find
111+
If 'printencoding' is empty or Vim cannot find the file then it will use
112+
'encoding' (if Vim is compiled with |+multi_byte| and it is set an 8-bit
113+
encoding) to find the print character encoding file. If Vim is unable to find
114114
a character encoding file then it will use the "latin1" print character
115115
encoding file.
116116

117-
When 'encoding' is set to a multi-byte encoding, VIM will try to convert
117+
When 'encoding' is set to a multi-byte encoding, Vim will try to convert
118118
characters to the printing encoding for printing (if 'printencoding' is empty
119119
then the conversion will be to latin1). Conversion to a printing encoding
120-
other than latin1 will require VIM to be compiled with the |+iconv| feature.
120+
other than latin1 will require Vim to be compiled with the |+iconv| feature.
121121
If no conversion is possible then printing will fail. Any characters that
122122
cannot be converted will be replaced with upside down question marks.
123123

@@ -203,7 +203,7 @@ header is used when this option is empty.
203203
'printmbcharset' 'pmbcs' string (default "")
204204
global
205205
Sets the CJK character set to be used when generating CJK output from
206-
|:hardcopy|. The following predefined values are currently recognised by VIM:
206+
|:hardcopy|. The following predefined values are currently recognised by Vim:
207207

208208
Value Description ~
209209
Chinese GB_2312-80
@@ -270,7 +270,7 @@ Japanese text you would do the following; >
270270
271271
If 'printmbcharset' is not one of the above values then it is assumed to
272272
specify a custom multi-byte character set and no check will be made that it is
273-
compatible with the value for 'printencoding'. VIM will look for a file
273+
compatible with the value for 'printencoding'. Vim will look for a file
274274
defining the character set in the "print" directory in 'runtimepath'.
275275

276276
*pmbfn-option*
@@ -420,10 +420,10 @@ There are currently a number of limitations with PostScript printing:
420420
possible to get all the characters in an encoding to print by installing a
421421
new version of the Courier font family.
422422

423-
- Multi-byte support - Currently VIM will try to convert multi-byte characters
423+
- Multi-byte support - Currently Vim will try to convert multi-byte characters
424424
to the 8-bit encoding specified by 'printencoding' (or latin1 if it is
425425
empty). Any characters that are not successfully converted are shown as
426-
unknown characters. Printing will fail if VIM cannot convert the multi-byte
426+
unknown characters. Printing will fail if Vim cannot convert the multi-byte
427427
to the 8-bit encoding.
428428

429429
==============================================================================
@@ -434,35 +434,35 @@ you need to define your own PostScript font encoding vector. Details on how
434434
to define a font encoding vector is beyond the scope of this help file, but
435435
you can find details in the PostScript Language Reference Manual, 3rd Edition,
436436
published by Addison-Wesley and available in PDF form at
437-
http://www.adobe.com/. The following describes what you need to do for VIM to
437+
http://www.adobe.com/. The following describes what you need to do for Vim to
438438
locate and use your print character encoding.
439439

440440
i. Decide on a unique name for your encoding vector, one that does not clash
441-
with any of the recognized or standard encoding names that VIM uses (see
441+
with any of the recognized or standard encoding names that Vim uses (see
442442
|encoding-names| for a list), and that no one else is likely to use.
443443
ii. Copy $VIMRUNTIME/print/latin1.ps to the print subdirectory in your
444444
'runtimepath' and rename it with your unique name.
445445
iii. Edit your renamed copy of latin1.ps, replacing all occurrences of latin1
446446
with your unique name (don't forget the line starting %%Title:), and
447447
modify the array of glyph names to define your new encoding vector. The
448448
array must have exactly 256 entries or you will not be able to print!
449-
iv. Within VIM, set 'printencoding' to your unique encoding name and then
450-
print your file. VIM will now use your custom print character encoding.
449+
iv. Within Vim, set 'printencoding' to your unique encoding name and then
450+
print your file. Vim will now use your custom print character encoding.
451451

452-
VIM will report an error with the resource file if you change the order or
452+
Vim will report an error with the resource file if you change the order or
453453
content of the first 3 lines, other than the name of the encoding on the line
454454
starting %%Title: or the version number on the line starting %%Version:.
455455

456-
[Technical explanation for those that know PostScript - VIM looks for a file
456+
[Technical explanation for those that know PostScript - Vim looks for a file
457457
with the same name as the encoding it will use when printing. The file
458458
defines a new PostScript Encoding resource called /VIM-name, where name is the
459-
print character encoding VIM will use.]
459+
print character encoding Vim will use.]
460460

461461
==============================================================================
462462
5. PostScript CJK Printing *postscript-cjk-printing*
463463
*E673* *E674* *E675*
464464

465-
VIM supports printing of Chinese, Japanese, and Korean files. Setting up VIM
465+
Vim supports printing of Chinese, Japanese, and Korean files. Setting up Vim
466466
to correctly print CJK files requires setting up a few more options.
467467

468468
Each of these countries has many standard character sets and encodings which
@@ -483,7 +483,7 @@ option allows you to specify different fonts to use when printing characters
483483
which are syntax highlighted with the font styles normal, italic, bold and
484484
bold-italic.
485485

486-
No CJK fonts are supplied with VIM. There are some free Korean, Japanese, and
486+
No CJK fonts are supplied with Vim. There are some free Korean, Japanese, and
487487
Traditional Chinese fonts available at:
488488

489489
http://examples.oreilly.com/cjkvinfo/adobe/samples/
@@ -498,15 +498,15 @@ CJK fonts can be large containing several thousand glyphs, and it is not
498498
uncommon to find that they only contain a subset of a national standard. It
499499
is not unusual to find the fonts to not include characters for codes in the
500500
ASCII code range. If you find half-width Roman characters are not appearing
501-
in your printout then you should configure VIM to use the Courier font the
501+
in your printout then you should configure Vim to use the Courier font the
502502
half-width ASCII characters with 'printmbfont'. If your font does not include
503503
other characters then you will need to find another font that does.
504504

505505
Another issue with ASCII characters, is that the various national character
506506
sets specify a couple of different glyphs in the ASCII code range. If you
507507
print ASCII text using the national character set you may see some unexpected
508508
characters. If you want true ASCII code printing then you need to configure
509-
VIM to output ASCII characters for the ASCII code range with 'printmbfont'.
509+
Vim to output ASCII characters for the ASCII code range with 'printmbfont'.
510510

511511
It is possible to define your own multi-byte character set although this
512512
should not be attempted lightly. A discussion on the process if beyond the
@@ -525,13 +525,13 @@ print job completing.
525525
There are a number of possible causes as to why the printing may have failed:
526526

527527
- Wrong version of the prolog resource file. The prolog resource file
528-
contains some PostScript that VIM needs to be able to print. Each version
529-
of VIM needs one particular version. Make sure you have correctly installed
528+
contains some PostScript that Vim needs to be able to print. Each version
529+
of Vim needs one particular version. Make sure you have correctly installed
530530
the runtime files, and don't have any old versions of a file called prolog
531531
in the print directory in your 'runtimepath' directory.
532532

533533
- Paper size. Some PostScript printers will abort printing a file if they do
534-
not support the requested paper size. By default VIM uses A4 paper. Find
534+
not support the requested paper size. By default Vim uses A4 paper. Find
535535
out what size paper your printer normally uses and set the appropriate paper
536536
size with 'printoptions'. If you cannot find the name of the paper used,
537537
measure a sheet and compare it with the table of supported paper sizes listed
@@ -668,7 +668,7 @@ complex print document creation.
668668

669669
N-UP PRINTING
670670

671-
The psnup utility takes an existing PostScript file generated from VIM and
671+
The psnup utility takes an existing PostScript file generated from Vim and
672672
convert it to an n-up version. The simplest way to create a 2-up printout is
673673
to first create a PostScript file with: >
674674
@@ -724,16 +724,16 @@ There are a couple of points to bear in mind:
724724
==============================================================================
725725
8. Formfeed Characters *printing-formfeed*
726726

727-
By default VIM does not do any special processing of |formfeed| control
728-
characters. Setting the 'printoptions' formfeed item will make VIM recognize
727+
By default Vim does not do any special processing of |formfeed| control
728+
characters. Setting the 'printoptions' formfeed item will make Vim recognize
729729
formfeed characters and continue printing the current line at the beginning
730730
of the first line on a new page. The use of formfeed characters provides
731731
rudimentary print control but there are certain things to be aware of.
732732

733-
VIM will always start printing a line (including a line number if enabled)
733+
Vim will always start printing a line (including a line number if enabled)
734734
containing a formfeed character, even if it is the first character on the
735735
line. This means if a line starting with a formfeed character is the first
736-
line of a page then VIM will print a blank page.
736+
line of a page then Vim will print a blank page.
737737

738738
Since the line number is printed at the start of printing the line containing
739739
the formfeed character, the remainder of the line printed on the new page
@@ -742,7 +742,7 @@ lines of a long line when wrap in 'printoptions' is enabled).
742742

743743
If the formfeed character is the last character on a line, then printing will
744744
continue on the second line of the new page, not the first. This is due to
745-
VIM processing the end of the line after the formfeed character and moving
745+
Vim processing the end of the line after the formfeed character and moving
746746
down a line to continue printing.
747747

748748
Due to the points made above it is recommended that when formfeed character

0 commit comments

Comments
 (0)