Module:Convert/text
-- Text used by Module:Convert for enwiki.
 -- This is a separate module to simplify translation for use on another wiki.
 -- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki.
 
 -- Some units accept an SI prefix before the unit code, such as &quot;kg&quot; for kilogram.
 local SIprefixes = {
 	-- The prefix field is what the prefix should be, if different from the prefix used.
 	['Y'] = { exponent = 24, name = 'யொட்டா',                  },
 	['Z'] = { exponent = 21, name = 'செட்டா',                  },
 	['E'] = { exponent = 18, name = 'எக்சா'  ,                  },
 	['P'] = { exponent = 15, name = 'பெடா' ,                  },
 	['T'] = { exponent = 12, name = 'டெரா' ,                  },
 	['G'] = { exponent =  9, name = 'கிகா' ,                  },
 	['M'] = { exponent =  6, name = 'மெகா' ,                  },
 	['k'] = { exponent =  3, name = 'கிலோ' ,                  },
 	['h'] = { exponent =  2, name = 'எக்டோ',                  },
 	['da']= { exponent =  1, name = 'டெக்கா' , name_us = 'deka' },
 	['d'] = { exponent = -1, name = 'டெசி' ,                  },
 	['c'] = { exponent = -2, name = 'சென்டி',                  },
 	['m'] = { exponent = -3, name = 'மில்லி',                  },
 	['μ'] = { exponent = -6, name = 'மைக்ரோ', prefix = 'µ'     },  -- key = 'GREEK SMALL LETTER MU' (U+03BC) utf-8 CE BC
 	['µ'] = { exponent = -6, name = 'மைக்ரோ',                  },  -- key = 'MICRO SIGN' (U+00B5) utf-8 C2 B5
 	['u'] = { exponent = -6, name = 'மைக்ரோ', prefix = 'µ'     },  -- not an SI prefix, but allow for people typing this
 	['n'] = { exponent = -9, name = 'நானோ' ,                  },
 	['p'] = { exponent =-12, name = 'பிகோ' ,                  },
 	['f'] = { exponent =-15, name = 'பெம்டோ',                  },
 	['a'] = { exponent =-18, name = 'அட்டொ' ,                  },
 	['z'] = { exponent =-21, name = 'செப்டோ',                  },
 	['y'] = { exponent =-24, name = 'யாக்டோ',                  },
 }
 
 -- Some units can be qualified with one of the following prefixes, when linked.
 local customary_units = {
 	{ &quot;US&quot;, link = &quot;United States customary units&quot; },
 	{ &quot;U.S.&quot;, link = &quot;United States customary units&quot; },
 	{ &quot;imperial&quot;, link = &quot;Imperial units&quot; },
 	{ &quot;imp&quot;, link = &quot;Imperial units&quot; },
 }
 
 -- Names when using engineering notation (a prefix of &quot;eN&quot; where N is a number; example &quot;e6km&quot;).
 -- key = { &quot;name&quot;, link = &quot;article title&quot;, exponent = numeric_key_value }
 -- If lk=on and link is defined, the name of the number will appear as a link.
 local eng_scales = {
 	[&quot;3&quot;]  = { &quot;ஆயிரம்&quot;, exponent = 3 },
 	[&quot;6&quot;]  = { &quot;மில்லியன்&quot;, exponent = 6 },
 	[&quot;9&quot;]  = { &quot;பில்லியன்&quot;, link = &quot;1000000000 (எண்)&quot;, exponent = 9 },
 	[&quot;12&quot;] = { &quot;டிரில்லியன்&quot;, link = &quot;1000000000000 (எண்)&quot;, exponent = 12 },
 	[&quot;15&quot;] = { &quot;குவாட்ரில்லியன்&quot;, link = &quot;1000000000000000 (எண்)&quot;, exponent = 15 },
 }
 
 local all_categories = {
 	unit = &quot;[[பகுப்பு:வார்ப்புரு மாற்று வழுக்கள்]]&quot;,
 	option = &quot;[[பகுப்பு:வார்ப்புரு மாற்று வழுக்கள்]]&quot;,
 	warning = '[[Category:Convert invalid options]]',
 	tracking = '[[Category:Convert tracking]]',
 }
 
 -- For some error messages, the following puts the wanted style around
 -- each unit code marked like '...%{ft%}...'.
 local unitcode_regex = '%%([{}])'
 local unitcode_replace = { ['{'] = '&quot;', ['}'] = '&quot;' }  -- no longer need the more elaborate substitute used before 2013-09-28
 
 -- All messages that may be displayed if a problem occurs.
 local all_messages = {
 	-- Message format string: $1=title, $2=text, $3=category, $4=anchor.
 	-- Each displayed message starts with &quot;Convert:&quot; so can easily locate by searching article.
 	cvt_format = '&lt;sup class=&quot;noprint Inline-Template&quot; style=&quot;white-space:nowrap;&quot;&gt;[&lt;i&gt;[[Help:Convert messages#$4|&lt;span title=&quot;Convert: $1&quot;&gt;convert: $2&lt;/span&gt;]]&lt;/i&gt;]&lt;/sup&gt;$3&lt;span class=&quot;error&quot;&gt;&lt;/span&gt;',
 	cvt_format2 = '&lt;sup class=&quot;noprint Inline-Template&quot; style=&quot;white-space:nowrap;&quot;&gt;[[Help:Convert messages#$4|&lt;span title=&quot;Convert: $1&quot;&gt;$2&lt;/span&gt;]]&lt;/sup&gt;$3&lt;span class=&quot;error&quot;&gt;&lt;/span&gt;',
 	cvt_format_preview = '&lt;strong class=&quot;error&quot;&gt;Error in convert: $1 [[Help:Convert messages#$4|(help)]]&lt;/strong&gt;$3',
 	-- Each of following messages is a table:
 	-- { [1] = 'title',         -- mouseover title text
 	--   [2] = 'text',          -- link text displayed in article
 	--   [3] = 'category key',  -- key to lookup category in all_categories
 	--   [4] = 'anchor',        -- anchor for link to relevant section on help page
 	--   regex = gsub_regex,
 	--   replace = gsub_table,
 	-- }                    Mouseover title text                           Link text               CatKey     Anchor
 	cvt_bad_input      = { 'input &quot;$1&quot; must be a number and unit'       , 'invalid input'       , 'option',  'invalid_input'        },
 	cvt_bad_num        = { 'Value &quot;$1&quot; must be a number'                , 'invalid number'      , 'option',  'invalid_number'       },
 	cvt_big_prec       = { 'Precision &quot;$1&quot; is too large'                , 'precision too large' , 'option',  'precision_too_large'  },
 	cvt_invalid_num    = { 'Number has overflowed'                      , 'number overflow'     , 'option',  'number_overflow'      },
 	cvt_no_num         = { 'Needs the number to be converted'           , 'needs a number'      , 'option',  'needs_number'         },
 	cvt_no_num2        = { 'Needs another number for a range'           , 'needs another number', 'option',  'needs_another_number' },
 	cvt_bad_altitude   = { '&quot;$1&quot; needs an integer'                      , 'invalid altitude'    , 'option',  'invalid_altitude'     },
 	cvt_bad_frac       = { '&quot;$1&quot; needs an integer above 1'              , 'invalid fraction'    , 'option',  'invalid_fraction'     },
 	cvt_bad_prec       = { 'Precision &quot;$1&quot; must be an integer'          , 'invalid precision'   , 'option',  'invalid_precision'    },
 	cvt_bad_sigfig     = { '&quot;$1&quot; needs a positive integer'              , 'invalid sigfig'      , 'option',  'invalid_sigfig'       },
 	cvt_empty_option   = { 'Ignored empty option &quot;$1&quot;'                  , 'empty option'        , 'option',  'empty_option'         },
 	cvt_deprecated     = { 'Option &quot;$1&quot; is deprecated'                  , '*'                   , 'option',  'deprecated_option', format = 'cvt_format2', nowarn = true },
 	cvt_no_spell       = { 'Spelling is not available'                  , 'bug, ask for help'   , 'option',  'ask_for_help'         },
 	cvt_unknown_option = { 'Ignored invalid option &quot;$1&quot;'                , 'invalid option'      , 'option',  'invalid_option'       },
 	cvt_wd_fail        = { 'Unable to access Wikidata'                  , 'wikidata problem'    , 'option',  'wikidata_problem'     },
 	cvt_bad_default    = { 'Unit &quot;$1&quot; has an invalid default'           , 'bug, ask for help'   , 'unit'  ,  'ask_for_help'         },
 	cvt_bad_unit       = { 'Unit &quot;$1&quot; is invalid here'                  , 'unit invalid here'   , 'unit'  ,  'unit_invalid_here'    },
 	cvt_no_default     = { 'Unit &quot;$1&quot; has no default output unit'       , 'bug, ask for help'   , 'unit'  ,  'ask_for_help'         },
 	cvt_no_unit        = { 'Needs name of unit'                         , 'needs unit name'     , 'unit'  ,  'needs_unit_name'      },
 	cvt_unknown        = { 'Unit name &quot;$1&quot; is not known'                , 'unknown unit'        , 'unit'  ,  'unknown_unit'         },
 	cvt_should_be      = { '$1'                                         , 'ambiguous unit'      , 'unit'  ,  'ambiguous_unit', regex = unitcode_regex, replace = unitcode_replace },
 	cvt_mismatch       = { 'Cannot convert &quot;$1&quot; to &quot;$2&quot;'                , 'unit mismatch'       , 'unit'  ,  'unit_mismatch'        },
 	cvt_bug_convert    = { 'Bug: Cannot convert between specified units', 'bug, ask for help'   , 'unit'  ,  'ask_for_help'         },
 	cvt_lookup         = { 'Unit &quot;$1&quot; is incorrectly defined'           , 'bug, ask for help'   , 'unit'  ,  'ask_for_help'         },
 }
 
 -- Text to join input value/unit with output value/unit.
 local disp_joins = {
 	-- [1]=before output, [2]=after output, [3]=between outputs in a combination; default &quot;; &quot;
 	-- [wantname] gives default abbr=off
 	[&quot;or&quot;]         = { &quot; or &quot;    , &quot;&quot; , &quot; or &quot;, wantname = true },
 	[&quot;sqbr-sp&quot;]    = { &quot; [&quot;      , &quot;]&quot; },
 	[&quot;sqbr-nbsp&quot;]  = { &quot;&amp;nbsp;[&quot; , &quot;]&quot; },
 	[&quot;comma&quot;]      = { &quot;, &quot;      , &quot;&quot; , &quot;, &quot; },
 	[&quot;slash-sp&quot;]   = { &quot; / &quot;     , &quot;&quot; , wantname = true },
 	[&quot;slash-nbsp&quot;] = { &quot;&amp;nbsp;/ &quot;, &quot;&quot; , wantname = true },
 	[&quot;slash-nosp&quot;] = { &quot;/&quot;       , &quot;&quot; , wantname = true },
 	[&quot;b&quot;]          = { &quot; (&quot;      , &quot;)&quot; },
 	[&quot;(or)&quot;]       = { &quot; (&quot;      , &quot;)&quot;, &quot; or &quot; },
 	[&quot;br&quot;]         = { &quot;&lt;br /&gt;&quot;  , &quot;&quot; , wantname = true },
 	[&quot;br()&quot;]       = { &quot;&lt;br /&gt;(&quot; , &quot;)&quot;, wantname = true },
 }
 
 -- Text to separate values in a range.
 local range_types = {
 	-- Specifying a table requires either:
 	-- * &quot;off&quot; and &quot;on&quot; values (for &quot;abbr=off&quot; and &quot;abbr=on&quot;), or
 	-- * &quot;input&quot; and &quot;output&quot; values (for LHS and RHS);
 	-- other fields are optional.
 	-- When &quot;adj=on|abbr=off&quot; applies, spaces in range text are replaced with hyphens.
 	-- With &quot;exception = true&quot;, that also occurs with &quot;adj=on|abbr=on&quot;.
 	-- If &quot;adj&quot; is defined here, that text (unchanged) is used with &quot;adj=on&quot;.
 	[&quot;+&quot;]      = &quot; + &quot;,
 	[&quot;,&quot;]      = &quot;,&amp;nbsp;&quot;,
 	[&quot;, and&quot;]  = &quot;, மற்றும் &quot;,
 	[&quot;, or&quot;]   = &quot;, அல்லது &quot;,
 	[&quot;by&quot;]     = &quot; கீழ் &quot;,
 	[&quot;-&quot;]      = &quot;–&quot;,
 	[&quot;to about&quot;] = &quot; சுமார் &quot;,
 	[&quot;and&quot;]    = { off = &quot; மற்றும் &quot;, on = &quot; மற்றும் &quot;, exception = true },
 	[&quot;and(-)&quot;] = { input = &quot; மற்றும் &quot;, output = &quot;–&quot; },
 	[&quot;or&quot;]     = { off = &quot; அல்லது &quot; , on = &quot; அல்லது &quot; , exception = true },
 	[&quot;to&quot;]     = { off = &quot; முதல் &quot; , on = &quot; முதல் &quot; , exception = true },
 	[&quot;to(-)&quot;]  = { input = &quot;&amp;nbsp;to &quot;, output = &quot;–&quot; },
 	[&quot;+/-&quot;]    = { off = &quot;&amp;nbsp;±&amp;nbsp;&quot;, on = &quot;&amp;nbsp;±&amp;nbsp;&quot;, adj = &quot;&amp;nbsp;±&amp;nbsp;&quot;, is_range_change = true },
 	[&quot;by(x)&quot;]  = { input = &quot; by &quot;, output = &quot; ×&amp;nbsp;&quot;, out_range_x = true },
 	[&quot;x&quot;]      = { off = &quot; by &quot;, on = &quot; ×&amp;nbsp;&quot;, abbr_range_x = true },
 	[&quot;xx&quot;]     = &quot;&amp;nbsp;×&amp;nbsp;&quot;,
 	[&quot;*&quot;]      = &quot;×&quot;,
 	[&quot;/&quot;]      = &quot;&amp;thinsp;/&amp;thinsp;&quot;,  -- for a table of high/low temperatures with {{convert|83|/|63|F|disp=br()|abbr=values}}
 }
 
 
 local range_aliases = {
 	-- [&quot;alternative name for a range&quot;] = &quot;standard range name&quot;
 	[&quot;–&quot;]        = &quot;-&quot;,
 	[&quot;&amp;ndash;&quot;]  = &quot;-&quot;,
 	[&quot;×&quot;]        = &quot;x&quot;,
 	[&quot;&amp;times;&quot;]  = &quot;x&quot;,
 	[&quot;±&quot;]        = &quot;+/-&quot;,
 	[&quot;&amp;plusmn;&quot;] = &quot;+/-&quot;,
 }
 
 -- Convert accepts range text delimited with whitespace, for example, {{convert|1 to 2|ft}}.
 -- In addition, the following &quot;words&quot; are accepted without spaces, for example, {{convert|1-2|ft}}.
 -- Words must be in correct order for searching, for example, 'x' after 'xx'.
 local range_words = { '-', '–', 'xx', 'x', '*' }
 
 local ranges = {
 	types = range_types,
 	aliases = range_aliases,
 	words = range_words,
 }
 
 -- Valid option names.
 local en_option_name = {
 	-- [&quot;local text for option name&quot;] = &quot;en name used in this module&quot;
 	[&quot;$&quot;] = &quot;$&quot;,
 	[&quot;abbr&quot;] = &quot;abbr&quot;,
 	[&quot;adj&quot;] = &quot;adj&quot;,
 	[&quot;altitude_ft&quot;] = &quot;altitude_ft&quot;,
 	[&quot;altitude_m&quot;] = &quot;altitude_m&quot;,
 	[&quot;comma&quot;] = &quot;comma&quot;,
 	[&quot;debug&quot;] = &quot;debug&quot;,
 	[&quot;disp&quot;] = &quot;disp&quot;,
 	[&quot;frac&quot;] = &quot;frac&quot;,
 	[&quot;input&quot;] = &quot;input&quot;,
 	[&quot;lang&quot;] = &quot;lang&quot;,
 	[&quot;lk&quot;] = &quot;lk&quot;,
 	[&quot;order&quot;] = &quot;order&quot;,
 	[&quot;qid&quot;] = &quot;qid&quot;,
 	[&quot;qual&quot;] = &quot;qual&quot;,
 	[&quot;qualifier&quot;] = &quot;qual&quot;,
 	[&quot;round&quot;] = &quot;round&quot;,
 	[&quot;sigfig&quot;] = &quot;sigfig&quot;,
 	[&quot;sing&quot;] = &quot;adj&quot;,                   -- &quot;sing&quot; is an old alias for &quot;adj&quot;
 	[&quot;sortable&quot;] = &quot;sortable&quot;,
 	[&quot;sp&quot;] = &quot;sp&quot;,
 	[&quot;spell&quot;] = &quot;spell&quot;,
 	[&quot;stylein&quot;] = &quot;stylein&quot;,
 	[&quot;styleout&quot;] = &quot;styleout&quot;,
 	[&quot;tracking&quot;] = &quot;tracking&quot;,
 }
 
 -- Valid option values.
 -- Convention: parms.opt_xxx refers to an option that is set here
 -- (not intended to be set by the template which invokes this module).
 -- Example: At enwiki, &quot;abbr&quot; includes:
 --     [&quot;values&quot;] = &quot;opt_values&quot;
 -- As a result, if the template uses abbr=values, Module:Convert sets:
 --     parms[&quot;opt_values&quot;] = true
 --     parms[&quot;abbr&quot;] = nil
 -- Therefore parms.abbr will be nil, or will have one of the listed values
 -- that do not start with &quot;opt_&quot;.
 -- An option value of form &quot;xxx?&quot; is the same as &quot;xxx&quot; but shows the input as deprecated.
 local en_option_value = {
 	[&quot;$&quot;] = 'TEXT',                     -- TEXT should be a currency symbol that will be used instead of &quot;$&quot;
 	[&quot;abbr&quot;] = {
 		-- [&quot;local text for option value&quot;] = &quot;en value used in this module&quot;
 		[&quot;def&quot;] = &quot;&quot;,                   -- ignored (some wrapper templates call convert with &quot;abbr=def&quot; to mean &quot;default abbreviation&quot;)
 		[&quot;h&quot;] = &quot;on&quot;,                   -- abbr=on + use &quot;h&quot; for hand unit (default)
 		[&quot;hh&quot;] = &quot;opt_hand_hh&quot;,         -- abbr=on + use &quot;hh&quot; for hand unit
 		[&quot;in&quot;] = &quot;in&quot;,                  -- use symbol for LHS unit
 		[&quot;none&quot;] = &quot;off&quot;,               -- old name for &quot;off&quot;
 		[&quot;off&quot;] = &quot;off&quot;,                -- use name for all units
 		[&quot;on&quot;] = &quot;on&quot;,                  -- use symbol for all units
 		[&quot;out&quot;] = &quot;out&quot;,                -- use symbol for RHS unit (default)
 		[&quot;unit&quot;] = &quot;unit&quot;,              -- abbr=on but abbreviate units only: e6km → million km (not ×10⁶ km)
 		[&quot;values&quot;] = &quot;opt_values&quot;,      -- show only input and output numbers, not units
 		[&quot;~&quot;] = &quot;opt_also_symbol&quot;,      -- show input unit symbol as well as name
 	},
 	[&quot;adj&quot;] = {
 		[&quot;mid&quot;] = &quot;opt_adjectival, opt_adj_mid&quot;,  -- adj=on with user-specified text after input unit (between input and output)
 		[&quot;off&quot;] = &quot;&quot;,                   -- ignored (off is the default)
 		[&quot;on&quot;] = &quot;opt_adjectival&quot;,      -- unit name is singular and hyphenated
 		[&quot;pre&quot;] = &quot;opt_one_preunit&quot;,    -- user-specified text before input unit
 		[&quot;ri0&quot;] = &quot;opt_ri=0&quot;,           -- round input with precision = 0
 		[&quot;ri1&quot;] = &quot;opt_ri=1&quot;,           -- round input with precision = 1
 		[&quot;ri2&quot;] = &quot;opt_ri=2&quot;,           -- round input with precision = 2
 		[&quot;ri3&quot;] = &quot;opt_ri=3&quot;,           -- round input with precision = 3
 	},
 	[&quot;altitude_ft&quot;] = 'INTEGER',
 	[&quot;altitude_m&quot;] = 'INTEGER',
 	[&quot;comma&quot;] = {
 		[&quot;5&quot;] = &quot;opt_comma5&quot;,           -- only use numsep grouping if 5 or more digits
 		[&quot;gaps&quot;] = &quot;opt_gaps&quot;,          -- use gaps, not numsep, to separate groups of digits
 		[&quot;gaps3&quot;] = &quot;opt_gaps, opt_gaps3&quot;,  -- group only in threes rather than default of no gap before a single digit after decimal mark
 		[&quot;off&quot;] = &quot;opt_nocomma&quot;,        -- no numsep in input or output numbers
 	},
 	[&quot;debug&quot;] = {
 		[&quot;yes&quot;] = &quot;opt_sortable_debug&quot;, -- make the normally hidden sort key visible
 	},
 	[&quot;disp&quot;] = {
 		[&quot;5&quot;] = &quot;opt_round=5?&quot;,         -- round output value to nearest 5
 		[&quot;b&quot;] = &quot;b&quot;,                    -- join: '(...)'
 		[&quot;(or)&quot;] = &quot;(or)&quot;,              -- join: '(...)' with 'or' between outputs in a combination
 		[&quot;br&quot;] = &quot;br&quot;,                  -- join: '&lt;br /&gt;'
 		[&quot;br()&quot;] = &quot;br()&quot;,              -- join: '&lt;br /&gt;(...)'
 		[&quot;comma&quot;] = &quot;comma&quot;,            -- join: ','
 		[&quot;flip&quot;] = &quot;opt_flip&quot;,          -- reverse order of input/output
 		[&quot;number&quot;] = &quot;opt_output_number_only&quot;,  -- display output value (not input, and not output symbol/name)
 		[&quot;or&quot;] = &quot;or&quot;,                  -- join: 'or'
 		[&quot;out&quot;] = &quot;opt_output_only&quot;,
 		[&quot;output number only&quot;] = &quot;opt_output_number_only&quot;,
 		[&quot;output only&quot;] = &quot;opt_output_only&quot;,
 		[&quot;preunit&quot;] = &quot;opt_two_preunits&quot;,    -- user-specified text before input and output units
 		[&quot;sqbr&quot;] = &quot;sqbr&quot;,              -- join: '[...]'
 		[&quot;table&quot;] = &quot;opt_table&quot;,        -- output is suitable for a table cell with align=&quot;right&quot;
 		[&quot;tablecen&quot;] = &quot;opt_tablecen&quot;,  -- output is suitable for a table cell with align=&quot;center&quot;
 		[&quot;unit&quot;] = &quot;opt_input_unit_only&quot;, -- display input symbol/name (not output, and not input value)
 		[&quot;unit or text&quot;] = &quot;opt_input_unit_only, opt_ignore_error&quot;, -- display input symbol/name, or given unit code if not known
 		[&quot;unit2&quot;] = &quot;opt_output_unit_only&quot;,
 		[&quot;x&quot;] = &quot;x&quot;,                    -- join: &lt;first&gt;...&lt;second&gt; (user-specified text)
 	},
 	[&quot;frac&quot;] = 'INTEGER',
 	[&quot;input&quot;] = 'TEXT',                 -- TEXT should be value&gt;&lt;space&gt;&lt;unitcode&gt; or &lt;wikidata-property-id&gt;
 	[&quot;lang&quot;] = {                        -- language for output digits (both en and local digits are always accepted for input)
 		[&quot;en&quot;] = &quot;opt_lang_en&quot;,         -- use en digits for numbers, regardless of local language
 		[&quot;local&quot;] = &quot;opt_lang_local&quot;,   -- use local digits for numbers (default, although config can change default to en)
 	},
 	[&quot;lk&quot;] = {
 		[&quot;in&quot;] = &quot;in&quot;,                  -- link LHS unit name or symbol
 		[&quot;off&quot;] = &quot;off&quot;,                -- do not link: same as default except for hand unit
 		[&quot;on&quot;] = &quot;on&quot;,                  -- link all unit names or symbols (but not twice for the same unit)
 		[&quot;out&quot;] = &quot;out&quot;,                -- link RHS unit name or symbol
 	},
 	[&quot;order&quot;] = {
 		[&quot;flip&quot;] = &quot;opt_flip&quot;,          -- reverse order of input/output
 		[&quot;out&quot;] = &quot;opt_order_out&quot;,      -- do not show input; instead, use order in output combination, with the first output shown as the input
 	},
 	[&quot;qid&quot;] = 'TEXT',                   -- TEXT should be a Wikidata Q item identifier
 	[&quot;qual&quot;] = 'TEXT',                  -- TEXT should be a Wikidata Q item identifier
 	[&quot;round&quot;] = {
 		[&quot;0.5&quot;] = &quot;opt_round=0.5&quot;,      -- round output value to nearest 0.5
 		[&quot;5&quot;] = &quot;opt_round=5&quot;,          -- round output value to nearest 5
 		[&quot;10&quot;] = &quot;opt_round=10&quot;,        -- round output value to nearest 10 (same as but clearer than &quot;|-1&quot;)
 		[&quot;25&quot;] = &quot;opt_round=25&quot;,        -- round output value to nearest 25
 		[&quot;50&quot;] = &quot;opt_round=50&quot;,        -- round output value to nearest 50
 		[&quot;each&quot;] = &quot;opt_round_each&quot;,    -- using default precision in a range, round each output separately (default uses highest precision of each item in range)
 	},
 	[&quot;sigfig&quot;] = 'INTEGER',
 	[&quot;sortable&quot;] = {
 		[&quot;off&quot;] = &quot;&quot;,                   -- ignored (off is the default)
 		[&quot;on&quot;] = &quot;opt_sortable_on&quot;,     -- output sort key for use in a sortable table, based on value from converting to a standard base unit
 		[&quot;debug&quot;] = &quot;opt_sortable_on, opt_sortable_debug&quot;,  -- |sortable=debug is the same as |sortable=on|debug=yes
 	},
 	[&quot;sp&quot;] = {
 		[&quot;us&quot;] = &quot;opt_sp_us&quot;,           -- use U.S. spelling (like &quot;meter&quot; instead of default &quot;metre&quot;)
 	},
 	[&quot;spell&quot;] = {                       -- only English spelling is supported; not scientific notation; only some fractions
 		[&quot;in&quot;] = &quot;opt_spell_in&quot;,        -- spell input value in words
 		[&quot;In&quot;] = &quot;opt_spell_in, opt_spell_upper&quot;,                -- spell input value in words with first letter uppercase
 		[&quot;on&quot;] = &quot;opt_spell_in, opt_spell_out&quot;,                  -- spell input and output values in words
 		[&quot;On&quot;] = &quot;opt_spell_in, opt_spell_out, opt_spell_upper&quot;, -- same, with first letter of first word in result uppercase
 	},
 	[&quot;stylein&quot;] = 'TEXT',
 	[&quot;styleout&quot;] = 'TEXT',
 	[&quot;tracking&quot;] = 'TEXT',
 }
 
 local titles = {
 	[&quot;frac&quot;] = &quot;Fraction/styles.css&quot;,
 	[&quot;sfrac&quot;] = &quot;Sfrac/styles.css&quot;,
 }
 
 return {
 	SIprefixes = SIprefixes,
 	all_categories = all_categories,
 	all_messages = all_messages,
 	currency = { ['$'] = true, ['£'] = true, ['€'] = true, ['₱'] = true, ['₽'] = true, ['¥'] = true },
 	customary_units = customary_units,
 	disp_joins = disp_joins,
 	en_option_name = en_option_name,
 	en_option_value = en_option_value,
 	eng_scales = eng_scales,
 	ranges = ranges,
 	titles = titles,