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):

ExampleCMSOUP
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


Repository Home Page


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.

Bookmark
Please login to bookmark Close

This article was last modified on August 22, 2026

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading comments...