Wednesday, April 4, 2018

輸入參數轉譯




For the case “CMYK”, engineUI has to translate the parameters and generate a new string “CMYK”,”C_MYK” or “C__K”...etc. Others cases could use others string combination such as “Model/Support” “Cartridge1/2”…etc.  It is mean that we have to prepare translation/generation functions individually for each case that need parameters.

以"CMYK"的例子來說, engineUI必需解譯(輸入的)參數並產生新的字串例如 CMYK”,”C_MYK” 或 “C__K"...等
而其他的情況(例子)可能會使用不同的字串組合, 例如 “Model/Support"或“Cartridge1/2". 

這意味著每個需要(輸入)參數的例子我們都必須準備(各自)相對應的translation和generation函式

Note: 有些例子不會有輸入參數, 所以就不需要 translation和generation函式