Skip to content

RTL Support#45

Open
syblock wants to merge 1 commit intoNodlik:masterfrom
syblock:add-rtl-support
Open

RTL Support#45
syblock wants to merge 1 commit intoNodlik:masterfrom
syblock:add-rtl-support

Conversation

@syblock
Copy link

@syblock syblock commented Jan 2, 2024

Summary:
Added support for right-to-left (RTL) languages (e.g., Arabic and Persian) by introducing an rtl prop to the settings.

Changes:

  • add a new boolean prop rtl to the settings.
  • When rtl is set to true, mirrors book and pages using CSS.
  • Adjusts mouse x position in events for RTL support.

Notes:

  • The only issue is that an additional parent element needs to be included within each paper element to mirror it. The paper element already has some styling, and to avoid altering it, I've added styles to mirror page to the inner element.
  • This change does not impact existing functionality for left-to-right languages.
  • Compatible with existing styling and does not introduce breaking changes.

Issues Resolved: #27 #13

@AnsBdran
Copy link

Why this isn't merged Yet?

@alectrocute
Copy link

Why this isn't merged Yet?

Abandoned project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants