question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Right to left text

See original GitHub issue

Hi,

It was nice to see the option worksheet.right_to_left() that flips the sheet to appear from right to left, but I couldn’t find a cell formatting option to write RTL text, could this be implemented please… Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jmcnamaracommented, Mar 19, 2018

It is missing from the documentation (I will add it) but there is a Format property called reading_order that controls this:

import xlsxwriter


workbook = xlsxwriter.Workbook('test.xlsx')
worksheet = workbook.add_worksheet()

myformat = workbook.add_format({'reading_order': 2})

worksheet.write('A1', 'Foo Bar', myformat)

workbook.close()

The options are:

  1. Left to right
  2. Right to left

Try it out and let me know if that is what you are looking for.

0reactions
jmcnamaracommented, Mar 19, 2018

I’ve updated the docs and added an example. Thanks for the text and the example file.

http://xlsxwriter.readthedocs.io/example_right_to_left.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

feature request for Right-to-Left texts - InkscapeForum.com
The fix is, I have to do this manually every time to make it look right: rtl-inkscape0921.png (6.62 KiB) Viewed 4504 ...
Read more >
Feature Request: RTL support · Issue #421 · marktext ... - GitHub
Description. Support for writing from Right-To-Left for RTL languages such as Arabic and Hebrw [Description of the bug or feature].
Read more >
Wix Editor Request: Right-to-Left Text Support in all Editor ...
Currently, right-to-left text is supported in many areas of the Editor, including the text ... Feature Request We are collecting votes for this...
Read more >
How can i change the chat to right-to-left? - Feature Requests
Hi from Israel. As you know Hebrew and Arabic is written from right to left. However, the chat defualt is left-toright.
Read more >
Make shortcut hotkeys for text align (left, center, right)
Make shortcut hotkeys for text align (left, center, right). There should be keyboard hotkey shortcuts to quickly edit the text alignment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found