2019-11-27 17:11:45 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"version",
|
|
|
|
"profiles",
|
|
|
|
"profileCurrent",
|
|
|
|
"global"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"version": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"profiles": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"conditionGroups",
|
|
|
|
"options"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "Default"
|
|
|
|
},
|
|
|
|
"conditionGroups": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"conditions"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"conditions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"type",
|
|
|
|
"operator",
|
|
|
|
"value"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"operator": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"value": {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"version",
|
|
|
|
"general",
|
|
|
|
"audio",
|
|
|
|
"scanning",
|
2019-12-29 23:32:41 +00:00
|
|
|
"translation",
|
2019-11-27 17:11:45 +00:00
|
|
|
"dictionaries",
|
|
|
|
"parsing",
|
|
|
|
"anki"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"version": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
"general": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"enable",
|
2020-01-25 17:00:36 +00:00
|
|
|
"enableClipboardPopups",
|
2019-11-27 17:11:45 +00:00
|
|
|
"resultOutputMode",
|
|
|
|
"debugInfo",
|
|
|
|
"maxResults",
|
|
|
|
"showAdvanced",
|
|
|
|
"popupDisplayMode",
|
|
|
|
"popupWidth",
|
|
|
|
"popupHeight",
|
|
|
|
"popupHorizontalOffset",
|
|
|
|
"popupVerticalOffset",
|
|
|
|
"popupHorizontalOffset2",
|
|
|
|
"popupVerticalOffset2",
|
|
|
|
"popupHorizontalTextPosition",
|
|
|
|
"popupVerticalTextPosition",
|
2019-12-29 23:35:12 +00:00
|
|
|
"popupScalingFactor",
|
|
|
|
"popupScaleRelativeToPageZoom",
|
2019-12-30 17:42:12 +00:00
|
|
|
"popupScaleRelativeToVisualViewport",
|
2019-11-27 17:11:45 +00:00
|
|
|
"showGuide",
|
|
|
|
"compactTags",
|
|
|
|
"compactGlossaries",
|
|
|
|
"mainDictionary",
|
|
|
|
"popupTheme",
|
|
|
|
"popupOuterTheme",
|
|
|
|
"customPopupCss",
|
|
|
|
"customPopupOuterCss",
|
|
|
|
"enableWanakana",
|
2020-03-01 19:38:16 +00:00
|
|
|
"enableClipboardMonitor",
|
|
|
|
"showPitchAccentDownstepNotation",
|
|
|
|
"showPitchAccentPositionNotation",
|
2020-04-04 22:43:12 +00:00
|
|
|
"showPitchAccentGraph",
|
|
|
|
"showIframePopupsInRootFrame"
|
2019-11-27 17:11:45 +00:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"enable": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
2020-01-25 17:00:36 +00:00
|
|
|
"enableClipboardPopups": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
2019-11-27 17:11:45 +00:00
|
|
|
"resultOutputMode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["group", "merge", "split"],
|
|
|
|
"default": "group"
|
|
|
|
},
|
|
|
|
"debugInfo": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"maxResults": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1,
|
|
|
|
"default": 32
|
|
|
|
},
|
|
|
|
"showAdvanced": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"popupDisplayMode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["default", "full-width"],
|
|
|
|
"default": "default"
|
|
|
|
},
|
|
|
|
"popupWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 400
|
|
|
|
},
|
|
|
|
"popupHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 250
|
|
|
|
},
|
|
|
|
"popupHorizontalOffset": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"popupVerticalOffset": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 10
|
|
|
|
},
|
|
|
|
"popupHorizontalOffset2": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 10
|
|
|
|
},
|
|
|
|
"popupVerticalOffset2": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"popupHorizontalTextPosition": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["below", "above"],
|
|
|
|
"default": "below"
|
|
|
|
},
|
|
|
|
"popupVerticalTextPosition": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["default", "before", "after", "left", "right"],
|
|
|
|
"default": "before"
|
|
|
|
},
|
2019-12-29 23:35:12 +00:00
|
|
|
"popupScalingFactor": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 1
|
|
|
|
},
|
|
|
|
"popupScaleRelativeToPageZoom": {
|
|
|
|
"type": "boolean",
|
2019-12-30 17:36:11 +00:00
|
|
|
"default": false
|
2019-12-29 23:35:12 +00:00
|
|
|
},
|
2019-12-30 17:42:12 +00:00
|
|
|
"popupScaleRelativeToVisualViewport": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
2019-11-27 17:11:45 +00:00
|
|
|
"showGuide": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"compactTags": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"compactGlossaries": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"mainDictionary": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"popupTheme": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["default", "dark"],
|
|
|
|
"default": "default"
|
|
|
|
},
|
|
|
|
"popupOuterTheme": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["default", "dark", "auto"],
|
|
|
|
"default": "default"
|
|
|
|
},
|
|
|
|
"customPopupCss": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"customPopupOuterCss": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"enableWanakana": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"enableClipboardMonitor": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-03-01 19:38:16 +00:00
|
|
|
},
|
|
|
|
"showPitchAccentDownstepNotation": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"showPitchAccentPositionNotation": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"showPitchAccentGraph": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-04-04 22:43:12 +00:00
|
|
|
},
|
|
|
|
"showIframePopupsInRootFrame": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2019-11-27 17:11:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"audio": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"enabled",
|
|
|
|
"sources",
|
|
|
|
"volume",
|
|
|
|
"autoPlay",
|
|
|
|
"customSourceUrl",
|
|
|
|
"textToSpeechVoice"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"sources": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"jpod101",
|
|
|
|
"jpod101-alternate",
|
|
|
|
"jisho",
|
|
|
|
"text-to-speech",
|
|
|
|
"text-to-speech-reading",
|
|
|
|
"custom"
|
|
|
|
],
|
|
|
|
"default": "jpod101"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"volume": {
|
|
|
|
"type": "number",
|
|
|
|
"minimum": 0,
|
|
|
|
"maximum": 100,
|
|
|
|
"default": 100
|
|
|
|
},
|
|
|
|
"autoPlay": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"customSourceUrl": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"textToSpeechVoice": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scanning": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"middleMouse",
|
|
|
|
"touchInputEnabled",
|
|
|
|
"selectText",
|
|
|
|
"alphanumeric",
|
|
|
|
"autoHideResults",
|
|
|
|
"delay",
|
|
|
|
"length",
|
|
|
|
"modifier",
|
|
|
|
"deepDomScan",
|
|
|
|
"popupNestingMaxDepth",
|
|
|
|
"enablePopupSearch",
|
|
|
|
"enableOnPopupExpressions",
|
2020-01-26 19:00:19 +00:00
|
|
|
"enableOnSearchPage",
|
|
|
|
"enableSearchTags"
|
2019-11-27 17:11:45 +00:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"middleMouse": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"touchInputEnabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"selectText": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"alphanumeric": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"autoHideResults": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"delay": {
|
|
|
|
"type": "number",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 20
|
|
|
|
},
|
|
|
|
"length": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1,
|
|
|
|
"default": 10
|
|
|
|
},
|
|
|
|
"modifier": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["none", "alt", "ctrl", "shift"],
|
|
|
|
"default": "shift"
|
|
|
|
},
|
|
|
|
"deepDomScan": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"popupNestingMaxDepth": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"enablePopupSearch": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"enableOnPopupExpressions": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"enableOnSearchPage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
2020-01-26 19:00:19 +00:00
|
|
|
},
|
|
|
|
"enableSearchTags": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2019-11-27 17:11:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-12-29 23:32:41 +00:00
|
|
|
"translation": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"convertHalfWidthCharacters",
|
|
|
|
"convertNumericCharacters",
|
2020-01-24 01:28:38 +00:00
|
|
|
"convertAlphabeticCharacters",
|
2020-01-24 01:49:41 +00:00
|
|
|
"convertHiraganaToKatakana",
|
2020-01-24 01:28:38 +00:00
|
|
|
"convertKatakanaToHiragana"
|
2019-12-29 23:32:41 +00:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"convertHalfWidthCharacters": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["false", "true", "variant"],
|
|
|
|
"default": "false"
|
|
|
|
},
|
|
|
|
"convertNumericCharacters": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["false", "true", "variant"],
|
|
|
|
"default": "false"
|
|
|
|
},
|
|
|
|
"convertAlphabeticCharacters": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["false", "true", "variant"],
|
|
|
|
"default": "false"
|
2020-01-24 01:28:38 +00:00
|
|
|
},
|
2020-01-24 01:49:41 +00:00
|
|
|
"convertHiraganaToKatakana": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["false", "true", "variant"],
|
|
|
|
"default": "false"
|
|
|
|
},
|
2020-01-24 01:28:38 +00:00
|
|
|
"convertKatakanaToHiragana": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["false", "true", "variant"],
|
|
|
|
"default": "variant"
|
2019-12-29 23:32:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-11-27 17:11:45 +00:00
|
|
|
"dictionaries": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"priority",
|
|
|
|
"enabled",
|
|
|
|
"allowSecondarySearches"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"priority": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"allowSecondarySearches": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parsing": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"enableScanningParser",
|
|
|
|
"enableMecabParser",
|
|
|
|
"selectedParser",
|
2020-01-25 00:57:57 +00:00
|
|
|
"termSpacing",
|
2019-11-27 17:11:45 +00:00
|
|
|
"readingMode"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"enableScanningParser": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"enableMecabParser": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"selectedParser": {
|
|
|
|
"type": ["string", "null"],
|
|
|
|
"default": null
|
|
|
|
},
|
2020-01-25 00:57:57 +00:00
|
|
|
"termSpacing": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
2019-11-27 17:11:45 +00:00
|
|
|
"readingMode": {
|
|
|
|
"type": "string",
|
2020-01-25 00:56:14 +00:00
|
|
|
"enum": ["hiragana", "katakana", "romaji", "none"],
|
2019-11-27 17:11:45 +00:00
|
|
|
"default": "hiragana"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"anki": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"enable",
|
|
|
|
"server",
|
|
|
|
"tags",
|
|
|
|
"sentenceExt",
|
|
|
|
"screenshot",
|
|
|
|
"terms",
|
|
|
|
"kanji",
|
|
|
|
"fieldTemplates"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"enable": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"server": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "http://127.0.0.1:8765"
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default": [
|
|
|
|
"yomichan"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sentenceExt": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 200
|
|
|
|
},
|
|
|
|
"screenshot": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"format",
|
|
|
|
"quality"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"format": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["png", "jpeg"],
|
|
|
|
"default": "png"
|
|
|
|
},
|
|
|
|
"quality": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"maximum": 100,
|
|
|
|
"default": 92
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"terms": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"deck",
|
|
|
|
"model",
|
|
|
|
"fields"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"deck": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"model": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"fields": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"kanji": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"deck",
|
|
|
|
"model",
|
|
|
|
"fields"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"deck": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"model": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"fields": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"fieldTemplates": {
|
|
|
|
"type": ["string", "null"],
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"profileCurrent": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"global": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"database"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"database": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"prefixWildcardsSupported"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"prefixWildcardsSupported": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|