View Single Post
Old 02-27-2021, 12:29 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,093
Karma: 6404930
Join Date: Nov 2009
Device: many
FWIW, CodeView is a QPlainTextEdit widget that uses a QTextDocument widget to hold the text being edited. A web search says that a QTextDocument has a method:

setDefaultTextOption(const QTextOption &option);

And one of the options allowed is text alignment. Setting that for Arabic and Hebrew to right to left might do what you want but I am not sure.

We can add that easily as Sigil subclasses QTextDocument. But would every person using Hebrew and Arabic want that changed? If not, and if it does what you want, we could allow an environment variable to control if it is used or not.
KevinH is offline   Reply With Quote