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

find continued footnotes

Explorer ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

How do i check the text frame has continued footnotes

 

var fn = textFrames[0].footnotes[0].isValid;  its working only if the page has footnote.

TOPICS
Scripting

Views

453

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 ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

Hi,

this could help:

 

How to detect/select overflowing footnote text
Laubender | Jul 29, 2019

https://community.adobe.com/t5/InDesign/How-to-detect-select-overflowing-footnote-text/m-p/10552360#...

 

Regards,
Uwe Laubender

( ACP )

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
Explorer ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

I am trying to move objects above the footnote continued text via script.  Please advice

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 ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

Sorry. I have no idea what you are after.

Could explain in a couple of screenshots?

 

Thanks,
Uwe Laubender

( ACP )

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
Explorer ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

footnoteText.PNG

 

The page has continued foot. I need to move the figure above the continued footnote via script.  

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 ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

What's the rule?

Why do you want to move the figure?

Where to?

 

What do you mean with figure?
The graphic frame plus the frame with the caption?

Are both frames anchored to the main story where your footnote is?

Are both grouped in one group?

 

???

 

Regards,

Uwe Laubender

( ACP )

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
Explorer ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

What's the rule? -- The rule is footnote seperator

Why do you want to move the figure? -- the process is autopaginating the content, i moving the grouped object near by the intext citiaion

Where to?

 

What do you mean with figure? -- grouped objects
The graphic frame plus the frame with the caption? yes

Are both frames anchored to the main story where your footnote is? nope. needs to place with wrap setting

Are both grouped in one group? one group

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 ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

A footone has the property storyOffset.

That's the insertion point just before the footnote special character.

 

Get the text frame where this footnote is with:

var myTextFrame = myFootnote.storyOffset.parentTextFrames[0];

 

The page is:

var myPage = myFootnote.storyOffset.parentTextFrames[0].parentPage;

if the frame is not on the pasteboard.

 

You then could move your group to that page and hope for the best:

myGroup.move( myPage );

 

Position it so that it will align to the top of the text frame there:

myGroup.move
(
	[
		myTextFrame.geometricBounds[1],
		myTextFrame.geometricBounds[0]
	]
);

 

If the problem will be solved is unclear. Could be that now another footnote is split. Or the same footnote is still split.

You have to test this after moving the group and decide of the situation is now better or worse.

 

Regards,
Uwe Laubender

( ACP )

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 ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

Another thing:

myFootnote.texts[0].parentTextFrames is the array of text frames your footnote's text is running through.

If the length of this array is 1 the footnote text is not split.

 

Regards,
Uwe Laubender

( ACP )

 

EDITED

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
Explorer ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

 

Sorry, My issue is to find the foonote if its continued from the previous page. pleaser refer the screenshot 

 

textFrames[0].footnotes[0].isValid -- footnote continued page gives false results.

 

 

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 ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

Hi,

as I already said:

First find a specific footnote, then test the text of the footnote:

 

// When text is selected in the story that contains footnotes:
var myFootnote = app.selection[0].parentStory.footnotes[0];

var footnoteTextContinues = [];

// Test if footnote text continues to other frames:
if( myFootnote.texts[0].parentTextFrames.length > 1 )
{
var textFramesArray = myFootnote.texts[0].parentTextFrames;
footnoteTextContinues[ footnoteTextContinues.length++ ] = [ myFootnote , textFramesArray ];

// footnoteTextContinues[0] contains e.g.: [ object Footnote , [ object TextFrame , object TextFrame , … ] ]

};

 

Regards,
Uwe Laubender

( ACP )

 

 

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 ,
Nov 05, 2019 Nov 05, 2019

Copy link to clipboard

Copied

LATEST

I think sreekarthikeyank want to find the top of the footnote area so that he can move the figure before the notes (where it belongs). sreekarthikeyank: move the figure to the pasteboard, get the baseline of the last text line, and move the figure back on to the page such that its bottom is on baseline of the last text line.

 

P.

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