You are here: PSPad forum > English discussion forum > Re: The script is malfunctioning, where is the error?
Posted by: PSPad | Date: 2022-09-30 04:33 | IP: IP Logged
The script is malfunctioning, where is the error?
The script is malfunctioning, where is the error?
1 Jn 2:22
1 Jn 5:6
1 Jn 5:20
2 Jn 1:7
2 Jn 1:9
The result should be without spaces:
1Jn 2:22
1Jn 5:6
1Jn 5:20
2Jn 1:7
2Jn 1:9
;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]
\bGenesis\b|Rdz
\bExodus\b|Wj
\bLeviticus\b|Kpł
\bNumbers\b|Lb
\bDeuteronomy\b|Pwt
\bJoshua\b|Joz
\bJudges\b|Sdz
\bRuth\b|Rut
\b1 Samuel\b|1Sm
\b2 Samuel\b|2Sm
\b1 Kings\b|1Kl
\b2 Kings\b|2Kl
\b1 Chronicles\b|1Kn
\b2 Chronicles\b|2Kn
\bEzra\b|Ezd
\bNehemiah\b|Neh
\bEsther\b|Est
\bJob\b|Hi
\bPsalm\b|Ps
\bProverbs\b|Prz
\bEcclesiastes\b|Kzn
\bSong of Solomon\b|PnP
\bIsaiah\b|Iz
\bJeremiah\b|Jer
\bLamentations\b|Lam
\bEzekiel\b|Eze
\bDaniel\b|Dn
\bHosea\b|Oz
\bJoel\b|Jl
\bAmos\b|Am
\bObadiah\b|Abd
\bJonah\b|Jon
\bMicah\b|Mi
\bNahum\b|Nah
\bHabakkuk\b|Hab
\bZephaniah\b|Sof
\bHaggai\b|Ag
\bZechariah\b|Za
\bMalachi\b|Mal
\bMatthew\b|Mt
\bMark\b|Mk
\bLuke\b|Łk
\bJohn\b|Jn
\bActs\b|Dz
\bRomans\b|Rz
\b1 Corinthians\b|1Ko
\b2 Corinthians\b|2Ko
\bGalatians\b|Gal
\bEphesians\b|Ef
\bPhilippians\b|Flp
\bColossians\b|Kol
\b1 Thessalonians\b|1Ts
\b2 Thessalonians\b|2Ts
\b1 Timothy\b|1Tm
\b2 Timothy\b|2Tm
\bTitus\b|Tyt
\bPhilemon\b|Flm
\bHebrews\b|Heb
\bJames\b|Jak
\b1 Peter\b|1Pt
\b2 Peter\b|2Pt
\b1 John\b|1Jn
\b2 John\b|2Jn
\b3 John\b|3Jn
\bJude\b|Judy
\bRevelation\b|Obj
;regular expression|substitutions. Delimiter is the last pipe |
[RegExpressions]
\bGenesis\b|Rdz
\bExodus\b|Wj
\bLeviticus\b|Kpł
\bNumbers\b|Lb
\bDeuteronomy\b|Pwt
\bJoshua\b|Joz
\bJudges\b|Sdz
\bRuth\b|Rut
\b1 Samuel\b|1Sm
\b2 Samuel\b|2Sm
\b1 Kings\b|1Kl
\b2 Kings\b|2Kl
\b1 Chronicles\b|1Kn
\b2 Chronicles\b|2Kn
\bEzra\b|Ezd
\bNehemiah\b|Neh
\bEsther\b|Est
\bJob\b|Hi
\bPsalm\b|Ps
\bProverbs\b|Prz
\bEcclesiastes\b|Kzn
\bSong of Solomon\b|PnP
\bIsaiah\b|Iz
\bJeremiah\b|Jer
\bLamentations\b|Lam
\bEzekiel\b|Eze
\bDaniel\b|Dn
\bHosea\b|Oz
\bJoel\b|Jl
\bAmos\b|Am
\bObadiah\b|Abd
\bJonah\b|Jon
\bMicah\b|Mi
\bNahum\b|Nah
\bHabakkuk\b|Hab
\bZephaniah\b|Sof
\bHaggai\b|Ag
\bZechariah\b|Za
\bMalachi\b|Mal
\bMatthew\b|Mt
\bMark\b|Mk
\bLuke\b|Łk
\bJohn\b|Jn
\bActs\b|Dz
\bRomans\b|Rz
\b1 Corinthians\b|1Ko
\b2 Corinthians\b|2Ko
\bGalatians\b|Gal
\bEphesians\b|Ef
\bPhilippians\b|Flp
\bColossians\b|Kol
\b1 Thessalonians\b|1Ts
\b2 Thessalonians\b|2Ts
\b1 Timothy\b|1Tm
\b2 Timothy\b|2Tm
\bTitus\b|Tyt
\bPhilemon\b|Flm
\bHebrews\b|Heb
\bJames\b|Jak
\b1 Peter\b|1Pt
\b2 Peter\b|2Pt
\b1 John\b|1Jn
\b2 John\b|2Jn
\b3 John\b|3Jn
\bJude\b|Judy
\bRevelation\b|Obj
Posted by: pspad | Date: 2022-09-30 05:37 | IP: IP Logged
This is nonsence, because \b means whole word
\b1 Peter\b|1Pt
change it to
1 Peter|1Pt
Posted by: PSPad | Date: 2022-09-30 06:25 | IP: IP Logged
"\b"
Is it redundant everywhere?
I still have a space in the result.
Edited 2 time(s). Last edit at 2022-09-30 06:29 by PSPad.
Posted by: pspad | Date: 2022-09-30 07:23 | IP: IP Logged
expressions are executed in order given by your definition file. You have to change order of lines:
1 John|1Jn
2 John|2Jn
3 John|3Jn
\bJohn\b|Jn
Edited 1 time(s). Last edit at 2022-09-30 07:23 by pspad.
Posted by: PSPad | Date: 2022-09-30 07:43 | IP: IP Logged
ok
Edited 1 time(s). Last edit at 2022-09-30 07:43 by PSPad.
Posted by: Andreas | Date: 2022-10-02 20:09 | IP: IP Logged
Jan, please give PSPad another username, thank you.
Posted by: pspad | Date: 2022-10-03 06:17 | IP: IP Logged
I can't rename it, but I can block it and let him base new address. Done.
his email is free for new registration
Posted by: Andreas | Date: 2022-10-04 20:21 | IP: IP Logged
Thank you
Posted by: Andreas | Date: 2022-11-22 14:46 | IP: IP Logged
Hi Jan, you deleted the post from PSPad (not pspad, that's you), but I don't think that was necessary.
Hello PSPad (not pspad, because that's Jan), it wasn't about you doing something illegal or violating the forum rules or any statutes. Nor was it about justice, rules, regulations, or a violation.
It was just to make life easier for us here. pspad is the developer and has been answering every question we have for decades. It is important for us to see that pspad answers our questions.
pspad simply failed here to lock usernames like PspAd, PspAD, PSpaD, PsPAd, PsPad, pSPaD, PSpAD, pSPAD, pspaD, PSpAd, PsPaD, psPaD, pSPad, psPad, psPAd, psPAD, pSpAd, PSPAd, PsPAD, pspAD, PSPaD, PspaD, pspAd, PSpad, pSPAd, pSpaD, Pspad, pSpad, PSPAD, PSPad and pSpAD. It would be enough if upper and lower case were not taken into account.
Editor PSPad - freeware editor, © 2001 - 2025 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR