0 голосов
319 просмотров

I have a question about \nd ‘name of Deity’. In USFM 2.4 (p. 53) the syntax is:

\nd_…\nd*

If for some reason there is no space following the opening \nd, and I type the closing marker, like:

\ndManeka\nd*

ParaTExt rightly flags it red. If I then add a space preceding the name, ParaTExt automatically adds a space following the name, like:

\nd_…_\nd*

My inclination is to add a space after the closing marker \nd*, but if I do so there are now two spaces following the ‘name of Deity’–one automatically added inside the markup boundaries and one added by me.

Is this behaviour (i.e., automatically adding a space following a word within marker boundaries) expected?

Старое сообщение — показано на исходном языке
Paratext от (642 очков) | 319 просмотров

2 Ответов

0 голосов
Лучший ответ

Because \ndManeka is not a valid marker it gets flagged. There should automatically be a space added in front of the \nd* because it is a valid marker and gets separated from the bad marker.

In order to pull the \nd* back I would suggest searching for space \nd* and replacing with no-space \nd* (rather than the entire phrase).

I would be careful adding a space after the \nd* because there could be punctuation so you end up with \nd* . (or some other punctuation). However, if there is no space then you end up with the word being concatenated to the following word.

Here you could use a regular expression in the find and do something like the following:
Find=regex:\s\nd*(?=\p{L})
Replace=\nd*

(Add a space after the \nd* in the replace) This looks for a space followed by \nd* and no-space and a letter. It then replaces it with no-space \nd* and a space.

Paratext adds spaces in some what seem like strange ways. If you have double clicked on a word then generally the space is included and so if you add the \nd…\nd* markers then the space gets included before the \nd*. To avoid this you should select only the word to be marked.

As to the expression not being found in the search, I’m guessing that it could have to do with extra spaces around the expression or another setting in the search window - I tried a similar search and it worked fine.

Старое сообщение — показано на исходном языке
от (9,9тыс. очков)

Thanks anon848905. That’s some very helpful information.

Старое сообщение — показано на исходном языке
0 голосов

Just to add a bit more info:

  • if I try to Find/Replace \nd Maneka \nd* (in order to replace it with \nd Maneka\nd*) there are “No matches found” (even though I select \nd Maneka \nd* in the text and press CTRL + H, and the string \nd Maneka \nd* appears in the Find What box)
  • I’m using View > Standard
Старое сообщение — показано на исходном языке
от (642 очков)

Похожие вопросы

0 голосов
0 ответов 59 просмотров
Существуют ли уже средства подсветки синтаксиса для USFM? Они могут быть в форме сопоставления по шаблонам ... бы обеспечить эту функциональность в других редакторах USFM.
Mercado 203 задал вопрос окт 24, 2024
0 голосов
2 ответов 528 просмотров
Я пытаюсь создать ссылку на диапазон глав вот так: \xt 1:16-2:12|MRK 1:16-2:12\xt* Но это вызывает ошибку ... 2\xt* Но нет, он тоже вызвал ошибку Invalid extra material ☐☐
Kent Spielmann 1,8тыс. задал вопрос июл 7, 2022
0 голосов
1 ответ 146 просмотров
Об этом упоминается на английском, но, похоже, это верно и для других языков. Господь (Lord) относится к Адонай на иврите ... Господь или \nd Господь\nd* вместо Господь ?
Peggy Connett 214 задал вопрос фев 3
0 голосов
2 ответов 435 просмотров
The /ip marker is used in book introductions in the Good News Version. In Deuteronomy, the /ip marker is registering an error ... to keep that marker in the text. What can be done?
anon142050 118 задал вопрос апр 17, 2019
+1 голос
0 ответов 167 просмотров
Hi, in Romani, assuming we're using Rai for the name of the LORD (doesn't always work), then \nd Rai\nd*esko ... tell Paratext's spell checker that \nd* doesn't terminate the word?
anon542642 294 задал вопрос фев 4, 2019
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Dear friends, since God so loved us, we also ought to love one another.
1 John 4:11
3,051 вопросов
6,010 ответов
5,675 комментариев
2,030 пользователей