diff options
author | Marius <mariausol@gmail.com> | 2011-07-21 19:20:14 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-07-21 19:20:14 +0300 |
commit | c4b60b7c8f9eb7646c51f82574857ec8ef690f5f (patch) | |
tree | 2fe940ee99079435dc977b17e70f13ebaae5412a /tex/context/base/phys-dim.lua | |
parent | 68370bca95774296cb8890136f563b902022e6db (diff) | |
download | context-c4b60b7c8f9eb7646c51f82574857ec8ef690f5f.tar.gz |
beta 2011.07.21 18:09
Diffstat (limited to 'tex/context/base/phys-dim.lua')
-rw-r--r-- | tex/context/base/phys-dim.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/phys-dim.lua b/tex/context/base/phys-dim.lua index bc65fcff2..41f98b5fb 100644 --- a/tex/context/base/phys-dim.lua +++ b/tex/context/base/phys-dim.lua @@ -241,6 +241,9 @@ local short_units_to_long = { u = "Hour", h = "Hour", s = "Second", + g = "Gram", + n = "Newton", + v = "Volt", Litre = "Liter", Metre = "Meter", @@ -306,9 +309,9 @@ local s_suffix = appendlpeg(keys(short_suffixes)) -- square centi meter per square kilo seconds -local l_suffix = Cs(somespace * l_suffix) -local s_suffix = Cs(somespace * s_suffix) + Cc("") -local l_operator = Cs(somespace * l_operator) +local l_suffix = Cs(somespace * l_suffix) +local s_suffix = Cs(somespace * s_suffix) + Cc("") +local l_operator = Cs(somespace * l_operator) local combination = P { "start", l_prefix = Cs(somespace * l_prefix) + Cc(""), @@ -321,6 +324,8 @@ local combination = P { "start", + V("s_prefix") * V("l_unit"), } +--~ inspect(s_prefix) +--~ inspect(s_unit) -- square kilo meter -- square km |