App-Music-ChordPro

 view release on metacpan or  search on metacpan

lib/ChordPro/res/config/config.schema  view on Meta::CPAN

      "type": "string",
      "enum": [
        "serif",
        "times",
        "helvetica",
        "sans",
        "sans-serif",
        "courier",
        "mono",
        "monospace",
        "dingbats"
      ]
    },
    "delegatespec": {
      "description": "Shared properties between all delegate types.",
      "type": "object",
      "required": ["type", "module", "handler"],
      "$comment": "Due to use of `allOf` to allow reuse of shared structure, `additionalProperties` doesn't work properly to disallow any undefined properties. The correct keywork to use is `unevaluatedProperties`, but it is not supported until `JSON...
      "properties": {
        "align": {
          "description": "Horizontal alignment of the resulting image, if `type` is `image`.",
          "type": "string",
          "enum": ["left", "center", "right"],
          "default": "center"
        },
        "type": {
          "title": "The result produced by the delegate handler.",
          "type": "string",
          "oneOf": [
            {
              "const": "image",
              "title": "Expects the section to produce an image that will be embedded in the ChordPro output."
            },
            {
              "const": "none",
              "title": "Treats the section as a generic section."
            },
            {
              "const": "omit",
              "title": "Ignores the section."
            },
            {
              "const": "filter",
              "title": "For filtering plugins."
            }
          ],
          "default": "image"
        },
        "subtype": {
          "description": "Type of the `image` produced. If not specified, it will be auto-detected.\nFor standard delegates, this is ignored, as they already know which type of image will be produced.\nFor cusotm delegates, this can be optionally spe...
          "oneOf": [
            {
              "title": "Equivalent to omitting `subtype` altogether.",
              "enum": [false, ""]
            },
            {
              "title": "A type of image.",
              "enum": [
                "jpg",
                "jpeg",
                "png",
                "svg",
                "gif",
                "tiff",
                "xbm",
                "pbm",
                "pnm"
              ]
            }
          ]
        },
        "handler": {
          "title": "The module's method to call.",
          "type": "string",
          "default": "default"
        },
        "config": {
          "type": "string",
          "default": "default"
        },
        "preamble": {
          "description": "Input lines to prepend to the user data.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "program": {
          "description": "The program/command to execute.",
          "type": "string",
          "default": ""
        },
        "module": {
          "type": "string",
          "description": "The name of the (perl) module that implements the delegate."
        },
        "preprocess": {
          "description": "Obsolete. Please use `parser.preprocess.env-...` instead.",
          "type": "object"
        },
        "omit": {
          "type": "boolean",
          "description": "If `true`, no delegation will be handled.",
          "default": false
        },
        "html": {
          "description": "Specific settings for the HTML backend."
        },
        "pdf": {
          "description": "Specific settings for the PDF backend."
        }
      }
    },
    "fontDescription": {
      "type": "string",
      "description": "A shorthand description of a font. In the format of `fontclass (bold)?(italic)? fontsize`.",
      "$comment": "While visually complex, `pattern` was written so that each portion now has named capture groups, which can help with understanding and debugging the composition of the regular expression.",
      "pattern": "^(?<nameOrType>[a-zA-Z\\-]+) ?(?<style>(?:bold)?(?:italic|oblique)?) ?(?<size>\\d+(?:\\.\\d+)?)?(?:;(?<addlProps> [^\\s=]+=[^\\s=]+)+)?$",
      "examples": [
        "serif bold 14",
        "serif 11",



( run in 0.867 second using v1.01-cache-2.11-cpan-788537b7465 )