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

Our project has a set of autocorrect rules for converting straight double-quotes to curly double-quotes. First there’s a set of rules that takes care of openers, then a single “elsewhere” rule to convert the rest to closers. (This way we don’t have to specify all the contexts where a closer might occur.) It’s a beautiful solution EXCEPT:

I sometimes need to find all occurrences of straight double quotes so I can manually fix them. However, since autocorrect targets text typed into the find and replace fields, there’s no way to search for straight quotes (without editing the autocorrect file before and after).

Any ideas for a simpler solution? Could there be an option in the Find-Replace dialog that lets you “disable autocorrect”?

Thanks!

[Follow-up: If I disable the rule then run the search on a straight quote character, then re-enable the rule and reopen PT, the straight quote remains in the search history and I can select it and search without it’s converting into a curly.]

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

5 Ответов

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

I suggest you do a regular expressions search (regex). The basic process is described in Help:

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

I’ve bumped into this as well. One solution might be to open
Character Map and copy the straight-quote character from there.
Another solution, if you can remember the Unicode code point for
double quote (0022; 0027 is apostrophe-single quote), is to type
these four digits into Paratext, then without moving the cursor type
. This will toggle between showing a character vs. its
Unicode value. It works for me in both Paratext 8 and 9, in both a
text window and the Find/Replace box.

In Paratext Help see: How do I find out the Unicode value of a
character? This solution uses this hint in reverse to enter a
character via its Unicode value.

It also works in LibreOffice when entering text, but not in the Find
or Replace dialogs (at least, not for me in LO Writer 6.3, Linux
version).

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

Yikes! Somehow Thunderbird rendered my angle-bracketed “alt-x” as hidden
or something.
In Paratext or LibreOffice you type “alt-x”(without the quotes) to
toggle between
viewing a character and its Unicode value.

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

Thanks! This is all I need.

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

What about doing it in RegExPal? Does Autocorrect apply there also?

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

Autocorrect does not interfere with RegEx pal. So that’s another option (though a dangerous one when I’m in a hurry!).

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

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

0 голосов
2 ответов 49 просмотров
Иногда мне нужно внести изменения в файл AutoCorrect (или создать его), и я не знаю, как это сделать. ... отредактировать файл AutoCorrect.txt? Один из ответов приведен ниже!
Phil_Leckrone 9,9тыс. задал вопрос июн 4
0 голосов
2 ответов 71 просмотров
Я пытаюсь настроить файл autocorrect.txt в проекте Paratext 9.5. Я следовал инструкциям в файлах справки Paratext. Похоже, что он вообще не работает. Что могло пойти не так?
anon399461 123 задал вопрос май 8
0 голосов
1 ответ 222 просмотров
В недавно созданном проекте USFM 3 я пытаюсь разместить якоря в тексте, а затем создать на них ссылки с именованными целями, следуя ... него). Есть ли идеи, что я делаю не так? .
drwww 448 задал вопрос янв 23, 2021
0 голосов
3 ответов 563 просмотров
Недавно два консультанта выразили желание иметь возможность использовать эмодзи в заметках проекта, поскольку люди привыкли ... \u перед каждым кодом в файле автозамены)
[Expert]
sewhite
3,3тыс.
задал вопрос июн 22, 2022
0 голосов
2 ответов 259 просмотров
Как и Ивер, я никогда не использовал RegEx. У меня есть команда, которая изменила формат своих перекрёстных ссылок, ... курсы или онлайн-сессии EMDC по RegEx? Спасибо, anon928451
anon928451 127 задал вопрос сен 21, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Live in harmony with one another. Do not be proud, but be willing to associate with people of low position. Do not be conceited.
Romans 12:16
3,045 вопросов
6,005 ответов
5,671 комментариев
2,026 пользователей