How to implement tgroup/@align attribute in PDF output?

40 views
Skip to first unread message

Toshihiko Makita

unread,
May 29, 2015, 10:41:59 AM5/29/15
to dita-o...@googlegroups.com
I've been developing PDF plugin for DITA Open Toolkit. Recently I've noticed that I forgot to implement tgroup/@align attribute.

tgroup/align="left" will be mapped <fo:table-and-caption text-align="left">. tgroup/align="right" will be mapped <fo:table-and-caption text-align="right">. And tgroup/align="center" will be mapped <fo:table-and-caption text-align="center">. However I'm not sure how to implement following two align attribute values.

justify:

DITA 1.2 specification says as following.
"Justifies the contents to both the left and the right."
As table is not the sentence it cannot be justified. Or should I take same implementation as table/@pgwide="1"?

char:

DITA 1.2 specification says as following.
"Use the character specified on the char attribute for alignment."
What char attribute should I adopt as alignment char? This attribute is defined in colspec or entry element. But it is not defined in tgroup element. Should I inherit it to entry element and use char attribute defined in entry element?

Any suggestions are welcome.

Regards,

Toshihiko Makita

Toshihiko Makita

unread,
May 30, 2015, 2:34:37 AM5/30/15
to dita-o...@googlegroups.com
This was my interpretation mistake of DITA 1.2 specification.

3.1.1.3.2 tgroup

"Describes the alignment of text in a table column. "

It is applied to "column text" not to table itself. So tgroup/@align should be inherited to entry element level or specified as fo:table/@text-align as the inheritable attribute in XSL-FO.

So I realized there is no attribute to align the table (fo:table-and-caption) itself in DITA specification.

Regards,

Toshihiko Makita

Reply all
Reply to author
Forward
0 new messages