Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Intelligent2013 opened this issue Nov 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link

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
Copy link

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
Copy link
Author

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.

@Intelligent2013
Copy link
Author

@igor-vasilev thank you! Great update!

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Metanorma Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants