Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
1
LibreOffice Aarhus 2015 Conference Presentation
Vertical Writing:
typical use-cases and current status in
LibreOffice
Na...
2
LibreOffice Aarhus 2015 Conference Presentation
Agenda
Japanese vertical writing basics and use-cases
Current implementa...
3
LibreOffice Aarhus 2015 Conference Presentation
Japanese vertical writing basics
and use-cases
4
LibreOffice Aarhus 2015 Conference Presentation
Japanese specific text rendering
Vertical Writing (TTB)
Top to bottom, r...
5
LibreOffice Aarhus 2015 Conference Presentation
Vertical Writing Basic (from the W3C document)
http://www.w3.org/TR/jlre...
6
LibreOffice Aarhus 2015 Conference Presentation
Typical use-cases of vertical writing
Non-technical / Scientific
publica...
7
LibreOffice Aarhus 2015 Conference Presentation
Typical use-cases of vertical writing
Non-technical / Scientific
publica...
8
LibreOffice Aarhus 2015 Conference Presentation
Vertical Writing is key feature for...
(non-professional) Novel writers
...
9
LibreOffice Aarhus 2015 Conference Presentation
Current implementation of LibreOffice
vertical writing
10
LibreOffice Aarhus 2015 Conference Presentation
LibreOffice for Japanese
Translations
UI / Help
Release Notes / Annouce...
11
LibreOffice Aarhus 2015 Conference Presentation
How to use vertical writing
Need to enable “Asian” language support in ...
12
LibreOffice Aarhus 2015 Conference Presentation
How to use vertical writing (cont'd)
Format Page Text Direction appers ...
13
LibreOffice Aarhus 2015 Conference Presentation
Functionality
Page can be set text direction
in Writer
Or create “verti...
14
LibreOffice Aarhus 2015 Conference Presentation
Implementation
Starting point:
b14861e1dfb9f83d26d6032ae96b664845528f2a...
15
LibreOffice Aarhus 2015 Conference Presentation
Implementation (cont.d)
Back to the document and found the “swapped fra...
16
LibreOffice Aarhus 2015 Conference Presentation
Implementation (cont.d)
Back to the document and found the “swapped fra...
17
LibreOffice Aarhus 2015 Conference Presentation
Deeper look of LibreOffice vertical writing
… Functional (end-users) vi...
18
LibreOffice Aarhus 2015 Conference Presentation
Problem with input method…?
Seems the effect of font metrics
e.g., IPA ...
19
LibreOffice Aarhus 2015 Conference Presentation
Proportional fonts
Basically, non-proportional fonts should
be used in ...
20
LibreOffice Aarhus 2015 Conference Presentation
Western characters
Basically, western characters should
rotate 90° cloc...
21
LibreOffice Aarhus 2015 Conference Presentation
Horizontal-in-vertical composition
Horizontal-in-vertical composition
(...
22
LibreOffice Aarhus 2015 Conference Presentation
Minor UI Issues
Common:
Some images indicate a form of
document should ...
23
LibreOffice Aarhus 2015 Conference Presentation
Minor UI Issues (cont'd)
Format Page, “Columns” tab▶
Image preview tell...
24
LibreOffice Aarhus 2015 Conference Presentation
Conclusion
25
LibreOffice Aarhus 2015 Conference Presentation
Vertical Writing is...
Works well in generally use, but there is some
r...
26
LibreOffice Aarhus 2015 Conference Presentation
All text and image content in this document is licensed under the Creat...
27
LibreOffice Aarhus 2015 Conference Presentation
Credits
① Mori Ōgai, “Takasebune,” Aozora-bunko
http://www.aozora.gr.jp...
Upcoming SlideShare
Loading in …5
×

Vertical Writing: typical use-cases and current status in LibreOffice

1,754 views

Published on

The talk is for LibreOffice Conference 2015 Aarhus.

Japanese language has two writing mode; horizontal writing (left to right: LTR) and vertical writing (top to bottom; TTB). Nowadays, we, Japanese use mainly horizontal writing mode in office documents, but we still need vertical writing in some situations, such as official letters, diplomas, magazines or novels. Thus, vertical writing mode is less usage but still important functionality for multilingual office suites such as LibreOffice, however, we have observed several defects about vertical writing in LibreOffice. I’ll tell you the typical use-cases of vertical writing with examples, and discuss some issues how they should be fix, or what should be “right”specifications for each cases.

Published in: Technology
  • Be the first to comment

Vertical Writing: typical use-cases and current status in LibreOffice

  1. 1. 1 LibreOffice Aarhus 2015 Conference Presentation Vertical Writing: typical use-cases and current status in LibreOffice Naruhiko Ogasawara LibreOffice Japanese Team
  2. 2. 2 LibreOffice Aarhus 2015 Conference Presentation Agenda Japanese vertical writing basics and use-cases Current implementation of LibreOffice vertical writing Deeper look from the end-user point of view Conclusion
  3. 3. 3 LibreOffice Aarhus 2015 Conference Presentation Japanese vertical writing basics and use-cases
  4. 4. 4 LibreOffice Aarhus 2015 Conference Presentation Japanese specific text rendering Vertical Writing (TTB) Top to bottom, right to left Used by Japanese, Chinese Only for text writing, NOT UI Ruby Pronounciation expression See: Requirements for Japanese Text Layout by W3C Working Group Note 3 April 2012 http://www.w3.org/TR/jlreq/
  5. 5. 5 LibreOffice Aarhus 2015 Conference Presentation Vertical Writing Basic (from the W3C document) http://www.w3.org/TR/jlreq/#vertical_writing_ mode_and_horizontal_writing_mode Vertical Writing 縦組; tate gumi The process or the result of arranging characters on a line from top to bottom, of lines on a page from right to left, and/or of columns on a page from top to bottom. (JIS Z 8125) Requirements for Japanese Text Layout Appendix G Terminology http://www.w3.org/TR/jlreq/#term.vertical-writing-mode
  6. 6. 6 LibreOffice Aarhus 2015 Conference Presentation Typical use-cases of vertical writing Non-technical / Scientific publications Novels① Magazine② Papers Business/Popular Science books School Education Letter③ Diploma④ See “Credits” page for copyright informatoins of each images ② ① ③ ④
  7. 7. 7 LibreOffice Aarhus 2015 Conference Presentation Typical use-cases of vertical writing Non-technical / Scientific publications Novels① Magazine② Papers Business/Popular Science books School Education Letter③ Diploma④ See “Credits” page for copyright informatoins of each images ② ① ③ ④ NOT for specific people Used in usual business
  8. 8. 8 LibreOffice Aarhus 2015 Conference Presentation Vertical Writing is key feature for... (non-professional) Novel writers … to publish their novels personally Teachers … to make drills / exams / subtexts Public Organizations … to make “FORMAL” letters Elder people thought vertical writing letter is more formal in our culture … to create their own magazine / papers
  9. 9. 9 LibreOffice Aarhus 2015 Conference Presentation Current implementation of LibreOffice vertical writing
  10. 10. 10 LibreOffice Aarhus 2015 Conference Presentation LibreOffice for Japanese Translations UI / Help Release Notes / Annoucements Documents... Functions Basic CJK text rendering (CTL Support) Japanese specific rendering (see next slide) JP locale specific features e.g. Japanese Calender
  11. 11. 11 LibreOffice Aarhus 2015 Conference Presentation How to use vertical writing Need to enable “Asian” language support in Option Language Settings Langugage▶ ▶ Format Page Text Direction appers (in Writer)▶ ▶
  12. 12. 12 LibreOffice Aarhus 2015 Conference Presentation How to use vertical writing (cont'd) Format Page Text Direction appers (in Writer)▶ ▶ … or “vertical text” box icon can be seen in the “Drawing” toolbar (Calc, Impress and Draw)
  13. 13. 13 LibreOffice Aarhus 2015 Conference Presentation Functionality Page can be set text direction in Writer Or create “vertical writing” box as well (Calc, Impress, Draw) Basically works well Even vertical-writing support fonts are needed Several “corner-case” bugs … will discussed later IPA Gothic Noto Sans CJS
  14. 14. 14 LibreOffice Aarhus 2015 Conference Presentation Implementation Starting point: b14861e1dfb9f83d26d6032ae96b664845528f2a Fix tdf#77514 CJK ruby text in RTL( vertical ) base line issue. Thanks Mark Hung to his great works about CJK!!! Looking into this… IsVertical() function tell us it's in vertical writing mode git grep “IsVertical()” sw Many many many… X-( if (xxx->IsVertical()) { ...
  15. 15. 15 LibreOffice Aarhus 2015 Conference Presentation Implementation (cont.d) Back to the document and found the “swapped frame” “The three main tasks of the text formatting (formatting paragraphs, painting of text and cursor travelling) are performed on swapped frames and afterwards the results are translated back.” “Writer/Text Formatting” - “Vertical formatting” https://wiki.openoffice.org/wiki/Writer/ Text_Formatting#Vertical_Formatting
  16. 16. 16 LibreOffice Aarhus 2015 Conference Presentation Implementation (cont.d) Back to the document and found the “swapped frame” “The three main tasks of the text formatting (formatting paragraphs, painting of text and cursor travelling) are performed on swapped frames and afterwards the results are translated back.” “Writer/Text Formatting” - “Vertical formatting” https://wiki.openoffice.org/wiki/Writer/ Text_Formatting#Vertical_Formatting Time up!
  17. 17. 17 LibreOffice Aarhus 2015 Conference Presentation Deeper look of LibreOffice vertical writing … Functional (end-users) view Note: the goal of this talk is NOT reporting bugs, my point is there are many “corner case” specifications that should be cared by us (Japanese users / developers)
  18. 18. 18 LibreOffice Aarhus 2015 Conference Presentation Problem with input method…? Seems the effect of font metrics e.g., IPA Gothic vs. Hiragino Rendering bug in Mac OS X
  19. 19. 19 LibreOffice Aarhus 2015 Conference Presentation Proportional fonts Basically, non-proportional fonts should be used in vertical writing mode However, default font sets of Writer are proportional Easy to make a mistake There are several rendering issues with proportional fonts Wrong usage but MS Word seems OK Having a specific default font for vertical writing is considerable option 5.0 Ubuntu IPA Gothic
  20. 20. 20 LibreOffice Aarhus 2015 Conference Presentation Western characters Basically, western characters should rotate 90° clockwize If you won't, use FULLWIDTH LATIN (U+FF21-FF3A, U+FF41-FF5A) In OS X, the rotating doesn't work if we combined Western font IPA Gothic + Liberation Sans Using Hiragino, not only as Asian font but also Western font is OK ↓5.0 Ubuntu IPA Gothic + Liberatioon Sans 5.0 OS X↑ IPA Gothic + Liberatioon Sans
  21. 21. 21 LibreOffice Aarhus 2015 Conference Presentation Horizontal-in-vertical composition Horizontal-in-vertical composition ( 縦中横; tate-chu-yoko) Format Character... Position▶ ▶ Rotation / Scaling: 90 degrees Hard do find for end users Any shortcut? MS Word has ;) (could be an extension??)
  22. 22. 22 LibreOffice Aarhus 2015 Conference Presentation Minor UI Issues Common: Some images indicate a form of document should be rotated Tool Bars Icons are OK, but tooltips aren't Side Bars Icons don't rotate “text direction” icons doesn't exist even the “text formatting” toolbar has
  23. 23. 23 LibreOffice Aarhus 2015 Conference Presentation Minor UI Issues (cont'd) Format Page, “Columns” tab▶ Image preview tells columns split vertically, But actually split horizontally
  24. 24. 24 LibreOffice Aarhus 2015 Conference Presentation Conclusion
  25. 25. 25 LibreOffice Aarhus 2015 Conference Presentation Vertical Writing is... Works well in generally use, but there is some room to improve To fix rendering problems, deep dive into Writer's (complex) rendering code But we, Japanese, must try because we know how vertical writing should work Some UI improvements are good exercises for development newbie (like me!) Vertical Writing in LibreOffice is... Used in normal documents, in usual business scene Key feature for some kind of people
  26. 26. 26 LibreOffice Aarhus 2015 Conference Presentation All text and image content in this document is licensed under the Creative Commons Attribution-Share Alike 3.0 License (unless otherwise specified). "LibreOffice" and "The Document Foundation" are registered trademarks. Their respective logos and icons are subject to international copyright laws. The use of these therefore is subject to the trademark policy. Thank you having an interest! I hope I will fix a “easy-to-fix” bug in the term of this conference Please brave, and mentor me :)
  27. 27. 27 LibreOffice Aarhus 2015 Conference Presentation Credits ① Mori Ōgai, “Takasebune,” Aozora-bunko http://www.aozora.gr.jp/cards/000129/card45245.html Public Domain ②ASCII Media Works, Ubuntu Magazine Japan vol.10 http://ubuntu.asciimw.jp/elem/000/000/010/10558/UM10_P4-7.pdf Creative Commons 3.0 BY-NC-SA ③ お礼状、案内状、手紙の書き方と例文 (Writing how-to and examples of thanks letters, invitation letters and other letters) http://letter.sincerite-shop.com/sub38.html ④Wikipedia 「賞状」 (Diploma) https://ja.wikipedia.org/wiki/%E8%B3%9E%E7%8A%B6

×