0
820 次浏览

Footnote callers should have a space after them (or before if the caller comes ahead of what it refers to, ESV-style). Is there a PT automatic check that will flag the case where the translator forgets to type that space?

较早的帖子 - 以原始语言显示
Paratext (1.4k 分) 发布 | 820 次浏览

2 个回答

0
最佳答案

I don’t believe there is an automatic check built into Paratext. This is
the kind of thing i use Regular Expressions to look for. A simple check for
no space might look like:

regex:\\[fx]\*[^\s]

This should find as a regular expression any \f* or \x* followed by
something that is not a space.

anon848905
Americas Area Language Technology Coordinator
[Email Removed]
[Phone Removed]Office at JAARS)
[Phone Removed]Cell)
Skype name: anon848905

较早的帖子 - 以原始语言显示
(9.9k 分) 发布
已重新显示

Did you mean:

regex:[fx]\*[^\s]

?

较早的帖子 - 以原始语言显示

No, I meant: (and in my sent items it show)

two backslashes before the [fx] and a backslash before the *

For some reason it got clobbered before it came out. This appears to be a problem with the way the Supporters site handles html. You actually have to double escape characters to get the to work correctly in the output. So what would need to be written in an email is:
regex:\\\\[fx]\\*[^\s]

anon848905
Americas Area Language Technology Coordinator
[Email Removed]
[Phone Removed]Office at JAARS)
[Phone Removed]Cell)
Skype name: anon848905

较早的帖子 - 以原始语言显示

This worked best for me:

regex:\\[fx]\*[^»“\)\]\}\-\s]

(where » and “ are the two types of close quotes we use in our language.)

The above finds callers that are definitely in the wrong place. Then I recheck the ones before close quotes, which may or may not be correct.

较早的帖子 - 以原始语言显示

@anon848905, if you put four spaces at the start of a line and a blank line before, it will be indented and formatted monospaced … plus, all backslashes are treated as literal backslashes, removing the need to double escape them.

较早的帖子 - 以原始语言显示

Oh, and this works nicely, particularly in RegEx Pal, to highlight the whole footnote, but not the punctuation or other character that follows:

\\f .*\\[fx]\*(?![\)\]\}»“\-\s])
较早的帖子 - 以原始语言显示

You might want to use this:

\\(f|x) .*?\\\1\*(?![\)\]\}»“\-\s])

\\(f|x) Look for footnotes or cross references
.*? “Non-greedy” (i.e. “match as little as possible”) for cases where there’s more than one footnote/cross ref per verse
\\ A backslash
\1 Either an f or an x
\*(?![\)\]\}»“\-\s]) Same as your expression

较早的帖子 - 以原始语言显示

Thanks. You added the professional touch!

较早的帖子 - 以原始语言显示
0

If you found this topic interesting, then also see this thread.

较早的帖子 - 以原始语言显示
(1.4k 分) 发布

相关问题

0
1 个回答 532 次浏览
(Also see this thread.) Most publications that I read in English (including English Wikipedia) put footnote callers outside ... regex for it, I'll add it to this thread.
wdavidhj 1.4k 发布 提问于 六月 26, 2017
0
1 个回答 244 次浏览
在起始标记后输入的字符决定了正文中将使用哪种引导符 在 无格式 (Unformatted)视图中,您可以在初始起始标记后输入您选择的字符(前面需加一个空格) 两个示例: \x - \xo 1:3 \xt 或 \x # \xo ... 脚注中使用 + 字符 当您在 标准 格式化 或 预览 (Preview)视图中查看文本时,将显示您定义的字符
[Expert]
anon421222
735 发布
提问于 二月 23, 2017
0
2 个回答 94 次浏览
大家好, 我正在处理一个项目,之前所有脚注标记都是手动添加的 现在,我们开始尝试使用 "/f +" 来标记脚注,以自动生成脚注标记 但是,我们在发布时希望脚注标记序列能按书重新开始 我在 Ptxprint 中尝试多卷出版 ... 新从 "a" 开始 text 我是刚开始研究 Ptxprint 和发布相关内容的,所以可能只是我遗漏了什么 谢谢, Aaron
PecanMango 112 发布 提问于 十一月 6, 2024
0
2 个回答 57 次浏览
我一定是把脚注标记的默认位置改成了放在所选文本的开头。 我该如何改回来,让它们出现在所选文本的末尾? 而且现在我在被引用条目的开头和末尾都有标记,我该如何调整? 有没有比手动移动更简单的方法?
PeterK 119 发布 提问于 五月 5, 2025
0
2 个回答 536 次浏览
当我将脚注调用者更改为自动生成的调用者时,在“Basic Checks”中出现了错误。我肯定只是遗漏了某个设置,但我似乎找不到在哪里!
anon928451 127 发布 提问于 二月 13, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And over all these virtues put on love, which binds them all together in perfect unity.
Colossians 3:14
3,047 个问题
6,007 个回答
5,672 条评论
2,027 位用户