<?php
//If request("physunits") = "on" then
$basicPhysUnitsArray = array(
//' ### removing false footnotes
' m<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => ' m<sup>2</sup>',
' m<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => ' m<sup>3</sup>',
'/m<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '/m<sup>2</sup>',
'/m<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '/m<sup>3</sup>',
'(m<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '(m<sup>2</sup>',
'(m<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '(m<sup>3</sup>',
' s<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => ' s<sup>2</sup>',
' s<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => ' s<sup>3</sup>',
'/s<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '/s<sup>2</sup>',
'/s<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '/s<sup>3</sup>',
'(s<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '(s<sup>2</sup>',
'(s<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '(s<sup>3</sup>',
' km<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => ' km<sup>2</sup>',
' km<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => ' km<sup>3</sup>',
'/km<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '/km<sup>2</sup>',
'/km<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '/km<sup>3</sup>',
'(km<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '(km<sup>2</sup>',
'(km<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '(km<sup>3</sup>',
' cm<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => ' cm<sup>2</sup>',
' cm<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => ' cm<sup>3</sup>',
'/cm<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '/cm<sup>2</sup>',
'/cm<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '/cm<sup>3</sup>',
'(cm<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '(cm<sup>2</sup>',
'(cm<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '(cm<sup>3</sup>',
' mm<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => ' mm<sup>2</sup>',
' mm<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => ' mm<sup>3</sup>',
'/mm<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '/mm<sup>2</sup>',
'/mm<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '/mm<sup>3</sup>',
'(mm<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '(mm<sup>2</sup>',
'(mm<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '(mm<sup>3</sup>',
' ft<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => ' ft<sup>2</sup>',
' ft<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => ' ft<sup>3</sup>',
'/ft<sup><a href="#footnote" name="note" title="Link to footnote ">2</a></sup>' => '/ft<sup>2</sup>',
'/ft<sup><a href="#footnote" name="note" title="Link to footnote ">3</a></sup>' => '/ft<sup>3</sup>',
'm<sup><a href="#footnote" name="note" title="Link to footnote ">-1</a></sup>' => 'm<sup>-1</sup>',
'm<sup><a href="#footnote" name="note" title="Link to footnote ">-2</a></sup>' => 'm<sup>-2</sup>',
'm<sup><a href="#footnote" name="note" title="Link to footnote ">-3</a></sup>' => 'm<sup>-3</sup>',
's<sup><a href="#footnote" name="note" title="Link to footnote ">-1</a></sup>' => 's<sup>-1</sup>',
's<sup><a href="#footnote" name="note" title="Link to footnote ">-2</a></sup>' => 's<sup>-2</sup>',
'h<sup><a href="#footnote" name="note" title="Link to footnote ">-1</a></sup>' => 'h<sup>-1</sup>',
//' *** the following section sometimes misses units that have
//' *** letters that could form the beginning of a word. (m,s,mi,h,g,l,gal,L,N,Pa,ha)
//' *** because they don't necessarily have spaces after them
//' ### replacing with non-breaking space
' m ' => ' m ', //' ****
' m/' => ' m/',
' km' => ' km',
' cm' => ' cm',
' mm' => ' mm',
' µm' => ' µm',
' nm' => ' nm',
' ft' => ' ft',
' s ' => ' s ', //' ****
' s/' => ' s/',
' mi ' => ' mi ', //' ****
' mi/' => ' mi/',
' mi.' => ' mi.',
' ha ' => ' ha ', //' ****
' kph' => ' kph',
' kmph' => ' kmph',
' sq. m' => ' sq. m',
' sq. km' => ' sq. km',
' cu. m' => ' cu. m',
' cu. km' => ' cu. km',
' sq. ft' => ' sq. ft',
' sq. mi' => ' sq. mi',
' cu. ft' => ' cu. ft',
' cu. mi' => ' cu. mi.',
' hrs' => ' hrs',
' yrs' => ' yrs',
' h ' => ' h ', //' ****
//' *** the preceding line will affect times in French, ex. 8 h 30
' h/' => ' h/',
' lb.' => ' lb.',
' lb' => ' lb',
' g ' => ' g ', //' ****
' g/' => ' g/',
' kg' => ' kg',
' µg' => ' µg',
' mg' => ' mg',
' l ' => ' l ', //' ****
' l/' => ' l/',
' gal ' => ' gal ', //' ****
' gal/' => ' gal/',
' L ' => ' L ', //' ****
' L/' => ' L/',
' N ' => ' N ', //' ****
' N/' => ' N/',
' kPa' => ' kPa',
' Pa ' => ' Pa ', //' ****
' Pa/' => ' Pa/',
' yd' => ' yd',
' ppm' => ' ppm',
' ppb' => ' ppb',
' ppt' => ' ppt',
' t ' => ' t ',
);
$basicPhysUnitsRxpArray = array(
'([0-9]*10)<sup><a href="#footnote" name="note" title="Link to footnote ">([0-9]{1,3})<\/a><\/sup>' => '$1<sup>$2</sup>',
);
//End If
?>
|