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.
|