1 Reply Latest reply on Nov 6, 2010 4:47 AM by Marc Autret

    [Urgent] How to export with PAGE NUMBER included???

    angusyyl

      I'm going to create an index page of a book with 1000 pages, for example:

       

      Search Key          Page No.

      Apple                          1

      Butterfly                       2

      Cat                             20

      City                            26

      Dog                            40

      .

      .

      Zoo                           1000

       

      My question is, how can I create that index page with SCRIPT as I don't want to find out each keyword and make it reference MANNUALLY!

      I tried exporting to XML or HTML file, but seems there's no relationship between the key and page no. when I look at its DOM structure...

       

      Can anyone help??? It's reli urgent...

      Many Thanks!!!

      Angus

        • 1. Re: [Urgent] How to export with PAGE NUMBER included???
          Marc Autret Level 4

          Not sure this will answer your question. I you need to create an index of your book as a separate file by supplying a list of keywords, IndexMatic 2 could help you. The script is currently provided in BETA:

           

          http://www.indiscripts.com/blog/public/IndexMaticBeta.zip

           

          HOW TO DO:

           

          1) Open the InDesign book (you don't need to open the underlying documents)

           

          2) Run IndexMaticBeta.jsx from the script panel.

           

          3) In the "Scope > Document(s)" listbox, select "Active Book".

           

          3) In the "Search Mode > Mode" listbox, select "Query list".

           

          4) Press "Edit Queries...".

           

          5) In the "Edit the queries" dialog, press "Load from a file..." if your keywords are already stored in a file. Otherwise, enter your keywords line by line, e.g.:

           

          apple

          butterfly

          cat

          city

          dog

          ...

           

          IndexMatic also supports regular expressions and "entry rewriting" features. To specify a keyword as a regex, simply embed it in slashes:

           

          /(dog|cat)s?/

           

          By default, every key/query comes out unchanged as a final entry. But you can rewrite and/or regroup entries using the ' =>' operator:

           

          /apples?/ => apple

          butterfly => InDesign

          buttterflies => butterfly

          /(dog|cat)s?/ => pet

          ...

           

          6) Still in the "Edit the queries" dialog, press "OK" to validate your queries.

           

          7) In the "Default options" zone, check/uncheck the options you need: Case sensitive, Whole Word, Generic Space. "Generic Space" means that any space supplied in a query will match against all blank characters, including InDesign special spaces.

           

          8) In the "Entry Case" listbox, select "Title case" to get the final entries title case formatted.

           

          9) In "Page Report", configure the page separator and the page range options as desired.

           

          10) Press "Run".

           

           

          Tell me. (I'm curious to know how IndexMatic deals with a 1000 pages book!)

           

          @+

          Marc

           

          http://www.indiscripts.com