Template:Index/name
From Metabolomics.JP
(Difference between revisions)
Line 10: | Line 10: | ||
{{#lua: | {{#lua: | ||
− | local common = { | + | local common = {methoxy=true, hydroxy=true, acid=true, acetyl=true, alpha=true, aalpha=true, amino=true, alpha=true, acetyloxy=true }; |
local key = stdin:match("%w+"); | local key = stdin:match("%w+"); | ||
local H = {}; | local H = {}; | ||
Line 18: | Line 18: | ||
for term in string.gmatch(name,"(%a+)") do | for term in string.gmatch(name,"(%a+)") do | ||
if ((string.len(term) > 3) and | if ((string.len(term) > 3) and | ||
− | (common[term] = | + | (common[term] ~= true) and |
(string.sub(term,0,1) == key)) then | (string.sub(term,0,1) == key)) then | ||
if (H[term] == nil) then | if (H[term] == nil) then | ||
Line 30: | Line 30: | ||
table.sort(I); | table.sort(I); | ||
local ret = ""; | local ret = ""; | ||
− | for i=1, | + | for i=1,table.getn(I) do |
local k = I[i]; | local k = I[i]; | ||
ret = ret .. "* " .. k; | ret = ret .. "* " .. k; |
Revision as of 23:16, 1 October 2008
名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..) Last updated: 20081001231624
[[Index:{{{2}}}]] |