metanorma / xmlgraphics-fop

Metanorma fork of Apache XML Graphics FOP
https://xmlgraphics.apache.org/fop/
Apache License 2.0
1 stars 0 forks source link

Vertical layout: Japanese text isn't rotated in fo:block-container and fo:table #8

Open Intelligent2013 opened 1 week ago

Intelligent2013 commented 1 week ago

Apache FOP source code with vertical layout support: https://github.com/metanorma/xmlgraphics-fop/tree/feature/vertical_layout XSL-FO sample: https://github.com/metanorma/xmlgraphics-fop/blob/feature/vertical_layout/fop/examples/fo/japanese/vertical_writing.fo

The text in fo:block:

<fo:block border="1pt solid blue" language="JA">
    「天の人を生ずるは億兆皆同一轍にて、之に附与するに動かす可からざるの通義を以てす。即ち其通義とは人の自から生命を保し自由を求め幸福を祈るの類にて、他より之を如何ともす可らざるものなり。」
    ――『アメリカ独立宣言』
</fo:block>

renders properly: image

The text in fo:block-container:

<fo:block-container>
  <fo:block border="1pt solid blue" language="JA">
    「天の人を生ずるは億兆皆同一轍にて、之に附与するに動かす可からざるの通義を以てす。即ち其通義とは人の自から生命を保し自由を求め幸福を祈るの類にて、他より之を如何ともす可らざるものなり。」
    ――『アメリカ独立宣言』
  </fo:block>
</fo:block-container>

and in fo:table:

<fo:table width="100%" table-layout="fixed">
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell>
        <fo:block border="1pt solid blue" language="JA">
            「天の人を生ずるは億兆皆同一轍にて、之に附与するに動かす可からざるの通義を以てす。即ち其通義とは人の自から生命を保し自由を求め幸福を祈るの類にて、他より之を如何ともす可らざるものなり。」
            ――『アメリカ独立宣言』
        </fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>

renders with non-rotated glyphs: image

image

SmartWolf1220 commented 2 days ago

Hello @Intelligent2013 , I have contributed many open-source projects and I wanted to contribute to your projects. I have a rich knowledge of Java and Python. Should I work for this repo? Looking forward to hearing from you.

Intelligent2013 commented 2 days ago

Hello @SmartWolf1220, thank you for your response.

Should I work for this repo?

I don't know how to answer your question) Metanorma is open-source framework. Each developer can propose the improvements for fixing a bug or a new features. If you have any ideas how to solve the vertical layout issues, you can create a pull request with your improvements.