You are here: PSPad forum > English discussion forum > Rus2Eng converter

Rus2Eng converter

#1 Rus2Eng converter

Posted by: DenTNT | Date: 2015-01-10 17:05 | IP: IP Logged

Hi!
Can you add some feature to quick replace the same letters from English into Russian?
What I mean:
I have some SCANNED text like
ThreeD result = new ThreeD();
result.х = oр2.х + opl;
result.у = oр2.у + opl;
result.z = op2.z + opl;
return result;

But this is not correct text, because there are Russian letters inside:
I have to replace (these letters are the same in visualization):
х -> x
у -> y
р -> p
с -> c
о -> o
Is there a way to do it in macros?

Options: Reply | Quote | Up ^


#2 Re: Rus2Eng converter

Posted by: pspad | Date: 2015-01-10 17:23 | IP: IP Logged

Don't create threads in developer forum. It's written in forum description!

You can use user convertors for your problems. There is possibility to create convertor what replace char for char or string for string and run it on your text.
More information about user convertors you can find in PSPad help

Options: Reply | Quote | Up ^


#3 Re: Rus2Eng converter

Posted by: DenTNT | Date: 2015-01-11 10:07 | IP: IP Logged

Thank you!
I have to add, that in the Help there is an error:
Section name is "CharTab", not "CharTable"

;semicolon is comment - optional, is ignored
;section names are bold - mandatory
;red color - mandatory text. Must be set.
[Description]
;convertor description - will be displayed in menu
ForwardName=Russian letters to the same English (А->A)
BackwardName=none
;set of char case ignore. 1 = yes, 0 = no
ForwardIgnoreCase=0
BackWardIgnoreCase=0
;sets whether conversion will be processed with char table or replacing string by string
CharTab=1
;section for replacing string by string. Strings are delimited by | char (pipe or bar)
[Conversion]
;list of char, which will be removed during conversion
[Remove chars]
;char conversion table. Numbers are char ASCII values. Write only chars you want to convert.
[Table]

245=120

243=121

241=99

224=97

229=101

238=111

240=112

Options: Reply | Quote | Up ^


#4 Re: Rus2Eng converter

Posted by: pspad | Date: 2015-01-11 10:50 | IP: IP Logged

I will fix the description in the help.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR