• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Search and replace for an absence

Engaged ,
Jul 13, 2024 Jul 13, 2024

Copy link to clipboard

Copied

I am editing a book with a lot of speech in the text and so a lot of  double quotes. The scan has missed a large number of full stops at the end of sentences. So it might end "...and there the matter rested"

What I want to do is search for every double right quotation mark that is not preceded by a full stop and replace it with full stop plus double right quotation mark. Is there some clever, possibly GREP way to do that or do I have to search every sentence?

TOPICS
EPUB , How to , Type

Views

179

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 13, 2024 Jul 13, 2024

GREP will handle this just fine.

 

Wait, though — the solution I posted and you probably got in email isn't correct. Give me a minute to correct the GREP string.

ETA: See corrected string in next post.

Votes

Translate

Translate
Community Expert ,
Jul 13, 2024 Jul 13, 2024

Copy link to clipboard

Copied

GREP will handle this just fine.

 

Wait, though — the solution I posted and you probably got in email isn't correct. Give me a minute to correct the GREP string.

ETA: See corrected string in next post.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 13, 2024 Jul 13, 2024

Copy link to clipboard

Copied

Thank so much for that clever but simple solution without GREP - and I will make a note of the GREP solution as  well. I just love this community!!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2024 Jul 13, 2024

Copy link to clipboard

Copied

Sorry, I jumped into this without enough coffee. This GREP F/R should do exactly what you need:

JamesGiffordNitroPress_1-1720890534552.png

 

That actually uses exactly what you supposed: a "lookbehind" to see if the character/s before the target exist. This looks for a letter ahead of the closing quote, and if it finds it, replaces the quote with a quote-period.

 

Full stop. 🙂


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 13, 2024 Jul 13, 2024

Copy link to clipboard

Copied

LATEST

Fantastic! Really helpful. I'm not a GREP guru. Thank you so much. Am I allowed 2 correct answers?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines