Push In, Push Out: Line-Break Prohibition in Chinese
The series Project Peacock: Approaches to Chinese Typography argues for discussing Chinese typesetting on its own terms, from the starting point and logic of Chinese itself. From this article on, the series turns to the handling of punctuation. Although this piece discusses line-break prohibition, I hope readers will read it alongside the earlier articles in the series on basic line length, full-width and half-width punctuation and hanging punctuation.
Suppose that while setting a passage of Chinese you meet the situation in the header image. What should you do? The layout specifies 22 characters per line and does not allow hanging punctuation, yet a full stop falls right at the line end.
Some might say: this is simply line-break prohibition—a full stop cannot start a line, so pull 客 down with it and start a new line. But is that the only, and the best, solution? Even for this simple case there are five or six possible treatments. More important than counting them is understanding the thinking behind them. In this article I explore the complexity and priority decisions involved in line-break prohibition.
Contents
What is line-break prohibition: one rule, three steps
In Chinese typesetting, some marks may not appear at the start of a line and others may not appear at the end, so they must be kept away from those positions. This is line-start and line-end prohibition (bitou wei)—the most basic definition of the rule. It goes by many names: old compositors might call it “handling leading points”, some use the Japanese term kinsoku, and some software calls it “prohibited setting”. All refer to the same rule. In practice, however, line-break prohibition is not achieved in a single operation but requires a combination of at least three steps:
- Which characters to avoid: based on predefined prohibited characters, identify unbreakable segments;
- Where the line starts and ends: compare with the preset line length and determine the break position according to a predefined priority order;
- Adjusting after prohibition: following a predefined scheme for punctuation spacing, make in-line adjustments after the line break.
In traditional practice, all three steps were done by hand on the basis of the compositor’s experience. Now that computers do the work, each step must be strictly defined and turned into algorithmic logic, or software cannot handle it. The most important is the second step. The string is compared with the preset line length; if it breaks exactly at the preset line end, all is well. If not, the break position must be decided logically to determine the actual line length, followed by the third step: if the actual line is longer than the preset, it must be compressed; if shorter, it must be expanded.
In line-break prohibition, the predefined unbreakable segment (客。 in the figure) is compared with the preset line length.
Clearly, with the usual justified setting, line-break prohibition cannot stop after the first two steps and simply break the line; compression or expansion within the line is required—in-line spacing adjustment, or so-called punctuation compression, which needs its own design logic with priorities. In essence, line-break prohibition and punctuation spacing are not independent but interlinked. For reasons of space, this article focuses on the first two steps and touches only briefly on the third, which I will discuss in detail separately.
Which characters are prohibited?
The first step is to define the prohibited characters. This is the foundation of the whole operation and directly affects its complexity. It is preprocessing work: according to position, these characters are defined together with the adjacent Chinese characters as unbreakable segments. In the header example, the final 客 and the full stop form an unbreakable segment, which cannot be split when deciding the line break.
In practice, besides line-start and line-end prohibition there is also “no break in the middle”: marks such as the dash and the ellipsis cannot be split. This is somewhat more complicated and will be covered in a separate article; here I focus on line starts and ends.
Some awkward punctuation marks
The first step looks simple, but a careful look at prohibited characters shows that editorial styles are far from uniform. For convenience I start from the most representative specification, the Chinese national standard GB/T 15834-2011, General Rules for Punctuation. Its section 5, “Position and written form of punctuation marks”, can be summarised as follows:
- Emphasis dots and proper-name marks sit between lines rather than within them, and are outside the scope of line-break prohibition.
- Pause and stop marks—full stop, question mark, exclamation mark, comma, enumeration comma, semicolon and colon—may not start a line.
- Among indicator marks, the opening half of quotation marks, brackets and title marks may not end a line, and the closing half may not start a line.
- The connecting dash (–) and the interpunct (·) may not start a line.
- The slash (/) may neither start nor end a line.
The first points should be uncontroversial, but the last two are odd. Semantically, the slash, like the connecting dash and interpunct, has content on both sides—so why must the dash and interpunct avoid the line start, while the slash is the only mark defined as avoiding both start and end? Moreover, as a requirements document it does not say whether the dash (pozhehao) and ellipsis need prohibition, leaving implementers at a loss. I therefore surveyed thirteen professional sources on typesetting rules and punctuation for these awkward marks. The results are shown in the table below:
| Connecting dash (–) | Interpunct (·) | Slash (/) | Dash | Ellipsis | |
| 1 | avoid line start | ? | ? | avoid line start | avoid line start |
| 2 | ? | ? | ? | ? | ? |
| 3 | avoid line start | avoid line start | avoid line start | not needed | not needed |
| 4 | ? | ? | ? | ? | ? |
| 5 | avoid line start | ? | ? | avoid line start | avoid line start |
| 6 | ? | ? | ? | ? | ? |
| 7 | ? | ? | ? | ? | ? |
| 8 | avoid line start | avoid line start | ? | ? | Y |
| 9 | not avoided in practice | X | X | X | X |
| 10 | Y | Y | line end not avoided in practice | Y | Y |
| 11 | ? | ? | ? | ? | ? |
| 12 | avoid line start | avoid line start | avoid start and end | ? | ? |
| 13 | avoid line start | avoid line start | ? | ? | ? |
Table 1: How thirteen sources describe specific punctuation marks
- For the full titles of the thirteen sources, see the bibliography at the end
- ? means not explicitly mentioned in the description of typesetting rules;
- X means no explicit rule, but actual typesetting shows neither start nor end avoided;
- Y means no explicit rule, but actual typesetting shows line start avoided but not line end;
Table 1 shows that these sources are vague about these awkward marks. Four of them mention prohibition for other marks yet say nothing about these five. The main reason is that, compared with the various stop marks, the status and form of the slash were settled quite recently: the 1995 edition of GB/T 15834 had no slash at all, and many other sources do not mention it. But those that do generally agree it should avoid the line start—so there is some consensus in the industry.
Of the thirteen sources, the only one that clearly specifies treatment of all five marks is source 3, Basic Knowledge of Typesetting (first edition). This standard textbook for printing courses at press and publishing technical schools states in its 1999 first edition that “apart from the dash and ellipsis, no single punctuation mark may start a line.” But in the 2008 third edition, “any single punctuation mark” was removed and replaced with “full stops, question marks, exclamation marks, commas, enumeration commas, semicolons and colons… do not appear at the start of a line.” So even the same editor’s view can change over time. There is no permanent consensus in publishing on this point; actual practice depends on each publisher’s editorial style.
The prohibition style for the ellipsis and dash matters because each already takes two character widths. A strict setting of “no splitting” plus “avoid line start” can produce large adjustments: sometimes not only the mark itself but also the last character of the line must be pushed to the next line, requiring a big adjustment to that line’s spacing.
An example of line-start prohibition for a dash. In example (7), the last character of the previous line, 子, is pushed out so the dash does not start a line, visibly widening the spacing of that line. (Lan Binhan, Handbook of Punctuation Usage, Commercial Press International, 2015)
So when defining prohibited punctuation, beyond the usual indicator marks one must also pay attention to the connecting dash, interpunct, slash, dash and ellipsis. Semantically, all five should avoid the line start; but to avoid unnecessary in-line adjustments, the restrictions may be relaxed, especially for the dash and ellipsis.
Not just punctuation
Prohibition applies not only to punctuation but to various symbols, especially those related to numbers, including but not limited to:
- The percent sign % and per mille sign ‰ must avoid the line start
- Special units such as ℃ must avoid the line start
- Prefixed currency symbols such as £¥$¢ must avoid the line end
- Thousands separators and decimal points in numbers such as 10,000 or 3.14 must avoid the line start
- Superscripts, subscripts and note markers—such as the superscript in some units and in various disciplines (the 2 in m 2) together with the preceding character, and footnote or endnote markers such as ㈠ ㊁ Ⅲ ④—must avoid the line start
In terms of actual typesetting, these symbols really call for “no break in the middle”: they should form unbreakable segments with what they modify. I analysed these special cases of line-break decisions in “Breaking Lines Without Hesitation”, so I will not repeat them here.
An example of a line wrongly broken between a footnote marker and the annotated text (screenshot from Apple’s website, in Chrome)
Take Founder FIT: as domestic Chinese typesetting software, it focuses on Chinese needs, so its default prohibited set contains only a few common punctuation marks. With the spread of Unicode and complex situations such as mixed Chinese–Latin text, many foreign word processors (such as Microsoft Word) and professional typesetting applications (such as Adobe InDesign) add so-called half-width Western punctuation and other symbols to rules originally designed for Chinese. So the kinsoku sets of some foreign software contain far more symbols than punctuation in the ordinary sense.
What on earth are “strict” and “loose”?
When it comes to kinsoku settings, people familiar with Adobe software will say: “Isn’t this all predefined in the software?” Yet open the Kinsoku Shori Settings dialog in Adobe Illustrator’s Paragraph panel, and the presets offered are “Hard” and “Soft” (rendered in Chinese as “strict” and “loose”). What do these mean? How do they differ? Which should you choose?
Adobe Illustrator’s kinsoku settings offer two presets, Hard and Soft, both designed for Japanese rather than Chinese. Green highlights the characters added in Hard compared with Soft.
Comparing the two Illustrator presets, it is easy to see that the main difference lies in the treatment of small kana for Japanese contracted and geminate sounds, and the katakana long-vowel mark. Japanese orthography specifies that kana for contracted sounds such as や, ゆ, よ and the geminate つ follow the preceding kana in a smaller size, set low in horizontal text and to the right in vertical text. Contracted and geminate sounds, and the long-vowel mark, are closely tied to the pronunciation of the preceding kana, so from a reading standpoint they should indeed form unbreakable segments with it. In the Japanese Industrial Standard JIS X 4051:2004, these marks are all subject to what is called gyōtō kinsoku (line-start prohibition). So in Adobe’s kinsoku settings, Hard treats these small kana as line-start prohibited, while Soft relaxes the restriction and defines far fewer marks. Analysing these settings, we can see:
-
- 1. As specifications, neither JIS X 4051:2004 nor the later Requirements for Japanese Text Layout published by the W3C ever uses the terms “strict” and “loose” or defines them. The JIS standard simply states that small kana, including those for contracted and geminate sounds, must be prohibited (in effect equivalent to “strict”), and the W3C document only adds notes on the basis of JIS.
- 2. “Strict” and “loose” are entirely Adobe’s own vocabulary; other software may not use the same terms. The Japanese version of Adobe Photoshop has only 強い禁則 (strong) and 弱い禁則 (weak); in the Chinese version, the “JIS” in “JIS strict” and “JIS loose” is a superfluous addition made during localisation. Microsoft Word also has two kinsoku settings, “Standard” and “Strict”, while QuarkXPress’s presets are “Japanese Strong” and “Japanese Weak”.
- QuarkXPress’s non-breaking character sets also offer presets “Japanese Strong” and “Japanese Weak”, and allow customisation.
- 3. Because each vendor defines these independently, the settings are not consistent across software. Word’s “Strict” and QuarkXPress’s “Japanese Strong”, for example, differ in content, so check carefully when using them, since different settings produce different results.
- 4. The “strict” and “loose” settings in current software are basically designed for Japanese typesetting and are unrelated to Chinese. For Chinese typesetting, whether you choose strict or loose makes little difference. Applying Japanese settings to Chinese sometimes causes no great problem, but that is not what the software designers intended, so correct and complete Chinese results cannot be guaranteed.
Knowing these facts, users of these common applications should bear in mind:
- (a) Distinguish “real” from “fake” Chinese versions: some software has no genuine Chinese settings at all. The Hard and Soft presets in Adobe Photoshop and Illustrator are both for Japanese; neither application has a Chinese preset. By contrast, the Chinese version of Word, InDesign and QuarkXPress have kinsoku sets designed specifically for Chinese. This is a crucial point in software internationalisation and localisation: translating the interface into Chinese does not make a good Chinese version.
- (b) Whether users can customise settings affects the software’s usability (whether it can be used at all). Illustrator has no preset simplified Chinese kinsoku set, but it supports customisation, so Chinese users can at least edit a preset or create their own. Photoshop’s kinsoku settings offer neither a Chinese preset nor customisation, which is the weak spot that keeps a professional image editor from handling professional typesetting. By comparison, Word, though consumer-grade software for general users, offers both a Chinese preset and customisation. So choosing the right tool for your actual needs matters.
- (c) The settings of professional software support professional workflows, which directly affects ease of use (whether it is pleasant to use). What distinguishes InDesign and QuarkXPress as professional typesetting software from Word is that kinsoku sets can be exported and imported as files, which is very important for teamwork and project management. Kinsoku settings are part of an editorial and typesetting style; a publisher or project may need to share or separately manage settings while several people collaborate, and a common settings file meets the needs of professional workflow management. Neither Word nor the domestic Founder FIT has this capability.
Since strict and loose are Japanese settings, does Chinese typesetting have no need for the concept? Not necessarily. As discussed in the previous section, Chinese also has some awkwardly placed marks; ignoring them in kinsoku settings could be defined as a Chinese “loose” set, and including them all as “strict”. At present users must manage this themselves, but I suggest software developers could provide such presets for users to choose.
Here, though, a common misconception must be pointed out: stricter rules do not necessarily make finer typesetting. Quite the reverse—if the rules are too strict, with too many things to avoid, too many places need adjusting, and too much becomes as bad as too little. In Japan, in fact, although the Japanese versions of InDesign and Illustrator default to Hard, most printed publications use so-called soft rules. In this sense Adobe’s wording is also misleading, since “soft” is really the standard usage; it would be better to label them, as Word does, “Standard” and “Strict”, so users can choose with confidence.
Where are the line start and end?
Once prohibited segments are defined, the second step is to decide the line break. If no unbreakable segment falls at the preset line end, the line simply breaks. But if, as in the opening example, a segment such as 客。 falls right at the preset end, it must be decided whether to break before or after the segment—in effect, whether to compress it into the current line or push it out to the next—to determine the actual line length. Professional typesetting engines usually compare the break decision of the second step with the adjustment values of the third step algorithmically, and choose the method with less impact on the text, as detailed below.
Clearly, a correct preset line length is crucial here, as it is the premise of the line-length judgment. See the earlier discussion in this series of basic line length, that is, line length must be a whole multiple of the type size.
In paragraph handling, most Chinese publishers also have a rule that “a lone character cannot form a line”—avoiding a final paragraph line of just one character plus a punctuation mark. Handling lone characters can be seen as a special case of line-break prohibition, to be treated on the principle of compression first, squeezing the lone character into the previous line. Only if that is impossible should pushing out be considered, which means pulling the last character of the previous line down to the next.
Mixed Chinese–Latin text needs particular attention. When a foreign word falls at the preset line end, the break must follow that language’s rules: most Western languages hyphenate by syllable, while Arabic phrases written right to left should preferably not be split across lines, to avoid confusing the reading order. When processing text by computer, it is best to mark the language of embedded foreign words (for example, by setting the language in InDesign’s Character panel, or adding the lang attribute on the web), so the typesetting engine can correctly identify the language and use its dictionary for line breaking.
Once the language of Latin text embedded in Chinese is set manually in InDesign, the software hyphenates correctly according to Latin rules; otherwise it can only push the whole word to the next line, leaving poor spacing in the line above.
How to apply it: methodology
The logic of line-break prohibition
Let us first analyse in theory how to apply prohibition and how to decide between compressing and pushing out. In some environments, such as most web typesetting today, compression is impossible, so there is no choice but to push out. More advanced environments can run more complex algorithms, and should first determine whether an operation is feasible, then whether it is appropriate. On whether compression is possible, the Japanese standard JIS X 4051:2004, Formatting Rules for Japanese Documents, is detailed and precise (my excerpted translation):
4.3 Line-start prohibition
a) If the preceding line contains any middle-dot-class mark2, brackets, Western word spaces, Japanese–Western spacing, spacing between Japanese and Arabic numerals, or spacing between Japanese and unit symbols that can be compressed, compression is applied and the line-start-prohibited character is pulled into the end of the preceding line…
b) If the compression in a) is not possible… expansion is applied and the line-start-prohibited character is pushed to the next line…
4.4 Line-end prohibition
a) If a line-end-prohibited character falls at the end of a line, and there is any middle-dot-class mark, brackets, Western word spaces, Japanese–Western spacing, spacing between Japanese and Arabic numerals, or spacing between Japanese and unit symbols that can be compressed, compression is applied and the first character of the next line is pulled into this line…
b) If the compression in a) is not possible… expansion is applied and the prohibited character is pushed to the next line…
These two clauses show that JIS follows “compress first, then push out”. Moreover, in deciding the break position in the second step, the criteria are limited to whether there are middle-dot-class marks, brackets, Western word spaces or Japanese–alphanumeric spacing. Only in the third step, in-line adjustment after the break position is decided, are major marks such as commas and full stops adjusted—and that follows another priority order.
In general terms, the first step in judging whether compression is feasible is to establish whether available adjustable space ≥ required adjustment holds—that is, whether supply can meet demand. If not, there is too little adjustable space to compress, and the process goes straight to pushing out. If it holds, compression is possible, and the next step is to consider the various methods, compare their effects and choose. Clearly, the more punctuation in a line, the more adjustable space, the more easily the inequality holds, and the more methods are available. This is why defining each mark’s compression amount and compression priority in advance is so important.
Back to the opening problem and the specific methods. This line involves three kinds of punctuation at two levels: the full stop is sentence-final; the comma and enumeration comma are sentence-internal. Three marks are within the line and one at the end. Following the analysis of unbreakable segments, to pull 客。 into the line at least half a character must be freed, and the four marks each have a half-width to give; the inequality clearly holds, so compression is possible. Depending on the policy, there are several methods:
Method 子 is the so-called half-width style: all punctuation is set half-width. This saves the most space, leaving one character’s space at the end of the line—the most compact of all. Method 丑 is the so-called Kaiming style: full stops are full-width, commas and enumeration commas half-width, so the second full stop falls at the line end and is exactly full-width. But the editorial styles of many publishers, including the Chinese national standard, require that “punctuation at the line end must be half-width”, hence methods 寅 and 卯: first follow 子 to make the final full stop half-width, then redistribute the remaining half character. 寅 splits the half-width into two quarter spaces added after the comma and enumeration comma, leaving the full stop unchanged; this preserves the different spacing of sentence-final and sentence-internal marks. 卯 splits it into three sixth-spaces distributed evenly after the three in-line marks; each adjustment is finer, but even distribution ignores the hierarchy of the Kaiming style and makes the full stop wider than full-width.
If in the second step the line is broken before 客。, the segment is effectively pushed to the next line, leaving one character’s width free in the current line. Depending on the policy, there are several ways to expand in the third step:
Method 甲 is the only result achievable in the domestic word processor WPS and much web typesetting: after the segment is pushed out, the justification algorithm forcibly spreads the remaining characters, distributing one character width across twenty inter-character gaps. This minimises each gap (1/20 of a character), but breaks the principle of setting solid, so spacing differs from other lines. To keep characters set solid and put all the extra space after punctuation, there are two approaches: 丙 is simpler, dividing a full width into three third-spaces added evenly after the three marks; 乙 follows the Kaiming logic, giving different amounts of space to the sentence-final full stop and the sentence-internal comma and enumeration comma, which is more refined. But both make punctuation wider than full-width, so it looks too wide.
This example is relatively simple. Real typesetting is far more complex, with short lines, more levels of punctuation, mixed Chinese–Latin text and so on. And every method involves compromise, so choices about compression amounts and priorities need a clear typesetting logic. For example:
- To insist that “punctuation must never exceed full width”, rule out 卯, 乙 and 丙;
- To insist that “characters stay set solid”, rule out 甲;
- To insist on “half-width punctuation at line ends”, rule out 丑;
- To insist that “each adjustment stays within a third of a character”, rule out 丙;
- To insist that “compression takes priority over pushing out”, rule out 甲, 乙 and 丙
Clearly, a typesetting style is a combination of such judgments—what to prioritise and what to tolerate. Most publishers enforce half-width punctuation at line ends so that, without hanging punctuation, the right edge of the text block looks relatively even; but this rule increases adjustment. The usual explanation of “compress first, push out second” is that it makes the page more compact and saves paper. But typesetting principles give a clearer explanation: with lines longer than 30 characters, no method leaves very visible traces; yet if punctuation compression is done properly, compression often needs only half a character, while pushing out requires at least one full character. On the principle of “making as few adjustments as possible in text typesetting”, compress first, push out second is the right method. Each of the methods above has its rationale, but relatively speaking 寅 tends to look most natural.
The limits of the metal type era
Let us look at how prohibition works in various environments, beginning with the era of movable type. Traditional hand-set metal type had many physical limitations and few available methods. In the chapter on “Metal type composition” in An Introduction to Contemporary Typesetting Technology1 we read:
When there happens to be one punctuation mark too many at the line end, to avoid a leading point half a character must be removed from the line (punctuation at the line end uses half-width). This is done by changing a full-body mark to half-width, or three half-width marks to third-width, to squeeze out room for one mark.
When a leading point occurs and half a character cannot be removed, one character must be pushed out of the line. Take one character out of the line, add fractional spaces, and place the displaced character at the start of the next line, thus avoiding the leading point.
(See the bibliography at the end , item 11)
This passage clearly shows the principle of “compress first, then push out”. Metal type bodies cannot be shaved and physically cannot be squeezed further, so the usual practice was to swap a full-body mark in the line for a half-body one (not any other width) to make room. And since most publishers required half-width at line ends—punctuation at the end of a line had to be half-width (not hung)—in practice freeing just half a character was usually enough to compress.
If the preceding line had no punctuation to compress, or the style was simply “never compress, only push out”, the last character had to be pushed to the next line. For the character width left free, the most common practice in the metal type era was to insert fractional spaces among the last few characters. In both China and Japan, adding four quarter-em spaces near the line end was very common.
If quarter spaces were not fine enough, sixth spaces could be used, and some carefully printed books did so. Even so, the metal type era never distributed the extra space across the whole line as in method 甲: for hand composition that was not only too much work, but the resulting gaps were so fragmentary that suitable spaces were not always available. Even distribution only appeared later with phototypesetting.
In the end, line-break prohibition in the metal type era had general principles but relied mostly on the meticulous craft of compositors and their judgment. Not all of its methods suit modern typesetting. Adding spaces among the last few characters of a line, for instance, arose entirely from the constraints of metal type; in the computer era it would require manual spacing, which goes against automated typesetting. But the principle of compress first, push out second, and the various adjustment methods, still offer guidance for modern typesetting.
How typesetting software handles it
Microsoft Word
Today, with a computer, anyone can produce printed matter and do typesetting—thanks in no small part to office software. As consumer office software, Word enables line-break prohibition by default, which is enough for ordinary users. The settings are under Paragraph → Asian Typography → Options. But in the Chinese version the feature is not called line-break prohibition; instead one edits “first and last characters” in the dialog.
As noted, Word’s “Standard” and “Strict” are settings for Japanese, so these two buttons only work in the Japanese version. The Chinese version shows the default Chinese prohibition values, which correspond to neither option (see table below). The buttons appear selectable, but whichever the user picks, nothing changes—clearly a bug in Word for Mac. By contrast, in the Chinese version of PowerPoint, from the same Office suite, Format → Asian Typography greys out “Strict”, so users either use “Standard” or “Custom”—as a normal interface should.
| Japanese: line-start prohibited (Standard) | !%) | .:;?]}¢°’”‰′″℃、。々〉》」』】〕 ゛゜ゝゞ・ヽヾ!%),.:;?]}。」、・゙゚¢ |
| Japanese: line-start prohibited (Advanced) | !%) | .:;?]}¢°’”‰′″℃、。々〉》」』】〕 ぁぃぅぇぉっゃゅょゎ゛゜ゝゞァィゥェォッャュョヮヵヶ・ーヽヾ!%),.:;?]}。」、・ァィゥェォャュョッー゙゚¢ |
| Chinese: following punctuation | !%) | .:;>?]}¢¨°·ˇˉ―‖’”…‰′″›℃∶、。〃〉》」』】〕 〗〞︶︺︾﹀﹄﹚﹜﹞!"%'),.:;?]`|}~¢ |
| Chinese and Japanese: leading punctuation | $([{£¥·‘“〈《「『【〔〖〝﹙﹛﹝$(.[{£¥ |
Table 2: The actual content of Microsoft Word’s first/last character presets. The Chinese and Japanese versions share the same “leading punctuation”, but differ greatly in “following punctuation”.
Note that Word’s default Chinese “following punctuation” includes ·, ― and …, so by default Word prohibits the interpunct, dash and ellipsis from starting a line—a fairly strict standard—but it does not define the slash or connecting dash. Moreover, the dash-like symbol ― is actually U+2015 HORIZONTAL BAR rather than the — used by most Chinese input methods, U+2014 EM DASH which is also a big problem; this series will discuss it separately.
Because Word enables “Compress punctuation” by default, in practice Word does follow “compress first” when applying prohibition. When there is not enough room at the line end for a mark, or a line-start-prohibited mark occurs, Word first tries to compress the width of punctuation within the line to make room at the end. Of course, if the user selects “Don’t compress” under Character Spacing Control and does not allow hanging, compression is impossible and it becomes “push out only”.
Adobe CC applications
As professional graphic design tools, Adobe’s applications offer relatively complex control over prohibition. First, the relevant settings in the Paragraph panel menus of Photoshop, Illustrator and InDesign.
As the figure shows, the three applications differ in features, and after localisation even the Chinese menu names for the same feature differ. For comparison:
| Photoshop | Illustrator | InDesign | ||
|---|---|---|---|---|
| Japanese presets | JIS Hard / JIS Soft | Hard / Soft | Japanese Hard / Japanese Soft | |
| Chinese kinsoku presets | None | None | “Simplified Chinese” and “Traditional Chinese” | |
| Kinsoku set editing | No customisation | Customisable | Customisable | |
| Kinsoku type | Three types | Three types | Three types + Prioritize Adjustment Amount | |
| Hanging punctuation | Burasagari | Burasagari | Kinsoku Hanging Type |
Table 3: Comparison of kinsoku menu options and features in three Adobe applications
As mentioned, Illustrator has only Japanese settings, while InDesign provides a default simplified Chinese kinsoku set, whose “characters not allowed at line start” include ·, … and ― (both U+2014 EM DASH and U+2015 HORIZONTAL BAR). So, like Word, it prohibits the interpunct, dash and ellipsis from starting a line by default, but does not define the slash (/), and so does not conform to the national standard. Users need to adjust and supplement it to suit their needs.
Besides kinsoku sets, Adobe applications have a Kinsoku Type option in the Paragraph or Control panel menu. Photoshop and Illustrator offer three choices—Push In First, Push Out First and Push Out Only—while InDesign has a fourth: Prioritize Adjustment Amount. Here is how Adobe’s official help describes the InDesign options:
- Push In First: tries to keep kinsoku characters on the same line.
- Push Out First: tries to move kinsoku characters to the next line.
- Push Out Only: always moves kinsoku characters to the next line.
- Prioritize Adjustment Amount: pushes text in when the expansion of spacing caused by pushing out would be greater than the compression caused by pushing in.
InDesign’s Kinsoku Type includes a fourth option, Prioritize Adjustment Amount
Clearly “tries to” implies an internal algorithm with a priority order, but the help does not explain what it is. Since Adobe in fact implements the JIS rules, the algorithm can be understood from the JIS clauses in the previous section. Let us see InDesign’s actual behaviour with an example. Note that InDesign’s break positions are controlled by many other settings combined; the choice of single-line or paragraph composer, for instance, has a big influence. The figure below shows InDesign with the same Simplified Chinese kinsoku set + “1/2 em at all line ends” + Adobe CJK Single-line Composer + justification, using the four Kinsoku Types: top left Push In First, top right Push Out First, bottom left Push Out Only, bottom right Prioritize Adjustment Amount.
Seeing the results, readers may immediately ask why the first line is the same in Push In First and Push Out First. The first line contains bracket-class marks (title marks) and a middle-dot-class mark (although this is Chinese, InDesign still classifies the colon this way according to Japanese requirements), so the algorithm judges that the line can be compressed. At the line end the unbreakable segment 经》: has three characters but only two characters’ room. Under “1/2 em at all line ends” the colon must be half-width, and since JIS allows the closing title mark, a bracket-class mark, to be compressed to half-width, the whole segment shrinks from three widths to two—exactly the preset line length—so Push In First and Push Out First give the same result. Likewise, with Push Out Only at bottom left, the first line is not compressed at all; even with “1/2 em at line ends” the segment 经》: still takes 2.5 widths and needs adjusting, so the whole segment is pushed to the second line, where 志》 at the end, after line-end half-width compression, exactly fits the preset line length, so nothing is pushed out of the second line either. So if a prohibited segment happens to fit within the preset line length, the software makes no unnecessary adjustment.
Now look at 载, at the end of the second line in the top-left image. It originally takes two widths, and even after the comma is compressed to half-width it takes one and a half, while only one character’s room remains, so adjustment is needed. With Push In First, the segment is pulled in, and the quotes and title marks in the line are slightly compressed to free half a character. With Push Out First at top right, the segment is simply pushed to the next line.
So what is InDesign’s unique Prioritize Adjustment Amount? The “adjustment amount” here refers to the mojikumi (punctuation compression) settings. Push In First, Push Out First and Push Out Only all belong to the kinsoku settings, and are triggered only when an unbreakable kinsoku segment meets the line end. Prioritize Adjustment Amount, however, compares the “desired” values in the mojikumi settings—for line start, mid-line and consecutive punctuation—with the preset line length, and triggers adjustment whenever they differ. The mojikumi settings are richer and more comprehensive, so among InDesign’s four Kinsoku Type options, choosing Prioritize Adjustment Amount generally gives better results.
Comparing top-left Push In First with bottom-right Prioritize Adjustment Amount above, the ends of the third line differ. Although there is no kinsoku segment at that line end, Prioritize Adjustment Amount still adjusts the consecutive marks :“ mid-line according to the mojikumi settings, freeing half a character—enough to fit 皆. This saves space and keeps the Chinese grid aligned.
Clearly, as professional typesetting software, InDesign has very complex kinsoku settings, and its internal algorithms are based on the Japanese JIS requirements. For ordinary Chinese users this is overly complicated; in most cases it is enough to select Prioritize Adjustment Amount in InDesign together with correct mojikumi settings. In Illustrator and other applications without this option, according to the principles above, choose Push In First where possible.
Founder FIT
Founder FIT’s punctuation settings are minimal.
Compared with InDesign, Founder FIT’s algorithm is very simple. It offers five types of Chinese punctuation—Kaiming, full-body, half-body, centred and centred half-body—but in effect only full or half width, without InDesign’s minimum and maximum ranges around each desired value. Founder FIT essentially follows the principles of metal type, with no room for adjustment, so it has no algorithm for setting priorities in prohibition. When typesetting, FIT first processes in-line punctuation according to the user’s chosen style—in the Kaiming style, full-body where full-body, half where half; then if a prohibited segment meets the line end, it makes no local adjustment but simply pushes it out. Still, in its logic of processing punctuation first, FIT’s approach is similar to InDesign’s Prioritize Adjustment Amount.
Web and e-book typesetting
In web and e-book environments, the three steps of line-break prohibition remain the same in principle, and we can analyse them in the same way. The first step, defining prohibited characters, must be examined at the character level, so we must start with Unicode.
Unicode
Many people do not realise that Unicode does more than assign code points and encoding rules: it also defines many specifications related to text encoding in its annexes, which are an integral part of the standard. For line-break prohibition, attention must be paid to Unicode Standard Annex #14, Unicode Line Breaking Algorithm (UAX #14). This document first classifies characters by requirement, then explains line-breaking actions, and specifies algorithmic rules assigning actions to each class. It is publicly available and interested readers can read it directly; for reasons of space I will only excerpt a few points relevant to the awkward marks mentioned earlier:
- Rule LB13: do not break before ‘]’, ‘!’, ‘;’ or ‘/’, even after spaces. This rule in effect prohibits the slash (/) from starting a line;
- Rule LB19: do not break before or after quotation marks. That is, curly quotes (“ ”) are by default prohibited at both line start and line end.
- Rule LB21: do not break before hyphens, other hyphen-like characters, fixed-width spaces, small kana and similar characters. Under this rule, the Chinese connecting dash also avoids the line start.
- Rule LB22: do not break between two ellipses, or between letters, numbers or exclamation marks and an ellipsis. That is, the ellipsis can neither be split nor start a line.
Thanks to these Unicode rules, the awkward marks discussed at the beginning have default handling in web and e-book typesetting and are no longer awkward. But the defaults also bring new problems, such as curly quotes being prohibited at both start and end.
By Chinese convention, the line here could break after the comma at the arrow, but Unicode’s definition of curly quotes as prohibited at both start and end produces this awkward result. (Screenshot of Sina News in Safari 11.1 and Chrome 66.0.3359.139 on macOS. Firefox Quantum 60.0, being optimised, breaks normally after the comma.)
Quotation marks are defined as prohibited at both start and end because the shapes, positions and uses of opening and closing quotes differ across languages and fonts. The mark in the figure (often described as a “6-shaped” quote) is an opening quote in Chinese and must avoid line ends, but in German it may be a closing quote that must avoid line starts. So Unicode simply defines such marks as prohibited at both ends and leaves them to be handled at other levels, for example by customisation with language information. At the end of the first line above, Chinese convention would allow a break after the comma following 强调, but because curly quotes are defined as prohibited at both ends, a chain reaction forms the unbreakable segment 调,“中, four characters long, while only three characters’ room remains at the line end, so the whole segment is pushed out. Fortunately the page is set flush left; if justified, the spacing of the first line would be even worse.
This is an after-effect of modern Chinese using curly quotes that share code points with Western text. The problem does not arise in Western text, where commas are usually followed by spaces that give browsers a break opportunity. From another angle, it is an argument for using traditional corner brackets (「 U+300C LEFT CORNER BRACKET and 」U+300D RIGHT CORNER BRACKET) in Chinese, because in Unicode these belong to the bracket classes rather than the quotation class, and each avoids only the line end or the line start, not both.
These Unicode rules are only defaults; browsers and other user agents may override them. The Unicode document itself mentions the importance of customisation, for example Japanese strict/loose rules or handling very long URLs. So to avoid the situation above, user agent developers need to treat Chinese curly quotes as a special case. Of course, customisation should be done carefully on the basis of understanding the default behaviour, which underlines how important it is to understand Unicode’s defaults.
CSS
Once characters are defined, the typesetting engine must decide where to break lines. What gives web developers the biggest headache is that browsers and other engines implement this differently. For the sake of standardisation, W3C specifications must be respected, so we start from the relevant rules in CSS Text Module Level 3 (Working Draft) , Chapter 5, “Line Breaking and Word Boundaries”.
CSS3 currently has two very similar properties for line-break control: word-break and word-wrap. Both were originally proprietary to IE 5.5; since being written into CSS3 they are supported by all major browsers. Their names are similar and their functions alike, so they are often confused. And since the word-break property can take the value break-word, one often sees in CSS the oddly worded word-break:break-word;.
In the new version of the specification, the W3C has decided to remove the break-word value of word-break , because its effect is the same as word-wrap/overflow-wrap:break-word . CSS3 has also decided to rename word-wrap as overflow-wrap , widening the distinction between the two in both name and use. Unfortunately, such changes are always held back by compatibility: older browsers such as IE do not support the new name, so developers still need the old name word-wrap .
Speaking of the word-break property, we must mention the once-popular word-break:break-all . As the name suggests, it forces words to break, so not only is Western hyphenation lost, but Chinese line-break prohibition is also cancelled, so that a break can occur between any two characters. The property was designed for the occasional need in CJK typesetting to sacrifice Western hyphenation; it does not guarantee proper Chinese prohibition and should be avoided where possible.
Using word-break:break-all; cancels Chinese line-break prohibition (screenshot: NetEase News)
Forcing Western words to break is mainly for display on narrow screens such as mobile devices and for handling very long URLs. For this, CSS has long provided the overflow-wrap:break-word property. As its new name suggests, it wraps overflowing lines—breaking words only when a string is longer than its box and would overflow—while preserving prohibition and avoiding mid-word breaks as far as possible. So for very long URLs, use overflow-wrap:break-word; rather than the brute force of word-break:break-all .
In the latest CSS discussions, however, experts are considering extending the line-breakline-break property. After all, word-break only addresses breaking words, not breaking lines. This property was once IE-only, and support is still very poor. In the new working draft, the experts want to give it values such as strict and loose to support Japanese-style strict and loose control, and defaults such as auto and normal for user agents and developers to define. Like many CSS properties, it starts by meeting Japanese requirements and then extends to other regions. But even within the CJK region, different languages have different degrees of need for prohibition, so the draft still has many problems. How the characters covered by each value should behave in each language, and how they correspond to each language’s real needs, are very complex questions—whether CSS should predefine them or user agents should define them—and the details need further discussion and testing.
Clearly, as with other typographic features, web and e-book typesetting remains weak in this kind of control compared with print. Add the web’s need for compatibility, and new properties have a long way to go. In the Chinese context, the priority now is to improve basic requirements documents such as Requirements for Chinese Text Layout, which can then provide a basis for discussion by the CSS working group. Developers should read the requirements thoroughly for their actual environment, clarify priorities, make compromises and fallbacks, and test well.
Why line-break prohibition is necessary
The web and e-books have spread extremely fast, but electronic typesetting engines still have many shortcomings. The web pages Chinese users browse and the apps they use every day (such as WeChat) have not properly solved line-break prohibition—or have avoided it. Worse, many young people spend far more time with phones than with printed books, are used to such typesetting and no longer see it as a problem. Is line-break prohibition really such a low priority?
Used every day by hundreds of millions, WeChat seems to have long avoided the problem of line-break prohibition. (Device: iPhone X; version: WeChat for iOS 6.6.6)
In terms of requirements, line-break prohibition is a necessary condition of modern Chinese typesetting. That is, typesetting without it cannot be called acceptable modern Chinese typesetting. This is not a question of good versus better, but of right versus wrong. The Book Quality Management Regulations issued by China’s General Administration of Press and Publication include a “method for calculating editorial and proofreading error rates”, which states plainly that “each punctuation mark wrongly placed at the start or end of a line counts as 0.1 errors.” Failing to apply prohibition is an error that should be eliminated in the publications of any proper publisher—so why is it ignored in modern software?
Line-break prohibition is an important feature of Chinese typesetting because Western typesetting hardly needs to consider it. As I pointed out in “Revisiting the Differences Between Chinese and Western Typography”, Western writing with spaces between words gives typesetting engines a great deal of help. Western text broken at spaces is acceptable, and hyphenation is a further optimisation. Chinese, written without spaces, has no word-breaking problem; in theory a line can break between any two characters, which means it does not even reach the acceptable baseline without a prohibition mechanism.
It is a necessary condition of modern Chinese typesetting because it mostly concerns punctuation and numerals, which entered Chinese in modern times with the vernacular movement and became an indispensable part of modern Chinese. Traditional Chinese had no modern-style in-line punctuation, so prohibition was naturally unnecessary.
A typesetting approach that keeps vertical and horizontal alignment at the expense of line-break prohibition. (Detail of the Taiwanese Hokkien Han-character Bible. Source: Taiwanese Han-character Bible – scanned edition)
In terms of style, some admire the Chinese grid with strict vertical and horizontal alignment. But clearly there is a conflict between prohibition and the traditional Chinese grid, which requires adjustment and trade-offs. Forcing alignment to the grid while abandoning prohibition puts the cart before the horse—a classic case of sacrificing function (readability) for form (alignment). Modern punctuation not only distinguishes meaning and affects readability but has a huge effect on the Chinese page. Introducing Western-style punctuation into modern Chinese has been a long process of absorption, from between lines to within them, from centred to offset—all trade-offs and compromises between readability and formal beauty. How to make adjustments unobtrusive so they do not disrupt reading has always been the goal of modern Chinese typesetting, and a perennial challenge.
Summary
Setting out the three steps of line-break prohibition, this article has analysed its possibilities in principle and how it is handled in environments from print to the web. Line-break prohibition is never solved by simply pushing out and stretching; it must be handled according to principle, with clearly defined targets for each situation and algorithmic logic.
Which result is best is a matter of opinion. As with other principles of typography, the typesetter must make choices under specific conditions. Method 甲 above, for example, breaks the principle of setting solid, but under the constraints of web typesetting it may be a relatively good result; in print, with a tool like InDesign, a better treatment may be possible. The key is to master the principles, be clear about goals and execute clearly.
In digital environments, internationalisation and localisation make text development ever more complex, and developers of typesetting engines should take particular care “not to reinvent the wheel”. The default behaviour of Unicode, mainstream operating systems and user agents is set the way it is for a reason; developers should study existing specifications to understand their intent, and beware of overriding them presumptuously, overcorrecting and breaking one thing to fix another.
As mentioned, the second step of prohibition presupposes a correct preset line length, that is, line length as a whole multiple of the type size. And to focus on prohibition, all examples in this article disallow hanging punctuation. If hanging is allowed, the break decision in the second step produces more variations and raises the question of whether line ends are even, which in turn affects the break decision. The third step is essentially in-line punctuation spacing—so-called punctuation compression—which will be discussed in later articles in this series. All these methods and rules are interrelated; finding and building a reasonable design logic is no easy task, requiring overall prediction of the effects and some compromise.
Notes
- From pp. 62–63 of the book: chapter 2, “Metal type composition technology”, section 5, “Metal type composition process”, part 5, “Make-up and locking up”, subsection 2, “Locking up”.↩︎
- Middle-dot class (中点類 in the original) is a term used in JIS character classification, covering the horizontal ・, ; and :. These are centred by default, half-width in themselves, usually with quarter spaces added on each side to form full-width marks. When adjusting punctuation width, they should be compressed from the quarter spaces on both sides—unlike the Chinese convention of setting semicolons and colons to the left.↩︎
Bibliography ↩︎
- Cao Hongkui. Movable Type Composition Techniques (活字排版工艺). Beijing: Light Industry Press, 1979.
- Zhou Chengmin et al. Movable Type Composition Techniques (活字排版工艺). Beijing: Printing Industry Press, 1993.
- Xu Lingde. Basic Knowledge of Typesetting (排版基础知识). Beijing: Printing Industry Press, 1999.
- Xu Lingde et al. Basic Knowledge of Typesetting, revised edition (排版基础知识(增订版)). Beijing: Printing Industry Press, 2008.
- Yu Guangzong. Standards for Typesetting and Proofreading, 2nd edition (排版与校对规范). Beijing: Printing Industry Press, 2011.
- Tang Xinghan et al. Handbook of Editing, Publishing and Printing (编辑出版印刷手册). Beijing: Popular Science Press, 1987.
- Wang Jixiang. Science Press Handbook for Authors and Editors (科学出版社作者编辑手册). Beijing: Science Press, 2004.
- Department of Language Information Management, Ministry of Education. Interpreting General Rules for Punctuation (《标点符号用法》解读). Beijing: Language Press, 2012.
- Lan Binhan. The Art of Using Punctuation (标点符号运用艺术). Beijing: Zhonghua Book Company, 2006.
- Lan Binhan. Handbook of Punctuation Usage (标点符号用法手册). Beijing: Commercial Press International, 2015.
- Zhai Ming et al. An Introduction to Contemporary Typesetting Technology (当代排版技术概论). Beijing: Printing Industry Press, 1994
- GB/T 15834-2011, General Rules for Punctuation
- JIS X 4051:2004, 日本語文書の組版方法 (Formatting Rules for Japanese Documents)








