14 Replies Latest reply on Mar 19, 2017 11:14 AM by Michael Witherell

    continuous footnotes

    thaero17058 Level 1

      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

        • 1. Re: continuous footnotes
          Michael Witherell Adobe Community Professional

          Several questions come to mind:

          Why do this?  It is highly non-standard.

          What version of InDesign are you using? What OS?

          • 2. Re: continuous footnotes
            thaero17058 Level 1

            because of client

            CS6

            windows 10

            • 3. Re: continuous footnotes
              Michael Witherell Adobe Community Professional

              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.

              1 person found this helpful
              • 4. Re: continuous footnotes
                thaero17058 Level 1

                Thanks

                 

                • 5. Re: continuous footnotes
                  Obi-wan Kenobi Adobe Community Professional

                  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[f].lines,
                              L = myLines.length;
                              for (var l = 1; l < L; l++) {
                                  var myLine = myLines[l];
                                  if ( myLines[l-1].characters[-1].parentTextFrames[0].parentPage !== myLines[l].characters[0].parentTextFrames[0].parentPage ) {
                                      var myLine0 = myLines[l-1],
                                      myLine1 = myLines[l];
                                      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;
                      }
                  

                   

                  (^/) 

                  • 6. Re: continuous footnotes
                    Laubender Adobe Community Professional & MVP

                    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

                    1 person found this helpful
                    • 7. Re: continuous footnotes
                      Obi-wan Kenobi Adobe Community Professional

                      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!  ;-)

                       

                      (^/)

                      • 8. Re: continuous footnotes
                        Obi-wan Kenobi Adobe Community Professional

                        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!

                         

                        (^/)

                        • 9. Re: continuous footnotes
                          Laubender Adobe Community Professional & MVP

                          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

                          • 10. Re: continuous footnotes
                            Obi-wan Kenobi Adobe Community Professional

                            Yeap! Going to post it!  =D

                             

                            (^/)

                            • 11. Re: continuous footnotes
                              Obi-wan Kenobi Adobe Community Professional

                              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!

                               

                              (^/) 

                              • 12. Re: continuous footnotes
                                Laubender Adobe Community Professional & MVP

                                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

                                • 13. Re: continuous footnotes
                                  Obi-wan Kenobi Adobe Community Professional

                                  … More and more complex! 

                                   

                                  Including a "page" check! 

                                   

                                  (^/)

                                  • 14. Re: continuous footnotes
                                    Michael Witherell Adobe Community Professional

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