0 वोट
636 व्यूज़

Continuing the discussion from Expressions for RegEx Pal:

This is still happening. If I enter:

image

… and save it, it doesn’t work. I saved twice, then thought that maybe I had to actually use the Replace first, so I did that and saved again. The lines in userMenu.txt are:

test 2016je16#r#знд
test 2016je16-1#r#знд
test 2016je16-2#r#знд

BTW, “знд” was a Find that I had done not long before.

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है
Paratext में द्वारा (1.4k अंक) | 636 व्यूज़

1 उत्तर

0 वोट
सर्वोत्तम उत्तर

Looking at the code, it looks like it won’t work correctly unless it actually finds something to replace.

I’ve written it up so it should be fixed “soon” (hopefully in 7.6).

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है
द्वारा [Expert]
(16.7k अंक)

[Edited.]

I chose a replacement for which the find text really exists in the text:

image

… and saved it. It still saves as a Find, not a Replace, and with a previous Find string:

Replace in \vp en dash → em dash#f#\\vp [\d–]+\s*\\vp\*

(That string was from when I was testing my Find regex with Pal set to Find, not Replace.)

I did another test where I actually did a Replace ⇒ Yes to All, then saved, but with exactly the same result.

I think I’ll stop obsessing over it now, and wait till it’s fixed …

… but I’m intrigued: how did you, @anon291708, add your regexes to the list? Or did you just type up the file manually?

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

It used to work quite some time ago. Not sure what has happened to cause
it to always fail. Knowing this I go ahead and

  • create the find/replace in /RegExPal/
  • add it to the usermenu
  • copy the replace expression from /RegExPal/
  • edit the usermenu.txt file
  • go to the bottom of the file where the new menu item has been added
  • add the # at the end of the line
  • paste the copied replace expression after that just added #
  • change the #f# earlier in the line to #r#.

Just note that any changes to the menu outside of /RegExPal/ are not
reflected immediately. You need to close and then reopen /RegExPal/.

D anon467281

Global Publishing Services
Scripture Typesetting trainer & Regular Expression "specialist"
Dallas, TX

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

Thanks. [Padding to make post more than 20 chars.]

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

I just took a quick look at the code to see what was probably happening. And for me, it does save it correctly after clicking on find and it finds something. I’m not sure why it’s not working for you.

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

I’m doing a replace and the replace does not get captured. Is there a
way to let adding to the menu know that you are adding a replace? Or am
I missing something?

D anon467281

Global Publishing Services
Scripture Typesetting trainer & Regular Expression "specialist"
Dallas, TX

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

Sorry if I wasn’t clear, this is what I was talking about. If you click on First (I incorrectly said “Find”) and it actually finds something, that seems to be the trigger to let it be properly saved (at least for me).

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

I did the replace and selected first to match on the first find to
replace. When I add to menu I do get the #csd# followed by the find.
However, the # followed by the replace is not included.

This is my add to menu entry#csd#(\d+[.:][\dabc]+(,
?)?[\dabc])\s[\p{Pd}]+\s*(\d+[.:]\d)

should have been

This is my add to menu entry#csd#(\d+[.:][\dabc]+(,
?)?[\dabc])\s[\p{Pd}]+\s*(\d+[.:]\d)#\1\u2013\3

D anon467281

Global Publishing Services
Scripture Typesetting trainer & Regular Expression "specialist"
Dallas, TX

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

So each of us three sees different behaviour! I was also clicking Find in my later tests above.

पुराना पोस्ट - इसकी मूल भाषा में दिखाया जा रहा है

संबंधित प्रश्न

0 वोट
3 उत्तर 307 व्यूज़
Hi, Does anyone know how I can find anywhere in my PT project where there are two quotes within the same paragraph? I can ... and they asked, ** **Is Peter here? Thanks in advance
anon953007 213 पूछा गया सितंबर 9, 2020
0 वोट
1 उत्तर 282 व्यूज़
I have a test project that I've been using to test various Paratext 8 features. A while ago I took a look at the Project ... just be a test plan, over to our group base plan'?
MSEAIT_LT 478 पूछा गया मार्च 13, 2017
Paratext में
0 वोट
0 उत्तर 135 व्यूज़
This is a test message to see if it is still possible to send a message to the Supporters website. Please delete ... ]Office at JAARS) [Phone Removed]Cell) Skype name: anon848905
Phil_Leckrone 9.9k पूछा गया जनवरी 23, 2017
0 वोट
3 उत्तर 446 व्यूज़
मैं कस्टम टूल Insert crossreferences or footnotes का उपयोग करके प्रोजेक्ट में चित्रों के व्यंजनों (\fig \fig*) के ... ) में सम्मिलित करने का कोई बेहतर तरीका है? Paulus+Kieviet
Paulus Kieviet 517 पूछा गया जनवरी 25, 2023
0 वोट
10 उत्तर 2.2k व्यूज़
Is there are way to get the expressions on the User menu in RegEx Pal as a text file? The list of user ... . The latter could help us build a library of useful expressions.
wdavidhj 1.4k पूछा गया सितंबर 10, 2015
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For just as each of us has one body with many members, and these members do not all have the same function, so in Christ we, though many, form one body, and each member belongs to all the others.
Romans 12:4-5
3,047 प्रश्न
6,007 उत्तर
5,671 टिप्पणियाँ
2,027 उपयोगकर्ता