Numbering pages with words

Is it possible automated implementation of pagination where the numbers are actually in words instead of numbers?

For example. "Four" instead of "4"

Here is a complete, tested Javascript with CS4, but it should work with later versions as well. It works like this:

1 use the placeholder code "#" in your Master page (s) to indicate where the number of page - like words - should appear. Additional text around him and formatting etc should work just fine; You can even use something like

It's # page of my first book

and the script will change the ' # ' the full wording, retaining all formatting you applied (in this case, bold and underlined characters) for just the page number text.

One based on master pages yet another master page should work (and in fact I so hope you happen to have consumed only because I took care of this special case, as well!).

2. make sure that master page is applied to the pages in your document where you want the written page number.

3. the script works with the masters both front and double-sided pages; It will not work with more than two pages per spread! (But it's a pretty unusual scenario).

4. make sure that the numbering of the pages for these pages is in Roman numerals (1, 2, 3), not something like 'a', 'b', 'c' - the script needs the number to work.

5. run the Script. It will replace the image placeholder on every page and replace the placeholder with the English text.

6. If you have moved pages or changed the formatting on the master page, just run the script again and it will update everything. It will update the pages with this particular master page; If you applied another master page does not contain the page number placeholder, this does not alter the framework substituted in these pages!

7. I wrote the function to convert number to text from scratch. Theoretically, it should be good; and then, in practice, the theory may not work. If you want to than some other formulations ("three-score and five", maybe) let me know & I'll see what I can do.

8. the numbers as text is returned in all lowercase; by your example, I change the first word uppercase later. However, any other variant is Possible, of course.

Enjoy!

(Copy, paste it into a text editor such as the ESTK which comes with InDesign. Save to your user as 'pageNumberWords.jsx' Scripts folder and it should appear in the Panel Scripts. Double click to run, and then check if it worked as expected.)

//DESCRIPTION:Convert Page Number Placeholder '#' into Text
// A Jongware Script 11-Dec-2011

var allPages = app.activeDocument.pages;
for (iterate=0; iterate -1)
                              return masterPage.textFrames[i];
          }
          // Not found? Perhaps on this Master's Master?
          if (master.appliedMaster != null)
                    return findFrameContaining (master.appliedMaster, side, text);
          return null;
}

// Needed because the very useful label lookup was
// -- totally unnecessarily! -- removed in CS5+ ...
function findByLabel (items, label)
{
          var i;
          for (i=0; i= 1000)
          {
                    thousand = Math.floor(number/1000);
                    result = numberToText (thousand) + " thousand";
                    number = number - 1000*thousand;
                    if (number > 0)
                              result = result + " ";
          }

          if (number >= 100)
          {
                    hundred = Math.floor(number/100);
                    result = result + ones[hundred]+" hundred";
                    number = number - 100*hundred;
                    if (number != 0)
                              result = result + " and ";
          }
          if (number >= 20)
          {
                    ten = Math.floor(number/10);
                    result = result + tens[ten];
                    number = number - 10*ten;
                    if (number != 0)
                              result = result + "-";
          }
          if (number != 0)
                    result = result + ones[number];
          return result;
}

Tags: InDesign

Similar Questions

  • should I replace Pages with Word

    I'm used to Windows Word and find which Pages are frustrating, especially when you try to create an envelope from a letter I just wrote. Should I replace Pages with nWord if possible.

    Yes. It is possible to install Microsoft Office for Mac on Mac if you're willing to pay Microsoft for it.

    Personally, I use rather LibreOffice. It meets my needs and costs nothing.

  • How is it when I try to open one of my favorte often visited Web sites I get a blank page with only the word 'false' in the upper left?

    How is it when I try to open one of my favorte often visited Web sites I get a blank page with only the word 'false' in the upper left?

    This just started happening the last two days.  I tried to add the url to my list to activate in Internet Options, also to accept the list for windows firewall. I rebooted and restored.

    It is annoying when I can't access Web sites on my PC.  There is no control parenting, nor is it a reason to be since I'm 57 years old, single, live alone and have no children, and not to mention that this isn't a single adult site. This is an auction site.  The same thing happens on a site of sports too.

    Hello

    Thank you for writing to Microsoft Communities.

    I understand how it could be frustrating when things do not work as expected. Please, I beg you, don't worry I'll try my best to resolve the issue.

    1. what operating system is installed on the computer?

    2. what version of Internet Explore do you use?

    3 have there been recent changes to the computer before the show?

    Please go ahead and follow the steps mentioned and later a update on the State of the question.

    Method 1: Start Internet explorer with the mode without modules and check.

    Click Start, all programs, accessories, System Tools, and click Internet Explorer (No Add-ons).

    If the problem does not persist in Internet Explorer (No Add-ons), then it is one of the Add-ons at the origin of this problem. Please follow the steps below to locate the problem the weak module:

    a. restart IE normally.

    b. click on tools.

    c. click on Manage Add-ons.

    d. disable add-ons by clicking on them one at a time to highlight and then click Disable.

    e. reactivate modules one by one and check with what add-on, you get this error message.

    f. turn off the add-on at the origin of the problem.

    For your reference: http://Windows.Microsoft.com/en-us/Windows7/Internet-Explorer-Add-ons-frequently-asked-questions

    (For Windows Vista)

    Method 2: How to optimize Internet Explorer:

    http://support.Microsoft.com/kb/936213/no

    Important: Reset Internet Explorer to its default configuration. This step will disable also any add-ons, plug-ins or toolbars that are installed. Although this solution is fast, it also means that, if you want to use one of these modules in the future, they must be reinstalled.

    Follow these recommended steps and after if you still experience the problem.

  • Script dynamic Page numbering does not work on pages with engineered?

    I work in Acrobat Pro XI on a document of 4 pages with a button that allows a page template will be inserted after page 3.  I created a button for this, and it works fine.  But each page has a text field that is supposed to automatically update all the page numbers.  The code looks like this:

    Event.Value = "page" + (event.target.page + 1) + "of" + this.numPages; ""

    calculateNow();

    On the four pages visible when the file is opened it works perfectly; they will update "Page 1 of 4" to "1 of 5", etc. without any problems.  However, the inserted template pages are very random.  Sometimes the firstbegotten will work and say Page 4 of 5, but sometimes he will say Page 0/4.  It is worth noting that even when he says Page 4 of 5 print this page shows that this saying Page 0 out of 4 again.  And all additional pages triggered after which lists a bunch of random numbers on the right number of pages.  So it will look like "Page 7, 6, 5, 4, 31 9.

    I search by a large number of questions already asked and have not seen enough.

    If you want to add a new page with each press of the button, you can simplify the code:

    getTemplate("Addittional_Collaborators").spawn (numPages, true, false);

    but you need to add code to define correctly the ' page x of y "field values. Post again if you have trouble with this part.

  • Three tickets per page with auto numbering to 300 tickets ticket

    I want to print 300 tickets with unique sequential ticket numbers. I have three tickets per page. Is it possible to do it automatically?

    I do tickets using a number of list generated in Excel and saved in a text file. You can do this in a number of ways.

    Easier is to set up the master page with three frames of text related to contain the number and define a paragraph with an option of Dungeon style to start each paragraph in the next section, then use the file > place... and the automatic text placement.

    You can also implement models of fusion of data (whether for one record per page, which requires three numbers each record for three of the tickets or for a several records per page merge, which would use one number per line) and the tickets in this way.

    If you google, you probably can find several previous discussions where this is discussed in detail by me and several other users.

  • Import multiple Word documents of several pages with the same master page?

    Hi, I should start by saying that I have no experience with script.  However, I wonder if there is a simple script for the following problem:

    I created a master page with three linked text boxes. Right now, I use Cmd + D to select a file in word, and then Shift + click in the first box to place the text on the page. But I have 125 pages that are exactly the same, just different layout Word files to import. I could repeat this process 125 times, but I wonder if there is a way to tell InDesign to create 125 pages using the Master Page X and a for each import file?

    I use InDesign CS5 v 7.0.4 on Mac OS x Snow Leopard 10.6.7 v

    I thank in advance for any help you can offer,

    NW

    I'm sorry. The problem is that InDesign treats the two pages of the spread of master together, I guess you have to make a few hoop jump. Try this, then:

    var
        d=app.activeDocument,
        p=d.pages,
        i, frames, masterPage, page;
    
    for (i=0; i
    

    We have to check the whether the page is a left-hand page, and if it is, use the first page (0) of the master spread, otherwiseuse the right page.


  • Extension to work with Word Press pages?

    Where can I get an extension that will allow me to work with Word Press pages in DW?

    Thank you.

    You mean dreamer theme?

    To do this, you will find a link in the tutorial below:

    Creating a press theme Word in Dreamweaver - part 1, the basics
    http://www.Adobe.com/devnet/Dreamweaver/articles/creating_wordpress_theme_with_dreamweaver _pt1.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • Start numbering pages on other than to the first page

    I'm on a 2009 MacBook Pro, Yosemite 10.10.5, with Pages 5.6.1

    As a novelist, I start each document with a title page, followed a warning of fiction page. The real story starts on page three.

    I need to start my pagination with 'Page 1' on page three, but have been unable to find a way. [It was so simple in Word...]

    You will have a separate section for your title page, your warning of fiction page, and then a third section to start numbering pages at 1.

    When you insert a page number in section 3, it will be to see the 3 pages. You visit the toolbar of the Document element and select the tab of the Section from it. On the tab of the Section you want to uncheck Hide on the first page of the article if it is checked and in the numbering of the Page, uncheck the box continue on the previous article and set at: 1.

  • I wish not to have mozilla addons as my opening page and the ant to return to a simple page with the address space and of the space of google at the top right

    With the help of my Macbook Pro I did accidentally Ask.com my search page when I opened Firefox last week. I wanted to restore to my original logon page. Try to delete it seemed impossible so I tried of are they more important than the page back to the original with an address bar in the upper left corner and a bar (Google) search in the upper right using mozilla somehow. Unfortunately Mozilla Addons page now opens when I click on firefox. These modules can be very useful in the future, but I'm not to bother with them now. I would like to now how to remove this page so that it is not open and restore what I had before. P.S. I had to try to eliminate Ask.com according to the instructions... with pictures even. Hard to find for Apple.

    virginiakropas said

    Thanks for the info on default, jscher2000. He worked almost exactly as I wanted and although it is not a search bar in the right corner, I'm happy. It also seems to solve most of the malware download. I am allowed to open with Word (docx) and preview (jpg). Only the pdf must be saved, but I can name and put it where I want to find easily to remove.

    I'll keep your last email to refer to when I check Add-ons, etc. Thank you very much. It now seems ridiculously simple. Thanks to you and the support of Mozilla.

    Virginia

  • Export of pages in word format

    I am using a Pages document that I saved as a model because it has the logo of the company and images etc, and then I add the required text and save as a document.  Once I did I then need to export to a word document.

    The works of export, but the text is not saved on the same page... and appears on the second page, as if the words slipped out of the model page

    Please y at - there a way around this.

    Thank you very much

    Penny

    I used Pages 5.6.2, found an existing template in Pages that had graphics.

    Registered as a doc Pages.

    Then exported in file .docx for Word 2016.

    Opened in Word 2016 and saved as a new model.

    It seems close.

    See the pix.

    Note the extra page in Word, but you can fix that with margins. The full text is here. 433 words in both documents.  The graphics as well.  You need to play with the text box.  Search for page breaks in Word (see where they use the invisible command show) and see if this helps you locate a possible problem area.

  • Add pages with restriction

    I want to calculate and add up the hours in the weekly planning table, but only those that contain a specific word.

    1 cell (class from 10:00 - 11:15) + 2. cell (11:15-12:00 break) + 3. cell (12:00-13:00 meeting) + 4. cell (13:00-13:45 run)

    for example:

    Jeff comes only for the class and meeting. So I want to add only class & session, including 2 h 15 min.

    But Nathan only comes to break, meeting & run. 2 h 30 min. my problem, that's every day is different, so I can't select specific cells, so it can calculate only what I need. I want to select each column in a week, so the program can search for specific words and only those which adds up.

    My question is there is a way I can do this? like functions, sumif and sumifs maybe... I couldn't understand it yet. He said only: I don't understand 10:00 - 13:00... I thought that maybe I could join each cell a 'hidden' length of time calculation, I can't say the program is this term with this word and to only add those... something like that...

    Thank you in advance!

    Algernom

    Hi Algernom,

    " It just says: I don't understand 10:00 - 13:00....

    A table of Pages reads "Word from 10:00 - 13:00 ' as a text string, not as 'a pair of time, separated by a hyphen and followed by a word' and might not know what to do with this string as part of a mathematical formula

    There should not be very difficult to achieve the desired result, but the method will depend on the way in which the data is organized. Here's one possibility:

    Data are a calendar indicating the days and activities. The names of the people who attend are entered in the cells of the body.

    Research is a lookup table listing the activities and their departure times. As each activity starts at the time of the end of the previous activity, end time can be picked up in the cell below the start time, ad only the time of the end of the last activity should be included as a separate entrance...

    The duration of each activity is calculated in column C using this formula:

    Lookup::C2: B3−B2

    Fill to the list of the last entry line. If it is filled in the last row of the table, the formula returns an error of invalid reference.

    The result column using COUNTIF to count the number of times where a name is registered to an activity, then multiply this figure by the duration of the activity. There are four sections to this formula, one for each activity, separated by signs more. (Spaces entered after each + 'stack' sections below.) The sum of the four results is returned to the cell of hours of this line.

    Result::B2:

    = COUNTIF(Data::$2:$2,"=*"&A2&"*") × LOOKUP(Data::$A$2,Lookup::A,Lookup::C) + COUNTIF (data: $3: $3, "= *" & A2 & "*") × LOOKUP(Data::$A$2,Lookup::A,Lookup::C) + COUNTIF (data: $4: $4, "= *" & A2 & "*") × LOOKUP(Data::$A$2,Lookup::A,Lookup::C) + COUNTIF (data: $5: $5, "= *" & A2 & "*") × LOOKUP(Data::$A$2,Lookup::A) Lookup::C)

    Fill up to the last row of the result table.

    This may require revision if your table (s) is (are) prepared differently.

    Kind regards

    Barry

  • Auto Convert Pages to Word

    I was wondering if there was a way to automatically convert a pages document to a word document without having to manually export all the time.

    I saw this forum: Documents automatically from Word Documents conversion Pages with various scripts but they do not seem to work.

    I know that the forum was posted by 2013 an old version pages (4.3). I am currently using the latest version of the (5.6.2) pages and office 2016

    Any help would be really appreciated!


    Simply use Word instead of Pages If you want words

  • Google search results on the page with "(function(){}) (;(function(){})()');"

    Installed FF9.0.1. I type a word in the google search bar and results. When I select 'shopping' from the left navigation, it flashes the results and then refreshes instantly to a white page with this in mind: (function() {}) ();(function(){})();

    The same thing happens if I click on 'News' and 'Videos' of the NAV. However, if I click on 'Images' and 'Maps' it works fine and load the corresponding Google search results. The url below is a search for 'test '.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Can I convert a Pages, Microsoft Word doc?

    Can I convert a Pages, Microsoft Word doc?

    Normally, you should be able to simply open the .doc with Pages and then save it again in .pages format.  Have you had a problem what do I do?  Of course, you want to keep it as a .doc so that MS Office can always read (it cannot read .pages).

  • You can use spotlight search to find which page the word is on a document?

    I use PDF files a lot, and I'm often looking for a specific word in the document. Is it possible to use spotlight or the finder, search open to a page where a specific word is inside this PDF or document (without opening the PDF file and use CMD + F)?

    Yes, I searched the word: AudioUnit, in Spotlight.

    Press return, the PDF file opened in preview:

    Press back again & I was redirected to the page with the word I was looking for.

    NB. Check system preferences > Spotlight > results & ensure that the PDF Documents is checked.

Maybe you are looking for

  • HP Photosmart 5520

    My Photosmart HP 5520 started doing this recently. I can't print directly from Microsoft Word. Instead of this, when I try to print from my Word doc and press on print, it gives me the opportunity to OneNote, or Microsoft XPS Document Writer. I don't

  • How to record video in or of port S-video on Qosmio G40?

    Can someone tell me how to record video or S-video ports, because I tried the Ulead DVD factory program and only capture device, he could see was the webcam, and he did capture her After that, I downloaded the file to update provided by the support W

  • Satellite A80 does not illuminate

    Hello When I push the power button / nothing happens. 2 of the 4 leds are on - the blue on the far left (when you look at the front) and orange, 3rd single along the left. The power adapter is in, but there not all leds not sure if it is on, but it d

  • d103tx

    I bought this laptop... d103tx but I am not able to install drivers wifi... What do I do...?

  • Install Windows 7 on hp SPECTRUM XT 13220

    with all humble master,. I would like to ask something makes me confused, I have laptop hp laptop model XT SPECTRUM 13220, I can't install this laptop like the others. When I boot cd rom and run the Windows 7 Installer, the installer can't find the H