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

continuous footnotes

Explorer ,
Mar 16, 2017 Mar 16, 2017

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 .

hjklhbvlh hpng.png

Views

934

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 ,
Mar 16, 2017 Mar 16, 2017

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?

Mike Witherell

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 ,
Mar 16, 2017 Mar 16, 2017

Copy link to clipboard

Copied

because of client

CS6

windows 10

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 ,
Mar 16, 2017 Mar 16, 2017

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.

Mike Witherell

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 ,
Mar 16, 2017 Mar 16, 2017

Copy link to clipboard

Copied

Thanks

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
LEGEND ,
Mar 17, 2017 Mar 17, 2017

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;

    }

(^/) 

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 ,
Mar 18, 2017 Mar 18, 2017

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:

Re: continuous footnotes

Before running your script:

BeforeChangingFootnote.png

After running:

AfterChangingFootnote.png

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:

CoverTheHyphen-Before.png

After:

CoverTheHyphen-After.png

Changing the view:

CoverTheHyphen-After-ChangedView.png

Regards,
Uwe

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
LEGEND ,
Mar 18, 2017 Mar 18, 2017

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!  😉

(^/)

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
LEGEND ,
Mar 18, 2017 Mar 18, 2017

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!

(^/)

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 ,
Mar 18, 2017 Mar 18, 2017

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

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
LEGEND ,
Mar 18, 2017 Mar 18, 2017

Copy link to clipboard

Copied

Yeap! Going to post it!  =D

(^/)

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
LEGEND ,
Mar 18, 2017 Mar 18, 2017

Copy link to clipboard

Copied

Uwe,

I confirm about this point:

Capture d’écran 2017-03-18 à 14.33.25.png

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!

(^/) 

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 ,
Mar 18, 2017 Mar 18, 2017

Copy link to clipboard

Copied

https://forums.adobe.com/people/Obi-wan+Kenobi  wrote

… 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

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
LEGEND ,
Mar 18, 2017 Mar 18, 2017

Copy link to clipboard

Copied

… More and more complex! 

Including a "page" check! 

(^/)

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 ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

LATEST

I adore you guys for the scripting magic, but I wish you wouldn't enable the OP to make something that looks like this!

Mike Witherell

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