Writer/CJK Justification

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Writer Icon.png

Writer Project

Please view the guidelines
before contributing.

Popular Subcategories: <DPL> category=+**Writer namespace=Category ordermethod=counter order=descending count=5 </DPL>

Internal Documentation: <DPL> category=+Writer/CoreDoc ordermethod=counter order=descending count=5 namespace= </DPL>

API Documentation:

Ongoing Efforts: <DPL> category=+Writer/Effort ordermethod=counter order=descending count=5 namespace= </DPL>

Sw.OpenOffice.org


Editing.png {{#switch:EN | RU = Статья в работе (ЧЕРНОВИК), и находится в процессе написания. | UA = Стаття в роботі (ЧЕРНЕТКА), і знаходиться в процесі написання. | EN = This page is in a DRAFT stage. | PT = Esta página está em um estágio de esboço. | DE = Der Artikel befindet sich im Aufbau (ENTWURF) und wird gerade geschrieben. | #default = Статья в работе (ЧЕРНОВИК), и находится в процессе написания. }}

{{#if: | |}}



Justified Alignment for CJK

The Problem:

Most documents for publications are formatted using “justified alignment”, i.e., the formatting tries to avoid an irregular right border of the text. Currently, this works by distributing the remaining space in a line to the blanks inside this line. However, this procedure does not make sense for languages which do not use blanks the way western languages do. We also have to consider the case of mixed scripts inside a text. Here is a proposal for handling “justified alignment” for CJK languages.

for Japanese text

The remaining space is to be equally distributed to “blanks” and Japanese characters. Note: A blank behind a Japanese character would lead to a double size gap.

Japanese.gif

for Chinese text

Justified alignment for Chinese to use the same method as Japanese.

Chinese.gif

for Korean text

The remaining space in a line is to be distributed only to blanks.

Korean.gif

Help needed:

Please give feedback if my assumptions are wrong or if you know of some other special cases for other languages.

Personal tools