Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What font does it support? #6

Open
minhtri22 opened this issue Dec 26, 2018 · 65 comments
Open

What font does it support? #6

minhtri22 opened this issue Dec 26, 2018 · 65 comments

Comments

@minhtri22
Copy link

font
I used windows 10 64bit

@papyrussolution
Copy link
Owner

O! It is awfull :) We have an experimental iterface translated to english. And will include it in release in nearest time specialy for you as soon as you the first who have asked about it. Thank you for interisting.
You are seeing now native russian interface in windows-1251 codepage.

@minhtri22
Copy link
Author

Thank you for your reply. Btw, is there any language packages to localize?

@minhtri22
Copy link
Author

minhtri22 commented Dec 27, 2018

For those who need to display font correctly like me
font-3

f-2
Enjoy!

@jmalkema
Copy link

jmalkema commented Apr 30, 2019

ppifc_i_c_not_found
Hello,

Compiling (GIT version) gives three errors. Can’t find files: ppifc_i.c and ppifc_i.h

My configuration: Windows 10, X86, Vs2017, MSI laptop

If Setting “Beta Use Unicode for worldwide language support” switch then it will give 772 compiling errors.

We have an experimental iterface translated to english. And will include it in release in nearest time specialy for you as soon as you the first who have asked about it.

Can I get the English translated version of Openpapurus? Maybe I can translate it to Dutch too :-)

Greetings Jan Marco

@papyrussolution
Copy link
Owner

Hello. Thank you for attention.
I'll try to reproduce the problem and answer a bit later.

@papyrussolution
Copy link
Owner

I have put subdir \BASE\INIT_DL6\ into the repository. This problem has been resolved (do 'git pull'),
But there will be probably other ones. Before building it'll be good to install OpenPapyrus-Server into directory OpenPapyrus\ppy and then OpenPapyrus-Client (both are in Releases).
I'll write by the way short build-instruction in few days.
It seems that the translation need to be forced :(

@jmalkema
Copy link

Thanks, Compiled (X86) github version works :-)
Openpapyrus_screendump_github_compiled_version_01

@papyrussolution
Copy link
Owner

There was the solving of this problem above (#6 (comment)).

@jmalkema
Copy link

There was the solving of this problem above (#6 (comment)).

If I want to compile with "Beta_Use_Unicode UTF8 for worldwide language support" I get errors:

Screendumpvs2017_with_beta_use_unicode_on_for_worldwide_language_support

Is work around to compile without Beta_Use_Unicode_UTF8 and put Beta_Use_Unicode_UTF8 on, reboot computer. Then execute program?

@jmalkema
Copy link

This is the result from compile without Beta_Use_Unicode_UTF8 and I selected button Beta_Use_Unicode_UTF8 after compile/link, reboot computer. After reboot I execute the program (ppw.exe).

openpapyrus_with_beta_unicode_set_for_worldwide_language_support

@papyrussolution
Copy link
Owner

изображение

@papyrussolution
Copy link
Owner

изображение

@papyrussolution
Copy link
Owner

These 2 pictures are to resolve problem with list font

@papyrussolution
Copy link
Owner

What are your international settings (language)? I'll try to reproduce the problem at my comp.

@jmalkema
Copy link

jmalkema commented May 1, 2019

These 2 pictures are to resolve problem with list font

I can't find the windows of the two pictures. I can't read Russian language.

What are your international settings (language)? I'll try to reproduce the problem at my comp.
russian_language_selection

I can install Russian (Windows 10) language package. Would that solve the problem?

@jmalkema
Copy link

jmalkema commented May 2, 2019

I put compiler (language) switch as POC:
sdate_language_specification
N.B. I use Google translate.

@papyrussolution
Copy link
Owner

Good day. I shall launch this night autotranslation to english and netherland languages. It'll translate the big deal of text. If all be ok then tomorrow or the second day i put results to github and you will be able to test it. This action does not allow to use system by foreign people directly, but will be the first real step toward this.

@minhtri22
Copy link
Author

minhtri22 commented May 7, 2019

Hey guys, long time not come back with this project. How about it so far?

@jmalkema
Copy link

jmalkema commented May 9, 2019

Good evening.

I shall launch this night autotranslation to english and netherland languages.

Perfect.

t'll translate the big deal of text.

Excellent.

If all be ok then tomorrow or the second day i put results to github and you will be able to test it.

Are languages translations Ok? 

Greetings Jan Marco

@papyrussolution
Copy link
Owner

Hello, jmalkema and minhtri22!
I had done it. Translation to en and nl works. But the quality of the translation is very very poor :( That is for experimental purpose only.
To run with use the command line option /uilang:en or /uilang:nl (ppw.exe /uilang:en)
Release with this option isn't still assembled (codes are there - in github), but will be ready at sunday night.

@jmalkema
Copy link

I had done it. Translation to en and nl works.

I am very happy with the result. :-)

But the quality of the translation is very very poor :(

I think there are two aspects:

  1. I think there is static Russian text code still. How to change these static code in desired langues.
  2. Improve manual the (automatic) translated langues texts.

That is for experimental purpose only.

I like to do experimental tests.

To run with use the command line option /uilang:en or /uilang:nl (ppw.exe /uilang:en)

Both (ppw.exe /uilang:en) and (ppw.exe /uilang:nl) works. :-)
openpapyrus_screendump_nederlands_01

@jmalkema
Copy link

jmalkema commented May 10, 2019

I selected button Beta_Use_Unicode_UTF8 -> reboot computer -> I get the compile errors on (the next) source lines:

sdate.cpp:
static const char * monthNames[NUM_MONTHES] = {
static const char * P_WeekDays = {
pBuf[2] = '�';
rBuf.Trim(2).CatChar('�');

stype.cpp
// {MKSTYPE(S_UINT, 1), "uint8,uchar", "����� ��� �����"},
// {MKSTYPE(S_UINT, 2), "uint16,unsigned short", "����� ��� �����"},
// {MKSTYPE(S_UINT, 4), "uint32,ulong,uint,unsigned long,unsigned int", "����� ��� �����"},
// {MKSTYPE(S_FLOAT, 4), "float", "�����"},
// {MKSTYPE(S_FLOAT, 8), "real,double,N", "�����"},
// {MKSTYPE(S_FLOAT, 10), "long double", "�����"},
// {T_DATE, "date,LDATE,D", "����"},
// {T_TIME, "time,LTIME,T", "�����"},
// {T_BOOL, "boolean,bool,logical", "����������"}

sc_ggrp.cpp
WaitPercent(pFn, ++recno, numrecs, "������� ����������� �������� �����");

sc_order.cpp
//WaitPercent(pFn, recno+1, stat.NumRecs, "������ ����������");
//WaitPercent(pFn, recno+1, stat.NumRecs, "������ ����� ����������");
//WaitPercent(pFn, recno+1, stat.NumRecs, "������ ��������������");

sc_cli.cpp
WaitPercent(pFn, recno, numrecs, "������� ����������� ��������");
//WaitPercent(pFn, recno+1, stat.NumRecs, "������ ����� ��������������");
//WaitPercent(pFn, i+1, TempList.getCount(), "������� �������� ����������");

sc_todo.cpp
WaitPercent(pFn, i+1, IdAsscList.getCount(), "������� ������� ����������");
//WaitPercent(pFn, recno, numrecs, "������� ���������� ������");

sc_goods.cpp
//WaitPercent(pFn, recno, numrecs, "������� ����������� �������");
WaitPercent(pFn, recno, numrecs, "������� ����������� �������");

stcp.cpp
temp_buf.Z().Cat("������� �����").Space().CatChar('<').Cat("[email protected]").CatChar('>').Transf(CTRANSF_OUTER_TO_UTF8);
//temp_buf.Z().Cat("������� �����").Space().CatChar('<').Cat("[email protected]").CatChar('>');
//temp_buf.Comma().Cat("������� �������").Space().CatChar('<').Cat("[email protected]").CatChar('>');
//temp_buf.Z().Cat("�������� ������ ��� �������� ������������ ������������ ���������. ���!").Transf(CTRANSF_OUTER_TO_UTF8);

Amc100.cpp
// buf[1] = '�';
// buf[2] = '�';
// buf[3] = '�';
// buf[4] = ' ';

Nmbtotxt.cpp
static const char * zero_word = "����";

Synccash.cpp
// THROW(ArrAdd(Arr_In, DVCPARAM_TEXT, (flags & PRNCHK_RETURN) ? "������� �������" : "�������"));

palmexch.cpp
//WaitPercent(pFn, crecno+1, stat.NumRecs, "������ ������ ������");

ie_goods.cpp
// TempBuf.ReplaceChar('�', '�');
// TempBuf.ReplaceChar('�', '�');

BnkSberbank.cpp
// {SBRBNK_ERR_99, "��������� ������� � ��������, ���� ���������� ������� ��������� ���-����"},
// {SBRBNK_ERR_361, "��������� ������� � ����� �����. ��� �� ��������. ���� ���������� ������� ����� �������"},
// {SBRBNK_ERR_362, "��������� ������� � ����� �����. ��� �� ��������. ���� ���������� ������� ����� �������"},
// {SBRBNK_ERR_363, "��������� ������� � ����� �����. ��� �� ��������. ���� ���������� ������� ����� �������"},
// {SBRBNK_ERR_364, "��������� ������� � ����� �����. ��� �� ��������. ���� ���������� ������� ����� �������"},
// {SBRBNK_ERR_403, "������ ������ ��� ����� ���� (��������)"},
// {SBRBNK_ERR_518, "�� ��������� ����������� �������� ����"},
// {SBRBNK_ERR_521, "�� ����� ������������ ������� (��������)"},
// {SBRBNK_ERR_2000, "�������� �������� �������� ������� ������. ������ ��������� ������� � �� ��������� ��������������� ������ ������, � �� ��������� ��� ��� ��������� ������"},
// {SBRBNK_ERR_2002, "������ ������� ����� ������ ���. ����� �������"},
// {SBRBNK_ERR_4100, "��� ����� � ������ ��� ��������� ��������. ��������, �� ��������� ������� ����� �������� ���� ������� � ��������� ��� ��������� ��������"},
// {SBRBNK_ERR_4101, "����� ��������� �� ����������������"},
// {SBRBNK_ERR_4102, "����� ��������� �� ����������������"},
// {SBRBNK_ERR_4103, "������ ������ � ����� �����"},
// {SBRBNK_ERR_4104, "������ ������ � ����� �����"},
// {SBRBNK_ERR_4108, "����������� ������ ��� �������� ����� �����"},
// {SBRBNK_ERR_4110, "��������� ���������������� ����� ��������� (��������)"},
// {SBRBNK_ERR_4115, "������ ���� ��� ����� ���� ��������"},
// {SBRBNK_ERR_4116, "������� �������� 4 ��������� ����� ������ �����"},
// {SBRBNK_ERR_4117, "������ ��������� �� ����� ����"},
// {SBRBNK_ERR_4119, "��� ����� � ������"},
// {SBRBNK_ERR_4120, "� ������� ��� ����� KLK"},
// {SBRBNK_ERR_4121, "������ �������� ��������� ���������"},
// {SBRBNK_ERR_4122, "������ ����� ������"},
// {SBRBNK_ERR_4123, "�� ��������� ��� ��������� ������"},
// {SBRBNK_ERR_4124, "�� ��������� ��� ������-������"},
// {SBRBNK_ERR_4125, "�� ����� ���� ���, � ��������� ���� ��������� ������"},
// {SBRBNK_ERR_4131, "���������� ��� ������� ��-2, �� � ������� ��������� ��������� ���������� ������ ��� ������� (��������� ��� �������� �����)"},
// {SBRBNK_ERR_4132, "�������� ��������� ������"},
// {SBRBNK_ERR_4134, "������� ����� �� ����������� ������ ������ �� ���������"},
// {SBRBNK_ERR_4135, "��� SAM-����� ��� ���������� ������ (��������)"},
// {SBRBNK_ERR_4136, "��������� ����� ������ ������ �������� � �������"},
// {SBRBNK_ERR_4137, "������ ��� ��������� ����� ������ ����"},
// {SBRBNK_ERR_4139, "� ���������� ��������� ��� �� ������ �������� �����, ���������� ��� ��������� ��������"},
// {SBRBNK_ERR_4140, "������� ������� ����� ��� ��� ����������� � ������� SUSPEND �� �������� ���������"},
// {SBRBNK_ERR_4143, "�� ��������� ������� ������ ����-����"},
// {SBRBNK_ERR_4144, "�������� ������ ����-����� �� ���������"},
// {SBRBNK_ERR_4145, "�������� ������ ����-����� �� ���������"},
// {SBRBNK_ERR_4146, "�������� ������ ����-����� �� ���������"},
// {SBRBNK_ERR_4147, "�������� ������ ����-����� �� ���������"},
// {SBRBNK_ERR_4148, "����� � ����-�����"},
// {SBRBNK_ERR_4149, "�� ����� ��� ������� ���������"},

// {SBRBNK_ERR_4203, "�� ��������� ��� �������� ��� ��������� ��� ��������� ��������"},
// {SBRBNK_ERR_4208, "������ ��������� ��������: �� ������� �� ����������� �����-���� ������ ��� ������� ���������"},

// {SBRBNK_ERR_4300, "������������ ���������� ��� ������� ������ sb_pilot. � ��������� ������ ������� �� ��� ��������� ���������"},
// {SBRBNK_ERR_4301, "�������� ��������� �������� � UPOS ������������ ��� ��������"},
// {SBRBNK_ERR_4302, "�������� ��������� �������� � UPOS ������������ ��� �����"},
// {SBRBNK_ERR_4303, "��� �����, ���������� �� �������� ���������, �� �������� � ���������� UPOS"},

// {SBRBNK_ERR_4306, "���������� sb_kernel.dll �� ���� ����������������"},
// {SBRBNK_ERR_4309, "�������� ������"},
// {SBRBNK_ERR_4310, "�������� ��������� �������� � UPOS ������������ ����2"},

// {SBRBNK_ERR_4314, "�������� ��������� �������� ��� �������� ������� �� ������������� �����, � ��������� ���� ����� ��������"},
// {SBRBNK_ERR_4332, "������ ������ �� ���������"},
// {SBRBNK_ERR_4333, "����������� ����������� ����� ����������"},

// {SBRBNK_ERR_4335, "����� �� ������� ��� �������� ����� �����"},
// {SBRBNK_ERR_4336, "�� �������� ��������� ������� �������� ��� ������"},
// {SBRBNK_ERR_4338, "������� �������� �� ����� ��������, �� ��������� ����� �������� �� �������"},
// {SBRBNK_ERR_4339, "������� ������������ �������� �� ����� ��������"},
// {SBRBNK_ERR_4340, "������ ���������� ���������� ����� ��������"},
// {SBRBNK_ERR_4341, "������� �������� �� ����� ��������, �� ��������� ����� ������� ����, ���� �� ��������� �������"},
// {SBRBNK_ERR_4404, "�������� ������� ������ �����"},
// {SBRBNK_ERR_4407, "�������� ������� ������ �����"},
// {SBRBNK_ERR_4419, "�� ������� ���������� ������������ ������"},
// {SBRBNK_ERR_4441, "�������� ������� ������ �����"},

// {SBRBNK_ERR_4451, "�� ����� ������������ �������"},
// {SBRBNK_ERR_4454, "����� ����������"},

// {SBRBNK_ERR_4457, "�������� �� ��������� �� ��������, ��������� � ������"},
// {SBRBNK_ERR_4458, "�������� �� ��������� �� ��������, ��������� � ���������� ���������"},
// {SBRBNK_ERR_4468, "�� ������� ���������� ������������ ������"},
// {SBRBNK_ERR_4475, "������ ������ ������ ��� ����� ����, � ������ �� ������������"},
// {SBRBNK_ERR_4496, "�������� ��������� ���������"},
// {SBRBNK_ERR_4497, "�� ������� ���������� ������������ ������"},
// {SBRBNK_ERR_4498, "�������� ��������� ���������"},

// {SBRBNK_ERR_5000, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5001, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5002, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5003, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5004, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5005, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5006, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5007, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5008, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5009, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5010, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5011, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5012, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5013, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5014, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5015, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5016, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5017, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},
// {SBRBNK_ERR_5018, " �������� ��������� ��������� ��� �������� ������ �� ���� �����"},

ReversK2.cpp
static PPDrvSession::TextTableEntry _ErrMsgTab[] = { NULL,
// { K2ERR_OPENPORTFAILED, "������ �������� �����" },
// { K2ERR_WRITEPORTFAILED, "������ ������ � ����" },
// { K2ERR_CONTROLPORTFAILED, "������ �������� ������������ ���� � ����" },
// { K2ERR_MEMERR, "������ ��������� ������" },
// { K2ERR_GETADDRFAILED, "������ ��������� ������ �����������" }
};

ppdrvapi.cpp
{
;
//DefineErrText(PPBaseDriver::serrNotInited, "��������� �������� �� ���������������");
//DefineErrText(PPBaseDriver::serrInvCommand, "������������ �������");
// DefineErrText(PPBaseDriver::serrNoMem, "������������ ������");
// DefineErrText(PPBaseDriver::serrNotEnoughRetBufLen, "������������ ������ ������ ������������� ����������");
}

ImpExpExite.cpp
//#define ELEMENT_NAME_�516 "C516"
ErrMessage ErrMsg[] = {
/*
{IEERR_SYMBNOTFOUND, "������ �� ������"},
{IEERR_NODATA, "������ �� ��������"},
{IEERR_NOSESS, "������ � ����� ������� ���"},
{IEERR_ONLYBILLS, "Dll ����� �������� ������ � �����������"},
{IEERR_NOOBJID, "������� � ����� ��������������� ���"},
{IEERR_IMPEXPCLSNOTINTD, "������ ��� �������/�������� �� ���������������"},
{IEERR_FTP, "������ FTP"},
{IEERR_IMPFILENOTFOUND, "���� ������� �� ������: "},
{IEERR_INVMESSAGEYTYPE, "�������� ��� ���������. ��������� "},
{IEERR_NOCFGFORGLN, "��� ������ ���� �������� ��� �������� ������������ ��� ������������ � GLN "},
{IEERR_NULLWRIEXMLPTR, "������� xmlWriter"},
{IEERR_NULLREADXMLPTR, "������� xmlReader"},
{IEERR_XMLWRITE, "������ ������ � xml-����"},
{IEERR_XMLREAD, "������ ������ �� xml-�����"},
{IEERR_TOOMUCHGOODS, "����� �������, ���������� � ����� �������, ������ ��������� �� ����������"},
{IEERR_MSGSYMBNOTFOUND, "������ �� ������ (������ ���� �������� �������/��������)"},
{IEERR_ONLYIMPMSGTYPES, "�������� ������� �������� ������ � ������ ������ ORDRSP, DESADV � APERAK"},
{IEERR_ONLYEXPMSGTYPES, "�������� �������� �������� ������ � ������ ������ ORDER, RECADV"},
{IEERR_NOEXPPATH, "�� ���������� ���������� ��� ����� ��������"},
{IEERR_TTNNEEDED, "�������� �� ������. ���������� ������� ���. ��������: "}*/

EmMarine.cpp
static PPDrvSession::TextTableEntry _ErrMsgTab[] = {
{ RDRERR_OPENPORTFAILED, "������ �������� �����" },
{ RDRERR_WRITEPORTFAILED, "������ ������ � ����" },
{ RDRERR_READPORTFAILED, "������ ������ �� �����" },
{ RDRERR_NOREPLY, "���������� �� ��������" },
{ RDRERR_INVREPLY, "�������� ����� ����������" }
};

ImpExpLeraData.cpp
#define ELEMENT_NAME_�516 "C516"
ErrMessage ErrMsg[] = {
{IEERR_SYMBNOTFOUND, "������ �� ������"},
{IEERR_NODATA, "������ �� ��������"},
{IEERR_NOSESS, "������ � ����� ������� ���"},
{IEERR_ONLYBILLS, "Dll ����� �������� ������ � �����������"},
{IEERR_NOOBJID, "������� � ����� ��������������� ���"},
{IEERR_IMPEXPCLSNOTINTD, "������ ��� �������/�������� �� ���������������"},
{IEERR_FTP, "������ FTP"},
{IEERR_IMPFILENOTFOUND, "���� ������� �� ������: "},
{IEERR_INVMESSAGEYTYPE, "�������� ��� ���������. ��������� "},
{IEERR_NOCFGFORGLN, "��� ������ ���� �������� ��� �������� ������������ ��� ������������ � GLN "},
{IEERR_NULLWRIEXMLPTR, "������� xmlWriter"},
{IEERR_NULLREADXMLPTR, "������� xmlReader"},
{IEERR_XMLWRITE, "������ ������ � xml-����"},
{IEERR_XMLREAD, "������ ������ �� xml-�����"},
{IEERR_TOOMUCHGOODS, "����� �������, ���������� � ����� �������, ������ ��������� �� ����������"},
{IEERR_MSGSYMBNOTFOUND, "������ �� ������ (������ ���� �������� �������/��������): "},
{IEERR_ONLYIMPMSGTYPES, "�������� ������� �������� ������ � ������ ������ ORDRSP, DESADV � APERAK"},
{IEERR_ONLYEXPMSGTYPES, "�������� �������� �������� ������ � ������ ������ ORDER, RECADV"},
{IEERR_NOEXPPATH, "�� ���������� ���������� ��� ����� ��������"},
{IEERR_TTNNEEDED, "�������� �� ������. ���������� ������� ���. ��������: "},
{IEERR_PAYFIRST, "������ � ����������� LeraData �������� ����������"}
};

xmlTextWriterStartElement(P_XmlWriter, (const xmlChar *)ELEMENT_NAME_�516);
xmlTextWriterStartElement(P_XmlWriter, (const xmlChar *)ELEMENT_NAME_�516);

BnkIngenicoSPDH.cpp
ErrMessage ErrMsg[] = {
//{INGVTB_NOTENOUGHPARAM, "�� ���������� ���������� ��� ������ ����������"},
//{INGVTB_UNCNKOWNCOMMAND, "�������� ����������� �������"},
//{INGVTB_NOTINITED, "������ �������������"},
//{INGVTB_NOTCONNECTED, "���������� �� �����������"},
//{INGVTB_NOTENOUGHMEM, "�� ����������� ������ ��������� ������"},
//{INGVTB_DLLFILENOTFOUND, "���� arccom.dll �� ������"},
//{INGVTB_INIFILENOTFOUND, "���� cashreg.ini �� ������"},
//{INGVTB_CHECKFILENOTFOUND, "���� check.out �� ������"},
//{INGVTB_NODLLPATH, "�� ������ ���� � ����� arccom.dll"}
};

prcpan.cpp
else if(tb.Cmp("PRCREST", 0) == 0
|| tb.Cmp("���", 0) == 0 || tb.Transf(CTRANSF_INNER_TO_OUTER).Cmp("���", 0) == 0)

		else if(tb.Cmp("PRCFONT", 0) == 0 || tb.Cmp("�����", 0) == 0 || tb.Transf(CTRANSF_INNER_TO_OUTER).Cmp("�����", 0) == 0)

txtanlz.cpp
context_buf.Z().CatChar('@').CatEq("kws", wb_rec.Symb).Semicol().CatEq("locn", "���������");

pptest.cpp
(msg_buf = "��������� �������� ����������").Transf(CTRANSF_OUTER_TO_INNER);

sartre_imp
if(temp_buf.NotEmpty()) {
if(temp_buf == "�����")
rForm.SetTag(SRWG_ADJCMP, prev_compr = SRADJCMP_COMPARATIVE);
else {
..
else if(temp_buf == "����")
rForm.SetTag(SRWG_ADVERBCAT, SRADVCAT_INTERROGATIVE);
else if(temp_buf == "�����")
rForm.SetTag(SRWG_ADVERBCAT, SRADVCAT_RELATIVE);
else if(temp_buf == "������")
rForm.SetTag(SRWG_ADVERBCAT, SRADVCAT_POINTING);
else if(temp_buf == "0")
rForm.SetTag(SRWG_INVARIABLE, 1);
else if(temp_buf == "���")
rForm.SetTag(SRWG_LOCAT, 1);
else if(temp_buf == "���")
rForm.SetTag(SRWG_ERROR, 1);

tsessdlg.cpp
const char * p_days_word[] = { "days", "day", "d", "����", "����", "�", "�����", "�����", "���" };

Objvatbk.cpp
SXml::WNode n(pWriter, "������");
n.PutAttrib("�����", inn);
// SXml::WNode n(pWriter, "������");
// n.PutAttrib("�����", inn);
// n.PutAttrib("���", kpp);
p_ledger_title = "����������";
p_ledger_line_title = "��������";
p_ledger_title = "���������";
p_ledger_line_title = "���������";
// SXml::WNode n_file(p_writer, "����");
// n_file.PutAttrib("������", id_file);
n_file.PutAttrib("��������", left);
n_file.PutAttrib("��������", "5.06"); // @v10.4.2 "5.04"-->"5.06"

const FiasAbbrEntry _FiasAbbrList[] = {
{ 1, "���������� �������", "����", 102, 0 },
{ 1, "����", "����", 104, 0 },
{ 1, "�������", "���", 105, 0 },
{ 1, "�����", "�����", 107, 0 },
..

ImpExpExite.cpp
xmlTextWriterStartElement(P_XmlWriter, (const xmlChar *)ELEMENT_NAME_�516);
//xmlTextWriterStartElement(P_XmlWriter, (const xmlChar *)ELEMENT_NAME_�516);
//xmlTextWriterStartElement(P_XmlWriter, (const xmlChar *)ELEMENT_NAME_�516);

ImpExpKorus.cpp
#define IEERR_WEBSERV�ERR 7 // ������ ���-�������. � ���� ������ ��������� �������� ���� WebSrevcErr

ErrMessage ErrMsg[] = {
{IEERR_SYMBNOTFOUND,		"������ �� ������"},
{IEERR_NODATA,				"������ �� ��������"},
{IEERR_NOSESS,				"������ � ����� ������� ���"},

.
.

ImpExpLeraData.cpp
xmlTextWriterStartElement(P_XmlWriter, (const xmlChar *)ELEMENT_NAME_�516);

@papyrussolution
Copy link
Owner

I'll convert this file to utf-8 (there is a number of source file in the project have been still not converted because of inner native strings).

@jmalkema
Copy link

List of 27 files who have "utf-8" issues:

1:Amc100.cpp
2:BnkIngenicoSPDH.cpp
3:BnkSberbank.cpp
4:EmMarine.cpp
5:ie_goods.cpp
6:ImpExpExite.cpp
7:ImpExpKorus.cpp
8:ImpExpLeraData.cpp
9:Nmbtotxt.cpp
10:Objvatbk.cpp
11:palmexch.cpp
12:ppdrvapi.cpp
13:pptest.cpp
14:prcpan.cpp
15:ReversK2.cpp
16:sartre_imp
17:sc_cli.cpp
18:sc_ggrp.cpp
19:sc_goods.cpp
20:sc_order.cpp
21:sc_todo.cpp
22:sdate.cpp
23:stcp.cpp
24:stype.cpp
25:Synccash.cpp
26:tsessdlg.cpp
27:txtanlz.cpp

@papyrussolution
Copy link
Owner

Thanks. I'll help.

@jmalkema
Copy link

jmalkema commented May 12, 2019

There are Russion texts in ppw.rc file still:

Configuratie-ini-bestand

I looked for possible solutions. Maybe there are others :-)

A satellite DLL is a resource-only DLL that contains an application's resources localized for a particular language.

Creating a Resource-Only DLL
A resource-only DLL is a DLL that contains nothing but resources, such as icons, bitmaps, strings, and dialog boxes. Using a resource-only DLL is a good way to share the same set of resources among multiple programs. It is also a good way to provide an application with resources localized for multiple languages (see Localized Resources in MFC Applications: Satellite DLLs).
To create a resource-only DLL, you create a new Win32 DLL (non-MFC) project and add your resources to the project.
The application that uses the resource-only DLL should call LoadLibrary to explicitly link to the DLL. To access the resources, call the generic functions FindResource and LoadResource, which work on any kind of resource, or call one of the following resource-specific functions:
• FormatMessage
• LoadAccelerators
• LoadBitmap
• LoadCursor
• LoadIcon
• LoadMenu
• LoadString

Every language Dutch, English, Russian, Chinese, etc. has its own language dll.

I googled for "GetSystemDefaultUILanguage":

For MUI (Multiple User Interface) OS, a user can update his OS user language in Control Panel, Region and language options, Language. Following code is partially copied from VC7.1 appcore.cpp. It detects UI language, and stores a language list for loading later.
LANGID CMultiLanguage::DetectUILanguage()

While the above code works for MUI OS, a user may change the default locale, not the UI language. The following code detects the user default language, not the UI language.
LANGID CMultiLanguage::DetectLangID()

Use of CMultiLanguage::DetectUILanguage() and/or CMultiLanguage::DetectLangID() could help to auto detect the used (system/user/console) language. N.B. Maybe not need to give console parameter "/uilang:??".

Next gives link to Tortoisegit:

I will look to Tortoisegit. Maybe they have solved the languages problem in a feasible solution.

Greeting Jan Marco

@papyrussolution
Copy link
Owner

Hello, Jan.
I haven't cope with all the list of files you post yesterday. But big deal of it is now done (the rested part i'll finish next week):
removed 1:Amc100.cpp
done 2:BnkIngenicoSPDH.cpp
done 3:BnkSberbank.cpp
done 4:EmMarine.cpp
5:ie_goods.cpp
6:ImpExpExite.cpp
7:ImpExpKorus.cpp
8:ImpExpLeraData.cpp
done 9:Nmbtotxt.cpp
10:Objvatbk.cpp
11:palmexch.cpp
done 12:ppdrvapi.cpp
13:pptest.cpp
done 14:prcpan.cpp
done 15:ReversK2.cpp
done 16:sartre_imp
17:sc_cli.cpp
18:sc_ggrp.cpp
19:sc_goods.cpp
20:sc_order.cpp
21:sc_todo.cpp
done 22:sdate.cpp
done 23:stcp.cpp
done 24:stype.cpp
25:Synccash.cpp
26:tsessdlg.cpp
done 27:txtanlz.cpp

@papyrussolution
Copy link
Owner

papyrussolution commented May 12, 2019

Now about what connect with resources. The main deal of text is stored in \Src\Rsrc\Str\ppstr2.txt. This file is translated to other languages. I extracted existed russian strings from ppw.rc and will do my best to substitute them to meta-symbols (as it has been done for the most other strings). There are a bit more than 3000 such items.

@jmalkema
Copy link

I haven't cope with all the list of files you post yesterday. But big deal of it is now done (the rested part i'll finish next week):

Perfect :-)

Now about what connect with resources. The main deal of text is stored in \Src\Rsrc\Str\ppstr2.txt. This file is translated to other languages. I extracted existed russian strings from ppw.rc and will do my best to substitute them to meta-symbols (as it has been done for the most other strings). There are a bit more than 3000 such items.

Your program is very rich of code and third party libraries . :-)

Make language in resoure files dynamic will take some time.

I am studing ppstr.txt code file a bit:

// PPSTR2.H
// This file was generated by SC2C.EXE from 'D:\pinnode\server\OpenPapyrus\Src\Rsrc\Str\ppstr2.txt'

In holland you have same type of companies and same type of workers. Every Group( /set) could have different (popup) menu structure. Like farmers, carpenters, barbiers, etc.

Database Driven Dynamic Menu Control” for example, could help to customize main gui program to specific group of users:

Database Driven Dynamic Menu Control

Maybe you have advise about how best to customize to users (groups)?

@jmalkema
Copy link

I (test) executed OpenCapyrus with and without 'Beta_Use_Unicode_UTF8' option switch. I looked to Productie -> MRP-tabel:

MRP_screens

There is a language issue with months names and weekdays I think also:

static const char * monthNames[NUM_MONTHES] = {
//"Январ[ь|я]", "Феврал[ь|я]", "Март[|а]", "Апрел[ь|я]", "Ма[й|я]", "Июн[ь|я]","Июл[ь|я]", "Август[|а]", "Сентябр[ь|я]", "Октябр[ь|я]", "Ноябр[ь|я]", "Декабр[ь|я]"
#ifdef USE_DUTCH_LANGUAGE
"Januari[s|i]", "Februari[s|i]", "Maart[|a]", "April[s|i]", "Mei[y|i]" , "Juni[s|i]", "Juli[s|i]", "Augustus[|a]", "September[s|i]", "Oktober[s|i]", "November[s|i]", "December[s|i]"
#elif USE_RUSSIAN_LANGUAGE
"Январ[ь|я]", "Феврал[ь|я]", "Март[|а]", "Апрел[ь|я]", "Ма[й|я]", "Июн[ь|я]","Июл[ь|я]", "Август[|а]", "Сентябр[ь|я]", "Октябр[ь|я]", "Ноябр[ь|я]", "Декабр[ь|я]"
#else
"January[s|i]", "February[s|i]", "March[|a]", "April[s|i]", "May[y|i]" , "June[s|i]", "July[s|i]" , "August[|a]" , "September[s|i]", "October[s|i]", "November[s|i]", "December[s|i]"
#endif
};

static const char * P_WeekDays = {
//"Monday,Mo,Понедельник,Пнд;Tuesday,Tu,Вторник,Вт;Wednesday,We,Среда,Ср;Thursday,Th,Четверг,Чтв;Friday,Fr,Пятница,Птн;Saturday,Sa,Суббота,Сбт;Sunday,Su,Воскресенье,Вскр"
#ifdef USE_DUTCH_LANGUAGE
"Monday,Mo,Maandag,Ma;Tuesday,Tu,Dinsdag,Di;Wednesday,We,Woensdag,Wo;Thursday,Th,Donderdag,Do;Friday,Fr,Vrijdag,Vr;Saturday,Sa,Zaterdag,Za;Sunday,Su,Zondag,Zo"
#elif USE_RUSSIAN_LANGUAGE
"Monday,Mo,Понедельник,Пнд;Tuesday,Tu,Вторник,Вт;Wednesday,We,Среда,Ср;Thursday,Th,Четверг,Чтв;Friday,Fr,Пятница,Птн;Saturday,Sa,Суббота,Сбт;Sunday,Su,Воскресенье,Вскр"
#else //English
"Monday,Mo,Monday,Mo;Tuesday,Tu,Tuesday,Tu;Wednesday,We,Wednesday,We;Thursday,Th,Thursday,Th;Friday,Fr,Friday,Fr;Saturday,Sa,Saturday,Sa;Sunday,Su,Sunday,Su"
#endif
};

@papyrussolution
Copy link
Owner

Hello, Jan. Thanks! Today is the holyday in Russia. We'll fix the forum tomorrow up.
Almost all tools have source code in the project, but dlgdsn was born last millenium and not by me. I must go now and will describe situation with tools in general and dlgdsn particulary detaily next day.

@papyrussolution
Copy link
Owner

papyrussolution commented Jun 13, 2019

I've publised a draft release of the road map in wiki. I must make an accent upon the word 'draft'. It'll be corrected and fined along the time flow.

@jmalkema
Copy link

I've publised a draft release of the road map in wiki. I must make an accent upon the word 'draft'. It'll be corrected and fined along the time flow.

Perfect :-)

I like the OpenPapyrus road map. It is true that ‘road maps’ are ‘not fixed in concrete’. You can update a road map in time.

@jmalkema
Copy link

jmalkema commented Jun 22, 2019

Hello Sobolev,

I am coping my source stack to other msi ppc and a vmware pc (win10) host. My destination hosts (msi ppc, vmware client) does not compile OpenPapyrus. It is depending on whether or not OPpyServer_10.4.05.28481.exe is installed?

OpenPapyrus_install_screens

Greetings Jan Marco

@papyrussolution
Copy link
Owner

Hello, Jan.
Yes it is. Really, OPpyServer installes DBMS (Btrieve). Btrieve is nesessary in order to build inner database structures (ppdbs.dl6 in ppres project)

@jmalkema
Copy link

jmalkema commented Jun 28, 2019

Hello Sobolev,

Almost all tools have source code in the project, but dlgdsn was born last millenium and not by me. I must go now and will describe situation with tools in general and dlgdsn particulary detaily next day.

Perfect :-)

I am curious about dlgdsn.exe, I have patched an old version processhacker. I compiled OpenPapyrus and put process(line) info in (Mysql) database. Maybe you have some information about the tools in processhackerExecutable column:

process_hacker_output

I will analyse the compiling process and will make a visio diagram of the flow.

Greetings Jan Marco

@jmalkema
Copy link

jmalkema commented Jun 30, 2019

Hello Sobolev,

Running (ppw.exe /uilang:nl) is depending on whether or not OPpyClient_10.4.05.28481.exe is installed

If not installed it give error of not finding "crpe32.dll"

81 Files of OPpyClient_10.4.05.28481.exe in C:\Windows\System32
commonobjmodel.dll
crdb_p2bbtrv.dll
crdb_pc_res_en.dll
crheapalloc.dll
crpe32.dll
crqe_res_en.dll
crqe.dll
crtslv.dll
crxf_html_res_en.dll
crxf_html.dll
crxf_pdf_res_en.dll
crxf_pdf.dll
crxf_rtf_res_en.dll
crxf_rtf.dll
crxf_wordw_res_en.dll
crxf_wordw.dll
crxf_xls_res_en.dll
crxf_xls.dll
cxlib-1-6.dll
cxlibw-1-6.dll
ExportModeller.dll
LwtNetLog.etl
nsclient100w.dll
nsldap32v50.dll
nsldappr32v50.dll
nsldapssl32v50.dll
nspr4.dll
nss3.dll
p2bbtrv.dll
p2ctbtrv.dll
p3tbten.dll
pageObjectModel.dll
plc4.dll
plds4.dll
pscore.dll
ReportRenderer.dll
Roboex32.dll
rptdefmodel.dll
s2dtconv.dll
slib.log
ssl3.dll
stringres100_en.dll
u252000.dll
u25dts.dll
u25samp1.dll
u2dapp.dll
u2ddisk.dll
u2fcompress.dll
u2fsepv.dll
u2ftext.dll
u2fxml.dll
u2l2000.dll
u2lcom.dll
u2ldts.dll
u2lexch.dll
u2lfinra.dll
u3520en.dll
u35dten.dll
u35s1en.dll
u3l20en.dll
u3ldten.dll
u3lfren.dll
u3lxcen.dll
ufmanager.dll
w3aif10B.dll
w3bif143.dll
w3btrv7.dll
w3crs10F.dll
w3dbav80.dll
w3dbsmgr.exe
w3enc106.dll
w3mif145.dll
w3nsl235.dll
w3scmv7.dll
W3UPI22D.dll
wbtrv32.dll
webReporting.dll
Wifi.etl
x3ddken.dll
x3fsven.dll
x3fxmen.dll

I am very curious why you put the (81) OPpyClient application files in the Windows system32 directory?

Greetings Jan Marco

P.S. I made diff of files scan before and after installation of 'OPpyClient_10.4.05.28481.exe'

@papyrussolution
Copy link
Owner

Hello, Jan.
That is Crystal Reports client. Yes, OPpyClient will set up this component.

@jmalkema
Copy link

jmalkema commented Jun 30, 2019

Hello Sobolev,

That is Crystal Reports client. Yes, OPpyClient will set up this component.

Report Generation: Own report generator instead of Crystal Reports

SAP Crystal is an analytics and reporting software solution for small and medium-sized businesses. It enables deeper insights to business information and positions your organization for greater competitive advantage. It combines the pixel-perfect reporting capabilities of SAP Crystal Reports with the secured delivery mechanisms of SAP Crystal Server.

OpenRTP is QT (C++) implementation.

xTuple OpenRTP: Free Open Source SQL Report Writer Created by xTuple. Free Open Source SQL Report Writer As part of all Editions of xTuple, built with the PostgreSQL database and the Qt GUI client framework, we built our own SQL report writer from scratch.

Maybe that there are beter java/javascript solutions in "alternativeto"?

Greetings Jan Marco

P.S. I think a little bit strange to put user program files in C:\windows\system32 directory. If windows update has same filename, it can result in undefined situations (i believe).

@papyrussolution
Copy link
Owner

There are two outer and closed components in OpenPapyrus: DBMS Btrieve (Actian Zen now) and Crystal Reports. I have been dream for many years to get rid of them. They are excelent, but out of my considaration about this system.
My plot is in developing an own reporting system and we are doing some moves toward this target. What is concerned the DBMS we are in choosing accepteble open source system.

@papyrussolution
Copy link
Owner

papyrussolution commented Jun 30, 2019

I learned xTuple OpenRPT. It isn't suited for us. Like many other sach systems it have been built on the concept of database data sourcing. OpenPapyrus uses inner subsystem for intermediate data representation: DL600 declarative language. Consequently, i have been looking for reporting system with arbitrary data sourcing, but all was no avail.
Behind of that, xTuple uses QT - unbelievable heavy infrastructure (i must admit this is the great library at the many sides and if i can make everything from the scatch, who knows, QT will be one of the preferable candidate to select).

@jmalkema
Copy link

jmalkema commented Jun 30, 2019

Hello Sobolev, Thanks a lot about your advice :-)

xTuple uses QT - unbelievable heavy infrastructure

Yes, it is true that QT is very heavy infrastructure.

I tried to compile QT (LTS) with Postbook edition 5.0.0.0-beta. Problem that QT-Webkit is no longer in QT distribution.

The underlying WebKit JavaScript engine will be replaced by Qt WebEngine (Qt deprecated Qt WebKit a few years ago and removed it from recent Qt releases)

I think that Webkit was used to render the javascript menu structures in the qt-xtuple-client. I removed Webkit dependency. The 3 main menus I see "Window", "System" and "Help" remain.

Xtuple_hoofd_scherm_01

It should be:

postbooks-4-4-1-3

I think it is better (also for Xtuple) to make a (stand alone) javascript environment. N.B. In Xtuple case don't make dependency with QT. Maybe, you have better idea about this subject, please let me know :-)

Greetings Jan Marco

@jmalkema
Copy link

jmalkema commented Jul 1, 2019

Hello Sobolev,

OpenPapyrus uses inner subsystem for intermediate data representation: DL600 declarative language.

I like the inner subsystem :-)

There are two outer and closed components in OpenPapyrus: DBMS Btrieve (Actian Zen now) and Crystal Reports. I have been dream for many years to get rid of them. They are excelent, but out of my considaration about this system.

get rid of them i like :-)

My plot is in developing an own reporting system and we are doing some moves toward this target. What is concerned the DBMS we are in choosing accepteble open source system.

Ok.

Personal Resource planning (PRP) application
The Databox platform is an open-source personal networked device, augmented by cloud-hosted services, that collates, curates, and mediates access to an individual’s personal data by verified and audited third-party applications and services. The Databox will form the heart of an individual’s personal data processing ecosystem, providing a platform for managing secure access to data and enabling authorised third parties to provide the owner with authenticated services, including services that may be accessed while roaming outside the home environment.

healthy-home-graphic--tojpeg_1555352981736_x2

The same concept could maybe be done with ERP (Databox= ‘OpenPapyrus’). The data from database to Tensorflow infrastructure (= 'AI Machine learning'). The AI model gives advise about the company. The feedback flows from AI back to OpenPapyrus like ERP-program.

Greetings Jan Marco

@jmalkema
Copy link

jmalkema commented Jul 3, 2019

Hello Sobolev,

I've made a draft how i could see the relations between ERP-GUI-components. It'll be corrected and fined along the time flow:

OpenPapyrus_gui_0012

If R is incorporated with JavaScript, then web delivery can happen smoothly, and it can help in making efficient business decision making. Integrating R into web application naturally becomes quintessential.

Conclusion: R and Javascript can practically unlock innumerable possibility in Data Science and Analytics. Both technologies are working towards developing better integrations, knowledge repositories, libraries and use cases. It is a good time to use both of this together. The future looks bright.

TensorFlow and Javascript are not my comfort zone infra-structure. I have to analyze more :-)

Greetings Jan Marco

@papyrussolution
Copy link
Owner

Hello, Jan.
I'm impressed with your diagram. I've printed it and be trying to understand. You have made a big work endeavouring to explain your vision of the system here and at the forum. Neverthless i can't gather all your ideas together.
Can you explain shortly here main streaks of your vision. Such as: target users, target business, killer features and so on. I beg pardon if you have allready described it. Probably, i couldn't perceive it properly.

Greetings Anton Sobolev.
ps. I aplogize for the late answer.

@jmalkema
Copy link

jmalkema commented Jul 13, 2019

Hello Sobolev,

To understand you program better I saved papyrus.vcproj to other name in vmware Win10 environment. I get problems with Crystal reports. I put the Crystal reports code under compiler switch.

1>..\PPLib\ppreport.cpp(477): error C2061: syntax error: identifier 'PEExportOptions'
1>..\PPLib\v_report.cpp(662): error C2065: 'PE_ERR_ERRORINDATABASEDLL': undeclared identifier
1>..\PPMain\Ppmain.cpp(272): error C3861: 'PEOpenEngine': identifier not found
1>..\PPLib\ppserver.cpp(1859): error C3861: 'PECloseEngine': identifier not found
1>ppifc_i.c
1>c1 : fatal error C1083: Cannot open source file: '..\Rsrc\dl600\ppifc_i.c': No such file or directory

I can compile main gui program and analyse btrieve. If i understand btrieve i will migrate it to Mysql.

I'm impressed with your diagram. I've printed it and be trying to understand.

diagram is for explaining idea´s and to make it better design.

You have made a big work endeavouring to explain your vision of the system here and at the forum. Neverthless i can't gather all your ideas together.

AI tensor flow is more experimental. AI can classificate objects out of picture nowadays. The challenge is to give advise about transactions. By running trained TensorFlow models in an ERP application. ERP Transactions can be bank transaction, but can be blockchain (smart-contracts) transactions too. I have specific Nvidea hardware for AI en Blockchain experimenting. Important is the use of Nvidea (Linux) containers. Vmware can not use GPU tensorcore.

In my opinion you can see an ERP application in two views. The normal business user view and the data science engineer (“Business analist”) view. I think it is only redesign of the main menu. A lot of analyses and reports are in R. There is a lot of beautiful R code of third persons. It is more a statistical analysis platform.

Microsoft R Open is the enhanced distribution of R from Microsoft Corporation. It is a complete open source platform for statistical analysis and data science.

What You Can Expect from R
R is a language! You do data analysis by writing functions and scripts, not by pointing and clicking. That may sound daunting if you are new to programming, but R is an easy language to learn, and a very natural and expressive one for data analysis. Working with R is an interactive experience that encourages experimentation, exploration and play. It is likely that whatever your area of interest, you will find R packages(libraries of functions) that will be immediately helpful. And, of course, R is renowned for its capabilities to visualize data.

The problems is often in the detail. I haven’t looked how easy i can integrate it with "Microsoft R Open".

Can you explain shortly here main streaks of your vision.

The opposite of (Napster Architecture of) Facebook, AirBnb, Uber, Ebay, etc.
You put in your products and service you can offer or want to collect. You synchonize with your friends. Your friends synchonize with their friends. This will result in a total network. (Everyone is linkt to everybody else by their friends).

Such as: target users, target business, killer features and so on. I beg pardon if you have allready described it.

Target users are i think self-employed people. But health care could be a business scenario too. A lot of money of a person is spend on heath care. Beter collaboration between health care workers could be killer feature.

How many self-employed people are there in the Netherlands?
According to figures from Statistics Netherlands and the Business Dynamics 2018 report (Chamber of Commerce), the Netherlands had over 1.9 million companies on 1 January 2019. This also includes entrepreneurs with employees. Of the total number of entrepreneurs, 1,237,734 were self-employed on 1 January 2019 (both full-time and part-time).

Healthcare costs rise to a record amount of 100 billion euros in the Netherlands. In total, 5.805 euro of care was spent per person in 2018 via the government, insurance and personal payments, the CBS writes. An increase of 140 euros compared to the spending in 2017.

Probably, i couldn't perceive it properly.

I made a diagram of the QT-solution also. The friend-to-friend (or F2F) is better implemented in RetroShare part:

OpenPapyrus_QT-gui_0022

Sobolev, Do you use SOAP for communication (products/price list) between OpenPapyrus companies?

Greetings Jan Marco

@papyrussolution
Copy link
Owner

papyrussolution commented Jul 14, 2019

Hello, Jan.
I'll be trying to answer partly.
-- SOAP is used in project intensly for interaction between companies. You can find worked examples at the folder SOAP of the VS-solution. We utilize gSOAP subsysem (with own modifications).
-- Migration to SQL-dbms isn't easy task because Papyrus uses low-level access to a database. On the other hand, i have already made the most deal of the work several years ago. I had been working on the migration to Oracle DBMS. You can see class DbProvider at db.h and derived classes BDictionary (used as a main way for access to the db) and SOraDbProvider.

Greetings, Anton Sobolev. Will be back soon in order to answer other questions.

@papyrussolution
Copy link
Owner

-- Header file "Src\Include\CRPE.H" declares PEExportOptions and other problem symbols has been mentioned by you at the firsts question. This is a "native" CrystalReports's file.

@jmalkema
Copy link

jmalkema commented Jul 16, 2019

Hello Sobolev,

SOAP is used in project intensly for interaction between companies. You can find worked examples at the folder SOAP of the VS-solution. We utilize gSOAP subsysem (with own modifications).

I am very curious how it works, i will look at examples :-)

Migration to SQL-dbms isn't easy task because Papyrus uses low-level access to a database.

I have to analyse how it works. N.B. Maybe could help rewrite low-level- to higher level access.

On the other hand, i have already made the most deal of the work several years ago. I had been working on the migration to Oracle DBMS. You can see class DbProvider at db.h and derived classes BDictionary (used as a main way for access to the db) and SOraDbProvider.

I like to reuse existing (Oracle) code.

After analyse how database communications works. Maybe I try migrate to ('SMysqlDbProvider') MySQL as Proof of Concept tables `Phonebook´ and ´Product´ only. I think the most important tables for testing. I will learn (i hope) how your gui program works.
If your beautiful gui works the synchonization in friend-to-friend (or F2F) environment is next challange.

I have found product csv file of an IT hardware store Azerty as test example (138976 product records of type):
artno|sku|brand|name|price_inc|price_ex|url|ean|firstimage|offlinestock|days
410213|CMZ8GX3M2A1600C9R|CORSAIR|"Vengeance - DDR3 - 8 GB : 2 x 4 GB - DIMM 240-pins - 1600 MHz / PC3-12800 - CL9 - 1.5 V"|44,05|36,40|https://azerty.nl/product/corsair/410213/vengeance-ddr3-8-gb--2-x-4-gb|0843591014120|http://d9qiof14roash.cloudfront.net/tl_assets/257974_Azerty01.jpg|0|"2-3 werkdagen"

Other IT hardware stores will sell same product with different price and place. The place can be retrieved out of Phonebook table.

The last OpenPapyrus source code gives error on ´sttResortАee´ at my environment:
10>D:\pinnode\server\OpenPapyrus\Src\include\pp.h(13758): error C3872: '0x90': this character is not allowed in an identifier (compiling source file ..\Db\dbsql.cpp)
10>D:\pinnode\server\OpenPapyrus\Src\include\pp.h(13758): error C3872: '0x90': this character is not allowed in an identifier (compiling source file ..\SLib\vtbutton.cpp)
10>D:\pinnode\server\OpenPapyrus\Src\include\pp.h(13758): error C3872: '0x90': this character is not allowed in an identifier (compiling source file ..\SLib\usb.cpp)

Synccash.cpp
int SLAPI SCS_SYNCCASH::PrintCheck(CCheckPacket * pPack, uint flags)
case CCheckPacket::sttResortАee: str_id = DVCPARAM_STT_RESORTAEE; break;



//@erikC v10.4.12{
enum SubjTermTag {
	sttAmountMerchantFee      = 17,	// STT_AMOUNTMERCHANTFEE   о суммах уплаченного торгового сбора
	.
	.
	//sttResortАee              = 18,	// STT_RESORTAEE       о курортном сборе
	sttDeposit                = 19,	// STT_DEPOSIT  Залог		
};

Greetings Jan Marco

@papyrussolution
Copy link
Owner

Hello, Jan.
must be sttResortFee. I've fixed it up, but fancy how my compiler has been working on the utf-8 symbol in enum member. New codes will be commited in a pair days. Thank you for pointing to the error.
I wonder how we can consolidate our efforts for solving problem of the migration to mysql. I'm deprivated of the time because the "bloody enterprise" business devours a lot of it. But this migration is the necessary thing and i'm gratitude to you for urging me in this direction.
ps. i'm going on the work upon translation russian texts to metasymbols. There are about 2500 strings in ppw.rc left. Not so much quick :(

@jmalkema
Copy link

jmalkema commented Jul 19, 2019

Hello Sobolev,

ps. i'm going on the work upon translation russian texts to metasymbols. There are about 2500 strings in ppw.rc left. Not so much quick :(

2500 strings is a lot by hand.

I will try to parser the ppw.rc resource file to Mysql:

nameID DIALOGEX x, y, width, height [ , helpID] [optional-statements] {control-statements}

My conform zone is C and will be my first try. I am beginning to learn Python. Maybe later in Python as Proof Of Concept.

This is my suggested process flow:
ppw_rc_0001

The DIALOGEX structures in ppw.rc

table_dialogex

RFTL = read_first_token_line()
if RFTL == ""
{
}
else
{
RSTL = read_next_token_line()
if RSTL == "DIALOGEX"
{
nameID = RFTL
x = read_next_token_line()
y = read_next_token_line()
width = read_next_token_line()
hight = read_next_token_line()
RFTL = read_first_token_line()
if RFTL == "STYLE"
{
style = read_next_all_token_line()
}
RFTL = read_first_token_line()
if RFTL == "CAPTION"
{
text1 = read_next_token_line()
}
RFTL = read_first_token_line()
if RFTL == "FONT"
{
pointsize = read_next_token_line()
typeface = read_next_token_line()
weight = read_next_token_line()
italic = read_next_token_line()
charset = read_next_token_line()
}
write_record_to_mysql("dialogex", nameID, x, y, width, hight, style, text1, pointsize, typeface, weight, italic, charset)
RFTL = read_first_token_line()
if RFTL == "BEGIN"
{
i = 0
do
{
RFTL = read_first_token_line()
switch (RFTL)
{
case "COMBOBOX":
//COMBOBOX id, x, y, width, height [, style [, extended-style]]
text1 = ""
class = ""
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "CONTROL":
//CONTROL text, id, class, style, x, y, width, height [, extended-style]
text1 = read_next_token()
id = read_next_token()
class = read_next_token()
style = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
extended-style = read_next_token_optional()
break;
case "CTEXT":
//CTEXT text, id, x, y, width, height [, style [, extended-style]]
class = ""
text1 = read_next_token()
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "END":
break;
case "DEFPUSHBUTTON":
//DEFPUSHBUTTON text, id, x, y, width, height [, style [, extended-style]]
class = ""
text1 = read_next_token()
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "EDITTEXT":
//EDITTEXT id, x, y, width, height [, style [, extended-style]]
text1 = ""
class = ""
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "GROUPBOX":
//GROUPBOX text, id, x, y, width, height [, style [, extended-style]]
class = ""
text1 = read_next_token()
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "ICON":
//ICON text, id, x, y [, width, height, style [, extended-style]]
class = ""
text1 = read_next_token()
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token_optional()
height = read_next_token_optional()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "LISTBOX":
//LISTBOX id, x, y, width, height [, style [, extended-style]]
text1 = ""
class = ""
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token()
height = read_next_token()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "LTEXT":
//LTEXT text, id, x, y, width, height [, style [, extended-style]]
class = ""
text1 = read_next_token()
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token_optional()
height = read_next_token_optional()
style = read_next_token_optional()
extended-style = read_next_token_optional()
break;
case "PUSHBUTTON":
//PUSHBUTTON text, id, x, y, width, height [, style [, extended-style]]
class = ""
text1 = read_next_token()
id = read_next_token()
x = read_next_token()
y = read_next_token()
width = read_next_token_optional()
height = read_next_token_optional()
style = read_next_token_optional()
extended-style = read_next_token_optional()
default : print RFTL is not found
break;
}
if RFTL != "END"
{
write_record_to_mysql("dialogexFormat", nameID, i, text1, id, class, style, extended-style, x, y, width, height)
i++
}
} while RFTL != "END"

     }
}

}

Greetings Jan Marco

@jmalkema
Copy link

jmalkema commented Jul 19, 2019

Hello Sobolev,

Today I have looked at MySQL database structure for DIALOGEX of ppw.rc:

ppw_dialogex

CREATE TABLE IF NOT EXISTS textLanguageReference (
SN bigint(15) not null AUTO_INCREMENT comment 'serial number of record',
TS timestamp not null comment 'timestamp of record',
textLanguageReferenceId tinyblob comment 'reference text (@Identifier)',
textLanguageReferenceText tinyblob comment 'reference English text',
primary key (SN),
unique key (textLanguageReferenceId(33))
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS textLanguage (
SN bigint(15) not null AUTO_INCREMENT comment 'serial number of record',
TS timestamp not null comment 'timestamp of record',
textLanguage enum('Dutch', 'English', 'German', 'Russian') not null default 'English',
textLanguageId tinyblob comment 'reference text (@Identifier)',
textLanguageTextRefEnglish tinyblob comment 'reference English text',
textLanguageText tinyblob comment 'local country text',
index (textLanguage, textLanguageId(33)),
primary key (SN)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

#write_record_to_mysql("dialogex", nameID, x, y, width, hight, style, text1, pointsize, typeface, weight, italic, charset)
CREATE TABLE IF NOT EXISTS dialogex (
SN bigint(15) not null AUTO_INCREMENT comment 'serial number of record',
TS timestamp not null comment 'timestamp of record',
dialogexNameID tinyblob comment 'dialogex identifier',
dialogexX bigint(15) comment 'x coordinate of dialogex',
dialogexY bigint(15) comment 'y coordinate of dialogex',
dialogexWidth bigint(15) comment 'width of dialogex',
dialogexHeight bigint(15) comment 'height of dialogex',
dialogexStyle blob comment 'style of dialogex',
dialogexText1 tinyblob comment 'reference text (@Identifier) of dialogex',
dialogexText2 tinyblob comment 'local country text of dialogex',
dialogexPointsize bigint(15) comment 'height of dialogex',
dialogexTypeface tinyblob comment 'class name of dialogex',
dialogexWeight bigint(15) comment 'height of dialogex',
dialogexItalic bigint(15) comment 'class name of dialogex',
dialogexCharset tinyblob comment 'class name of dialogex',
primary key (SN),
unique key (dialogexNameID(33))
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

#write_record_to_mysql("dialogexfield", nameID, i, text1, id, class, style, extended-style, x, y, width, height)
CREATE TABLE IF NOT EXISTS dialogexfield (
SN bigint(15) not null AUTO_INCREMENT comment 'serial number of record',
TS timestamp not null comment 'timestamp of record',
dialogexfieldNameID tinyblob comment 'dialogex identifier',
dialogexfieldI bigint(15) comment 'sequence number of controlName',
dialogexfieldControlName enum('COMBOBOX', 'CONTROL', 'CTEXT', 'DEFPUSHBUTTON', 'EDITTEXT', 'GROUPBOX', 'ICON', 'LISTBOX', 'LTEXT', 'PUSHBUTTON') not null default 'LTEXT',
dialogexfieldText1 tinyblob comment 'reference text (@Identifier) of controlName',
dialogexfieldText2 tinyblob comment 'local country text of controlName',
dialogexfieldId tinyblob comment 'identifier of controlName',
dialogexfieldClassName tinyblob comment 'class name of controlName',
dialogexfieldStyle blob comment 'style of controlName',
dialogexfieldExtendedStyle blob comment 'extented style of controlName',
dialogexfieldX bigint(15) comment 'x coordinate of controlName',
dialogexfieldY bigint(15) comment 'y coordinate of controlName',
dialogexfieldWidth bigint(15) comment 'width of controlName',
dialogexfieldHeight bigint(15) comment 'height of controlName',
primary key (SN),
unique key (dialogexfieldId(33))
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@appellation', 'Name');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_code', 'Depreciation code');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_limit', 'Limit residual value, %');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_wroffterm', 'Full write-off period, months');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_wrofftype', 'Write-off scheme');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@but_cancel', 'Cancel');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@but_ok', 'Ok');
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@id', 'Id');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@appellation', 'Name');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@appellation', 'Name', 'Naam');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@appellation', 'Name', 'Name');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@appellation', 'Name', 'name');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@appellation', 'Name', 'Наименование');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_code', 'Depreciation code');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@asstwroffgrp_code', 'Depreciation code', 'Afschrijvings code');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@asstwroffgrp_code', 'Depreciation code', 'Depreciation code');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@asstwroffgrp_code', 'Depreciation code', 'Abschreibungscode');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@asstwroffgrp_code', 'Depreciation code', 'Код нормы амортизации');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_limit', 'Limit residual value, %');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@asstwroffgrp_limit', 'Limit residual value, %', 'Limiet restwaarde, %');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@asstwroffgrp_limit', 'Limit residual value, %', 'Limit residual value, %');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@asstwroffgrp_limit', 'Limit residual value, %', 'Restwert begrenzen, %');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@asstwroffgrp_limit', 'Limit residual value, %', 'Предельная остаточная стоимость, %');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_wroffterm', 'Full write-off period, months');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@asstwroffgrp_wroffterm', 'Full write-off period, months', 'Volledige afschrijvingsperiode, maanden');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@asstwroffgrp_wroffterm', 'Full write-off period, months', 'Full write-off period, months');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@asstwroffgrp_wroffterm', 'Full write-off period, months', 'Vollständige Abschreibungsfrist, Monate');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@asstwroffgrp_wroffterm', 'Full write-off period, months', 'Период полного списания, мес');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@asstwroffgrp_wrofftype', 'Write-off scheme');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@asstwroffgrp_wrofftype', 'Write-off scheme', 'Afschrijvingsregeling');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@asstwroffgrp_wrofftype', 'Write-off scheme', 'Write-off scheme');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@asstwroffgrp_wrofftype', 'Write-off scheme', 'Abschreibungsschema');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@asstwroffgrp_wrofftype', 'Write-off scheme', 'Схема списания');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@but_cancel', 'Cancel');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@but_cancel', 'Cancel', 'Annuleren');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@but_cancel', 'Cancel', 'Cancel');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@but_cancel', 'Cancel', 'Abbrechen');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@but_cancel', 'Cancel', 'Отмена');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@but_ok', 'Ok');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@but_ok', 'Ok', 'OK');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@but_ok', 'Ok', 'Ok');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@but_ok', 'Ok', 'Okay');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@but_ok', 'Ok', 'OK');

#INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@id', 'Id');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@id', 'Id', 'Id');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@id', 'Id', 'Id');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@id', 'Id', 'Id');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@id', 'Id', 'ИД');

INSERT INTO dialogex (TS, dialogexNameID, dialogexX, dialogexY, dialogexWidth, dialogexHeight, dialogexStyle, dialogexText1, dialogexText2, dialogexPointsize, dialogexTypeface, dialogexWeight, dialogexItalic, dialogexCharset) VALUES (NOW(), 'DLG_AWOG', 67, 16, 202, 175, 'DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU', 'Группа списания', '', 8, 'MS Sans Serif', 0, 0, '0x0');

INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 0, 'LTEXT', '@appellation', '', '4001', '', '', '', 10, 10, 52, 8);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 1, 'EDITTEXT', '', '', 'CTL_AWOG_NAME', '', 'ES_AUTOHSCROLL', '', 10, 20, 125, 13);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 2, 'LTEXT', '@id', '', '4002', '', '', '', 145, 10, 12, 8);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 3, 'EDITTEXT', '', '', 'CTL_AWOG_ID', '', 'ES_AUTOHSCROLL', '', 145, 20, 40, 13);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 4, 'LTEXT', '@asstwroffgrp_code', '', '4003', '', '', '', 10, 40, 88, 8);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 5, 'EDITTEXT', '', '', 'CTL_AWOG_CODE', '', 'ES_AUTOHSCROLL', '', 115, 40, 70, 13);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 6, 'GROUPBOX', '@asstwroffgrp_wrofftype', '', 'CTL_AWOG_SCHEME', '', 'WS_GROUP', '', 75, 60, 110, 45);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 7, 'CONTROL', 'Линейная амортизация', '', '5299', 'Button', 'BS_AUTORADIOBUTTON | BS_NOTIFY | WS_TABSTOP', '', 80, 70, 95, 10);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 8, 'CONTROL', 'Ускоренная амортизация', '', '9395', 'Button', 'BS_AUTORADIOBUTTON | BS_NOTIFY | WS_TABSTOP', '', 80, 80, 100, 10);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG', 9, 'CONTROL', 'Списание себестоимости', '', '13491', 'Button', 'BS_AUTORADIOBUTTON | BS_NOTIFY | WS_TABSTOP', '', 80, 90, 100, 10);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG',10, 'LTEXT', '@asstwroffgrp_wroffterm', '', '4005', '', '', '', 10, 115, 116, 8);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG',11, 'EDITTEXT', '', '', 'CTL_AWOG_TERM', '', 'ES_AUTOHSCROLL', '', 140, 115, 40, 13);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG',12, 'LTEXT', '@asstwroffgrp_limit', '', '4006', '', '', '', 10, 130, 130, 8);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG',13, 'EDITTEXT', '', '', 'CTL_AWOG_LIMIT', '', 'ES_AUTOHSCROLL', '', 140, 130, 40, 13);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG',14, 'DEFPUSHBUTTON', '@but_ok', '', 'STDCTL_OKBUTTON', '', '', '', 85, 155, 50, 13);
INSERT INTO dialogexfield (TS, dialogexfieldNameID, dialogexfieldI, dialogexfieldControlName, dialogexfieldText1, dialogexfieldText2, dialogexfieldId, dialogexfieldClassName, dialogexfieldStyle, dialogexfieldExtendedStyle, dialogexfieldX, dialogexfieldY, dialogexfieldWidth, dialogexfieldHeight) VALUES (NOW(), 'DLG_AWOG',15, 'PUSHBUTTON', '@but_cancel', '', 'STDCTL_CANCELBUTTON', '', '', '', 140, 155, 50, 13);

Greetings Jan Marco

@jmalkema
Copy link

jmalkema commented Jul 21, 2019

Hello Sobolev,

ps. i'm going on the work upon translation russian texts to metasymbols. There are about 2500 strings in ppw.rc left. Not so much quick :(

Today, I will start to make two C-programs:

  1. Dialogex_to_mysql: Input file ppw_obs.rc with one Dialogex test resource structure. Program will parse these (Dialogex test resource) structure in MySQL.
  2. Mysql_to_dialogex: Output file ppw_obs_out.rc will be created by building up "Dialogex resource structure" out of the MySQL (table) structure. Test: ppw_obs_out.rc should have same tokens as ppw_obs.rc

I am try hard to search for a C++ api for Google translate service.
(translating-text, using-rest, quickstart, pricing)

Sobolev, Maybe you have advise for me for the Google translate connection?

Next is what I have tested by hand. In order to make automation of parsing ppw.rc easier:

Side effect could be the substituation of the Russian fixed 2500 strings in ppw.rc to @english-text-of-original-Russion-text :-)

I see in 'dialogexText1' (in table 'dialogex') 'Группа списания' without '@' character -> google translate english -> 'Write-off group' -> strip spaces -> '@Write-offgroup'

#insert in textLanguageReference table:
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@Write-offgroup', 'Write-off group');

Google translate to Dutch: 'Afschrijfgroep'
Google translate to English: 'Write-off group'
Google translate to German: 'Abschreibungsgruppe'

#insert in textLanguage table:
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@Write-offgroup', 'Write-off group', 'Afschrijfgroep');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@Write-offgroup', 'Write-off group', 'Write-off group');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@Write-offgroup', 'Write-off group', 'Abschreibungsgruppe');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@Write-offgroup', 'Write-off group', 'Группа списания');

#remove fixed language
UPDATE 'dialogex' SET 'dialogexText1' = '@Write-offgroup' WHERE dialogexNameID = 'DLG_AWOG' AND 'dialogexText1' = 'Группа списания';

#I see in 'dialogexfieldText1' (in table 'dialogexfield') 'Линейная амортизация' without '@' character -> google translate english -> 'Linear depreciation' -> strip spaces -> '@Lineardepreciation'
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@Lineardepreciation', 'Linear depreciation');

Google translate to Dutch: 'Lineaire afschrijving'
Google translate to English: 'Linear depreciation'
Google translate to German: 'Lineare Abschreibung'

#insert in textLanguage table:
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@Lineardepreciation', 'Linear depreciation', 'Lineaire afschrijving');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@Lineardepreciation', 'Linear depreciation', 'Linear depreciation');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@Lineardepreciation', 'Linear depreciation', 'Lineare Abschreibung');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@Lineardepreciation', 'Linear depreciation', 'Линейная амортизация');

#remove fixed language
UPDATE 'dialogexfield' SET 'dialogexfieldText1' = '@Lineardepreciation' WHERE dialogexfieldNameID = 'DLG_AWOG' AND 'dialogexfieldText1' = 'Линейная амортизация';

#I see in 'dialogexfieldText1' (in table 'dialogexfield') 'Ускоренная амортизация' without '@' character -> google translate english -> 'Accelerated depreciation' -> strip spaces -> '@Accelerateddepreciation'
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@Accelerateddepreciation', 'Accelerated depreciation');

Google translate to Dutch: 'Versnelde afschrijving'
Google translate to English: 'Accelerated depreciation'
Google translate to German: 'Beschleunigte Abschreibung'

#insert in textLanguage table:
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@Accelerateddepreciation', 'Accelerated depreciation', 'Versnelde afschrijving');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@Accelerateddepreciation', 'Accelerated depreciation', 'Accelerated depreciation');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@Accelerateddepreciation', 'Accelerated depreciation', 'Beschleunigte Abschreibung');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@Accelerateddepreciation', 'Accelerated depreciation', 'Ускоренная амортизация');

#remove fixed language
UPDATE 'dialogexfield' SET 'dialogexfieldText1' = '@Accelerateddepreciation' WHERE dialogexfieldNameID = 'DLG_AWOG' AND 'dialogexfieldText1' = 'Ускоренная амортизация';

#I see in 'dialogexfieldText1' (in table 'dialogexfield') 'Списание себестоимости' without '@' character -> google translate english -> 'Write-off cost' -> strip spaces -> '@Write-offcost'
INSERT INTO textLanguageReference (TS, textLanguageReferenceId, textLanguageReferenceText) VALUES (NOW(), '@Write-offcost', 'Write-off cost');

Google translate to Dutch: 'Afschrijvingskosten'
Google translate to English: 'Write-off cost'
Google translate to German: 'Abschreibungskosten'

#insert in textLanguage table:
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Dutch', '@Write-offcost', 'Write-off cost', 'Afschrijvingskosten');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'English', '@Write-offcost', 'Write-off cost', 'Write-off cost');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'German', '@Write-offcost', 'Write-off cost', 'Abschreibungskosten');
INSERT INTO textLanguage (TS, textLanguage, textLanguageId, textLanguageTextRefEnglish, textLanguageText) VALUES (NOW(), 'Russian', '@Write-offcost', 'Write-off cost', 'Списание себестоимости');

#remove fixed language
UPDATE 'dialogexfield' SET 'dialogexfieldText1' = '@Write-offcost' WHERE dialogexfieldNameID = 'DLG_AWOG' AND 'dialogexfieldText1' = 'Списание себестоимости';

Maybe, you have advise or better solution(s) :-)

Greetings Jan Marco

Some Mysql table contents:
mysql_dialogex_02

@papyrussolution
Copy link
Owner

Hello, Jan.
I'm still exploring your decision. I use microsoft translation service (not google's one). Papyrus contains code for this purpose. See class PPAutoTranslSvc_Microsoft (Src\PPLib\txtanlz.cpp). But there are used my own account parameters.

@papyrussolution
Copy link
Owner

You can see the usage of that autotranslation mechanism in
StringStore2::Compile(const char * pFileName, long flags, const char * pTranslateToLang) (source file \Src\PPLib\Strstore.cpp).

@jmalkema
Copy link

Hello Sobolev,

StringStore2::Compile(const char * pFileName, long flags, const char * pTranslateToLang) (source file \Src\PPLib\Strstore.cpp).

Thanks a lot. You have made beautiful code. :-) I will try to use it.

@papyrussolution
Copy link
Owner

Thanks for the kind words.

@jmalkema
Copy link

jmalkema commented Aug 9, 2019

Hello, Sobolev,

“Thanks for the kind words.”

I see you did a lot of work in coding a lot of necessary things. :-)

Today, I will begin to make a parser for ppw.rc to mysql.

Greetings Jan Marco

P.S. I upgraded my harddisks in ppc to (2 Tb +4 Tb =) 6 Tb and memory to 32 Gb.

@jmalkema
Copy link

Hello Sobolev,

I parse ppw.rc in two files:
ppw_rc_mysql_screen_dump

Next try is to scan ppw.rc for a "dialogex" structure. If i see it, i put it in a "dialogex" memory structure and put it from memory structure to output file (ppw_out.rc). I will look for difference of the input file ppw.rc and the output file ppw_out.rc with WinMerge.

I looked for the Microsoft translator:
azure_azure_portal

I have to give my credit card information:
identity_verification_by_card
Maybe it is a good thing to do, maybe there are better solutions.

Greetings Jan Marco

P.S. Sobolev, Do you have email or other methode to send my (experimental/test) code?

@papyrussolution
Copy link
Owner

Hello, Jan.
Glad to read your messages again. My email: [email protected] or [email protected].
Skype: soobolev.
Microsoft Asure requires a card's info but doesn't write off money for limited translations (about 2 mln words per month).
You've made a greate amount of the work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants