Hi,
It's been a while since languages with right-to-left script like
Persian and Arabic faced a problem in TDF wiki, in which table of
contents (TOC) was not shown correctly. TOC was left aligned, which
was wrong, and the padding was also wrong.
I have tested different solutions, and at last, using the class
"mw-content-rtl", everything is now fine.
So, one should use {{fa}} and {{fa-end}} templates at the beginning
and the end of Persian article, and for Arabic, one should use {{ar}}
and {{ar-end}} which are essentially the same templates. This can be
also used for other RTL languages.
If some parts need to be written from left-to-right, one should put
them in "mw-content-ltr" styled div tags.
Regards,
Hossein
--
To unsubscribe e-mail to: website+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/website/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
- [libreoffice-website] Fixing style for rtl languages in TDF wiki · Hossein Ir
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.