Esempio: <unitDecl> (unit declarations)

These search results reproduce every example of the use of <unitDecl> in the Guidelines, including all localised and translated versions. In some cases, the examples have been drawn from discussion of other elements in the Guidelines and illustrating the use of <unitDecl> is not the main focus of the passage in question. In other cases, examples may be direct translations of each other, and hence identical from the perspective of their encoding.

2 The TEI Header


2.3.9 The Unit Declaration

<encodingDesc>
 <unitDecl>
  <unitDef xml:id="keeltype="weight">
   <label>keel</label>
   <placeName ref="#england"/>
   <conversion fromUnit="#chalder"
    toUnit="#keelformula="$fromUnit * 20from="1421"
    to="1676"/>

   <conversion fromUnit="#chalder"
    toUnit="#keelformula="$fromUnit * 16from="1676"
    to="1824"/>

   <desc>Keel was a unit measuring weight of coal. It had been equal to 20 chalders from 1421 to 1676, and it was made to be equivalent to 16 chalders from 1676 to 1824.</desc>
  </unitDef>
  <unitDef xml:id="chaldertype="weight">
   <label>chalder</label>
   <placeName ref="#england"/>
   <conversion fromUnit="#bushel"
    toUnit="#chalderformula="$fromUnit * 32from="1421"
    to="1676"/>

   <conversion fromUnit="#bushel"
    toUnit="#chalderformula="$fromUnit * 36from="1676"
    to="1824"/>

   <desc>Chalder was a unit measuring weight of coal. It had been equal to 32 bushels from 1421 to 1676, and it was made to be equivalent to 36 bushels from 1676 to 1824.</desc>
  </unitDef>
  <unitDef xml:id="busheltype="weight">
   <label>bushel</label>
   <placeName ref="#england"/>
   <desc>Bushel was a unit measuring weight of coal.</desc>
  </unitDef>
 </unitDecl>
</encodingDesc>

2.3.9 The Unit Declaration

<encodingDesc>
 <unitDecl>
  <unitDef xml:id="Celsius"
   type="temperature">

   <label>Celsius or Centigrade scale</label>
   <conversion fromUnit="#Fahrenheit"
    toUnit="#Celsiusformula="($fromUnit - 32) * (5 div 9)"/>

   <desc>To convert from the Fahrenheit to the Celsius scale, subtract 32 from the Celsius temperature and multiply by 5/9.</desc>
  </unitDef>
 </unitDecl>
</encodingDesc>

<unitDecl>

<unitDecl>
 <unitDef xml:id="type="weight">
  <label xml:lang="ja"></label>
  <label xml:lang="ja-Latn">kin</label>
  <conversion fromUnit="#両toUnit="#斤"
   formula="16"/>

 </unitDef>
 <unitDef xml:id="type="weight">
  <label xml:lang="ja"></label>
  <label xml:lang="ja-Latn">ryo</label>
  <conversion fromUnit="#分toUnit="#両"
   formula="4"/>

 </unitDef>
 <unitDef xml:id="type="weight">
  <label xml:lang="ja"></label>
  <label xml:lang="ja-Latn">Bu</label>
  <conversion fromUnit="#銖toUnit="#分"
   formula="6"/>

 </unitDef>
 <unitDef xml:id="type="weight">
  <label xml:lang="ja"></label>
  <label xml:lang="ja-Latn">Shu</label>
 </unitDef>
</unitDecl>

<unitDef>

<unitDecl>
 <unitDef xml:id="pechystype="length">
  <label>πῆχυς</label>
  <placeName ref="#athens"/>
  <conversion fromUnit="#daktylos"
   toUnit="#pechysformula="$fromUnit div 24"/>

  <desc>Equivalent to a cubit or 24 daktyloi.</desc>
 </unitDef>
 <unitDef xml:id="daktylostype="length">
  <label>δάκτυλος</label>
  <placeName ref="#athens"/>
  <desc>A basic unit of length equivalent to one finger (or the size of a thumb) in ancient Greece.</desc>
 </unitDef>
</unitDecl>

att.formula

<encodingDesc>
 <unitDecl>
  <unitDef xml:id="stadiumtype="linear">
   <label>stadium</label>
   <placeName ref="#rome"/>
   <conversion fromUnit="#pes"
    toUnit="#stadiumformula="$fromUnit * 625"/>

   <desc>The stadium was a Roman unit of linear measurement equivalent to 625 pedes, or Roman feet.</desc>
  </unitDef>
 </unitDecl>
</encodingDesc>

att.formula

<encodingDesc>
 <unitDecl>
  <unitDef xml:id="wmwtype="power">
   <label>whatmeworry</label>
   <conversion fromUnit="#hpk"
    toUnit="#wmwformula="$fromUnit * 1"/>

   <desc>In the Potrzebie system of measures as introduced by Donald Knuth, the whatmeworry unit of power is equivalent to one hah per kovac.</desc>
  </unitDef>
  <unitDef xml:id="kwmwtype="power">
   <label>kilowhatmeworry</label>
   <conversion fromUnit="#wmw"
    toUnit="#kwmwformula="$fromUnit div 1000"/>

   <desc>The kilowhatmeworry is equivalent to 1000 whatmeworries.</desc>
  </unitDef>
  <unitDef xml:id="aptype="power">
   <label>kilowhatmeworry</label>
   <conversion fromUnit="#kwmw"
    toUnit="#apformula="$fromUnit div 100"/>

   <desc>One unit of aeolipower (A.P.) is equivalent to 100 kilowhatmeworries.</desc>
  </unitDef>
 </unitDecl>
</encodingDesc>

3 Elements Available in All TEI Documents


<measure>

<measure type="weight">
 <num>2</num> pounds of flesh
</measure>
<measure type="currency">£10-11-6d</measure>
<measure type="areaunitRef="#merk">2 <unit>merks</unit> of old extent</measure>
<!-- In the TEI Header: -->
<encodingDesc>
 <unitDecl>
  <unitDef xml:id="merktype="area">
   <label>merk</label>
   <placeName ref="#Scotland"/>
   <desc>A merk was an area of land determined variably by its agricultural productivity.</desc>
  </unitDef>
 </unitDecl>
</encodingDesc>

<unit>

<measure>
 <num>3</num>
 <unit unitRef="#ell">ells</unit>
</measure>
<!-- In the TEI Header: -->
<encodingDesc>
 <unitDecl>
  <unitDef xml:id="ell">
   <label>ell</label>
   <placeName ref="#iceland"/>
   <desc>A unit of measure for cloth, roughly equivalent to 18 inches, or from an adult male’s elbow to the tip of the middle finger.</desc>
  </unitDef>
 </unitDecl>
</encodingDesc>