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

We have a spelling error pattern that seems like there should be an easier way to find them for us to correct, but the interaction of Spelling status with Number settings and Punctuation inventory is making this error elusive.

We are spelling cardinal numbers with the pattern 1pla and not 1-pla. But we are not able to easily find all the places to correct the 1-pla pattern.

Here are our number settings (indicating the cardinal number pattern within the ordinal number field since that is the field where any suffix on a numeral is specified)…
image

In the Wordlist, only pla appears as a word and not the correctly spelled 1pla or the incorrectly spelled 1-pla. In addition, when a word is spelled out and we mark it as incorrect in order to change it to the 1pla pattern, an error message informs us that 1pla is not a valid word. But that’s how ordinal numbers are allowed in the Number Settings.

In the Character inventory the hyphen is marked as a valid character because it is a valid character in other words.

The hyphen is also marked as a valid character in the Punctuation inventory because it is a valid character in certain contexts.

In Language Settings, nothing is defined for word-medial punctuation.

It seems like there should be an easy way to find all the instances of words in the pattern of 1-pla and mark them as incorrect and change them to 1pla, but I don’t see a way.

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

4 Ответов

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

The other respondents have given you the best ways to change all the errors you currently have … but they haven’t answered your question as to why these and any future errors are not being flagged based on the choices in the Number Settings dialog box: the answer is that these choices do not generate spelling errors.

Instead, they are used for the Numbers check: Checking menu ➢ Run Basic Checks…; tick (check) the box next to Numbers (untick the other boxes), choose the range of books/chapters you want to check, and click OK.

You should get a list of numbers that don’t match the patterns you chose as valid.

Extra:

You should probably remove “st nd rd th” from the “Ordinal” settings.

As you point out, “ordinal” is a rather Anglo-centric name for this field. One of the languages I work with has a suffix for “count numbers” – like “one of …”, “two of …”, etc.

You might consider changing the hyphen characters in Initial punctuation and Medial punctuation to a minus (−) (U+2212) and an en dash (–) (U+2013), respectively, since those are the standards used by many publishers – particularly for minus. Then you’d need to include them on your keyboard, e.g. on RightAlt+hyphen. This is what I’ve done for the projects I support – you can see that I’m happily typing en dashes as punctuation in this post :grinning:.

On the other hand, the traditional way to handle nice formatting is at publication time.

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

Have you tried using RegExPal? If that doesn’t let you search for
“1-pla” or perhaps “1-pla”, if you temporarily remove the hyphens
from the punctuation in this Number Settings box can you then use
the Replace dialog?

  I haven't checked these suggestions out, but I would try them if

I had this problem.

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

One of these days, I’ll encounter enough problems where RegExPal would be helpful that I’ll finally venture into that area and learn to use it. :smiley:

Temporarily “removing” the hyphens from the punctuation in the Number Settings box helped, but I also had to do two other things. I had to add the hyphen as word-medial punctuation in the Language Settings, and I had to add all the numerals as alphabetic characters in the Language Settings. Now when I search for 1-pla in the Wordlist, it is found, and I can mark it as incorrect and add the correct spelling as 1pla.

Another solution I found was that I can use Find and Replace to look for -pla at the end of words and replace with pla. I could do that without changing those settings above. Maybe that would be better, because now I’m not sure if the Numbers check will work now that the numerals are defined as alphabetic characters.

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

I realise that RegExPal is certainly not a tool for everyone, and it takes “a little bit more than average” skill to use regular expressions. But, you can actually use regular expressions in the normal Paratext Find… dialog box without having to venture into using RegExPal itself.
To do so, just put regex: on the front of the pattern to be searched for. Note that you cannot use regex in the replace box.

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

I don’t think these changes that you’ve made are recommended … though I think the Numbers check will still work, as I believe it ignores the Alphabetic Characters table, and checks all the numbers it finds anyway … though I might be wrong!

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

I think you could find all the N-pla words by doing a search for -pla. Maybe search for -pla and replace with pla.

Старое сообщение — показано на исходном языке
от [Expert]
(3,3тыс. очков)
0 голосов

In the regular find box put:
regex:\d+-pla\b

You can also do a replace
Find:
regex:(?<=\d+)-pla\b
Replace:
pla

I would also remove the English ordinal suffixes from your Number settings.

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

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

0 голосов
1 ответ 110 просмотров
У меня возникает ошибка с пунктуацией в середине в числах во вступлениях к книгам для диапазонов чисел, таких как: ( ... игнорировать ошибку, но мне нравится, когда она решается:)
Clear7419 251 задал вопрос окт 3, 2024
0 голосов
1 ответ 252 просмотров
In the past couple of days I have identified some weird interactions between a Keyman keyboard and Paratext 8. If I open a ... in all cases it is 8.0.100.33. Any thoughts?
jeffh 1,4тыс. задал вопрос ноя 7, 2017
0 голосов
1 ответ 54 просмотров
Я создал вспомогательный проект, в котором будет работать новый МТТ. В рамках его обучения я хочу, чтобы он проверял первый ... есть лучший способ сделать то, что я хочу? Спасибо.
Kirk 123 задал вопрос май 8, 2025
0 голосов
1 ответ 227 просмотров
Я ищу простой способ помочь индонезийским командам проверить орфографию их обратной транслитерации, чтобы её было легче ... галочки всем остальным словам, уйдёт много времени.
janetoruh 102 задал вопрос янв 17, 2025
0 голосов
2 ответов 237 просмотров
Я хочу, чтобы дочерние проекты имели те же одобренные варианты написания и одобренные переводы, что и родительский проект.
JeffSHR 110 задал вопрос авг 15, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Give proper recognition to those widows who are really in need.
1 Timothy 5:3
3,045 вопросов
6,005 ответов
5,671 комментариев
2,026 пользователей