Lines That Won’t Break When They Should

This is a machine-translated version of an article originally published in Chinese. Read the Chinese original.

Lines That Won’t Break When They Should

Ye Shengtao et al. (eds.), Kaiming New Chinese Reader (annotated edition A, vol. 4), Kaiming Book Company, 3rd edition, 1948, Fuzhou Road, Shanghai. (Image: Taiwan Chinese eBook Library)

The Peacock Project: Approaches to Chinese Typography series advocates discussing Chinese layout from the starting point of Chinese and in Chinese ways of thinking. Fine Chinese typesetting is not just little tricks like hanging punctuation, but a system with its own design logic. In this article I focus on an easily overlooked problem: line breaking in Chinese.

When it comes to line breaking in Chinese typesetting, the first thing that may come to mind is the rules for keeping punctuation off line starts and ends. Since those involve punctuation, I will discuss them in another article. Here, through two real examples, I focus on line breaking issues other than punctuation, digging into some easily neglected requirements of Chinese layout.

Breaking lines by meaning

First, look at the Chinese translation of a Western book in the image below. The designer of the Chinese edition claims: “He (the original author) always refused forced justification, flush at both ends, and instead carefully decided the last word of each line, one line at a time. … The design of the Chinese edition basically replicates this tradition.” The whole book abandons justification in favour of left alignment and claims to break lines word by word according to meaning. But is this kind of Chinese typesetting really beautiful and easy to read?

Lines That Won’t Break When They Should · 2

As I pointed out in my article “Reconsidering the Differences between Chinese and Western Text”, Western text is written with words separated by word spaces, so layout engines break lines at spaces first. For better results, hyphenation is also used to split words. Because Western letters are small, the adjustable space is relatively fine-grained, so after left-aligning and adjusting, the ragged right edge of the page can form a wave-like shape, which looks very beautiful. Perhaps that is what the foreign author of the original preferred.

In East Asia, one and only one script—Korean—has a “dual nature” in line breaking. At the level of orthography, modern Korean requires words to be written separately (띄어쓰기), so Korean typesetting can follow two styles: breaking lines by word as in Western text, or allowing a break after every syllable as in Chinese. Unlike Western text, however, Korean needs no hyphen (-) when a word is split. The line-breaking rules for Korean are described in the W3C Requirements for Hangul Text Layout as follows (the original is in Korean and English; my translation):

When a line ends in Hangul, lines may be broken by syllable (글자) or by word (어절/語節). The author may choose either method for a paragraph or for the whole text.

同样一段韩文,左侧按西式排版以词换行;右侧按中式排版以字换行。请注意换行位置和词距的变化。(图片来源:W3C《韩文排版需求》,排版内容为韩国国歌歌词。)
同样一段韩文,左侧按西式排版以词换行;右侧按中式排版以字换行。请注意换行位置和词距的变化。(图片来源:W3C《韩文排版需求》,排版内容为韩国国歌歌词。)
中文一般不进行按词分写。罕见的分词书写一般只出现在对外汉语教学的初级阶段教材里。(刘珣主编,《新实用汉语课本》,北京语言大学出版社,2009 年)
中文一般不进行按词分写。罕见的分词书写一般只出现在对外汉语教学的初级阶段教材里。(刘珣主编,《新实用汉语课本》,北京语言大学出版社,2009 年)

As is well known, long Western texts are counted in words, while Chinese is counted in characters. In fact single-character words are very common in Chinese, and characters and words are hard to distinguish strictly, which makes strict word segmentation of Chinese difficult. Chinese writing conventions have never included writing words separately. The only exception is textbooks for teaching Chinese as a foreign language, and even then only at beginner level; from intermediate level on they are not word-separated, like ordinary Chinese publications. For machines, the “difficulty of Chinese word segmentation” in natural language processing has been solved by technology; for people, reading Chinese should not overemphasise the role of the word. Chinese readers are not confused by this, and typesetting need not add an unnecessary step. For native speakers, breaking lines by meaning does not greatly improve reading efficiency.

Over its long history, Chinese has kept evolving and words have gained syllables; one major feature of modern Chinese vocabulary is that it is “predominantly disyllabic.” According to statistics, disyllabic words make up about 60% of the Modern Chinese Dictionary and the Frequency Dictionary of Common Modern Chinese Words. The result is that even if Chinese were broken by word, an incomplete word at the end of a line would only mean adjusting the width of one or two characters. Compared with the fine widths of Western letters, Chinese square characters are huge, and with a “flush left, ragged right” setting this width only produces ugly, monotonous jagged edges, nothing like the large waves of Western text. This is actually the same point as the Western “optical alignment” I mentioned in my earlier article on hanging punctuation.

Lines That Won’t Break When They Should · 3

Comparison of line ends in left-aligned Chinese and Western text blocks. Western letters vary in width, so the finer the letter and word spacing, the smoother the vertical curve of the line ends. Chinese square characters are large, so uneven line ends can only become jagged.

Since the development of modern typography, Chinese characters have been fixed “square characters”; typesetting tends towards evenness, so its internal drive also favours justification. Moreover, if spacing such as punctuation compression is properly adjusted, the difference between left alignment and justification becomes very small. Whether from the features of Chinese vocabulary or the forms and typesetting characteristics of the characters, there is no need to set long body text left-aligned with word-based breaks; it is neither useful nor attractive.

Note, however, that breaking by word is necessary in headlines. Especially in headlines for media read in a second, such as newspapers, a break like “我外交部强烈谴责伊拉克/大使馆被炸事件” (Our Foreign Ministry strongly condemns Iraq / embassy bombing) is clearly inappropriate. Headlines must not create ambiguity when they wrap, must not split phrases, and must handle function words carefully; publishers generally stipulate that function words such as 的 may not begin a line, and 和 and 与 may not end one. Body text is different. In the longer, more fluid stream of body text, the need to break by word is much lower, and doing so would create an enormous workload. Breaking a whole text by word without machine language analysis can only be done by hand, and omissions are inevitable. For example, in the fourth line from the bottom of the illustration, the word 字宽 (character width) has been wrongly split; the designer did not fully carry out his own design logic.

In the case illustrated, since the book is a translation, the designer of the Chinese edition stresses that this follows the original author’s preference—perhaps also to add a sense of “design.” But as long as the translation is in Chinese, it must meet the minimum basic conventions of Chinese writing and typesetting. If the Chinese edition of a Hebrew work were also set right to left like Hebrew, presumably most Chinese readers would find it hard going. So a designer must clearly understand where that minimum lies, whether to cross the line, and what can be tried versus what violates objective laws; all this calls for careful judgement. Otherwise, forcing Western typesetting methods onto Chinese while ignoring its internal rules is just a clumsy imitation.

Troublemaking numerals

So if Chinese line breaking need not care about meaning, is punctuation the only thing to consider? The image below shows a setting with no punctuation at all, from a type specimen of a major Chinese foundry. Let’s see what went wrong.

Lines That Won’t Break When They Should · 4

Why won’t it align to the grid? (Image: type specimen from a Chinese foundry)

Because the content is a Buddhist sutra, the designer used “no punctuation” + “justification.” For Chinese this ought to be the simplest typesetting mode; done step by step, it should produce a page aligned both ways on the Chinese manuscript-paper grid. Surprisingly, the actual result is not like that: the spacing of the fourth and fifth lines has been opened up, with only 18 characters per line, while the other lines are tighter, with 19. By simulating it in software, I confirmed that this is the result of the default settings in the Chinese version of Adobe InDesign. Why does this happen?

It turns out the key is the Chinese numeral 千二百五十 (one thousand two hundred and fifty). The Chinese version of Adobe InDesign has a feature called “连数字” (Renumbering, literally “keep numerals together”) that prevents numbers from being split at a line break. In this example, the feature “intelligently” detected the number 千二百五十 at the end of the fifth line and, to keep it unbroken, had to move the whole number to the start of the sixth line. The extra space left in the fifth line was then distributed, by the algorithm of the Adobe CJK Paragraph Composer, not only across the fifth line but also into the fourth, so the spacing of both lines changed.

开启关闭「连数字」的效果对比。从第四行开始偏差一个字宽,累计到最后有两个字宽的差距。需要注意的是,关闭「连数字」之后,由于纵横对齐不需要任何多余调整,因此「段落书写器」和「单行书写器」的效果是一样的。
开启关闭「连数字」的效果对比。从第四行开始偏差一个字宽,累计到最后有两个字宽的差距。需要注意的是,关闭「连数字」之后,由于纵横对齐不需要任何多余调整,因此「段落书写器」和「单行书写器」的效果是一样的。
Adobe InDesign 中的「连数字」位于段落面板的选项菜单内,且默认打开。
Adobe InDesign 中的「连数字」位于段落面板的选项菜单内,且默认打开。

This feature has existed since InDesign 1.0, while the English version has no such feature, so it was clearly developed specifically for the East Asian versions; yet I can say without exaggeration that it is one of Adobe’s big mistakes.

The feature is meant to keep together, without breaking, so-called “full-width Arabic numerals” composed of 0–9, as well as Chinese numerals, including numbers made up of place-value characters such as 十百千万亿兆, pushing them to the next line if they reach the line end. Yet users don’t know whether to laugh or cry at this “helpful” feature. By the logic above, “what should be there isn’t”: the algorithm doesn’t include the Chinese numeral 〇 or financial numerals such as 壹贰叁, so it doesn’t work for numbers like 二〇. And “what shouldn’t be there is”: since the software only detects characters and cannot judge meaning, words like 万一 in 以防万一 (just in case) are mistaken for numbers and processed needlessly. Moreover, commas and middle dots between Chinese numerals may even be treated as thousands separators or decimal points.

Lines That Won’t Break When They Should · 5

Adobe InDesign’s “连数字” is on by default; after detecting Chinese numerals, it forces the number onto the next line, and if the paragraph is justified, the spacing of the previous line is forcibly opened up.

Granted, splitting Arabic numerals makes the place values unclear and should indeed be prohibited, but for Chinese numerals it is entirely unnecessary. In fact, Chinese typesetting has never prohibited line breaks within Chinese numerals. Since the East Asian versions of Adobe InDesign were developed entirely according to the requirements of the Japanese Industrial Standard JIS X 4051:2004, “Formatting rules for Japanese documents,” the feature may come from Japanese typesetting requirements. But investigation reveals that the developers completely misread JIS X 4051. The standard defines it as follows (the original is in Japanese; my translation):

Lines That Won’t Break When They Should · 6

136) Grouped numerals:One or more consecutive digits, including commas and spaces used as separators and the full stop used as a decimal point.
Note:Excludes full-width digits treated as Japanese characters, and digits with inherent widths treated as Western characters.
……
139) Japanese characters:The kanji, kana, digits, punctuation and other symbols that make up Japanese text. In vertical text, also includes full-width Western characters.

Although not stated explicitly, the context shows that the “grouped numerals” defined in the standard should have nothing to do with Chinese numerals. Later, in 2012, the World Wide Web Consortium (W3C) made it explicit in the Requirements for Japanese Text Layout, based on this standard, in its definition of “grouped numerals”, that Chinese numerals are not included. So InDesign’s repeated claim to “follow the JIS standard” is just a beautiful misunderstanding. Open the Chinese version of Adobe’s official InDesign User Guide and it explains:

连数字 prevents numbers from breaking. In addition, this option handles the spacing of punctuation within numeric strings according to the JIS standard (for Japanese). … To turn it on, choose 连数字 from the Paragraph panel menu or the Control panel menu.

From the analysis above, we can see: first, Chinese numerals can be broken across lines in the first place, so applying the feature to Chinese characters is superfluous; second, the feature misreads the Japanese JIS X 4051 standard and is a faulty implementation; third, the user guide says it is “for Japanese,” but it actually also applies to Chinese; fourth, the guide suggests the feature is “turned on when needed,” but it is in fact on by default and users must turn it off manually. This official explanation is full of holes; it not only fails to explain the feature clearly but is arguably misleading.

Unlike Japanese users, mainland Chinese users rarely use the full-width Arabic numerals 0–9, and ordinary “half-width” digits are handled together with Western text in the software and are not split. So avoiding split Arabic numerals doesn’t require this feature at all, and turning it on does nothing but harm. To make matters worse, Adobe made this faulty implementation “on by default,” digging an extra trap for users to fall into, and the vast majority fall in without knowing it and can’t get out. So I strongly recommend that InDesign users change the default and turn 连数字 off, to reduce unexpected and unnecessary spacing adjustments that throw the page out of balance.

Tip: Adobe InDesign has two kinds of defaults, application defaults and document defaults. If you change settings after launching InDesign without opening any document, you change the application defaults for the whole program, which affect all documents you create afterwards. By contrast, changing settings with a document open only changes that document’s defaults and has no effect on new documents. So just launch InDesign without opening any document, go to the options menu of the Paragraph panel and turn off 连数字, and you’ll never be troubled by it switching on automatically again.

Of course, the setting in this example also involves the Paragraph Composer versus the Single-line Composer. Although Adobe claims the Paragraph Composer is the better algorithm and makes it the default, in my experience the Single-line Composer is more reliable, because it doesn’t spread one line’s spacing error to other lines. If this example had used the Single-line Composer, only the fifth line would have been affected; because the Paragraph Composer was used by default, the unrelated line above was dragged in, and the spacing of the whole paragraph went wrong from the fourth line. The algorithmic logic and recommended use of composers will be discussed in another article in this series, so I won’t expand on it here.

Lines That Won’t Break When They Should · 7

The difference between the Adobe CJK Paragraph Composer and the Adobe CJK Single-line Composer in Adobe CC. Because 连数字 requires a spacing adjustment, the Single-line Composer (green) puts the whole adjustment in the fifth line, opening it up more while the fourth line stays solid; the Paragraph Composer (cyan) spreads the adjustment across the fourth and fifth lines, so each is adjusted less.

Special treatment for special cases

As discussed, line breaking in Chinese need not worry much about breaking by meaning, and Chinese numerals can be split across lines, but that doesn’t mean there are no special cases. In fact, in real media work, many Chinese newspapers need “reserved word management”: defining and maintaining words that need “special care” so they are never split at line breaks. These so-called reserved words are basically important proper nouns—personal names, country names, place names—and there is no fixed standard for defining them; it varies with each newspaper’s or publisher’s house style and rules.

In fact, managing line breaks in proper nouns is also customary in Western typesetting. The authoritative guide to British English, the Oxford Style Manual, states:

Even where no hyphen is needed, some restrictions should be observed when breaking lines:
……
If possible, do not break place names or (especially) personal names. Where unavoidable, break a personal name between the forename and surname, or between the initials (at least two) and the surname. Never separate a name from its modifiers.

In the United States, the AP-style University of Houston writing style guide also notes in its section on hyphens:

Avoid breaking personal names, proper nouns, telephone and fax numbers, and email, web, street and mailing addresses.

Western publishers take particular care not to break personal names across lines, not only out of respect for others but, more importantly, to avoid a hyphenated surname being mistaken for a double-barrelled name, which is quite common in Western countries for reasons such as marriage or aristocratic inheritance. In the Chinese world, although the practice of “raised characters” (taige) has been abolished, careful typesetting still follows the tradition of not breaking personal names. Of course, such decisions certainly add to the complexity of typesetting, so in practice only some important, special proper nouns are handled and others ignored; this is the origin of publishers’ reserved-word practice. In Movable Type Composition Techniques, published in the 1970s, we read:

When picking type for proofs, note the following points

……

(3) Pay special attention to politically relevant phrases, the names of leaders, country names and so on; they must not be picked wrongly. When picking each group of phrases, read it through carefully to yourself.When a leader’s name falls at the end of a line, it must not be split and wrapped; instead, widen the spacing of the previous line with spacing material and move the leader’s whole name to the start of the next line.

「重要人名不拆行」做法在党政机关报纸排版中非常常见,此图为报纸头版的「报眼」,第一行的字距明显是由于「重要人名不换行」而进行过挤压。(图为 2017 年 10 月 25 日《人民日报》头版)
「重要人名不拆行」做法在党政机关报纸排版中非常常见,此图为报纸头版的「报眼」,第一行的字距明显是由于「重要人名不换行」而进行过挤压。(图为 2017 年 10 月 25 日《人民日报》头版)
方正飞腾中的「专用词管理」界面(图片来源:方正飞腾创艺 5.4 使用说明书,2014 年 5 月)
方正飞腾中的「专用词管理」界面(图片来源:方正飞腾创艺 5.4 使用说明书,2014 年 5 月)

From the perspective of electronic publishing, implementing this in software is not hard. But in some foreign software, such as Adobe InDesign, whether using the No Break feature or combining it with regular expressions (GREP) , the required words have to be defined manually one by one, which also raises the barrier to use. By contrast, the home-grown Chinese software Founder FIT offers a “reserved word management” feature that makes this easy and flexible in a single interface; Founder even filed a patent application in 2015 for a “method and device for handling reserved words without line splitting”1. There is a reason Founder’s products once held 90% of the domestic publishing market.

Admittedly, as this series has said many times, typesetting body text is a process of compromise. The more reserved words are defined as unbreakable, the more positions and spacings must be adjusted, and the more easily the order of the Chinese grid is lost. So there is no simple right or wrong; priorities and degrees must be decided according to the specific house style.

The internet age

For today’s web and ebook design, we still recommend following CSS standards as closely as possible. But because the situation of each script is so complex, the W3C CSS Text Module (Level 3, Working Draft) had still not been finalised at the time of writing. In chapter 5, “Line Breaking and Word Boundaries,” it says:

In some other writing systems (such as Chinese, Japanese, Yi, and sometimes Korean), soft wrap opportunities2 are based on syllable boundaries, not word boundaries. In these systems a line can break anywhere except between certain character combinations. Additionally the level of strictness in these restrictions can vary with the typesetting style. CSS does not fully define where soft wrap opportunities occur, but it does provide some controls to distinguish common variations.

This also shows, indirectly, that Chinese generally need not break lines by word, Chinese numerals included. In addition, since the CSS white-space property also controls the behaviour of line wrapping, white space, tabs and so on, if you need to guarantee no wrapping, you can set this property to nowrap .

The above concerns the typesetting level. If you must prevent particular words from wrapping, you can use, at the character level, the Unicode control character U+2060 (WORD JOINER, WJ for short) to keep special words from breaking internally; compared with other methods, this more reliably guarantees the result across environments. Unicode introduced this control character in version 3.2; its HTML escape is &⁠#8288;. The character takes up no width when displayed and is completely invisible to readers, so it has no negative effect on layout, but it clearly tells the user agent (such as a browser) not to break the line at that position.

Note that Unicode defines quite a number of control characters, and users should use them correctly as specified. For example, for keeping special Chinese words together, U+200D (ZERO WIDTH JOINER, zero width joiner) is not recommended, because that character was designed for joining letters within words in writing systems such as Arabic and Devanagari.

Summary

In Chinese typesetting, line break positions other than punctuation have always been considered arbitrary and in no need of control. In reality, though, some human and software factors add superfluous line-breaking decisions, and these should be avoided; under the general condition of “no control,” special cases simply need to be managed.

The Requirements for Chinese Text Layout does not explain line-breaking opportunities further. I think it should provide some information for implementations, and at least ensure the following:

  1. Punctuation and line breaks: keeping punctuation off line starts and ends, and prohibiting splits—the most important part, to be discussed separately;
  2. Arabic numerals: no breaks within Arabic numerals or at decimal points;
  3. Special units: symbols such as the percent sign, per mille sign and degree Celsius should not be split from the preceding number;
  4. Superscripts, subscripts and note marks: superscripts and subscripts in units and various disciplines (such as m2 , where the 2 ) should not be split from the preceding character, nor should footnote and endnote marks such as ㈠ ㊁ Ⅲ ④ be split from the word they annotate;
  5. Foreign text in mixed setting: foreign text mixed into Chinese should follow the conventions of that language—English hyphenation for English, for instance, and Tibetan word boundaries for Tibetan. Long URLs and email addresses, which are really Western strings, should be handled flexibly according to the situation; breaking at symbols such as @ is recommended, hyphens must not be added arbitrarily, and even when broken, the case at the start of the line must not be changed.

脚注符号与被注释文本之间被错误地换行一例(截图自苹果公司官网)

An example of a line wrongly broken between a footnote mark and the annotated text (screenshot of the Apple website in Chrome)

Of the requirements above, the controls for Arabic numerals and foreign text are relatively mature in implementation, while the truly “purely” Chinese typesetting issues lie in punctuation and note marks. In fact, the superscript note numbers 1 and 2 in this article already have a word joiner inserted between them and the preceding character, to keep the note numbers from being split from their words. If you’re interested, try changing the window width to test the effect.

On top of these basic principles, each publisher or content organisation can set its own internal house style. For Chinese numerals, for example, some looser practices apply no control, since multi-digit numbers are usually written in Arabic numerals; some stricter styles hold that a quantity with explicit place values, such as 三百六十五 (three hundred and sixty-five), causes no ambiguity if split, but if written 三六五 and split, it becomes ambiguous between “quantity” and “number” and should be controlled. The essence of this question is the norms of numeral usage, so I suggest first making rules for notation at the level of usage during editing, and then setting typesetting style rules; otherwise it is hard to balance both at once. Reserved word management is not a general typesetting rule; each organisation can decide and implement it internally. Overlong URLs and email addresses are a new problem that has only recently appeared; flexible handling is recommended rather than too many rigid restrictions. In short, being clear about what to do and what not to do is the basis for building typesetting logic, and when setting typographic strategy, always remember that going too far is as bad as not going far enough.

Notes:

  1. People’s Republic of China invention patent application “Method and device for handling reserved words without line splitting,” publication no. CN 104572750 A, published 29 April 2015; applicant: Peking University Founder Group Co., Ltd.; inventors: Yang Yanfei, Mei Lin, Yang Leiming.↩︎
  2. Soft wrap opportunity: a point at which a web box container may break its content when wrapping.↩︎
  3. Related content

    TypeChat 44: “Twists and turns of line breaking”

    References

    • R. M. Ritter, The Oxford Style Manual, 2003, Oxford University Press.
    • Cao Hongkui, Movable Type Composition Techniques, 1979, Light Industry Press
    • Liu Yuan, Frequency Dictionary of Common Modern Chinese Words (alphabetical section), 1990, Astronautic Publishing House.