-
Notifications
You must be signed in to change notification settings - Fork 37
Bilara segment number spec
Bilara segment numbers use a threefold numbering system.
text-uid:major-segment-number.minor-segment-number
Eg. mn23:4.6
.
This is always the canonical ID of the sutta. Usually it is the same as the file name, and is always the same as the id
in the <article>
tag.
The text-uid
is only different from the file name if it is a "debaked range sutta". In this case each sutta has its unique number, while the file name expresses the range of numbers.
This is incremented based on the structural elements of the text, primarily paragraphs. But it also includes lists, so the increment occurs on:
<p>
<ol>
<ul>
<dl>
This is a simple increment.
The increment follows the section numbers established by the Pali Text Society in the case of DN and Vinaya, and by Ñāṇamoḷi in the case of MN.
Headings are a special case. Since they do not occur in root texts, and are usually omitted from paragraph number counts, we assign them a zeroth level number.
- The main title of the sutta is inside a
<header>
tag at the top of the page. Segments inside the<header>
are assigned0.1
,0.2
,0.3
etc. - Subheadings may take
<h2>
–<h6>
. They pertain to the following paragraph, so always take the zeroth level of the subsequent paragraph. An<h2>
heading beforemn23:3.1
would therefore bemn23:3.0
.- If there are two subsequent headings, eg.
<h2>
followed by<h3>
, increment the zeroth level:mn23:3.0.1
,mn23:3.0.2
.
- If there are two subsequent headings, eg.