continuous footnotes
Copy link to clipboard
Copied
Hello
How can we add equal sign ( = ) at end of the first page of a continuous footnotes and at the beginning of the second page of continuous footnotes .
and how can we automate this .
Example :
Can you help me please .
Copy link to clipboard
Copied
Several questions come to mind:
Why do this? It is highly non-standard.
What version of InDesign are you using? What OS?
Copy link to clipboard
Copied
because of client
CS6
windows 10
Copy link to clipboard
Copied
On the one hand, it isn't done that way, but a paying client can be persuasive, I do realize!
Further, InDesign does not have a capacity for this.
It might be scriptable, but I rather doubt it. What the InDesign Scripting community comes up with often amazes me, tho.
Copy link to clipboard
Copied
Thanks
Copy link to clipboard
Copied
Join the Rebellion! … If needed, light-saber hit again (layout changes)!
/*
0127_TwoPagesFootnote_MichelAllio.jsx
Script written by Michel Allio [2017/03/18]
*/
app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "2-Pages Footnote! …");
function main()
{
var myDoc = app.activeDocument;
myDoc.conditionalTextPreferences.showConditionIndicators = ConditionIndicatorMode.HIDE_INDICATORS;
// TO BE MODIFIED! --------------------------------------------------------------------------------------------------------------
var myFootnotePStyle = myDoc.paragraphStyles.item("Footnote"),
myTracking = -10, myHorizontalScale = 99;
// CREATED BY SCRIPT! -----------------------------------------------------------------------------------------------------------
if (!myDoc.conditions.item("2-pages_Footnote").isValid) myDoc.conditions.add ({name: "2-pages_Footnote", indicatorMethod: ConditionIndicatorMethod.USE_HIGHLIGHT, indicatorColor: [255,255,255]});
var myCondition = "2-pages_Footnote";
// -------------------------------------------------------------------------------------------------------------------------------------
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.appliedConditions = [myCondition];
myDoc.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.appliedParagraphStyle = myFootnotePStyle;
myFound = myDoc.findGrep();
var F = myFound.length;
for (var f = 0; f < F; f++) {
var myLines = myFound
.lines, L = myLines.length;
for (var l = 1; l < L; l++) {
var myLine = myLines
; if ( myLines[l-1].characters[-1].parentTextFrames[0].parentPage !== myLines
.characters[0].parentTextFrames[0].parentPage ) { var myLine0 = myLines[l-1],
myLine1 = myLines
; myLines[l-1].characters[-1].contents = "\u2002= =\u2002";
myLine0.tracking = myLine1.tracking = myTracking;
myLine0.horizontalScale = myLine1.horizontalScale = myHorizontalScale;
}
}
}
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "~>= =~>";
app.changeGrepPreferences.appliedConditions = [myCondition];
myDoc.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
}
(^/)
Copy link to clipboard
Copied
Hi Obi-wan,
your script will not work as expected, if the two == are a substitute for a hyphen.
I already asked this here in the InDesign scripting forum:
Before running your script:
After running:
You see, that a character is missing.
That would also be the case after re-running the script on non-hyphenation situations after the text were edited so that the two = moved away.
I would do it with a different concept in mind:
Do not change the text of a footnote, instead add the two = with some extra text frames that cover a potential hyphen also using text wrap to give room to the new two characters.
Just to give you an idea without scripting anything:
Before:
After:
Changing the view:
Regards,
Uwe
Copy link to clipboard
Copied
Uwe,
i don't really know if the op talk us about an hyphenation sustitute!
If the case, maybe a way would be to avoid hyphenation between the two parts of the footnote! 😉
(^/)
Copy link to clipboard
Copied
In my script approach, I've forgotten to reset the tracking/horizontal scaling at the beginning of the script!
Maybe a better way to treat this point would be using the insertion of 2 non-joiners associated to 2 grep styles! 😉
On this point, I've a question for you: i've no problem to check a condition or a char style (to create them if they don't exist yet in the doc), but how could I check a nested grep style? Add one is easy but verify if it exist? Thanks!
(^/)
Copy link to clipboard
Copied
https://forums.adobe.com/people/Obi-wan+Kenobi wrote
… On this point, I've a question for you: i've no problem to check a condition or a char style (to create them if they don't exist yet in the doc), but how could I check a nested grep style? Add one is easy but verify if it exist? Thanks!(^/)
That would be a perfect question for the InDesign Scripting forum 🙂
Regards,
Uwe
Copy link to clipboard
Copied
Yeap! Going to post it! =D
(^/)
Copy link to clipboard
Copied
Uwe,
I confirm about this point:
Uncheck the "Césure sur la colonne" radio button!
I think the op only wants to show to the reader a footnote jumps on 2 pages!
(^/)
Copy link to clipboard
Copied
… I think the op only wants to show to the reader a footnote jumps on 2 pages!…
Then I'd perhaps do it at the end of a paragraph or a line where the text ends with a sentence.
If you think of a scripted solution, do not forget about a situation where a footnote jumps from one column to another one on the same page.
Regards,
Uwe
Copy link to clipboard
Copied
… More and more complex!
Including a "page" check!
(^/)
Copy link to clipboard
Copied
I adore you guys for the scripting magic, but I wish you wouldn't enable the OP to make something that looks like this!

