Oxford University Press Text Capture Instructions

 

Line Numbers

Capture a line number by using a milestone within the line element.

Some texts, especially poetical works, contain line numbers to help the reader locate a reference. Line numbers are captured as empty milestone elements.


<line>
<milestone unit="line" num="5" id="actrade-9780198150398-milestone-4263"/>...</line>

A milestone element should be captured for every line, not just those numbers appearing in the print edition. In some cases it may be difficult to determine where a line starts (since in stage dialogue a single line of the text could be split between different speakers, or have a stage direction interpolated). Please contact OUP if it proves difficult to assign line numbers for a particular work.

Note that line numbers (the num attribute of a milestone element with unit="line") will not necessarily be unique within an XML file. They will only be unique within a particular section of the file, e.g. a page or a poem.

The milestone element should always be captured at the start of a line, even if the print edition displays the number at the end of the line.

Special line numbers

For the title of a poem, letter, scene of a play, etc.:


<line>
<milestone unit="line" num="title" id="actrade-9780198150398-milestone-4256"/>...</line>

For the stage direction preceding the first line of dialogue of a scene etc.:


<line>
<milestone unit="line" num="0" id="actrade-9780198150398-milestone-4257"/>...</line>

Hiding line numbers

When instructed to include hidden line numbers, the section of text should be captured with milestone for each line with the addition of the attribute role=”hidden”


<line>
<milestone unit="line" num="5" role="hidden" id="actrade-9780198150398-milestone-4263"/>...</line>

Forcing display of line numbers

When instructed to force the display of line numbers, the line milestone should have the attribute role=”forceDisplay”.


<line>
<milestone unit="line" num="7" role="forceDisplay" id="actrade-9780198150398-milestone-4265"/>...</line>

Turn-over lines

Content may contain turn-over lines when authentic text is reproduced and the page is not wide enough to show it in the original format. The line from the authentic text will be continued on the next line, but is not considered a new line for capture.

media/860885_image73.png


<displayText class="dialogue" id="actrade-9780198127703-displayText-11">
<speech><milestone id="actrade-9780198146285-milestone-237" num="28" unit="line"/><speaker>
<sc>So.</sc>
</speaker><line>sum uero uerna uerbero: numero mihi in mentem fuit</line><line>
<milestone id="actrade-9780198146285-milestone-238" num="29" unit="line"/>dis
aduenientem gratias pro meritis agere atque adloqui?</line><line>
<milestone id="actrade-9780198146285-milestone-240" num="30" unit="line"/>ne illi
edepol si merito meo referre studeant gratiam,</line><line>
<milestone id="actrade-9780198146285-milestone-241" num="31" unit="line"/>aliquem
hominem adlegent qui mihi aduenienti os occillet probe,</line><line>
<milestone id="actrade-9780198146285-milestone-242" num="32" unit="line"/>quoniam
bene quae in me fecerunt ingrata ea habui atque inrita.</line>
</speech>
<speech><milestone id="actrade-9780198146285-milestone-243" num="33" unit="line"/><speaker>
<sc>Me.</sc>
</speaker><line>facit ille quod uolgo hau solent, ut quid se sit dignum sciat.</line>
</speech>
<speech><milestone id="actrade-9780198146285-milestone-244" num="34" unit="line"/><speaker>
<sc>So.</sc>
</speaker><line>quod numquam opinatus fui neque alius quisquam ciuium</line><line>
<milestone id="actrade-9780198146285-milestone-246" num="35" unit="line"/>sibi
euenturum, id contigit, ut salui poteremur domi.</line>
</speech>
</displayText>

Line numbers in prose

Add line numbers to prose text if required or requested. This may be due to:

  • The authentic text has line numbers.
  • Notes are cued to line numbers, even though the numbers are not shown in the authentic text.
In both cases, capture the text using line and milestone unit="line" for each line in the authentic text. If the line numbers are not shown in the authentic text, use the attribute role="hidden", as explained above.

media/lineated-prose.png


<div2 isChunk="yes" id="actrade-9780748605828-div2-1" doi="10.1093/actrade/9780748605828.div2.1">
<titleGroup id="actrade-9780748605828-titleGroup-15"><title>
<p alignment="centre">
<milestone unit="line" num="title" id="actrade-9780748605828-milestone-25"/>
<milestone unit="line" role="hidden" num="5" id="actrade-9780748605828-milestone-26"/>
<enumerator altNum="3.1">
<span class="blackletter">Chapter One</span>
</enumerator>
</p></title>
</titleGroup>
<p>
<displayText class="verse" alignment="centre" id="actrade-9780748605828-displayText-6">
<lineGroup id="actrade-9780748605828-lineGroup-15">
<line alignment="centre">
<milestone unit="line" role="hidden" num="6" id="actrade-9780748605828-milestone-27"/>———The two retired</line>
<line alignment="centre">
<milestone unit="line" role="hidden" num="7" id="actrade-9780748605828-milestone-28"/>To the wilderness, but 'twas with
arms.</line>
</lineGroup>
<source>
<p alignment="right">
<milestone unit="line" role="hidden" num="8" id="actrade-9780748605828-milestone-29"/>
<i>Paradise Regained</i>
</p>
</source></displayText>
</p>
<p>
<displayText class="other">
<lineGroup>
<line>
<milestone unit="line" role="hidden" num="9" id="actrade-9780748605828-milestone-30"/>
<sc>The burning</sc> sun of Syria had not
yet obtained its highest point </line>
<line>
<milestone unit="line" role="hidden" num="10" id="actrade-9780748605828-milestone-31"/>in the horizon, when a knight of the red
cross, who had left his </line>
<line>
<milestone unit="line" role="hidden" num="11" id="actrade-9780748605828-milestone-32"/>distant northern home, and joined the
host of the crusaders in </line>
<line>...</line>
</lineGroup></displayText>
</p>
</div2>
Release ID:
20260304
ID:
line_number
Author:
buckmasterm
Last changed:
Wed, 04 Jun 2025
Modified by:
buckmasm
Revision#:
4400