https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AConvert%2Ftext%2Fsandbox Modul:Convert/text/sandbox - Versionsgeschichte 2025-05-26T03:08:45Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.2 https://de.wikipedia.org/w/index.php?title=Modul:Convert/text/sandbox&diff=178366499&oldid=prev Nov3rd17: it. Version zum Übertragen 2018-06-16T11:28:22Z <p>it. Version zum Übertragen</p> <p><b>Neue Seite</b></p><div>-- Text used by Module:Convert, for en.wikipedia.org (English).<br /> -- This is a separate module to simplify translation for use on another wiki.<br /> -- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki.<br /> <br /> local translation_table = {<br /> numdot = &#039;,&#039;, -- decimal mark<br /> numsep = &#039;&amp;nbsp;&#039;, -- separator for number grouping<br /> per_word = &#039;per&#039;, -- for units like &quot;miles per gallon&quot;<br /> plural_suffix = &#039;&#039;, -- disable plural unit names<br /> specials = { -- for special processing by makeunits<br /> -- PLEASE DO NOT CHANGE THE FOLLOWING<br /> -- until all the units have been fixed<br /> -- (the text used here must be the same as that used in the unit definitions).<br /> utype = {<br /> -- [&quot;unit type in local language&quot;] = &quot;name_used_in_this_script&quot;<br /> [&quot;efficenza del carburante&quot;] = &quot;type_fuel_efficiency&quot;,<br /> [&quot;lunghezza&quot;] = &quot;type_length&quot;,<br /> [&quot;temperatura&quot;] = &quot;type_temperature&quot;,<br /> [&quot;volume&quot;] = &quot;type_volume&quot;,<br /> },<br /> ucode = {<br /> exception = {<br /> -- [&quot;unit code in local language&quot;] = &quot;name_used_in_module_convert&quot;<br /> [&quot;ft&quot;] = &quot;integer_more_precision&quot;,<br /> [&quot;in&quot;] = &quot;subunit_more_precision&quot;,<br /> [&quot;lb&quot;] = &quot;integer_more_precision&quot;,<br /> },<br /> istemperature = {<br /> -- Common temperature scales (not keVT or MK).<br /> -- [&quot;unit code in local language&quot;] = 1<br /> [&quot;C&quot;] = true,<br /> [&quot;F&quot;] = true,<br /> [&quot;K&quot;] = true,<br /> [&quot;R&quot;] = true,<br /> },<br /> usesymbol = {<br /> -- Use unit symbol not name if abbr not specified.<br /> -- [&quot;unit code in local language&quot;] = 1<br /> [&quot;C&quot;] = 1,<br /> [&quot;F&quot;] = 1,<br /> [&quot;K&quot;] = 1,<br /> [&quot;R&quot;] = 1,<br /> [&quot;C-change&quot;] = 1,<br /> [&quot;F-change&quot;] = 1,<br /> [&quot;K-change&quot;] = 1,<br /> },<br /> alttype = {<br /> -- Unit has an alternate type that is a valid conversion.<br /> -- [&quot;unit code in local language&quot;] = &quot;alternate type in local language&quot;<br /> [&quot;Nm&quot;] = &quot;energia&quot;,<br /> [&quot;ftlb&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;ftlb-f&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;ftlbf&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;inlb&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;inlb-f&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;inlbf&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;inoz-f&quot;] = &quot;momento meccanico&quot;,<br /> [&quot;inozf&quot;] = &quot;momento meccanico&quot;,<br /> },<br /> },<br /> },<br /> mtext = {<br /> -- Text used by Module:Convert/makeunits.<br /> titles = {<br /> -- name_used_in_this_script = &quot;Title of page&quot;<br /> conversion_data = &#039;Template:Converti/Man/Conversion data&#039;,<br /> },<br /> },<br /> }<br /> -- Some units accept an SI prefix before the unit code, such as &quot;kg&quot; for kilogram.<br /> local SIprefixes = {<br /> -- The prefix field is what the prefix should be, if different from the prefix used.<br /> [&#039;Y&#039;] = { exponent = 24, name = &#039;yotta&#039;},<br /> [&#039;Z&#039;] = { exponent = 21, name = &#039;zetta&#039;},<br /> [&#039;E&#039;] = { exponent = 18, name = &#039;exa&#039; },<br /> [&#039;P&#039;] = { exponent = 15, name = &#039;peta&#039; },<br /> [&#039;T&#039;] = { exponent = 12, name = &#039;tera&#039; },<br /> [&#039;G&#039;] = { exponent = 9, name = &#039;giga&#039; },<br /> [&#039;M&#039;] = { exponent = 6, name = &#039;mega&#039; },<br /> [&#039;k&#039;] = { exponent = 3, name = &#039;chilo&#039;},<br /> [&#039;h&#039;] = { exponent = 2, name = &#039;etto&#039;},<br /> [&#039;da&#039;]= { exponent = 1, name = &#039;deca&#039; },<br /> [&#039;d&#039;] = { exponent = -1, name = &#039;deci&#039; },<br /> [&#039;c&#039;] = { exponent = -2, name = &#039;centi&#039;},<br /> [&#039;m&#039;] = { exponent = -3, name = &#039;milli&#039;},<br /> [&#039;μ&#039;] = { exponent = -6, name = &#039;micro&#039;, prefix = &#039;µ&#039;}, -- key = &#039;GREEK SMALL LETTER MU&#039; (U+03BC) utf-8 CE BC<br /> [&#039;µ&#039;] = { exponent = -6, name = &#039;micro&#039;}, -- key = &#039;MICRO SIGN&#039; (U+00B5) utf-8 C2 B5<br /> [&#039;u&#039;] = { exponent = -6, name = &#039;micro&#039;, prefix = &#039;µ&#039;}, -- not an SI prefix, but allow for people typing this<br /> [&#039;n&#039;] = { exponent = -9, name = &#039;nano&#039; },<br /> [&#039;p&#039;] = { exponent =-12, name = &#039;pico&#039; },<br /> [&#039;f&#039;] = { exponent =-15, name = &#039;femto&#039;},<br /> [&#039;a&#039;] = { exponent =-18, name = &#039;atto&#039; },<br /> [&#039;z&#039;] = { exponent =-21, name = &#039;zepto&#039;},<br /> [&#039;y&#039;] = { exponent =-24, name = &#039;yocto&#039;},<br /> }<br /> <br /> -- Some units can be qualified with one of the following prefixes, when linked.<br /> local customary_units = {<br /> { &quot;US&quot;, link = &quot;Sistema consuetudinario statunitense&quot; },<br /> { &quot;U.S.&quot;, link = &quot;Sistema consuetudinario statunitense&quot; },<br /> { &quot;imperial&quot;, link = &quot;Sistema imperiale britannico&quot; },<br /> { &quot;imp&quot;, link = &quot;Sistema imperiale britannico&quot; },<br /> }<br /> <br /> -- Names when using engineering notation (a prefix of &quot;eN&quot; where N is a number; example &quot;e6km&quot;).<br /> -- key = { &quot;name&quot;, link = &quot;article title&quot;, exponent = numeric_key_value }<br /> -- If lk=on and link is defined, the name of the number will appear as a link.<br /> local eng_scales = {<br /> [&quot;3&quot;] = { &quot;migliaia di&quot;, exponent = 3 },<br /> [&quot;6&quot;] = { &quot;milioni di&quot;, exponent = 6 },<br /> [&quot;9&quot;] = { &quot;miliardi di&quot;, link = &quot;Miliardo&quot;, exponent = 9 },<br /> [&quot;12&quot;] = { &quot;bilione di&quot;, link = &quot;Bilione&quot;, exponent = 12 },<br /> [&quot;15&quot;] = { &quot;biliardo di&quot;, link = &quot;Biliardo (numero)&quot;, exponent = 15 },<br /> }<br /> <br /> -- One of the following categories is included in the text of each message.<br /> local all_categories = {<br /> unit = &quot;[[Categoria:Errori di compilazione del template Converti]]&quot;,<br /> option = &quot;[[Categoria:Errori di compilazione del template Converti]]&quot;,<br /> }<br /> <br /> -- For some error messages, the following puts the wanted style around<br /> -- each unit code marked like &#039;...%{ft%}...&#039;.<br /> local unitcode_regex = &#039;%%([{}])&#039;<br /> local unitcode_replace = { [&#039;{&#039;] = &#039;&quot;&#039;, [&#039;}&#039;] = &#039;&quot;&#039; } -- no longer need the more elaborate substitute used before 2013-09-28<br /> <br /> -- All messages that may be displayed if a problem occurs.<br /> local all_messages = {<br /> -- Message format string, %s parameters: anchor, title, text, category.<br /> -- Each displayed message starts with &quot;Convert:&quot; so can easily locate by searching article.<br /> cvt_format = &#039;&lt;sup class=&quot;noprint Inline-Template&quot; style=&quot;white-space:nowrap;&quot;&gt;[&lt;i&gt;[[Template:Converti/Man/Messaggi#%s|&lt;span title=&quot;Converti: %s&quot;&gt;converti: %s&lt;/span&gt;]]&lt;/i&gt;]&lt;/sup&gt;%s&#039;,<br /> cvt_format2 = &#039;&lt;sup class=&quot;noprint Inline-Template&quot; style=&quot;white-space:nowrap;&quot;&gt;[[Template:Converti/Man/Messaggi#%s|&lt;span title=&quot;Converti: %s&quot;&gt;%s&lt;/span&gt;]]&lt;/sup&gt;%s&#039;,<br /> -- Each of following messages is a table:<br /> -- { [1] = &#039;title&#039;, -- mouseover title text<br /> -- [2] = &#039;text&#039;, -- link text displayed in article<br /> -- [3] = &#039;category key&#039;, -- key to lookup category in all_categories<br /> -- [4] = &#039;anchor&#039;, -- anchor for link to relevant section on help page<br /> -- regex = gsub_regex,<br /> -- replace = gsub_table,<br /> -- } Mouseover title text Link text CatKey Anchor<br /> cvt_bad_num = { &#039;Il valore &quot;%s&quot; deve essere un numero&#039;, &#039;numero non valido&#039;, &#039;option&#039;, &#039;invalid_number&#039;},<br /> cvt_big_prec = { &#039;La precisione &quot;%s&quot; è troppo grande&#039;, &#039;precisione troppo grande&#039;, &#039;option&#039;, &#039;precision_too_large&#039; },<br /> cvt_invalid_num = { &#039;Overflow aritmetico del numero&#039;, &#039;overflow aritmetico&#039;, &#039;option&#039;, &#039;number_overflow&#039; },<br /> cvt_no_num = { &#039;Manca il numero da convertire&#039;, &#039;serve un numero&#039;, &#039;option&#039;, &#039;needs_number&#039; },<br /> cvt_no_num2 = { &#039;Manca un altro numero all\&#039;intervallo&#039;, &#039;serve un altro numero&#039;, &#039;option&#039;, &#039;needs_another_number&#039; },<br /> cvt_bad_frac = { &#039;Il frazionale &quot;%s&quot; deve essere un intero maggiore di 1&#039;, &#039;frazione non valida&#039;, &#039;option&#039;, &#039;invalid_fraction&#039; },<br /> cvt_bad_prec = { &#039;La precisione &quot;%s&quot; deve essere un intero&#039;, &#039;precisione non valida&#039;, &#039;option&#039;, &#039;invalid_precision&#039; },<br /> cvt_bad_sigfig = { &#039;sigfig &quot;%s&quot; deve essere un intero positivo&#039;, &#039;sigfig non valido&#039;, &#039;option&#039;, &#039;invalid_sigfig&#039;},<br /> cvt_empty_option = { &#039;Opzione vuota &quot;%s&quot; ignorata&#039;, &#039;opzione vuota&#039;, &#039;option&#039;, &#039;empty_option&#039; },<br /> cvt_deprecated = { &#039;Opzione &quot;%s&quot; deprecata&#039;, &#039;*&#039;, &#039;option&#039;, &#039;opzione deprecata&#039;, format = &#039;cvt_format2&#039; },<br /> cvt_no_spell = { &#039;Spelling is not available&#039;, &#039;bug, ask for help&#039;, &#039;option&#039;, &#039;ask_for_help&#039; },<br /> cvt_unknown_option = { &#039;Opzione &quot;%s&quot; non valida, è stata ignorata&#039;, &#039;opzione non valida&#039;, &#039;option&#039;, &#039;invalid_option&#039;},<br /> cvt_bad_default = { &#039;L\&#039;unità di misura &quot;%s&quot; ha un valore di default non valido&#039;, &#039;bug, ask for help&#039;, &#039;unit&#039;, &#039;ask_for_help&#039; },<br /> cvt_bad_unit = { &#039;L\&#039;unità di misura &quot;%s&quot; non è valida&#039;, &#039;unità di misura non valida&#039;, &#039;unit&#039;, &#039;unit_invalid_here&#039; },<br /> cvt_no_default = { &#039;L\&#039;unità di misura &quot;%s&quot; non ha un\&#039;unità di conversione valida&#039;, &#039;bug, ask for help&#039;, &#039;unit&#039;, &#039;ask_for_help&#039; },<br /> cvt_no_unit = { &#039;Manca il nome dell\&#039;unità di misura&#039;, &#039;nome dell\&#039;unità mancante&#039;, &#039;unit&#039;, &#039;needs_unit_name&#039; },<br /> cvt_unknown = { &#039;Il nome dell\&#039;unità di misura &quot;%s&quot; non è stato riconosciuto&#039;, &#039;unità di misura sconosciuta&#039;, &#039;unit&#039;, &#039;unknown_unit&#039; },<br /> cvt_should_be = { &#039;%s&#039;, &#039;unità ambigua&#039;, &#039;unit&#039;, &#039;ambiguous_unit&#039;, regex = unitcode_regex, replace = unitcode_replace },<br /> cvt_mismatch = { &#039;Non posso convertire l\&#039;unità di misura &quot;%s&quot; in &quot;%s&quot;&#039;, &#039;unità di misura incompatibili&#039;, &#039;unit&#039;, &#039;unit_mismatch&#039; },<br /> cvt_bug_convert = { &#039;Bug: non posso convertire tra le unità specificate&#039;, &#039;bug, ask for help&#039;, &#039;unit&#039;, &#039;ask_for_help&#039; },<br /> cvt_lookup = { &#039;L\&#039;unità &quot;%s&quot; non è definita correttamente&#039;, &#039;bug, ask for help&#039;, &#039;unit&#039;, &#039;ask_for_help&#039; },<br /> cvt_enwiki_num = { &#039;Il valore &quot;%s&quot; dovrebbe essere scritto come: &quot;%s&quot;&#039;, &#039;numero non valido&#039;, &#039;option&#039;, &#039;invalid_number&#039; },<br /> }<br /> <br /> -- Text to join input value/unit with output value/unit.<br /> local disp_joins = {<br /> -- [1]=before output, [2]=after output, [3]=between outputs in a combination; default &quot;; &quot;<br /> -- [wantname] gives default abbr=off<br /> [&quot;or&quot;] = { &quot; o &quot; , &quot;&quot; , &quot; o &quot;, wantname = true },<br /> [&quot;sqbr-sp&quot;] = { &quot; [&quot; , &quot;]&quot; },<br /> [&quot;sqbr-nbsp&quot;] = { &quot;&amp;nbsp;[&quot; , &quot;]&quot; },<br /> [&quot;comma&quot;] = { &quot;, &quot; , &quot;&quot; , &quot;, &quot; },<br /> [&quot;slash-sp&quot;] = { &quot; / &quot; , &quot;&quot; , wantname = true },<br /> [&quot;slash-nbsp&quot;] = { &quot;&amp;nbsp;/ &quot;, &quot;&quot; , wantname = true },<br /> [&quot;slash-nosp&quot;] = { &quot;/&quot; , &quot;&quot; , wantname = true },<br /> [&quot;b&quot;] = { &quot; (&quot; , &quot;)&quot; },<br /> [&quot;(or)&quot;] = { &quot; (&quot; , &quot;)&quot;, &quot; or &quot; },<br /> [&quot;br&quot;] = { &quot;&lt;br /&gt;&quot; , &quot;&quot; , wantname = true },<br /> [&quot;br()&quot;] = { &quot;&lt;br /&gt;(&quot; , &quot;)&quot;, wantname = true },<br /> }<br /> <br /> -- Text to separate values in a range.<br /> local range_types = {<br /> -- Specifying a table requires either:<br /> -- * &quot;off&quot; and &quot;on&quot; values (for &quot;abbr=off&quot; and &quot;abbr=on&quot;), or<br /> -- * &quot;input&quot; and &quot;output&quot; values (for LHS and RHS);<br /> -- other fields are optional.<br /> -- When &quot;adj=on|abbr=off&quot; applies, spaces in range text are replaced with hyphens.<br /> -- With &quot;exception = true&quot;, that also occurs with &quot;adj=on|abbr=on&quot;.<br /> -- If &quot;adj&quot; is defined here, that text (unchanged) is used with &quot;adj=on&quot;.<br /> [&quot;+&quot;] = &quot; + &quot;,<br /> [&quot;,&quot;] = &quot;,&amp;nbsp;&quot;,<br /> [&quot;, and&quot;] = &quot; e &quot;,<br /> [&quot;, or&quot;] = &quot; o &quot;,<br /> [&quot;by&quot;] = &quot; per &quot;,<br /> [&quot;-&quot;] = &quot;–&quot;,<br /> [&quot;to about&quot;] = &quot; fino a circa &quot;,<br /> [&quot;and&quot;] = { off = &quot; e &quot;, on = &quot; e &quot; },<br /> [&quot;and(-)&quot;] = { input = &quot; e &quot;, output = &quot;–&quot; },<br /> [&quot;or&quot;] = { off = &quot; o &quot; , on = &quot; o &quot;},<br /> [&quot;to&quot;] = { off = &quot; fino a &quot; , on = &quot; fino a &quot; },<br /> [&quot;to(-)&quot;] = { input = &quot;&amp;nbsp;a &quot;, output = &quot;–&quot; },<br /> [&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 },<br /> [&quot;by(x)&quot;] = { input = &quot; per &quot;, output = &quot; ×&amp;nbsp;&quot;, out_range_x = true },<br /> [&quot;x&quot;] = { off = &quot; per &quot;, on = &quot; ×&amp;nbsp;&quot;, abbr_range_x = true },<br /> [&quot;X&quot;] = { off = &quot; per &quot;, on = &quot; ×&amp;nbsp;&quot; }, -- TEMPORARY and undocumented option for experiments to compare with new abbr_range_x<br /> [&quot;xx&quot;] = &quot;&amp;nbsp;×&amp;nbsp;&quot;,<br /> [&quot;*&quot;] = &quot;×&quot;, -- use &quot;*&quot; to replace &quot;x&quot; in {{convert/2}} which is different from &quot;x&quot; in old {{convert}}<br /> }<br /> <br /> local range_aliases = {<br /> -- [&quot;alternative name for a range&quot;] = &quot;standard range name&quot;<br /> [&quot;&amp;&quot;] = &quot;and&quot;,<br /> [&quot;e&quot;] = &quot;and&quot;,<br /> [&quot;–&quot;] = &quot;-&quot;,<br /> [&quot;&amp;ndash;&quot;] = &quot;-&quot;,<br /> [&quot;to-&quot;] = &quot;to(-)&quot;,<br /> [&quot;a-&quot;] = &quot;to(-)&quot;,<br /> [&quot;×&quot;] = &quot;x&quot;,<br /> [&quot;&amp;times;&quot;] = &quot;x&quot;,<br /> [&quot;±&quot;] = &quot;+/-&quot;,<br /> [&quot;&amp;plusmn;&quot;] = &quot;+/-&quot;,<br /> [&quot;o&quot;] = &quot;or&quot;,<br /> [&quot;per&quot;] = &quot;x&quot;,<br /> [&quot;per(x)&quot;] = &quot;by(x)&quot;,<br /> [&quot;fino a&quot;] = &quot;to&quot;,<br /> [&quot;fino a(-)&quot;] = &quot;to(-)&quot;,<br /> [&quot;fino a circa&quot;] = &quot;to about&quot;<br /> }<br /> <br /> -- Convert accepts range text delimited with whitespace, for example, {{convert|1 to 2|ft}}.<br /> -- In addition, the following &quot;words&quot; are accepted without spaces, for example, {{convert|1-2|ft}}.<br /> -- Words must be in correct order for searching, for example, &#039;x&#039; after &#039;xx&#039;.<br /> local range_words = { &#039;-&#039;, &#039;–&#039;, &#039;xx&#039;, &#039;x&#039;, &#039;*&#039; }<br /> <br /> local ranges = {<br /> types = range_types,<br /> aliases = range_aliases,<br /> words = range_words,<br /> }<br /> <br /> -- Valid option names.<br /> local en_option_name = {<br /> -- [&quot;local text for option name&quot;] = &quot;en name used in this module&quot;<br /> [&quot;$&quot;] = &quot;$&quot;,<br /> [&quot;abbr&quot;] = &quot;abbr&quot;,<br /> [&quot;adj&quot;] = &quot;adj&quot;,<br /> [&quot;comma&quot;] = &quot;comma&quot;,<br /> [&quot;debug&quot;] = &quot;debug&quot;,<br /> [&quot;disp&quot;] = &quot;disp&quot;,<br /> [&quot;frac&quot;] = &quot;frac&quot;,<br /> [&quot;lang&quot;] = &quot;lang&quot;,<br /> [&quot;lk&quot;] = &quot;lk&quot;,<br /> [&quot;near&quot;] = &quot;near&quot;,<br /> [&quot;order&quot;] = &quot;order&quot;,<br /> [&quot;round&quot;] = &quot;round&quot;,<br /> [&quot;sigfig&quot;] = &quot;sigfig&quot;,<br /> -- [&quot;sing&quot;] = &quot;adj&quot;, -- &quot;sing&quot; is an old alias for &quot;adj&quot;<br /> [&quot;sortable&quot;] = &quot;sortable&quot;,<br /> -- [&quot;sp&quot;] = &quot;sp&quot;,<br /> -- [&quot;spell&quot;] = &quot;spell&quot;,<br /> [&quot;stylein&quot;] = &quot;stylein&quot;,<br /> [&quot;styleout&quot;] = &quot;styleout&quot;,<br /> }<br /> <br /> -- Valid option values.<br /> -- Convention: parms.opt_xxx refers to an option that is set here<br /> -- (not intended to be set by the template which invokes this module).<br /> -- Example: At en.wiki, &quot;abbr&quot; includes:<br /> -- [&quot;comma&quot;] = &quot;opt_nocomma&quot;<br /> -- As a result, if the template uses abbr=comma, this script sets:<br /> -- parms[&quot;opt_nocomma&quot;] = true<br /> -- parms[&quot;abbr&quot;] = nil<br /> -- Therefore parms.abbr will be nil, or will have one of the listed values<br /> -- that do not start with &quot;opt_&quot;.<br /> -- An option value of form &quot;xxx?&quot; is the same as &quot;xxx&quot; but shows the input as deprecated.<br /> local en_option_value = {<br /> -- $=x is handled as a special case: x should be a currency symbol that will be used instead of &quot;$&quot;<br /> [&quot;abbr&quot;] = {<br /> -- [&quot;local text for option value&quot;] = &quot;en value used in this module&quot;<br /> [&quot;comma&quot;] = &quot;opt_nocomma?&quot;, -- no numsep in input or output numbers<br /> [&quot;def&quot;] = &quot;&quot;, -- ignored (some wrapper templates call convert with &quot;abbr=def&quot; to mean &quot;default abbreviation&quot;)<br /> [&quot;h&quot;] = &quot;on&quot;, -- abbr=on + use &quot;h&quot; for hand unit (default)<br /> [&quot;hh&quot;] = &quot;opt_hand_hh&quot;, -- abbr=on + use &quot;hh&quot; for hand unit<br /> [&quot;in&quot;] = &quot;in&quot;, -- use symbol for LHS unit<br /> [&quot;mos&quot;] = &quot;mos&quot;, -- in a range, repeat the input unit (no longer used)<br /> [&quot;none&quot;] = &quot;off&quot;, -- old name for &quot;off&quot;<br /> [&quot;off&quot;] = &quot;off&quot;, -- use name for all units<br /> [&quot;on&quot;] = &quot;on&quot;, -- use symbol for all units<br /> [&quot;out&quot;] = &quot;out&quot;, -- use symbol for RHS unit (default)<br /> [&quot;values&quot;] = &quot;opt_values&quot;, -- show only input and output numbers, not units<br /> [&quot;~&quot;] = &quot;opt_also_symbol&quot;, -- show input unit symbol as well as name<br /> --- localizzazioni in italiano<br /> [&quot;valori&quot;] = &quot;opt_values&quot;, -- show only input and output numbers, not units<br /> },<br /> [&quot;adj&quot;] = {<br /> [&quot;1&quot;] = &quot;opt_singular&quot;, -- unit name is singular when value satisfies: (-1 &lt;= v and v &lt; 0) or (0 &lt; v and v &lt;= 1)<br /> [&quot;flip&quot;] = &quot;opt_flip?&quot;, -- reverse order of input/output<br /> [&quot;j&quot;] = &quot;opt_use_nbsp&quot;, -- &quot;join&quot;: use &quot;&amp;nbsp;&quot; instead of &quot; &quot; between value and unit name<br /> [&quot;mid&quot;] = &quot;opt_adjectival, opt_adj_mid&quot;, -- adj=on with user-specified text after input unit (between input and output)<br /> [&quot;nocomma&quot;] = &quot;opt_nocomma?&quot;, -- no numsep in input or output numbers<br /> [&quot;off&quot;] = &quot;&quot;, -- ignored (off is the default)<br /> [&quot;on&quot;] = &quot;opt_adjectival&quot;, -- unit name is singular and hyphenated<br /> [&quot;pre&quot;] = &quot;opt_one_preunit&quot;, -- user-specified text before input unit<br /> [&quot;ri0&quot;] = &quot;opt_ri=0&quot;, -- round input with precision = 0<br /> [&quot;ri1&quot;] = &quot;opt_ri=1&quot;, -- round input with precision = 1<br /> [&quot;ri2&quot;] = &quot;opt_ri=2&quot;, -- round input with precision = 2<br /> [&quot;ri3&quot;] = &quot;opt_ri=3&quot;, -- round input with precision = 3<br /> },<br /> [&quot;comma&quot;] = {<br /> [&quot;5&quot;] = &quot;opt_comma5&quot;, -- only use numsep grouping if 5 or more digits<br /> [&quot;gaps&quot;] = &quot;opt_gaps&quot;, -- use gaps, not numsep, to separate groups of digits<br /> [&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<br /> [&quot;gaps5&quot;] = &quot;opt_gaps?&quot;, -- deprecated 2015-05-29, was: opt_gaps + opt_comma5<br /> [&quot;off&quot;] = &quot;opt_nocomma&quot;, -- no numsep in input or output numbers<br /> },<br /> [&quot;debug&quot;] = {<br /> [&quot;yes&quot;] = &quot;opt_sortable_debug&quot;, -- make the normally hidden sort key visible<br /> },<br /> [&quot;disp&quot;] = {<br /> [&quot;/&quot;] = &quot;or?&quot;, -- see &quot;slash&quot;<br /> [&quot;2&quot;] = &quot;opt_output_only?&quot;, -- display only output value and symbol/name (not input)<br /> [&quot;5&quot;] = &quot;opt_round=5&quot;, -- round output value to nearest 5<br /> [&quot;b&quot;] = &quot;b&quot;, -- join: &#039;(...)&#039;<br /> [&quot;(or)&quot;] = &quot;(or)&quot;, -- join: &#039;(...)&#039; with &#039;or&#039; between outputs in a combination<br /> [&quot;br&quot;] = &quot;br&quot;, -- join: &#039;&lt;br /&gt;&#039;<br /> [&quot;br()&quot;] = &quot;br()&quot;, -- join: &#039;&lt;br /&gt;(...)&#039;<br /> [&quot;comma&quot;] = &quot;comma&quot;, -- join: &#039;,&#039;<br /> [&quot;flip5&quot;] = &quot;opt_flip, opt_round=5?&quot;, -- disp=flip + disp=5<br /> [&quot;nocomma&quot;] = &quot;opt_nocomma?&quot;, -- no numsep in input or output numbers<br /> [&quot;number&quot;] = &quot;opt_output_number_only&quot;, -- display output value (not input, and not output symbol/name)<br /> [&quot;or&quot;] = &quot;or&quot;, -- join: &#039;or&#039;<br /> [&quot;out&quot;] = &quot;opt_output_only&quot;,<br /> [&quot;output number only&quot;] = &quot;opt_output_number_only&quot;,<br /> [&quot;output only&quot;] = &quot;opt_output_only&quot;,<br /> [&quot;preunit&quot;] = &quot;opt_two_preunits&quot;, -- user-specified text before input and output units<br /> [&quot;s&quot;] = &quot;or?&quot;, -- see &quot;slash&quot;<br /> [&quot;slash&quot;] = &quot;or?&quot;, -- 2014-11-03: &quot;disp=slash&quot; is now equivalent to &quot;disp=or&quot; as slash is unhelpful<br /> [&quot;sqbr&quot;] = &quot;sqbr&quot;, -- join: &#039;[...]&#039;<br /> [&quot;table&quot;] = &quot;opt_table&quot;, -- output is suitable for a table cell with align=&quot;right&quot;<br /> [&quot;tablecen&quot;] = &quot;opt_tablecen&quot;, -- output is suitable for a table cell with align=&quot;center&quot;<br /> [&quot;u2&quot;] = &quot;opt_output_unit_only?&quot;, -- display output symbol/name (not input, and not output value)<br /> [&quot;unit&quot;] = &quot;opt_input_unit_only&quot;, -- display input symbol/name (not output, and not input value)<br /> [&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<br /> [&quot;unit2&quot;] = &quot;opt_output_unit_only&quot;,<br /> [&quot;x&quot;] = &quot;x&quot;, -- join: &lt;first&gt;...&lt;second&gt; (user-specified text)<br /> -- localizzazioni in italiano<br /> [&quot;(o)&quot;] = &quot;(or)&quot;, -- join: &#039;(...)&#039; with &#039;or&#039; between outputs in a combination<br /> [&quot;inverti&quot;] = &quot;opt_flip&quot;, -- reverse order of input/output<br /> [&quot;inverti5&quot;] = &quot;opt_flip, opt_round=5?&quot;, -- disp=flip + disp=5<br /> [&quot;novirgola&quot;] = &quot;opt_nocomma?&quot;, -- no numsep in input or output numbers<br /> [&quot;numero&quot;] = &quot;opt_output_number_only&quot;, -- display output value (not input, and not output symbol/name)<br /> [&quot;o&quot;] = &quot;or&quot;, -- join: &#039;or&#039;<br /> [&quot;preunità&quot;] = &quot;opt_two_preunits&quot;, -- user-specified text before input and output units<br /> [&quot;quadre&quot;] = &quot;sqbr&quot;, -- join: &#039;[...]&#039;<br /> [&quot;risultato&quot;] = &quot;opt_output_only&quot;,<br /> [&quot;valore risultato&quot;] = &quot;opt_output_number_only&quot;,<br /> [&quot;tabella&quot;] = &quot;opt_table&quot;, -- output is suitable for a table cell with align=&quot;right&quot;<br /> [&quot;tabellac&quot;] = &quot;opt_tablecen&quot;, -- output is suitable for a table cell with align=&quot;center&quot;<br /> [&quot;unità&quot;] = &quot;opt_input_unit_only&quot;, -- display input symbol/name (not output, and not input value)<br /> [&quot;unità o testo&quot;] = &quot;opt_input_unit_only, opt_ignore_error&quot;, -- display input symbol/name, or given unit code if not known<br /> [&quot;unità2&quot;] = &quot;opt_output_unit_only&quot;,<br /> [&quot;virgola&quot;] = &quot;comma&quot; -- join: &#039;,&#039;<br /> },<br /> -- frac=x is handled as a special case: x must be an integer (possibly in local language) = 2 or more<br /> [&quot;lang&quot;] = { -- language for output digits (both en and local digits are always accepted for input)<br /> [&quot;en&quot;] = &quot;opt_lang_en&quot;, -- use en digits for numbers, regardless of local language<br /> [&quot;local&quot;] = &quot;opt_lang_local&quot;, -- use local digits for numbers (default, although config can change default to en)<br /> },<br /> [&quot;lk&quot;] = {<br /> [&quot;in&quot;] = &quot;in&quot;, -- link LHS unit name or symbol<br /> [&quot;off&quot;] = &quot;off&quot;, -- do not link: same as default except for hand unit<br /> [&quot;on&quot;] = &quot;on&quot;, -- link all unit names or symbols (but not twice for the same unit)<br /> [&quot;out&quot;] = &quot;out&quot;, -- link RHS unit name or symbol<br /> },<br /> [&quot;near&quot;] = {<br /> [&quot;5&quot;] = &quot;opt_round=5?&quot;, -- round output value to nearest 5<br /> },<br /> [&quot;order&quot;] = {<br /> [&quot;flip&quot;] = &quot;opt_flip&quot;, -- reverse order of input/output<br /> },<br /> [&quot;round&quot;] = {<br /> [&quot;0.5&quot;] = &quot;opt_round=0.5&quot;, -- round output value to nearest 0.5<br /> [&quot;0,5&quot;] = &quot;opt_round=0.5&quot;, -- round output value to nearest 0.5<br /> [&quot;5&quot;] = &quot;opt_round=5&quot;, -- round output value to nearest 5<br /> [&quot;10&quot;] = &quot;opt_round=10&quot;, -- round output value to nearest 10 (same as but clearer than &quot;|-1&quot;)<br /> [&quot;25&quot;] = &quot;opt_round=25&quot;, -- round output value to nearest 25<br /> [&quot;50&quot;] = &quot;opt_round=50&quot;, -- round output value to nearest 50<br /> [&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)<br /> },<br /> -- sigfig=x is handled as a special case: x must be an integer (possibly in local language) = 1 or more<br /> [&quot;sortable&quot;] = {<br /> [&quot;off&quot;] = &quot;&quot;, -- ignored (off is the default)<br /> [&quot;in&quot;] = &quot;opt_sortable_on?&quot;, -- same as &quot;on&quot;<br /> [&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<br /> [&quot;out&quot;] = &quot;opt_sortable_on?&quot;, -- same as &quot;on&quot;<br /> },<br /> -- [&quot;sp&quot;] = {<br /> -- [&quot;us&quot;] = &quot;opt_sp_us&quot;, -- use U.S. spelling (like &quot;meter&quot; instead of default &quot;metre&quot;)<br /> -- },<br /> -- [&quot;spell&quot;] = { -- only English spelling is supported; not scientific notation; only some fractions<br /> -- [&quot;in&quot;] = &quot;opt_spell_in&quot;, -- spell input value in words<br /> -- [&quot;In&quot;] = &quot;opt_spell_in, opt_spell_upper&quot;, -- spell input value in words with first letter uppercase<br /> -- [&quot;on&quot;] = &quot;opt_spell_in, opt_spell_out&quot;, -- spell input and output values in words<br /> -- [&quot;On&quot;] = &quot;opt_spell_in, opt_spell_out, opt_spell_upper&quot;, -- same, with first letter of first word in result uppercase<br /> -- },<br /> -- stylein=x is handled as a special case: x can be any text<br /> -- styleout=x is handled as a special case: x can be any text<br /> }<br /> <br /> return {<br /> SIprefixes = SIprefixes,<br /> all_categories = all_categories,<br /> all_messages = all_messages,<br /> currency = { [&#039;$&#039;] = true, [&#039;£&#039;] = true },<br /> customary_units = customary_units,<br /> disp_joins = disp_joins,<br /> en_option_name = en_option_name,<br /> en_option_value = en_option_value,<br /> eng_scales = eng_scales,<br /> ranges = ranges,<br /> translation_table = translation_table,<br /> }</div> Nov3rd17