View Single Post
Old 02-27-2021, 11:29 AM   #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: 8,860
Karma: 6120478
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 online now   Reply With Quote