"plain2 -README-" English version (original: Japanese)
June 7, 1990
by Akihiro Uchida@NEC

NOTICE: {...} is a comment from the translator.

{ Japanese character set is coded by 2-byte system, which is called "Kanji code". Kanji code has mainly 3 kinds; JIS, Shift-JIS and EUC. JIS is 7-bit code with escape sequence and others are 8-bit code. The plain2 contains EUC code. }

How to install

Installation for System V

Installation for Shift-JIS environment

CAUTION: The compiler which passes Shift-JIS is required. You cannot select EUC for Kanji I/O-code ,when the plain2 is compiled under Shift-JIS environment.

NTT TeX and ASCII TeX

How to start plain2

% plain2 [option] [input-files ...]

examples:

% plain2 -tex plain.pln > plain.tex % plain2 -roff plain.pln > plain.t

Options for selection of output


    -roff
        selects `roff' outputs.  "\" and "'" become "\e" and "\'".
        "." as the line-head becomes "\&.".
        The default output is `roff'.

    -tex

selects `LaTeX' outputs. Special characters are quoted one by one, i.e. "-", "=" and "-=" become ""$-$", "$=$" and "$-$$=$".

-texq

selects `LaTeX' outputs. With this option 1-byte alphabetic characters are quoted by "verb||". This function is incomplete.


    -raw
        suppresses quoting.

    -nospace

suppresses excessive blank lines.


    -nopre
        suppresses header pre-amples.

    -hifi

keeps the input image as same as possible, i.e. format of list numbers.


    -index
        outputs an index.

    -acursec

outputs section numbers similarly with the input. In default, sections are numbered continuously in spite of casual numbering of the input file.


    -j
        outputs JIS code.  The default code is EUC.

    -s

assumes the input as Shift-JIS. Outputs become Shift-JIS.

{ The following options are extracted from the body of this document. }


    -inline
        permits in-line operations (see section 6.3.).

    -full

extends reference label of figure/table (see subsection 6.3.3.).


    -renum

only renumbers list/section numbers of input texts.

CAUTION: The above options may not be used in the option field of the input files.

Changing of analysis parameters

Miscellaneous options.

-v

displays verbosely under processing. This also warns the uncontinuous section/list numbers.


    -help

displays the simple help message.

Options via an environment variable

Embedding options in the input files

Structure of input texts

{ In this chapter, many examples are given using 2-byte Kanji characters.

Because it is useless for the English version, I omitted a part of the contents. Sorry. }

Section titles

List

Item type

Enumerate type


>>  1) The first
>>  2) The second
>>  1. The first again
>>  2. The second again
>>  3) The third
>>  4) The fourth
  1. The first
  2. The second
    1. The first again
    2. The second again
  3. The third
  4. The fourth

Description type


>>  [item1] Description type A
>>  [item2] Description type A
>>  itemA:  Description type B
[item1] Description type A
[item2] Description type A
itemA: Description type B

Line(s) after list


>> Do you know the words below?
>> minix:    mini size unix for PC
>> xinu:     xinu is a reversed image of unix
>> gnu:      gnu is not unix!
>> These are concerning on a UNIX concept ...

Do you know the words below?

minix: mini size unix for PC
xinu: xinu is a reversed image of unix
gnu: gnu is not unix!

These are concerning on a UNIX concept ...

Judgement basis as list


>>  The circular constant is
>>  3.14159...

>>  From 3: 15 pm today, there is a presentation ...

Consequently, a single line, which seems to be an enumerate or description type, does not compose a list.

Example block


>>The network is shown below. (This is a bad case.)
>>
>>       to XXNet
>>          |
>>      +---+---+
>>      | CISCO |
>>      +---+---+
>>          |
>>  ---+----+----+----------+----------+---- 131.130.29
>>     |         |          |          |
>>+----++     +--+---+   +--+---+   +--+---+
>>|ns-in|     |host-A|   |host-B|   |host-C|
>>+-----+     +------+   +------+   +------+
>>
>>This is connected with XXNet via 56Kbps private line.

An indentation (more than four spaces) of an example block solves this problem.


>>The network is shown below. (This is a good case.)
>>
>>           to XXNet
>>              |
>>          +---+---+
>>          | CISCO |
>>          +---+---+
>>              |
>>      ---+----+----+----------+----------+---- 131.130.29
>>         |         |          |          |
>>    +----++     +--+---+   +--+---+   +--+---+
>>    |ns-in|     |host-A|   |host-B|   |host-C|
>>    +-----+     +------+   +------+   +------+
>>
>>This is connected with XXNet via 56Kbps private line.

Picture with drawing characters

{ There are special characters in Kanji code to compose a drawing shape.

If a transplantation of the plain2 is properly done for non-Japanese systems, the same logic of analyzing pictures may be applied to 8-bit graphic characters. But I have no methods to express the shape of Kanji characters which are used in this section. I have to omit to translate this section. Sorry. }

Rules for connection among dash lines and thick lines

Special rules for slant lines

Ellipse (picture of floppy disk) and thick lines

Citation

Table

Flat text


>>   This transcript is from the file A56-7W, classified top-secret,
>> subject is AIR WOLF.  A Mach-1 plus attack helicopter with the most
>> advanced weapon system in the air today.
>>   It has been hidden somewhere in the western United States by its
>> test pilot, Stringfellow Hawke.   Hawke has promised return AIR WOLF
>> only if we can find his brother St. John, an M.I.A. in Vietnam.
>>
>> We suspect that Arch Angel, Deputy Director of the agency that built
>> AIR WOLF, is secretly helping Hawke in return for Hawke's flying AIR
>> WOLF on missons of national concern. (TV program: AIR WOLF)

Title block

{ The patterns are using Japanese words with 2 byte codes. The following

translation in this section is not realized for the English version. A good transplantation of the plain2 will solve this problem, I think. }

CAUTION: These patterns are strictly tested. All lines in the first block of the file must be classified as the above patterns. For instance, if there is a line including "Data:" which should be "Date:", this block is not detected as a title block.
CAUTION: An expression `a string after "xxx"' means a region defined by the following rules. This allows to contain spaces in a title block.
  1. If there are double (or more) space characters in the line, the region is from the double space to the line end.
  2. If there are no double (or more) space characters in the line, the region is from the line head or the first space to the line end.

Extension of title block

New page and blank line

Outputs

Explicit control of plain2

Experimental functionality

Option to remove paging boundary

Functionality to detect title of figure/table

In-line operation

Foot note (f)

Raw mode (r)

Reference (x)

Font size designation

Appendix


>>  Appendix        References
>>  APPENDIX A      Program lists

Renumbering

Local option for the software group of NEC C&C Lab.

{ This functionality depends on the local `troff'/`LaTeX' environment

used in the software group of NEC C&C (Computer and Communication) Lab. The translation is omitted. }

Distribution of the plain2