PSPad:
--------------------------------------------------------------------------------
I need a special regular expression that will change the English abbreviations
for the books of Scripture to Polish abbreviations for the books of Scripture.

Example:
Gen -> Rdz
Ex -> Wj
Col -> Kol

A total of 66 books

https://jan1248.pl/sigla-biblijne/
--------------------------------------------------------------------------------


Hi,
a user convertor seems to be suitable for this task;
there is som einfo in the helpfile and a template file, with some examples:
...\PSPad\Convertor\Template.in_

You can try the following pattern (after completing the other abbreviations)
save the file e.g. as

...\PSPad\Convertor\BiblAbbr_Eng_Pol.ini

All occurences of the found strings will be replaced with strings replacement
mode, if this is not wanted (e.g. for matches within other text), the regex mode
can be used, where  can mark the word boundary (however, currently it also
matches next to accented letters etc.)

The user convertor is called from the menu Tools: User convertors... (after
saving the ini file in the correct folder, the item will appear in the list of
convertors.

hth,
   vbr


cite:
--------------------------------------------------------------------------------
;User conversion definition file for PSPad editor
[Settings]

ForwardName=Bible Book Abbr English - Polish
; BackwardName=Bible Book Abbr Polish - Polish

ForwardIgnoreCase=0
BackWardIgnoreCase=0

; ConversionStyle=strings
ConversionStyle=regexpressions

;expression from|expression to
[Strings]
Gen|Rdz
Ex|Wj
Col|Kol

;regular expression|substitutions. Delimiter is the last pipe |
[RegExpressions]
Gen|Rdz
Ex|Wj
Col|Kol
--------------------------------------------------------------------------------


-- 
<https://forum.pspad.com/read.php?2,77284,77285>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem