bookworm-light-hugo icon indicating copy to clipboard operation
bookworm-light-hugo copied to clipboard

direction issue

Open shabane opened this issue 2 years ago • 5 comments

hello again. this theme is the best theme ever. but it have some issue for right to left language's like Persion(Farsi). in the other hugo them like cupper we used to add a <div dir'rtl'> at the top of each paragraph and a </div> at the end to show text in the right instead of left. but in this theme this trick doesn't work.

code

Screenshot from 2021-12-24 14-26-40

preview

rtl-issue

shabane avatar Dec 24 '21 11:12 shabane

@Gnkalk had a persion theme, my he can help us

shabane avatar Dec 26 '21 09:12 shabane

You can use https://github.com/FOSSFA/bookworm-FE I tried to translate this template as well as I could, but a lot of work doesn't allow me to complete the translation process, you can take a fork of it and complete it.

@shabane @tfsomrat

Gnkalk avatar Dec 28 '21 12:12 Gnkalk

In my opinion, the theme needs to be adapted to Bootstrap 5, which has RTL support integrated. Some work needs to be done exchanging left and right padding/margin/floating etc to start and end. After that is should be as easy as flipping a switch to change a layout from rtl to ltr and back.

davidsneighbour avatar Dec 28 '21 12:12 davidsneighbour

You can use https://github.com/FOSSFA/bookworm-FE

yes i know your beautiful theme, but i liked this more than the others. i just mention you because i thought may you have some idea to help us for this issue

shabane avatar Dec 28 '21 14:12 shabane

You can use https://github.com/FOSSFA/bookworm-FE

yes i know your beautiful theme, but i liked this more than the others. i just mention you because i thought may you have some idea to help us for this issue

I have two recommendations :

  1. Menus , Navbar and others be reversed
  2. theme search engine for Persian and Arabic and other RTL languages is not well optimized and does not provide the correct result.

Gnkalk avatar Dec 29 '21 13:12 Gnkalk