Full Unicode patch with RTL Support & BiDi logic.

This commit is well documented, so no need to tell you my life story.

Full Unicode patch with RTL Support & BiDi logic.

Removed the legacy codePage, normalised to UTF8 (65001).

It also comes with:

CTRL + A : select text (highlighted)
CTRL + C : copy
CTRL + V : paste
CTRL + X : cut
CTRL + Y : redo
CTRL + Z : undo
This commit is contained in:
rtw1x1
2025-12-26 12:32:43 +00:00
parent d37607baa1
commit a955c50744
86 changed files with 4076 additions and 3839 deletions

View File

@@ -97,6 +97,33 @@ PyObject * chatSetPosition(PyObject* poSelf, PyObject* poArgs)
return Py_BuildNone();
}
PyObject* chatSetAlign(PyObject* poSelf, PyObject* poArgs)
{
int iID;
if (!PyTuple_GetInteger(poArgs, 0, &iID))
return Py_BuildException();
int iAlign;
if (!PyTuple_GetInteger(poArgs, 1, &iAlign))
return Py_BuildException();
CPythonChat::Instance().SetAlign(iID, iAlign);
return Py_BuildNone();
}
PyObject* chatSetWidth(PyObject* poSelf, PyObject* poArgs)
{
int iID;
int iWidth;
if (!PyTuple_GetInteger(poArgs, 0, &iID))
return Py_BadArgument();
if (!PyTuple_GetInteger(poArgs, 1, &iWidth))
return Py_BadArgument();
CPythonChat::Instance().SetWidth((DWORD)iID, iWidth);
return Py_BuildNone();
}
PyObject * chatSetHeight(PyObject* poSelf, PyObject* poArgs)
{
int iID;
@@ -462,6 +489,8 @@ void initChat()
{ "SetBoardState", chatSetBoardState, METH_VARARGS },
{ "SetPosition", chatSetPosition, METH_VARARGS },
{ "SetAlign", chatSetAlign, METH_VARARGS },
{ "SetWidth", chatSetWidth, METH_VARARGS },
{ "SetHeight", chatSetHeight, METH_VARARGS },
{ "SetStep", chatSetStep, METH_VARARGS },
{ "ToggleChatMode", chatToggleChatMode, METH_VARARGS },