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

footnote separator doesn't respect the direction of the page #1398

Closed
1 task done
munzirtaha opened this issue Jun 2, 2023 · 4 comments
Closed
1 task done

footnote separator doesn't respect the direction of the page #1398

munzirtaha opened this issue Jun 2, 2023 · 4 comments
Labels
bug Something isn't working layout Related to layout, positioning, etc. text Text layout, shaping, internationalization, etc.

Comments

@munzirtaha
Copy link

munzirtaha commented Jun 2, 2023

Description

If I set the direction of the page to rtl, I expect the line separator to be rtl, too. Currently, the footnote is correctly aligned but the separator isn't.

#set text(
  lang: "ar",
  dir: rtl,
)
عربي
#footnote[حاشية]

Reproduction URL

https://typst.app/project/pf03XHF6CE8A7Awe9hxI28

Operating system

Linux

Typst version

  • I am using the latest version of Typst
@munzirtaha munzirtaha added the bug Something isn't working label Jun 2, 2023
@munzirtaha
Copy link
Author

Attached is an image showing the footnote text aligned to the right but the separator is still on the left

separator

@nyuriumuri
Copy link

This seems to be an inconsistency in general where other shapes would respect the rtl direction but lines won't. A somewhat hacky workaround I've found was to manually set the start position for the footnote separators:

#set footnote.entry(
  separator: line(start: (70%,0%), length: 30%, stroke: 0.5pt)
)

@reknih reknih added layout Related to layout, positioning, etc. text Text layout, shaping, internationalization, etc. labels Jun 6, 2023
@munzirtaha
Copy link
Author

Thanks so much for the quick fix. Does the fix take time to be applied to the web app?

@laurmaedje
Copy link
Member

There will be a new release soon and the web app will be updated then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working layout Related to layout, positioning, etc. text Text layout, shaping, internationalization, etc.
Projects
None yet
Development

No branches or pull requests

4 participants