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

How to find duplicate paragraphs?

Participant ,
Mar 11, 2021 Mar 11, 2021

For example, identical text in footnotes need to be styled as Ibid.

In this case, they are consecutive.*
How to get them? Thanks

 

BVC. Annual Report. December /1916

BVC. Annual Report. December /1916

BVC. Annual Report. December /1916

 

* Also, it is possible to find them in diffent locations?

TOPICS
How to
2.3K
Translate
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

Guide , Mar 12, 2021 Mar 12, 2021

… Or, without taking in account a "last" carriage-return:

 

Find:  ^((.+)\r)\1*\2

Replace by:  $2

 

[surely very tired for writing such a grep code! Time to go to sleep!  =D ]

 

(^/)

Translate
Community Expert ,
Mar 11, 2021 Mar 11, 2021

Perhaps I'm not understanding, but you can do it with Edit > Find/Change as shown below. I set "Ibid" to italic by using the Change Format category. The ^p metacharacter stands for End of Paragraph and can be chosen from the @ menu.

 

Screen Shot 2021-03-11 at 12.09.00 PM.pngexpand image

Translate
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 ,
Mar 11, 2021 Mar 11, 2021

To answer your other question, the instances do not have to be consecutive.

Translate
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
Enthusiast ,
Mar 11, 2021 Mar 11, 2021

Steve

Why italics for Ibid.?

Translate
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 ,
Mar 11, 2021 Mar 11, 2021

I'm not an expert. "Ibid" is an abbreviation for the Latin word ibīdem, meaning "in the same place", commonly used in an endnote, footnote, bibliographycitation, or scholarly reference to refer to the source cited in the preceding note or list item.

 

When I was reading books like this "ibid" was italicized because it's based on Latin. However, the Wikipedia entry says "Some academic publishers now prefer that "ibid." not be italicised, as it is a commonly found term." I included it so I could show how you could use Find/Change to change the word to italics.

Translate
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
Enthusiast ,
Mar 11, 2021 Mar 11, 2021

No problem Steve I agree it used to be italicized but normal practise is to not italicize it. The Chicago style guide says:

If you consecutively cite the same source two or more times in a note (complete or shortened), you may use the word “Ibid” instead. Ibid is short for the Latin ibidem, which means “in the same place”. If you’re referencing the same source but different page, follow ‘Ibid’ with a comma and the new page number(s).

Examples

          1. Newton N. Minow and Craig L. LaMay, Inside the Presidential Debates: Their Improbable Past and Promising Future (Chicago: University of Chicago Press, 2008), 24-25.

          2. Minow and LaMay, Presidential Debates, 24-25.

          3. Ibid.

          4. Ibid, 28-30.

Translate
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
Participant ,
Mar 11, 2021 Mar 11, 2021

Hi. This is not a post about editing...
Chicago, Oxford, Cambridge have guides.

Here is a problem to find duplicates...

Translate
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
Participant ,
Mar 11, 2021 Mar 11, 2021

Steve:

The idea is to identify with grep those identical and consecutive entries (not visually, as we have 516 footnotes) to replace those consecutively repeated (no matter is it is ibid. ibidem, op, cit, etc...)

 

Thanks.

Translate
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 ,
Mar 11, 2021 Mar 11, 2021

Sorry, that wasn't clear in your original posting. I'm not a GREP expert so others may have to step in to help you.

 

Translate
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
Participant ,
Mar 11, 2021 Mar 11, 2021

Yes, sorry.

Word has a script to do this. But I would like to work it in ID.

 

Thanks

Translate
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 ,
Mar 12, 2021 Mar 12, 2021

^(.+\r)\1

That should do it.

 

But - I am having mixed results, for example on the ME version on the Mac it finds differently.

On the English version on my PC it finds differently.

 

How odd? 

Translate
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
Participant ,
Mar 12, 2021 Mar 12, 2021

No, it doesn'work. It stops after the first finding.
Thanks.

 

 

Screen Shot 2021-03-12 at 3.41.04 PM.pngexpand image

Translate
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
Guide ,
Mar 12, 2021 Mar 12, 2021

Adding a carriage-return at the end of the last para (if not):

 

Find:  ^(.+\r)\1+

Replace by:  $1

 

(^/)  The Jedi

Translate
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
Guide ,
Mar 12, 2021 Mar 12, 2021

… Or, without taking in account a "last" carriage-return:

 

Find:  ^((.+)\r)\1*\2

Replace by:  $2

 

[surely very tired for writing such a grep code! Time to go to sleep!  =D ]

 

(^/)

Translate
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
Participant ,
Mar 12, 2021 Mar 12, 2021
LATEST

Again I am writing the defense of your correct answer as it seems is lost.
A little make-up was enough to achieve a perfect solution.

Thanks for your time, interest and real solution. 

 

 

Untitled-3.jpgexpand image

 

 

Untitled-32.jpgexpand image

  

Translate
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