The Technical Report JIS/TR X 0010:1998 was published as a Type 2 JIS/TR by JSA (Japan Standardization Association) being based on the activities on application technology of DSSSL; Document Style Semantics and Specification Language (JIS X 4153 or ISO/IEC 10179) for Japanese composition environments. Those activities were taken by Application Standards Committee of JBMA (Japan Business Machine Makers' Association) and Electronic Publishing Committee of INSTAC/JSA.
This document is an English version of the JIS/TR X 0010:1998 and includes some editorial corrections and verified DSSSL libraries. The English translation was carried out by the Electronic Publishing Committee of INSTAC/JSA.
This Technical Report provides a DSSSL library that can specify styles for the documents described by SGML; Standard Generalized Markup Language (JIS X 5161 or ISO 8879) or XML; Extensible Markup Language (JIS/TR X 0008 or W3C REC-xml-980210). The library makes it feasible to describe DSSSL specification for ordinary documents without any particular knowledge of DSSSL or Japanese composition rules.
The following standards and technical reports contain provisions that, through reference in this text, constitute provisions of this International Standard. At the time of publication, the editions indicated are valid. All standards are subject to revision, and parties to agreements based on this International Standard are encouraged to investigate the possibility of applying the most recent editions of the standards indicated below.
For the purposes of this Technical Report, the following definitions apply.
This clause defines formatting objects and properties used in this DSSSL Library.
The following paper sizes are specified:
The selection of "Single Page" or "Facing Page" is permitted. The double of Paper size is permitted in case of "Facing Page".
NOTE: "Facing Page of A4" = A3."Portrait placement" and "Landscape placement" are specified. It defaults to "Portrait placement".
The following three derived units are defined:
The relationship between Q and Point is required to refer to Table 4.1.
Table 4.1 Relationship of Q and Point
Q | Point | Q | Point |
7 | 5 | 15 | 10.5 |
8 | 5.5 | 16 | 11 |
9 | 6 | 18 | 12 |
10 | 7 | 20 | 14 |
11 | 7.5 | 21 | 15 |
12 | 8 | 24 | 16 |
13 | 9 | 26 | 18.5 |
14 | 10 | 28 | 20 |
The following items are defined.
Basic composition styles are defined by following formatting objects:
The methods to specify basic composition styles are following two types:
NOTE: The methods of calculation for the image area and margin are following two types:
In Japanese composition content driven are used usually. Those methods define the image area first then margin.
Specifications of the position for image area are defined by the following types:
NOTE:When the size of image area is not specified, the vertical and horizontal size of image area is made 0.8 times of paper size.
The models of basic composition styles for each paper size are defined by the following Table 4.2 to Table 4.8:
Table 4.2 B6-size Vertical placement (Point system)
Vertical/Horizontal composition | Size of character | Number of characters on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Vertical | 9 point | 43 | 14 | 18 point | 1 | . |
Vertical | 9 point | 43 | 15 | 18 point | 1 | . |
Vertical | 9 point | 43 | 16 | 17 point | 1 | . |
Vertical | 9 point | 44 | 17 | 16 point | 1 | . |
Vertical | 8 point | 50 | 18 | 15 point | 1 | . |
Vertical | 8 point | 50 | 19 | 14 point | 1 | . |
Vertical | 8 point | 25 | 20 | 14 point | 2 | 2 characters |
Vertical | 8 point | 26 | 20 | 14 point | 2 | 2 characters |
Horizontal | 9 point | 30 | 23 | 17 point | 1 | . |
Horizontal | 8 point | 33 | 25 | 16 point | 1 | . |
Horizontal | 8 point | 33 | 27 | 15 point | 1 | . |
Horizontal | 8 point | 34 | 27 | 15 point | 1 | . |
Table 4.3 B5-size Vertical placement (Point system)
Vertical/Horizontal composition | Size of character | Number of characters on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Vertical | 8 point | 24 | 31 | 13 point | 1 | . |
Horizontal | 9 point | 43 | 32 | 18 point | 1 | . |
Horizontal | 9 point | 23 | 44 | 14 point | 2 | 2 characters |
Horizontal | 9 point | 22 | 41 | 15 point | 2 | 2 characters |
Horizontal | 8 point | 25 | 51 | 12 point | 2 | 2 characters |
Table 4.4 B5-size Vertical placement (Q system)
Vertical/Horizontal composition | Size of character | Number of characters on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Horizontal | 13 Q | 42 | 31 | 26 Q | 1 | . |
Horizontal | 13 Q | 22 | 43 | 20 Q | 2 | 2 characters |
Horizontal | 13 Q | 21 | 39 | 22 Q | 2 | 2 characters |
Horizontal | 12 Q | 23 | 48 | 18 Q | 2 | 2 characters |
Table 4.5 A6-size Vertical placement (Point system)
Vertical/Horizontal composition | Size of character | Number of characters on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Vertical | 8 point | 41 | 13 | 17 point | 1 | . |
Vertical | 8 point | 41 | 14 | 16 point | 1 | . |
Vertical | 8 point | 42 | 15 | 15 point | 1 | . |
Vertical | 8 point | 42 | 13 | 16 point | 1 | . |
Vertical | 8 point | 42 | 14 | 16 point | 1 | . |
Vertical | 8 point | 43 | 15 | 15 point | 1 | . |
Vertical | 8 point | 43 | 16 | 14 point | 1 | . |
Vertical | 8 point | 43 | 18 | 13 point | 1 | . |
Vertical | 8 point | 43 | 19 | 13 point | 1 | . |
Table 4.6 A5-size Vertical placement (Point system)
Vertical/Horizontal composition | Size of character | Number of characters on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Vertical | 9 point | 51 | 16 | 18 point | 1 | . |
Vertical | 9 point | 52 | 16 | 18 point | 1 | . |
Vertical | 9 point | 52 | 17 | 18 point | 1 | . |
Vertical | 9 point | 52 | 18 | 17 point | 1 | . |
Vertical | 9 point | 52 | 19 | 17 point | 1 | . |
Vertical | 9 point | 25 | 20 | 15 point | 2 | 2 characters |
Vertical | 8 point | 30 | 24 | 13 point | 2 | 2 characters |
Vertical | 8 point | 29 | 23 | 14 point | 2 | 2 characters |
Horizontal | 9 point | 35 | 26 | 18 point | 1 | . |
Horizontal | 9 point | 35 | 28 | 17 point | 1 | . |
Horizontal | 9 point | 35 | 30 | 16 point | 1 | . |
Horizontal | 8 point | 40 | 30 | 16 point | 1 | . |
Horizontal | 8 point | 38 | 33 | 14 point | 1 | . |
Table 4.7 A5-size Vertical placement (Q system)
Vertical/Horizontal composition | Size of character | Number of charactesr on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Horizontal | 13 Q | 34 | 27 | 25 Q | 1 | . |
Horizontal | 13 Q | 34 | 29 | 23 Q | 1 | . |
Horizontal | 12 Q | 37 | 28 | 24 Q | 1 | . |
Horizontal | 12 Q | 36 | 31 | 21 Q | 1 | . |
Table 4.8 A4-size Vertical placement (Q system)
Vertical/Horizontal composition | Size of character | Number of characters on a line | Number of lines on a column | Line leading | Number of Columns | Column space |
Horizontal | 13 Q | 51 | 41 | 24 Q | 1 | . |
Horizontal | 14 Q | 48 | 39 | 25 Q | 1 | . |
Horizontal | 14 Q | 24 | 42 | 23 Q | 2 | 2 characters |
Horizontal | 14 Q | 16 | 42 | 23 Q | 3 | 2 characters |
The typeface designation is required to designate a generic font family name in Japanese such as "mincho", "gothic". In this TR the typeface designation is not permitted to use any proper typeface name. This TR is required to use "a generic font family name, weight" and "a western language font family name, weight" in font family name designations.
This technical report (JIS/TR) is not provided for posture and the classification between KANJI and KANA.
Character size is to use "Point" or "Q" as a unit of the character size.
Note: This technical report (JIS/TR) is not provided for "the horizontal condensed", "the vertical condensed" and "slant".
Number of headlines is required to choose one from the following cases:
Position of headline is required to choose one from the following cases:
The headline must be composed the horizontal composition in every case. If the headline and the page number are the same position, this technical report (JIS/TR) requires arranging a little to the edge as a position of the page number, and the headline must be arranged inside from the page number. And this technical report (JIS/TR) requires leaving full space or 1.5 times space between the headline and the page number.
The rule of division of words at the headline shall be referred to 4.15.
If the contents of headline differ in both an odd-page and an even-page, this technical report (JIS/TR) requires choosing one from the following cases as style of headline.
If the headline consists of the contents of upper structure in the logical structure, the headline must be arranged opposite the page to begin the text. And the headline on the opposite page must be consisted of the contents of lower structure. However, the headline must not be arranged on the page to begin the text.
Style of the page number is provided for style of following two cases:
The character size of the page number is to use the same size of the text or one grade below. The distance between headline and image area is required to designate the character size of the text or one grade up.
Style of note is provided for the following four types (The inlinenote shall be referred to 4.11.):
This technical report (JIS/TR) is regarded the endnote as the text.
This technical report (JIS/TR) is provided for designation of the following cases a. to d. as style of note.
This technical report (JIS/TR) requires to use characters of "", "õ", "ö", "", "a", "", "Arabic numerals", "KANJI numerals" and "alphabet" as reference mark. And this technical report (JIS/TR) requires to use "1), 2),cc" as reference mark at default of designation.
NOTE:Some examples of reference mark are as follows:
| | |
1 | 2 | 3 |
1) | 2) | 3) |
êA | ñA | OA |
(a) | (b) | (c) |
Note 1: Types of note in the Japanese composition are following Note 2 to Note 6 cases.
Note 2: Interlinenote
This note is composed in a line space beside words and phrases for note. This note is composed in upper line space in the case of the horizontal composition, and in right line space in the case of the vertical composition. The Fig.4.1 means an example in the case of the horizontal composition.
Fig.4.1 An example of interlinenote in the case of horizontal composition.
Note 3: Sidenote
This note is composed in a note area at a little to the edge in the case of the horizontal composition. See Fig.4.2.
Fig.4.2 Sidenote
Note 4: Headnote
This note is composed in a note area at a little to the top edge in the case of the vertical composition. See Fig.4.3.
Fig.4.3 Headnote
Note 5: Footnote
This note is composed in a note area at a little to the tail edge. The Fig.4.4 means an example in the case of the vertical composition.
Fig.4.4 An example of footnote in the case of vertical composition
Note 6: Endnote
The note is composed at the end of division in the text, such as volume, section, part and paragraph, or at the end of a book.
In this rule, the only Inline note of two lines is provided. The inlinenote is managed within same line. We refer this kind of inline in 4.25 for details. Without any specification, to decorate with Inlinenote parenthesis. The size of parenthesis defined as the same size of the body characters size. A default size for Inlinenote characters is defined as 50% of body characters size, but changeable. The line space between the Inlinenote lines is 0 as a default, but changeable. This rule of line compositions image for Inlinenote lines is totally depended on the format.
An emphasizing mark can be used as a unit of character, word or paragraph. The emphasizing mark can put on the top (horizontal composition) or the right (vertical composition) of the character (parent character) as a principle rule. The rule of decorating Emphasizing mark is defined by the "mark style". To decorate Emphasizing mark can be chosen from "each character" or "equal to the group of characters". The default style of the emphsizing mark is defined as "each character" and, "without style". When you use an "equal to the group of characters"Cthe beginning to end point position of the emphasing mark is defined by the format.
This is provided for Superscript and Subscript. In vertical composition, it is changed in each of the positions of Superscript as the right under the character (parent character) of the object and Subscript as the left under the character (parent character) of the object. A size of Superscript and Subscript is half of the parent character. Both of "superscript" and "subscript" can be decorated to one parent character at same time. However, of course this rule depends on the format. The position for a parent character depends on the format, but it should not go over the body of parent character. Even if it go over the body of parent character, it should be included as the subject of the chapter 4.25 "Inline".
A line length of words defined as a result of the multification of the number of characters and the characters size. The amount of character space should be expressed by the following next equation by the character size, the number of line length of words and the number of characters.
amount of character space
= ((all length) - (character size)) / (number of characters space)
= ((character size) * (number of line length of words) -1) / (number of characters) -1
NOTE:The line length of words is used as the designation to complete the string for the number of characters that to be different in the fixed length in case of composing string on the cell of the table and so on. An example is shown Fig. 4.5.
Fig.4.5 Example of Line length of words
We prescribe about typical division of words for a head line. This rule is used even if it is established as standard of division of words for a head line.
Table 4.9 The amount of space of the character space by number of head line characters
Size B5 Horizontal composition | Size B5 Vertical composition | ||
Number of characters | Space | Number of characters | Space |
2 | Treble | 2 | Double |
3 | Full and Half | 3 | Full and Quater |
4 | Full | 4 | Half and Quater |
5 | Half | 5 | One Third |
6 | Quater | 6 | 1 point |
7 | 1 point | over 7 | No |
over 8 | No | . | . |
NOTE:When lines for few characters such as head line or head line etc. is composed to put the space between the letters corresponding to the number of characters. An example is shown Fig. 4.6 .
Fig.4.6 example for Division of words
Following two class:
Note 1:As for the image, it means the figure and so on added as the tip part in a next example to show in the head line.
Note 2:As for a indent, we will treat in the 4.19.
Note 3:Making chapters of the manual kind is faced toward the outside of the object
Note 4:No Numbering is specified when there is "Preface" with no section number and so on before the first chapter.
following two class:
English capital letter, English small letter, KANJI numeric, Arabic numeric, Roman big numeric, Roman small numeric, clock numeric, HIRAGANA, KATAKANA
NOTE: @, A etc.
NOTE:(1),(2) etc.
NOTE:1),2) etc.
NOTE:1. , 2. etc.
NOTE:êA, ñA etc.
E (dot), , , KANJI numeric of 1 following Japanese comma (êA), name of character (ruled by standard of coded character)
indentation of 1 character, indentation of 2 characters
non- indentation , indentation of 1 character, indentation of 2 characters, indentation of 3 characters
same size
1 point smaller than table, or 1Q (= 0.25mm) smaller than table line space of tablenote is half space of tablenote font size
1mm
1.5 times, character of text
In this composition, 2 specify models are offered following 4.19.1 and 4.19.2.
select in 24`32Q (1Q=0.25mm) or 16`22point
select in 18`20Q (1Q=0.25mm) or 12`14point
select in 14`16Q (1Q=0.25mm) or 10`11point
NOTE:These heading font size are in case of 8`9point (12`13Q) text font size. We do not make libraly in this index,because these fontsize are varied by typeface and weight.
Font size unit is point system. Using Q system, the relationship table refered to 4.3 Table 4.1 is applied.
Following samples are about "A5 size, vertical composition, text font size 9 point" and "A5/B5 size, horizontal composition, text font size 9/8 point".
large heading (14 point) | text font size 9 point~4 indentation | center of 4 lines |
middle heading (12 point) | text font size 9 point~6 indentation | center of 3 lines |
small heading (10 point) | text font size 9 point~7 indentation | center of 2 lines |
1 line space | ||
large heading (14 point) | text font size 9 point~4 indentation | center of 3 lines |
middle heading (12 point) | text font size 9 point~6 indentation | center of 2 lines |
small heading (10 point) | text font size 9 point~7 indentation | center of 2 lines |
8 lines space in total, including first 1 line space |
1 line space | ||
large heading (14 point) | text font size 9 point~4 indentation | center of 2 lines |
middle heading (12 point) | text font size 9 point~6 indentation | center of 3 lines |
6 lines space in total, including first 1 line space |
1 line space | ||
large heading (14 point) | text font size 9 point~4 indentation | center of 3 lines |
small heading (10 point) | text font size 9 point~7 indentation | center of 2 lines |
6 lines space in total, including first 1 line space |
1 line space | ||
middle heading (12 point) | text font size 9 point~6 indentation | center of 2 line |
small heading (10 point) | text font size 9 point~7 indentation | center of 2 lines |
5 lines space in total, including first 1 line space |
2 lines space at first |
large heading (14 point) | center of text line width | center of 4 lines |
middle heading (12 point) | center of text line width | center of 3 lines |
small heading (10 point) | center of text line width or text font size 9 point~1 indentation | center of 2 lines |
1 line space | ||
large heading (14 point) | center of text line width | center of 3 lines |
middle heading (12 point) | center of text line width | center of 2 lines |
8 lines space in total, including first 1 line space |
1 line space | ||
large heading (14 point) | center of text line width | center of 2 lines |
middle heading (12 point) | center of text line width | center of 3 lines |
6 lines space in total, including first 1 line space |
1 line space | ||
large heading (14 point) | center of text line width | center of 3 lines |
small heading (10 point) | center of text line width or text font size 9 point~1 indentation | center of 2 lines |
6 lines space in total, including first 1 line space |
1 line space | ||
middle heading (12 point) | center of text line width | center of 2 lines |
small heading (10 point) | center of text line width or text font size 9 point~1 indentation | center of 2 lines |
5 lines space in total, including first 1 line space |
The ruby style standerd designations are below.
The paragraph indentation style designate in beginning of the paragraph must be chosen from either "non indentation" or "one indentation".
The table style does not have to be librarize. The rule of script style from 4.14 should be used.
The score must be three styles below. In case of vertical composition, underlineCupperline is changed to leftlineCrightline. The instances of the score are below.
underline: | |
upperline: | |
strike-out: |
NOTE:underlineCupperline(leftlineCrightline) are sometimes just called sideline. The types of the line is shown in 4.24.
The patterns of rule must be only those which shown in diagram 4.10. Those thickness of lines is just an example, and the actual line and line space depend on formatters.
Pattern | Rule image |
thin rule | |
medium rule | |
thick rule | |
dotted rule | |
dash rule | |
one dotted dash rule | |
two dotted dash rule | |
parallel rule | |
shaded rule |
Frequently, the element which changes the wideness of the paragraph can be added in script line which compose one paragraph. In this section, style specification elements are the elements which change the wideness of the paragraph.
When using these elements and compose a sentence, the order of the composition must be based on 4.25.1 and 4.25.2.
In principle, the wideness of paragraph which contain style specification elements must be same numeric value as the paragraph which does not contain any of those elements.
The locatoin of paragraph which contain style specification elements must be located same location as the case when the paragraph does not contain any of these elements.
The DSSSL library is a framework that enables to specify Document Style and Specification Language (DSSSL) descriptions easily for Japanese structured documents.
DSSSL is the way to specify structure translation and formatting process of SGML documents.
In DSSSL specification, user can specify detailed and precise descriptions for formatting process of SGML documents. However, the specifications are not easy to write for an average user. So, we consider simplify DSSSL specifications by using DSSSL library.
In DSSSL library framework, user can make detailed descriptions from simple descriptions by scheme translation program. DSSSL library includes DSSSL descriptions of standard formatting specifications and standard page model specifications that user can refer. To make detailed descriptions from simple descriptions, translation program needs rules of standard Japanese typesetting rules, formatting specification and there parameters.
NOTE:the library does not support followings:
We assume that formatter ignore attached ruby character height if that do calculating the height of line including body of ruby.
DSSSL script can be written highly system independent, detailed and generic description for DSSSL users. And they should need following knowledge to use DSSSL:
We want to provide the way that beginner can use easily DSSSL processing system without lossing flexibility of the DSSSL specification ability.
We should provide one DSSSL library for each following levels of user's needs.
User can use predefined styles. : for example, when people want to output HTML document in predefined style.
User can understand formatting parameters in DSSSL and custamize style.
User can specify DSSSL specification for DTD using library.
User can create library or enhance library for re-use.
Library framework provide a high level description of DSSSL language. User can flexibly change parameters of library or add a low level descriptions.
This technical report (JIS/TR) mainly gives level 1 library.
The processing flow of DSSSL library is shown in fig5.1
DSSSL library consists of 4 part:
DSSSL library needs to support generating detailed parameters from simple user request. To achive this, the detailed parameter generator generate default parameters for standard Japanese composition method if not specified in simple parameters. For example ruby font size is ordinary half of base font size. In Japanese composition method, image area size is specified in multiple of base font size.
If user can not satisfied default parameters, user can give detailed parameters in simplified specification description. detailed parameter generater get these parameters and generate detailed parameters.
Detailed parameter generator generate detailed parameters from simplified parameters.
Using composition model described in chapter 4, program generate parameters used in the function library and the page model library. Program is shown in Annex A.
We prepare functions used in DSSSL specifications to describe composition elements. These functions are DSSSL flow object generating functions and its support functions used in construction rules in DSSSL specifications. The detailed parameters are refered by these functions. These are shown in Annex B.
Page model library provide page model descriptions in DSSSL style language. These use detailed parameter to define styles of page. These are shown in Annex C.
DTD rule library gives concrete DSSSL specifications to specific DTD, uses detailed parameters, function library and page model library, and specifies construction rules of each DTD tag. In this version, DTD rule library provide construction rules to each HTML 3.2 tags. Thse are shown in Annex D.
Simplified parameters are source of detailed parameters, given in association list form to detail parameter generater. Parameters list is below.
Unit of length is [mm] if no unit is specified. User can give unit like 9pt [ 1pt = 0.3514mm, Q = 0.25mm ].
end of main