Microsoft Measurement Converter Smart Tag – Chinese version
Measurement Converter Smart Tag recognizes commonly used metric and imperial measurement units in a Word document. You can then convert units from one system to the other, for example convert miles to kilometers or pints to liters. You can also add new recognized units and edit conversion rules. The smart tag works with Word only.
Syntax
of measurement units The smart tag will recognize measurement units with the
following syntax: <float number><space (optional)><unit
name>, for example “
Supported conversions Most conversions are simple multiplications by a coefficient. By default, the Measurement Converter Smart Tag supports the following conversions:
|
Length |
Area |
Volume |
|
miles <-> kilometers |
square
feet <-> m2 |
pints <-> liters |
|
centimeters <-> inches |
square
yards <-> m2 |
gallons <-> liters |
|
millimeters -> inches |
acres <-> hectare |
oz <-> deciliters |
|
feet <-> centimeters |
acres <-> m2 |
quarts <-> liters |
|
meters <-> feet |
|
M3 <-> cubic feet |
|
meters <-> yards |
|
|
|
Temperature |
Weight |
Speed |
|
Celsius
<-> Fahrenheit |
pounds <-> kg |
mph <-> km/h |
|
|
g <-> ounces |
|
Conversion precision The Measurement Converter Smart Tag rounds results of all conversions. Rounding precision differs between conversion rules. Rounding precision is defined for each conversion rule as the number of decimal places in the conversion result. Precision is set to 2 decimal places for most conversions. Precision is adjusted accordingly for conversions where the target value is much larger or much smaller than the source value.
Use Excel for more conversions You can use Microsoft Excel for more conversion features. The CONVERT() formula supports a wide range of measurement conversions in an Excel worksheet. See Excel online help for information how to enable the CONVERT() formula.
Editing the list of conversions You can add, remove or modify measurement units that shall be recognized in Word documents. Measurement Converter Smart Tag reads conversion rules from a Unicode text file when Word is launched. The chmetcnv.txt is stored on your hard drive, in a location that is selected when installing the smart tag. You can open chmetcnv.txt in Notepad and edit the contents. Each line in the chmetcnv.txt represents a conversion rule. Each rule is defined by 10 fields, delimited by commas:
|
# |
Field Description |
Field Value |
Example |
Note |
|
1 |
Locale for which the unit is recognized |
a) LCID b) “All” if recognized in all languages |
All |
The LCID is an identification number used by Windows to uniquely identify locales and languages. See the MSDN Library at http://msdn.microsoft.com for a listing of LCIDs. |
|
2 |
Source unit name |
Text |
km |
|
|
3 |
Source
description |
Text |
kilometer |
|
|
4 |
Not used in this version |
“Yes” or “No” |
No |
Please enter “No” |
|
5 |
Not used in this version |
“Yes” or “No” |
No |
Please enter “No” |
|
6 |
Destination unit name |
Text |
mi |
|
|
7 |
Destination
description |
Text |
mile |
|
|
8 |
Not used in this version |
“Yes” or “No” |
No |
Please enter “No” |
|
9 |
Rounding precision (number of decimal places in the target) |
Integer value ranging from 0 to 9 |
3 |
|
|
10 |
Conversion ratio or formula reference |
a) Float value ranging from 0.00000000000001 to 1000000. The value must not include a comma. b) “CTOF” (Celsius to Fahrenheit) c) “FTOC” (Fahrenheit to Celsius) |
0.6213712 |
|
The
Measurement Converter smart tag always supports conversion rules which have
“All” in Field #1. In addition to these rules, the smart tag also supports
rules with an LCID value matching the user locale of your Windows regional
settings. For example, if the user locale on your system is set to Simplified
Chinese, Measurement Converter will load conversion rules marked “All” and “
Field #2 (“Source unit name”) of the list contains the recognizable strings, i.e. strings that the smart tag will detect and tag in a Word document. You can add comments in the chmetcnv.txt on a new line as long as they are preceded by the “//” delimiter.
Number
formats The smart tag supports valid English and Chinese
number, e.g. 123, 一百二十三, 壹佰贰拾叁.
Limitations Please notice that
there’re some known limitations to the conversion rule and smart tag usage.
1.
Total rules number cannot be greater than 256. That means,
if you run the smart tag in Simplified Chinese Office, the total number of
rules which LCID is “All” or “
2.
If a rule’s source unit name is the substring of another
one’s, e.g. “平方英尺”and“英尺”you must put the rule
with long unit name at the topper position.
3.
If adding user defined rules, the source unit name must be
the one that Office word breaker can correctly break. Otherwise the user
defined rule will not work.
4.
If a line in Word document starts in a western character,
smart tag strings in that line may not be recognized as expected.