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.9k 分) 发布

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* 但这会生成一个 无效的额外材料 (Invalid extra material)错误 有趣的是,章节列表是有效的: \xt 1 ... 章: \xt 1:16-2:12|MRK 1-2\xt* 但不行,它也生成了一个 无效的额外材料 错误☐☐
Kent Spielmann 1.8k 发布 提问于 七月 7, 2022
0
1 个回答 146 次浏览
这一点在英文中有所提及,但似乎在其他语言中也同样适用 主 (Lord)在希伯来语中指 Adonay;在 NIV 译本中, LORD 指希伯来语的 Yahweh Yahweh 在文本中渲染为 \nd 主\nd* 它在文本中要么 ... 为对照文本,并在视觉上看到 LORD 而不是 主 (Lord),或者看到 \nd 主\nd* 而不是 主 (Lord)?
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
Paratext
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Finally, all of you, be like-minded, be sympathetic, love one another, be compassionate and humble.
1 Peter 3:8
3,051 个问题
6,010 个回答
5,675 条评论
2,030 位用户