Vertical writing - Not just a matter of fonts

In some writing systems you can place the characters vertically from the top to the bottom to form you sentences. Most users know this from Chinese, Japanese and Korean texts. What does it take to use the vertical writing mode in the PDF? And, what does it mean for a viewer to display the characters of vertical text correctly?

The creator of a PDF document has the choice of using a so called CJK (Chinese, Japanese, Korean) font either in horizontal or vertical mode. The mode is part of the encoding property in the font object. In the ISO standard you can find a list of predefined encodings, each of them intended either for horizontal or vertical writing. Alternatively, you can embed your own encoding in form of a CMAP stream in the PostScript language which contains, among other information, the vertical writing mode.

Furthermore, the same embedded font program can be used both in horizontal and vertical writing mode if there are two different font objects that have different a own encoding but share the same font file.

The vertical writing mode has an effect on how the characters of a text string appear on the page. The first and obvious effect is that the characters are positioned from the top to the bottom instead of from the left to the right. A closer look to the character positioning reveals that not only the writing direction has changed but also the origin of the character. In vertical writing mode it is the middle of the characters top bounding line whereas in horizontal mode it is on the left side on the base line of the character.

The second and not so obvious effect is that some characters appear rotated such as the parentheses characters '(', ')', '[', ']' and some punctuation characters '.', ',' etc.

To my big surprise, however, I found out that the rotation of the character is independent of the vertical writing mode. If you use a horizontal writing mode and you place the characters from the top to the bottom using text positioning operators then Acrobat rotates the characters as well.

After this somehow disturbing experience I searched the ISO standard for some explanation but found nothing about character rotation in vertical writing mode. Obviously this topic is left up to the viewer application.

Does your viewer correctly rotate the characters in vertical writing mode? Please, let me know about your experiences in this matter and post a comment.

11 comments :

  1. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. Hi - we had to delete your comment as our policy doesn't allow for advertising.

      Delete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. Hi lee woo - thanks for your comment -- but as pointed in the previous comment: our policy doesn't allow for advertising.

      Delete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. Hi - thanks a lot for your comment.

      You wrote:
      It’s very informative and you are obviously very knowledgeable in this area. You have opened my eyes to varying views on this topic with interesting and solid content.

      Unfortunately our policy doesn't allow advertising and we've to remove your input.

      Delete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. Hi Stella - Unfortunately our policy doesn't allow advertising and we've to remove your input.

      Delete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. Hi Sarah Lee. You added the following comment: "I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article."
      As our policies do not allow external linking, we had to remove your entry.

      Delete