Budget: 11000 UAH Deadline: 10 days
Hello Sergey,
In order not to break the structure of the document, we need to remember how many characters were on each line while reading the document, as well as record the parameters for indentation and paragraphs. As a result, in addition to the text, we will have the indentation parameters and the number of characters in each line.
Then we will get the text translated into another language from the translation service,
And here we will need to connect the OpenAI API, and for it, we will create a prompt of the following form "This text {{{translated text}}} format it according to the following scheme {{{numerical description of line formatting}}} where the key is the line number, and the 3 numbers in the value are the left indentation, the number of characters in the line, and the right indentation."
Thus, thanks to ChatGPT, we will be able to closely match the translated version to the original.
I have extensive experience in solving algorithmic problems and unconventional thinking.
I will gladly complete this task and answer all questions.
Sincerely,
Georgiy