|
|
Line 3: |
Line 3: |
| </noinclude><!---9、10桁目のパターンを取得。セパレータは&---> | | </noinclude><!---9、10桁目のパターンを取得。セパレータは&---> |
| {{#def:digit910| | | {{#def:digit910| |
| {{#lua: | | {{#invoke:LBFDigit|digit910| {{#SearchTitle:LBF{{{1|}}}|}} }} |
| local L = {};
| |
| local desc = {
| |
| SC = "straight-chain",
| |
| BC = "branched-chain",
| |
| HP = "hydroperoxy",
| |
| HO = "hydroxy and alcoholic",
| |
| OX = "oxo",
| |
| EO = "epoxy",
| |
| MO = "methoxy",
| |
| CA = "carboxylic",
| |
| OP = "12-oxo-phytodienoic",
| |
| JA = "jasmonic related",
| |
| PG = "prostaglandin",
| |
| LT = "leukotriene",
| |
| TX = "thromboxane",
| |
| LX = "lipoxin",
| |
| HX = "hepoxilin",
| |
| CV = "clavulone",
| |
| AM = "amide",
| |
| SF = "sulfur containing",
| |
| PH = "phosphate",
| |
| XX = "others"
| |
| };
| |
| local c;
| |
| for id in stdin:gmatch("%S+") do
| |
| c = string.sub(id,4,5);
| |
| id = string.sub(id,9,10);
| |
| if (L[id] == nil) then L[id] = id end
| |
| end
| |
| for k,v in pairs(L) do
| |
| if (desc[v] ~= nil)
| |
| then p = desc[v] else p = "<span style=\"color:red\">?"..v.."?</span>"
| |
| end
| |
| print("&"..c .. "&" .. v .. "&" .. p);
| |
| end
| |
| | {{#SearchTitle:LBF{{{1|}}}|}} }} | |
| }} | | }} |
|
| |
|
Latest revision as of 06:40, 2 February 2023
{{{1}}} ... 4,5桁目のIDを入力とし、4th classのテーブルを作成