Drop Digits (Number-Span Elision)
Drop digits in number ranges (a.k.a. number-span elision; condensing inclusive numbers).
This script is part of the Type and Text collection. See the full collection here.ย
Number spans (such as page ranges) are often abbreviated โ for example, 42โ43 as 42โ3 and 123โ128 as 123โ8. This is known as number-span elision, abbreviating (or condensing) inclusive numbers, number abbreviation, and, more informally, as digit-dropping.
Not only are there different names for this custom, there are different styles too. The scripts described on this page deal with the styles set out in the style guides of Chicago University Press (The Chicago Manual of Style, pp. 759โ60) and Oxford University Press (New Hart’s Rules: The Oxford Style Guide, pp. 590โ1). The CMS rules are widely used, the OUP style is more popular in Britain. The differences between the two are best summarised by the following table (examples based on those in the CMS, some added to show OUP style):
| Example | CMS | OUP |
| 3โ10 12โ18 71โ72 96โ117 100โ104 1100โ1113 101โ108 808โ833 1103โ1104 321โ328 498โ532 1013โ1019 1087โ1089 1496โ1500 11564โ11615 12991โ13001 | 3โ10 12โ18 71โ72 96โ117 100โ104 1100โ1113 101โ8 808โ33 1103โ4 321โ28 498โ532 1013โ19 1087โ89 1496โ1500 11564โ615 12991โ13001 | 3โ10 12โ18 71โ2 96โ117 100โ4 1100โ13 101โ8 808โ33 1103โ4 321โ8 498โ532 1013โ19 1087โ9 1496โ1500 11564โ615 12991โ3001 |
The general idea is that in the OUP style as many digits as possible are dropped but teens are maintained (11โ17, not 11โ7). The CMS stipulates that digits are dropped only when the first number is greater than 100; no digits are dropped when the first number is a multiple of 100; in ranges 101โ109, 201โ209, etc. only the changed part is used (101โ8, 1203โ4); ranges of 110 through 199, 210 through 299, etc., two or more digits remain: 321โ28, 1087โ89. All styles stipulate that spans that cross centuries aren’t abbreviated (1997โ2002).
The scripts
The scripts are set up in such a way that they target a particular paragraph style, namely, Running Header. The main reason for restricting the scope of the scripts is that they often cannot be used indiscriminately; for example, number ranges are usually not abbreviated in titles and headings; dates that cross the boundary of a century aren’t elided (1992โ2004); and spans in years BC are not abbreviated in order to avoid ambiguity.
To target a different character style, change line 4 of the script, where it now says
var pstyleName = 'Running Head';
Replace ‘Running Head’ with the name of the style you want to target.
To run the script indiscriminately anyway, in an index, for instance, simply make sure that the paragraph style coded in the script is not in the document.
You can use plain dashes and en rules in number ranges, the scripts match both.
Version history
8 Jan. 2023: Fixed some errors in the description (thanks to Marc Autret for spotting them).
29 Nov. 2020: Fixed a bug in the CMS version.
9 Sept. 2017: First posted.
Peter Kahrel Script Repository
Hosted as a community service, and with deep appreciation, by CreativePro.com
Scripts by Topic | Script Index
Basic Script Installation and Use
How to Modify or Configure These Scripts
Resources for Scripting and Publishing Automation
About This Repository
Contact Peter Kahrel
Note to users: You run scripts at your own risk: CreativePro and the author accept no liability for anything that may be caused by any of these scripts. Always take the necessary precautions. We encourage you to save backups and test scripts on copies of your documents.
This article was last modified on August 22, 2026
This article was first published on January 15, 2025
Commenting is easier and faster when you're logged in!
Recommended for you
InDesign GREP You Already Have
There are a few things in InDesign that send the most seasoned of designers scre...
Custom Running Headers
Running headers can be placed in InDesign by using text variables. This is a use...
Place Multiple Word and RTF Documents
Place any combination of selected DOC, DOCX, and RTF files in one InDesign docum...
