Description: Although LibreOffice started support BASE table from bug 104930, the two commits from there shows only 'romn' and 'hang' baseline tags got support. According to the OpenType Specification, there are also 4 tags made for CJK scripts, including 'icfb', 'icft', 'ideo', 'idtp'. And the Specification also give some instructions for proper alignments. With this support any font with these tags would be able to get proper alignments within horizontal and vertical text layouts. Steps to Reproduce: N/A Actual Results: N/A Expected Results: N/A Reproducible: Always User Profile Reset: No Additional Info: N/A
Source Han fonts including these tags.
Examples available here: https://docs.microsoft.com/en-us/typography/opentype/spec/base#overview http://tavmjong.free.fr/blog/?p=1583
I have some code for this but I have hard time finding another software that supports this to double check my results. Do you know any typesetting/text processing software that support BASE table?
I saw InDesign have some support for this.
[Automated Action] NeedInfo-To-Unconfirmed
The OpneType specification gives absolutely no information on how to use these values. In InDesign, various “Character Alignment” mode work only between glyphs of different font sizes, at the same font size Latin and CJK text are always aligned the same and nothing really happens when changing the alignment mode. At this point, I’m questioning the usefulness if implementing this, unless the OP can come up with specific examples that can be fixed by BASE table alignment.
Created attachment 188167 [details] Alignment of mixed CJK and Latin vs Latin only Another problem, if I do this the way InDesign does it, we will need a way to toggle between the alignment modes explicitly, as using the ideographic baseline by default will give bad results in some situations. When CJK and Latin are mixed, the alignment look fine, but if a CJK font with BASE table is used for purely Latin text, the alignment will be wrong. We don’t have a way to tell this is a predominantly CJK paragraph or this is a predominantly Latin paragraph.
So LibreOffice need to working more for this, e.g. add some APIs to let users configure in a document.
So LibreOffice need to working more for this, e.g. add some Basic APIs to let users configure in a document.
Yes, probably something in the character or paragraph style.
WIP code without the configuration part is here: https://gerrit.libreoffice.org/q/topic:baseline