Footnotes in Document Comparison

%3CLINGO-SUB%20id%3D%22lingo-sub-2297664%22%20slang%3D%22en-US%22%3EFootnotes%20in%20Document%20Comparison%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2297664%22%20slang%3D%22en-US%22%3E%3CP%3EI%20recently%20encountered%20this%20issue%20and%20I%20am%20hoping%20someone%20can%20point%20me%20to%20a%20very%20detailed%20documentation%20of%20how%20footnotes%20function%20in%20Word.%26nbsp%3B%20Here%20was%20the%20problem%3A%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20comparing%20documents%2C%20footnotes%20at%20times%20show%20as%20fully%20removed%20and%20then%20reinserted.%26nbsp%3B%20In%20the%20%3CU%3E%3CEM%3Emodified%3C%2FEM%3E%3C%2FU%3E%20document%20a%20new%20footnote%201%20was%20added.%26nbsp%3B%20This%20pushes%20all%20the%20other%20footnotes%20up%20by%20one%20count.%26nbsp%3B%20Most%20of%20them%20showed%20as%20they%20should%2C%20with%20only%20the%20old%20footnote%20reference%20being%20removed%20and%20the%20new%20number%20being%20inserted%2C%20but%20the%20text%20of%20the%20note%20showing%20no%20changes.%26nbsp%3B%20However%2C%20a%20few%20of%20them%20showed%20up%20as%20fully%20removed%20and%20reinserted%20(so%2C%20what%20was%20footnote%203%20is%20now%204%2C%20but%20the%20text%20is%20the%20same%20so%20only%20the%20number%20should%20show%20changing--but%20instead%20the%20whole%20note%203%20shows%20as%20a%20deletion%2C%20and%20the%20whole%20note%204%20shows%20as%20an%20insertion).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20understand%20why%20this%20would%20happen.%26nbsp%3B%20I%20took%20the%20footnotes.xml%20file%20out%20of%20the%20archive%20to%20look%20at%20it%2C%20but%20I%20am%20still%20learning%20where%20that%20is%20concerned.%20I%20could%20not%20identify%20anything%20that%20might%20cause%20this%20problem.%26nbsp%3B%20Something%20about%20how%20footnotes%20are%20identified%2Flinked%20to%20the%20paragraph%20that%20anchors%20them%20is%20the%20cause--but%20I%20don't%20know%20anything%20about%20how%20that%20works.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20resources%20that%20are%20detailed%20I%20could%20use%20to%20research%20the%20footnote%20function%20in-depth%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2300927%22%20slang%3D%22en-US%22%3ERe%3A%20Footnotes%20in%20Document%20Comparison%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2300927%22%20slang%3D%22en-US%22%3EHello%20Rich89%2C%3CBR%20%2F%3Ethe%20only%20(and%20usual)%20time%20I%20see%20what%20you%20describe%20is%20when%20the%20deleted%2F(re)inserted%20is%20is%20actually%20a%20field%2C%20or%20when%20the%20style%20changes.%20Then%20the%20text%20in%20old%20style%20gets%20%22deleted%22%20and%20%22inserted%22%20as%20if%20it%20was%20a%20new%20text.%3CBR%20%2F%3EMight%20it%20help%20to%20remove%20the%20formatting%20option%20before%20doing%20the%20comparison%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2301127%22%20slang%3D%22en-US%22%3ERe%3A%20Footnotes%20in%20Document%20Comparison%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301127%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20able%20to%20replicate%20the%20problem%20by%20making%20a%20document%20where%20I%20add%20a%20new%20footnote%201%2C%20forcing%20what%20was%201%20to%202%2C%20deleting%20the%20paragraph%20housing%20the%20original%20footnote%2C%20and%20moving%20that%20footnote%20to%20a%20new%20paragraph%20where%20there%20are%20no%20similarities%20to%20the%20original%20paragraph.%26nbsp%3B%20I%20did%20this%20without%20changing%20any%20styles.%26nbsp%3B%20I'll%20attach%20something%20here%20so%20you%20can%20see%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20find%20interesting%2C%20and%20not%20ideal%2C%20is%20that%20if%20the%20new%20paragraph%20in%20the%20MODIFIED%20has%20any%20matching%20word%20to%20the%20ORIGINAL%20paragraph%2C%20then%20that%20will%20resolve%20this%20issue.%26nbsp%3B%20For%20example%2C%20do%20a%20comparison%20using%20my%20attached%20documents%20here.%26nbsp%3B%20You'll%20see%20that%20the%20footnote%202%20doesn't%20show%20as%20changing%20from%201%20to%202.%26nbsp%3B%20Now%2C%20open%20MODIFIED%20and%20remove%20%22Test%22%20from%20the%20end%20of%20the%20second%20paragraph%2C%20and%20the%20problem%20I%20describe%20in%20my%20post%20will%20appear%20in%20the%20comparison.%26nbsp%3B%20Interestingly%2C%20you%20can%20also%20leave%20the%20word%20%22Test%22%20but%20just%20make%20the%20'T'%20lowercase%2C%20and%20this%20will%20also%20trigger%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20want%20to%20understand%20is%20why%20this%20happens.%26nbsp%3B%20I%20now%20know%20that%20if%20the%20text%20of%20the%20paragraph%20changes%2C%20then%20the%20footnote%20will%20show%20as%20being%20deleted%20and%20reinserted.%20I%20want%20to%20see%20some%20documentation%20I%20can%20read%20that%20will%20help%20me%20learn%20why%20it%20behaves%20this%20way%20because%20this%20is%20an%20accuracy%20issue.%26nbsp%3B%20That%20footnote%20was%20never%20deleted%2C%20so%20it%20should%20not%20s%20how%20as%20having%20been%20deleted.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F950286%22%20target%3D%22_blank%22%3E%40Lenka_Kerumova%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305856%22%20slang%3D%22en-US%22%3ERe%3A%20Footnotes%20in%20Document%20Comparison%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305856%22%20slang%3D%22en-US%22%3EI%20hear%20you%20%3A-).%3CBR%20%2F%3EThe%20why's%20are%20important.%3CBR%20%2F%3E%3CBR%20%2F%3EWell%2C%20this%20is%20a%20question%20for%20an%20MS%20developer.%20Eager%20to%20read%20the%20answer%2C%20as%20I%20have%20a%20couple%20of%20why's%20myself.%20L.%3C%2FLINGO-BODY%3E
Contributor

I recently encountered this issue and I am hoping someone can point me to a very detailed documentation of how footnotes function in Word.  Here was the problem:

When comparing documents, footnotes at times show as fully removed and then reinserted.  In the modified document a new footnote 1 was added.  This pushes all the other footnotes up by one count.  Most of them showed as they should, with only the old footnote reference being removed and the new number being inserted, but the text of the note showing no changes.  However, a few of them showed up as fully removed and reinserted (so, what was footnote 3 is now 4, but the text is the same so only the number should show changing--but instead the whole note 3 shows as a deletion, and the whole note 4 shows as an insertion).

 

I want to understand why this would happen.  I took the footnotes.xml file out of the archive to look at it, but I am still learning where that is concerned. I could not identify anything that might cause this problem.  Something about how footnotes are identified/linked to the paragraph that anchors them is the cause--but I don't know anything about how that works.

 

Does anyone have resources that are detailed I could use to research the footnote function in-depth?

3 Replies
Hello Rich89,
the only (and usual) time I see what you describe is when the deleted/(re)inserted is is actually a field, or when the style changes. Then the text in old style gets "deleted" and "inserted" as if it was a new text.
Might it help to remove the formatting option before doing the comparison?

I was able to replicate the problem by making a document where I add a new footnote 1, forcing what was 1 to 2, deleting the paragraph housing the original footnote, and moving that footnote to a new paragraph where there are no similarities to the original paragraph.  I did this without changing any styles.  I'll attach something here so you can see it.

 

What I find interesting, and not ideal, is that if the new paragraph in the MODIFIED has any matching word to the ORIGINAL paragraph, then that will resolve this issue.  For example, do a comparison using my attached documents here.  You'll see that the footnote 2 doesn't show as changing from 1 to 2.  Now, open MODIFIED and remove "Test" from the end of the second paragraph, and the problem I describe in my post will appear in the comparison.  Interestingly, you can also leave the word "Test" but just make the 'T' lowercase, and this will also trigger this issue.

 

What I want to understand is why this happens.  I now know that if the text of the paragraph changes, then the footnote will show as being deleted and reinserted. I want to see some documentation I can read that will help me learn why it behaves this way because this is an accuracy issue.  That footnote was never deleted, so it should not s how as having been deleted.

@Lenka_Kerumova 

I hear you :-).
The why's are important.

Well, this is a question for an MS developer. Eager to read the answer, as I have a couple of why's myself. L.