[CS2][JS]Superscript to Footnotes

Hello scripters,
I converted a scanned pdf to doc and then load in inDesign my problem is the footnotes became superscript numbers.
Is there any way we can convert superscript numbers to footnotes in InDesign?
Thanks,
CharlesD

Hi Charles,
The difficulty is that footnotes imported from your doc-file are not formatted in superscript. They partially formatted with 9 points size,  partially with 10, so it's difficult to differentiate them from the main text.
I offer you to do the following approach:
1 Create a paragraph style "Fnote" and assign it a different color – e.g. blue (Footnotes-1a.indd)
2 Apply "Fnote" style to footnote text:
Go to find/Change > GREP and select these options
Find What: .+$
Find Format: size 9 pt
Change Format: paragraph style "Fnote"
Click Change All (Footnotes-1b.indd)
3 Run the script
Now you have to manually move footnote references (in blue) to their original positions (in black).
This solution is far from perfect: not all text is converted to footnotes, not all original text is removed. To make it perfect would require a day, two or more of work, but I have no time for this.
Kasyan
myDoc = app.activeDocument;
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.appliedParagraphStyle = "Fnote";
myTexts = myDoc.findText();
for (i = 0; i < myTexts.length; i++) {
    myText = myTexts[i];
    myPars = myText.paragraphs;
    for (j = 0; j < myPars.length; j++) {
        myPar = myPars[j];
        myFN = myPar.parentStory.footnotes.add(LocationOptions.BEFORE, myPar.insertionPoints[0]);
        myFN.texts[0].insertionPoints[-1].contents = myPar.contents.substr(0, myPar.contents.length-1);
app.findTextPreferences = app.changeTextPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "(?<=~F)(.+)";
app.findGrepPreferences.appliedParagraphStyle = "Fnote";
app.changeGrepPreferences.changeTo = "";
myDoc.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
alert("Done");
P.S. The attachment got stuck in the forum, as usual. I'll send it to you by e-mail.

Similar Messages

  • Footnotes Indesign

    Hi!
    I have a problem with the footnotes. When i create a footnote in the text that footnote appears automatically at the end of the page but i want that footnotes appears at the end of the book, in other chapter.
    Somebody knows how can i do that automatically? i really need to do that...
    If is not possible do that i must do this manually and i´m gonna lose a lot of time...
    tank you all!
    ps-sorry my english...

    Don't worry, your English is fine!
    You don't mention the version of InDesign, and that's quite important here. There are scripts to convert footnotes to endnotes, but they depend highly on that version. In earlier versions (CS2 -- the first with footnotes -- and CS3), you can only convert them to static text: if you insert or delete a note, you have to rebuild the notes section.
    For CS4, it's possible to convert them to dynamic endnotes instead. A recent script from Peter Kahrel does that: see http://www.kahrel.plus.com/indesign/dynamic_endnotes.html

  • Daisy DTB

    Does anyone know of any software for either iMac (mid 2010, 2.8 GHz Intel Core i5) running Yosemite or iPad(model MD330B/A latest iOS)  which will read Daisy DTB ( Digital Talking Books) ?
    Alternatively any software for reading PDFs that have MHRA referencing (superscripts and footnotes) that doesn't just read the whole page including headings page number and footer and footnotes. I'm currently using VoiceDream and its OK-ish just trips over the superscripts at the end of a sentence and the footnotes.
    Alan

    Hi thanks for the reply.
    I have brought this back to the top of the forum as I asked the Apple techy people last week about this and they promised to get back to me - still waiting. If the Apple techy people are reading this perhaps they will respond to the question can you use DAISY software for digital talking books for the visually impaired on your iPad?
    Peter

  • Superscript Numbers in Footnotes

    Our corporate style requires that the number of each footnote be superscript - not just in the body of the text but in the footnote itself. Is there a way to have InDesign make them automatically superscript? I can do it manually but I assume there's a way for the numbers to automatically be superscript.
    I'm using CS4 and am brand new with the program. I did search the forum but the only related responses didn't say how to apply it to the number within the footnote box, only the number in the body of the text.

    I was going to say it was fairly easy but actually turned out to be super-easy!
    I'll assume you have a dedicated Footnote paragraph style -- you wouldn't want your footnotes to look just like your text.
    In the definition of that paragraph style, call up the GREP Style panel.
    Click the button "New GREP Style"
    A new item appears in the GREP list; click the text [None] next to "Apply Style" -- it's actually a drop down list.
    If you already have a character style with just superscript, you can select it here; otherwise, first make one by choosing "New Character Style ..." at the bottom, name it "superscript", and only have it apply "Superscript".
    Click in the field next to "To Text" -- its default is "\d+", meaning the style would get applied to all numbers. Now usually you'd want numbers to be superscripted, but .. not all of them in the entire footnote! So you'd have to think of a way to 'only apply it to numbers that are at the start of the footnote' ... (which is, in fact, quite possible! And I'd be a happy Jongware to tell you how to pull off that particular trick -- but, I'm digressing. Sorry.) The 'super-easy' is because if you do try to use '\d+', all digits in footnotes will be superscripted except the footnote numbers themselves! So why the 'super-easy'? Footnote numbers have a unique code of their own, so InDesign can track them, and update when you insert or delete a note; the GREP code for these is "~F". So just delete the text that is in the "To Text" field and enter "~F" into it (mind you, without the quotes -- those are just to indicate here the text to insert is just "~F". Oh Lordy now I did it again. No Quotes Needed).
    ... and all that's left for Point #6 is to click OK to close the Paragraph definition.
    There you go: automagic superior footnote numbers.

  • PLEASE HELP-Is there a way to spell check footnotes in indesign cs2 separately

    Is there a way to spell check footnotes in indesign or in incopy cs2 separately?

    Select all the text - not in the footnotes - but in your normal text frames.
    Then go to Window>Type and Tables>Character
    Change the Language to No Language
    Then run your spell check. It will only check the spelling in your Footnotes now.
    When done, change the language back to whatever your usual dictionary language should be. (note it may still check text inside tables - so you might have to put up with that?)
    Anyone know of a way to script changing all the text bar footnotes to No Language - run a spell check - then reset the text language back?
    ( you don't want to hear the other crazy ideas I had for this one !)

  • Line spacing increased by superscript numbers for footnotes

    in Indesign I am designing a book - at the end of most paragraphs there is a superscript footnote number. The last line of each paragraph has a larger space than the bodytext space or leading. It looks a bit odd - is there a way to  override this - I understand that it is creating the same space from the top of the superscript number to the bottom of the line above but it looks wrong. Can anyone help please?

    1. Define in your paragraph style (you should only work with Paragraph Style) a fixed leading (instead of "Auto")
    2. And/Or go to
    Mac: InDesign > Preferences
    Win: Edit > Preferences
    In type activate "Apply Leading to Entire Paragraphs"
    Redommendation: Set up you footnote numbers with Character Styles.

  • Large Footnotes Crashing Indesign CS2

    My Indesign document contains more than 130 footnotes in that most of the footnotes are half of the page height.
    It is crashing randomly i.e., first time after 30 footnotes crashing; second time after 10 footnotes crashing and so on.
    Please suggest.
    Regards,
    Suresh

    Select all the text - not in the footnotes - but in your normal text frames.
    Then go to Window>Type and Tables>Character
    Change the Language to No Language
    Then run your spell check. It will only check the spelling in your Footnotes now.
    When done, change the language back to whatever your usual dictionary language should be. (note it may still check text inside tables - so you might have to put up with that?)
    Anyone know of a way to script changing all the text bar footnotes to No Language - run a spell check - then reset the text language back?
    ( you don't want to hear the other crazy ideas I had for this one !)

  • Half of my doc's citations won't show up on the bottom of the page as footnotes, while the other half is fine.

    Hello all,
    I'm using Microsoft Word for Mac 2011. I've been working on a document with lots of citations, and it's the weirdest thing, but footnotes for citations 66 - 126 won't appear at the bottom of the page. All others (1-66, 126 and above) appear as they should,
    on the bottom of the page where the data is located. So in other words, there are about four pages in my word doc that show
    no footnotes, even though when I add a citation to the content, the superscript numerals show up. It's like the footnotes are hidden or something, but I just can't figure out how to get them to show.
    Any and all help is so appreciated! Thanks.

    Hi,
    Please check the settings of your paragraphs around the footnote reference using
    Format > Paragraph > Line and page breaks: Keep with next, Keep lines together, Widow/Orphan control. Disable those that seem redundant.
    Here are some similar issue, we may try the solutions:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/1st-footnote-disappears-in-word-for-mac-2011/abe1ea52-fd45-4681-80eb-7aca80160308
    http://forums.techarena.in/windows-software/1448835.htm
    Next, the topic of the forum is related to the Office for Window, not for mac. I recommend you post the question to Answers forum:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    Thanks for your understanding.
    Regards,
    George Zhao
    TechNet Community Support

  • Superscripts and Subscripts

    I just started using Pages, after using Microsoft Word for many years. How do you input a superscript or a subscript? I have used the "insert footnote" capability, but that is not what I want to do in every instance.

    Thanks, I took the time with the customization and it answered many questions I still had.

  • Footnotes at the bottom of the page

    For anyone interested – putting the above title in the search window didn't produce anything I mean. And I welcome better ideas. I work with a Dutch language version, so I hope I use the right terms.
    Working on juridical textbooks with hundreds of sometimes long footnotes, I sometimes come to the next problem. It is possible to automatically let long footnotes break over two pages (see other threads to get explained how). But suppose there is another footnote marker a little after the 'long' one. This seems a bit too much for Indesign. Both markers and both footnotes go to the next page, leaving a big white gap, in mid-paragraph, at the bottom of the preceeding page.
    My solution:
    - cut the second footnote marker;
    - add the right footnote number as normal text (probably in superscript) at that spot;
    - paste the footnote marker at the end of the top paragraph on the next page;
    - make a text style with text color set to paper (white);
    - apply this text style to the pasted footnote marker.
    Now it looks like the footnote marker is on the first page, and the entire footnote is on the second page (the real footnote marker is invisible). If in a later stage footnotes are added or text overruns, you can easily look for the 'white' text style to adapt things.
    You can also use this trick when there is either space for the marker or for the footnote text at the bottom of a page but not for both, leaving at least one white line (although to the most of us, that will sound less urgent).
    But of course it would be nice if Adobe solves this in a future version (I already suggested them to do so.)

    An 8 line footnote will not normally take 8 lines of text: usually, the
    type size is smaller and so is the leading in footnotes.
    Personally, I don't mind a gap of up to 4 text lines or so if necessary
    to keep the footnote indicator and the start of the footnote on the same
    page (obviously, once the footnote starts on the page, it can flow on to
    the next page; and this InDesign can cope with!). Although I would never
    have such a gap in the middle of paragraph normally, in this case,
    because there is also a footnote at the bottom of the page, it does not
    stand out so much to my eye.
    I didn't know that Word allows what you say. I'm surprised that it does.
    This is what the Chicago Manual of Style (15th ed.) has to say about
    your problem: "In a work containing many long footnotes, it may be
    difficult to fit them onto the pages they pertain to, especially in an
    illustrated work. A basic requirement for all footnotes is that they at
    least begin on the page on which they are referenced. Several long
    footnotes with their references falling close together toward the end of
    a page present a major problem in page makeup. There is also the matter
    of appearance; a page consisting almost exclusively of footnotes is
    daunting. For some remedies, see 16.36–40."
    And the first remedy (16.36): "Avoiding overlong footnotes: Lengthy,
    discursive notes should be reduced or integrated into the text..."
    Obviously, nobody can force you to take this advice. But you're asking
    the InDesign team to spend days and or months of programming to
    accommodate your editor or publisher's bad practice in allowing such
    long footnotes in the first place, despite what I think is a consensus
    that apart from the "daunting look," this will also cause "a major
    problem in page makeup." And your solution is to have the footnote begin
    on a different page from its text indicator, whereas Chicago says "A
    basic requirement for all footnotes is that they at least begin on the
    page on which they are referenced." Many readers would, I think, agree
    with that assertion!
    Anyway, the more flexibility the better, as far as I'm concerned. But I
    seems to me that it's wrong to expect the InDesign team to offer a
    solution to a problem that is caused by bad editorial practice. Fix the
    editors, not the programmers!
    Ariel

  • How to find the glyphs character using js in indesign cs2?

    i want to find whether the glyphs character(registered trademark symbol)is applied with character style superscript or not, i cant able to fix the glyphs character in the find preference, how to do it?
    thanks
    subha

    You are mixing two concepts. There is a
    i major
    difference between a
    b glyph
    and a
    b character.
    A glyph is any singular graphic in a font.
    A character is an instance of a character set (in InDesign, and in Mac OS X, it's the Unicode set; older programs use 'code pages' to translate codes into characters). [*]
    Why are they different? Well, a ligature ('ffi', for example) is not a single character, containing the characters 'f', 'f', and 'i'. It
    i is
    a single glyph in most fonts, but (usually!) you cannot insert an 'ffi' directly. Programs that do allow insertion of glyphs (again, such as InDesign) are also smart enough to decompose it into single characters 'f', 'f', and 'i' again.
    Why is this distinction important? In CS2, you can search for
    i characters
    but not for
    i glyphs
    (in CS3 and higher you can, but you cannot specify "+superscript").
    All aside, you can insert a trademark character directly into InDesign by calling up the Glyphs :-) panel and double-click the glyph. (It works because the 'TM' is also a valid Unicode character.) Then just cut it, and paste into the 'Find' field of the Find Text box. Alternatively, since you can see the Unicode value in the Glyphs panel, you can enter the Unicode directly into the search field, surrounded by less-greater than: < 2122 > (without the spaces). This works for all Unicode characters.
    Even better is that the character is also in the Find drop down menu -- "Registered Trademark Symbol". This inserts the shortcut "^r" in the Find box -- but it only works for a selected set of characters.
    Since this is the Scripting forum, I'm guessing you want to use this in a script. Well, both "< 2212 >", and "^r" can be used in the search string to specify the character. Do the search and examine for each found item if it has a position Superscript or not.
    [*] Post-edit: to expand a bit more, a table in the font associates Unicodes (character values) with glyphs, not the other way around. Every Unicode character available in the font associates to at least one single glyph. There may be more Unicodes than glyphs in a font (there is no law against associating more than one Unicode to a glyph -- for instance, both 'space' and 'non-breaking space' point to a single space glyph), and there may also be more glyphs than Unicodes (the 'ffi' glyph has a Unicode value -- now considered an early error in the Unicode definition! -- but the 'Th' glyph does not). Most programs only allow Unicode characters in text.

  • How do I create multiple markers in the text that refer to the same footnote?

    Hi,
    I'm working in Pages '09 and I want to add the same number-marker multiple times in my text, referring to the same footnote. I could just write the same number and stylize it as superscript, but that way the number won't change dynamically if I add more footnotes on an earlier spot in the text...
    Does anyone know how to do this!
    Thanks a lot!

    No way that I can think of and am struggling with possible work arounds.
    Bookmarks won't give you the footnote numbering, and there isn't anything else that links.
    Peter

  • How do you make footnotes in ibooks author

    I have not been able to make footnotes nor does iBook import the footnote format from Word. This is frustrating since the software (iBooks) is intended for the creation of textbooks which contain many footnotes.

    IBA doesn't support footnotes. The next-best thing would be to use numerical superscript references that you make hyperlinks to the notes. You should be able to select superscript as a character style in the font palette. Alternatively, use "[1]" as the footnote style and make the entire thing a hyperlink (including the angle brackets). This creates a larger target for tapping.
    Be aware that, even if you do this, it will still be clumsy for the reader because iBooks does not have a "back" button. Once the reader follows a hyperlink, there is no way to easily get back to where the reader came from. For this reason, it's probably best to avoid internal hyperlinks and only use external ones (to web pages), because these links open in Safari, so the reader does not lose context.
    Michi.

  • Footnotes don't always transfer from Word (Mac) to Pages; advice?

    I would love to use Pages instead of Word: it satisfies all my document needs but one! When I open a Word document (formatted as a Macintosh Word document) sometimes it works just fine, and all the formatting is correct -- and (most importantly) all the footnotes are transferred, too. But other times -- and there are many! -- only the formatted text transfers, not the notes. Curiously, the footnote superscripts transfer, but not the footnotes themselves. I have tried to use "Cmd-A" to see if that would work, but, clearly, it doesn't because it only captures *either* the text *or* the footnotes, but not both. This defect so cripples Pages for me that I can't plan on using it! Sad, because I otherwise like it.
    Any advice would be greatly appreciated.
    Thanks!

    Test footnote import with .doc and .rtf formats, and see which format puts problems, as far as I noticed, it is rtf, even if rtf  export is sometimes recommended, e.g. if you work with Mellel, which ALWAYS deals better with rtf than doc. Also test which apps puts such problems, am not sure all apps and all generations of Office have the same results, unfortunately.

  • Footnotes in textboxes and table

    I can not place a footnote / endnote into a textbox or table. Are there any solutions out there as to how I could get around this?

    Louise22 wrote:
    I can not place a footnote / endnote into a textbox or table. Are there any solutions out there as to how I could get around this?
    As far as I know, the response is no. This is why we can't use notes in Layout mode.
    Workaround:
    Mimic the aspect of notes with superscript
    and put the text of the note in a box of your own.
    Yvan KOENIG (from FRANCE samedi 14 mars 2009 22:18:25)

Maybe you are looking for

  • How do I get the file names on a customized proof sheet?

    How do I get the file names on a customized proof sheet?

  • Windows 8.1 Pro Shows me (Identifier) Key ID FCB##### & I have the Recovery Key File with 48 digits - It Will Not Unlock!!

    And the password, I have tried unlocking the Gold Key Locked drive by right clicking on it in file explorer and also going to the control panel, In both area's I have tried the password phrase and the Recovery Key 48 digits I have in both the Cloud a

  • Exceptions on Intel Mac

    Hello! I am trying to run Creator 2.1 on my MacBook Pro and when I am trying to create a project I am getting this error: java.lang.IllegalArgumentException: File URL pointing to JAR is not valid classpath entry. Use jar: URL. Was: file:/Library/Java

  • Question about network w/two routers

    I am trying to setup a network that covers both my home and detached garage home office. The garage office is approximately 100 feet away from the home. Internet access is delivered to the garage office. The cable modem is connected to a wired router

  • Negitive inventory

    hi friends i am using purchase order based on sales order scenario. ON the first GRPO the goods were returned as a result GRPO was closed and purchase order was also closed ideally user should also cancel the sales order but the user did not do so an