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

<pdf:language name="arabic"/> does not switch table to RTL #685

Open
YDA93 opened this issue Apr 15, 2023 · 0 comments
Open

<pdf:language name="arabic"/> does not switch table to RTL #685

YDA93 opened this issue Apr 15, 2023 · 0 comments
Labels
bug Something isn't working tables Issues with rendering tables

Comments

@YDA93
Copy link

YDA93 commented Apr 15, 2023

Describe the Bug

When using pdf:language name="arabic" we are expecting the whole document to switch to RTL similar to CSS.

If you inspect current GitHub page and edit the HTML tag and add direction: rtl; you will notice everything literally is being rendered from RTL. This is the desired result that would fix most of the compatibility issues in rendering Arabic fonts in the correct direction.

Minimal Example to Reproduce

add <pdf:language name="arabic" /> to English html document with a table.

Expected Behavior

The table should render from right to left meaning the columns should now switch positions in reverse.

Actual Behavior

The table position stays the same. And if I want to render everything in RTL, I have to manually change the TD tags positions. which is forcing me to create the same document in Arabic language.

System Information

OS version: macOS 13.3.1 (22E261)
Python version: 3.10.11
XHTML2PDF version: 0.2.9

@YDA93 YDA93 added the bug Something isn't working label Apr 15, 2023
@timobrembeck timobrembeck changed the title pdf:language name="arabic" does not switch to RTL <pdf:language name="arabic"/> does not switch table to RTL Apr 15, 2023
@timobrembeck timobrembeck added the tables Issues with rendering tables label Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tables Issues with rendering tables
Projects
None yet
Development

No branches or pull requests

2 participants