     }
     
     /// 图片获取代理
+    ///
+    /// deletate for image (used for img command)
     public var imageDelegate : GetImageForTextFormater = NilImageDelegate()
     
     /// 定制化字体
+    ///
+    /// custimized fonts
     public private(set) var fonts : [String : String] = [
         "normalfont" : UIFont.systemFont(ofSize: UIFont.systemFontSize).fontName,
         "boldfont" : UIFont.boldSystemFont(ofSize: UIFont.systemFontSize).fontName,
         "italicfont" : UIFont.boldSystemFont(ofSize: UIFont.systemFontSize).fontName,
         ]
     /// 设置定制化字体
-    /// - parameter name: 格式化命令名
-    /// - parameter font: 对应字体
+    ///
+    /// set customized font
+    ///
+    /// - parameter name: 
+    ///     - 格式化命令名
+    ///     - name of command
+    /// - parameter font: 
+    ///     - 对应字体
+    ///     - font (size ignored)
     public func setFont(name: String, font: UIFont) {
         fonts[name.lowercased()] = font.fontName
         setCommand(command: name.lowercased(), squance: "ThemeFont")
     }
     
     /// 标准字号
+    ///
+    /// default size of font
     public var normalFontSize: CGFloat = UIFont.systemFontSize
     
     /// 定制化颜色
+    ///
+    /// customized colors
     public private(set) var colors : [String : UIColor] = [
         "defaultColor" : UIColor.black,
         "black" : UIColor.black,

        let regular = try! NSRegularExpression(pattern: _controlSequancePattern, options: .useUnicodeWordBoundaries)
        
        // 添加附加格式设置
        if text == nil || text == "" {
            return _result
        } else {
            let _appendx = ""
            // 目前不要求强制关闭标签
            //            for _ in regular.matches(in: KTTextFormater.defaultFormat + formatString, options: .reportProgress , range: NSMakeRange(0, (KTTextFormater.defaultFormat + formatString).characters.count)) {
            //                _appendx += _cs + _ce
            //            }

        "white" : UIColor.white,
    ]
    /// 设置定制化颜色
    ///
    /// set customized color
    /// - parameter name: 
    ///     - 格式化命令名，该命令只用于前景色；该颜色可用于 `<bgcolor name=colorname>` 命令
    ///     - color name and command, command can be used for **foreground**, color name can be used for both **foreground** and **background**
    /// - parameter color: 
    ///     - 对应颜色
    ///     - UIColor
    public func setColor(name: String, color: UIColor) {
        colors[name.lowercased()] = color
        setCommand(command: name.lowercased(), squance: "ForegroundColor")
    }
    
    /// 命令序列
    ///
    /// commands
    public private(set) var commandSquance : [String : String] = [
        "/" : "End",
        "#" : "Comments",
