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

How implement rtl #921

Closed
mhf-ir opened this issue May 14, 2019 · 7 comments
Closed

How implement rtl #921

mhf-ir opened this issue May 14, 2019 · 7 comments
Labels
A-Localization Area: Localization, language support, etc.

Comments

@mhf-ir
Copy link

mhf-ir commented May 14, 2019

How implement rtl languages?

Or in rtl pages scope with ltr, or in ltr page rtl section?

https://mhf-ir.github.io/i18nplease/

@ehuss ehuss added the A-Localization Area: Localization, language support, etc. label Jul 9, 2019
@Hitaro
Copy link

Hitaro commented Apr 17, 2020

where the rtl.css should be located? Does mdbook have any support for custom css files, something like this:

Untitled


Update: additional-css = path/to/rtl.css in book.toml

@netlander
Copy link

Interested in RTL feature, anyone found a good solution?

@Hitaro
Copy link

Hitaro commented May 9, 2020

@netlander

  • Add additional-css= ["theme/rtl.css"] to the book.toml
  • Create a theme folder inside the root of your book project
  • add some css rules into theme/rtl.css, for example:
body { direction: rtl; }
code { direction: ltr; }

It needs to be done by a CSS expert. And better to be supported officilly! @ehuss

@netlander
Copy link

Does this make the nav panel move to the right?

@EliRenzer
Copy link

this should be done in html and not css, read why
https://www.w3.org/International/questions/qa-bidi-css-markup

so better edit index.hbs.. probably

[@netlander] Does this make the nav panel move to the right?
no only text aligned to right

@mgeisler
Copy link
Contributor

This was implemented in #1641, yet to be released 🚀

We've testing the PR for a Persian translation of Comprehensive Rust: https://google.github.io/comprehensive-rust/fa/.

@ehuss
Copy link
Contributor

ehuss commented Sep 20, 2023

Indeed, it looks like this can be closed, thanks!

@ehuss ehuss closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Localization Area: Localization, language support, etc.
Projects
None yet
Development

No branches or pull requests

6 participants