Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve config page #595

Merged
merged 1 commit into from Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 11 additions & 6 deletions python/input_methods/chewing/config_tool.html
Expand Up @@ -43,8 +43,10 @@
<h1>中英文切換</h1>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="switchLangWithShift" name="switchLangWithShift">
<label class="custom-control-label" for="switchLangWithShift" data-title="建議不要和〔使用左 Shift、右 Shift在打字時移動游標〕共用"
data-toggle="popover" data-placement="bottom" data-trigger="hover">使用<kbd>Shift</kbd>切換中英文模式 🛈</label>
<label class="custom-control-label" for="switchLangWithShift"
data-content="不建議同時使用「<b>使用左 Shift、 右 Shift 在打字時移動游標</b>」設定"
data-html="true" data-toggle="popover"
data-placement="bottom" data-trigger="hover">使用<kbd>Shift</kbd>切換中英文模式 🛈</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="enableCapsLock" name="enableCapsLock">
Expand Down Expand Up @@ -88,7 +90,8 @@ <h1>選字視窗動作</h1>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="shiftMoveCursor" name="shiftMoveCursor">
<label class="custom-control-label" for="shiftMoveCursor" data-title="建議不要和〔使用Shift切換中英文模式〕共用" data-toggle="popover"
<label class="custom-control-label" for="shiftMoveCursor" data-content="不建議同時使用「<b>使用Shift切換中英文模式</b>」設定"
data-toggle="popover" data-html="true"
data-placement="bottom" data-trigger="hover">使用<kbd>左 Shift</kbd>、 <kbd>右 Shift</kbd>
在打字時移動游標 🛈</label>
</div>
Expand Down Expand Up @@ -159,8 +162,10 @@ <h1>其他</h1>

<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="easySymbolsWithCtrl" name="easySymbolsWithCtrl">
<label class="custom-control-label" for="easySymbolsWithCtrl" data-html="true" data-title="容易產生熱鍵衝突,不建議使用"
data-content="例如常用的複製貼上熱鍵Ctrl + C,Ctrl + V,會和這個功能衝突,需要切回英文模式才能使用" data-toggle="popover" data-placement="bottom"
<label class="custom-control-label" for="easySymbolsWithCtrl"
data-content="<span class='text-warning'>容易產生熱鍵衝突,不建議使用</span></br>
例如常用的複製貼上熱鍵Ctrl + C,Ctrl + V,會和這個功能衝突,需要切回英文模式才能使用"
data-html="true" data-toggle="popover" data-placement="bottom"
data-trigger="hover">中文模式下按住<kbd>Ctrl</kbd> 快速輸入符號 🛈</label>
</div>
<p class="well">
Expand Down Expand Up @@ -201,4 +206,4 @@ <h1>其他</h1>
<script src="js/config.js"></script>
</body>

</html>
</html>
7 changes: 3 additions & 4 deletions python/input_methods/chewing/css/config.css
@@ -1,7 +1,6 @@
a[target="_blank"]::after {
font-family: "FontAwesome";
margin: 0 3px 0 1px;
content: "\f08e";
content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
margin: 0 3px 0 2px;
}

kbd {
Expand Down Expand Up @@ -90,4 +89,4 @@ textarea {

#ui_tab .btn {
text-transform: none;
}
}
58 changes: 34 additions & 24 deletions python/input_methods/chewing/debug/config
@@ -1,26 +1,36 @@
{
"config": {
"upperCaseWithShift": true,
"addPhraseForward": true,
"easySymbolsWithCtrl": false,
"easySymbolsWithShift": false,
"defaultEnglish": false,
"fullShapeSymbols": true,
"defaultFullSpace": false,
"upDownAction": 0,
"candPerPage": 10,
"escCleanAllBuf": false,
"leftRightAction": 0,
"keyboardLayout": 0,
"fontSize": 16,
"advanceAfterSelection": true,
"outputSimpChinese": false,
"switchLangWithShift": false,
"spaceKeyAction": 0,
"selKeyType": 0,
"candPerRow": 5,
"colorCandWnd": true,
"enableCapsLock": true
"config":{
"addPhraseForward":true,
"advanceAfterSelection":true,
"candPerPage":10,
"candPerRow":5,
"defaultEnglish":true,
"defaultFullSpace":false,
"easySymbolsWithCtrl":false,
"easySymbolsWithShift":false,
"enableCapsLock":true,
"enableShiftSpace":true,
"enableSwitchTCSC":true,
"escCleanAllBuf":false,
"fontSize":12,
"fullShapeSymbols":false,
"fullShapeSymbolsWithShift":true,
"keyboardLayout":0,
"leftRightAction":0,
"outputSimpChinese":false,
"selKeyType":0,
"shiftMoveCursor":0,
"spaceKeyAction":1,
"spaceKeyCandidatesAction":0,
"switchLangWithShift":true,
"upDownAction":0,
"upperCaseWithShift":true,
"disableOnStartup":false,
"showCandWithSpaceKey":false,
"undefined":false,
"cursorCandList":true,
"colorCandWnd":true
},
"swkb": "O \u300a\nP \u300b\nI \u203b",
"symbols": "\u2026\n\u203b\n\u5e38\u7528\u7b26\u865f=\uff0c\u3001\u3002\uff0e\uff1f\uff01582"}
"symbols":"\u2026\n\uff0c\n\u5e38\u7528\u7b26\u865f=\uff0c\u3001\u3002\uff0e\uff1f\uff01\uff1b\ufe30\u2027\u2025\ufe50\ufe52\u02d9\u00b7\u2018\u2019\u201c\u201d\u301d\u301e\u2035\u2032\u3003\uff5e\uff04\uff05\uff20\uff06\uff03\uff0a\n\u5de6\u53f3\u62ec\u865f=\uff08\uff09\u300c\u300d\u3014\u3015\uff5b\uff5d\u3008\u3009\u300e\u300f\u300a\u300b\u3010\u3011\ufe59\ufe5a\ufe5d\ufe5e\ufe5b\ufe5c\n\u4e0a\u4e0b\u62ec\u865f=\ufe35\ufe36\ufe41\ufe42\ufe39\ufe3a\ufe37\ufe38\ufe3f\ufe40\ufe43\ufe44\ufe3d\ufe3e\ufe3b\ufe3c\n\u5e0c\u81d8\u5b57\u6bcd=\u03b1\u03b2\u03b3\u03b4\u03b5\u03b6\u03b7\u03b8\u03b9\u03ba\u03bb\u03bc\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8\u03c9\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039a\u039b\u039c\u039d\u039e\u039f\u03a0\u03a1\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\n\u6578\u5b78\u7b26\u865f=\uff0b\uff0d\u00d7\u00f7\uff1d\u2260\u2252\u221e\u00b1\u221a\uff1c\uff1e\ufe64\ufe65\u2266\u2267\u2229\u222a\u02c7\u22a5\u2220\u221f\u22bf\u33d2\u33d1\u222b\u222e\u2235\u2234\u2573\ufe62\n\u7279\u6b8a\u5716\u5f62=\u2191\u2193\u2190\u2192\u2196\u2197\u2199\u2198\u32a3\u25ce\u25cb\u25cf\u2295\u2299\u25cb\u25cf\u25b3\u25b2\u2606\u2605\u25c7\u25c6\u25a1\u25a0\u25bd\u25bc\u00a7\uffe5\u3012\uffe0\uffe1\u203b\u2640\u2642\nUnicode=\u2668\u2600\u2601\u2602\u2603\u2660\u2665\u2663\u2666\u2669\u266a\u266b\u266c\u263a\u263b\n\u55ae\u7dda\u6846=\u251c\u2500\u253c\u2534\u252c\u2524\u250c\u2510\u255e\u2550\u256a\u2561\u2502\u2595\u2514\u2518\u256d\u256e\u2570\u256f\n\u96d9\u7dda\u6846=\u2554\u2566\u2557\u2560\u2550\u256c\u2563\u2553\u2565\u2556\u2552\u2564\u2555\u2551\u255a\u2569\u255d\u255f\u256b\u2562\u2559\u2568\u255c\u255e\u256a\u2561\u2558\u2567\u255b\n\u586b\u8272\u65b9\u584a=\uff3f\u02cd\u2581\u2582\u2583\u2584\u2585\u2586\u2587\u2588\u258f\u258e\u258d\u258c\u258b\u258a\u2589\u25e2\u25e3\u25e5\u25e4\n\u7dda\u6bb5=\ufe63\ufe66\u2261\uff5c\u2223\u2225\u2013\ufe31\u2014\ufe33\u2574\u00af\uffe3\ufe49\ufe4a\ufe4d\ufe4e\ufe4b\ufe4c\ufe4f\ufe34\u2215\ufe68\u2571\u2572\uff0f\uff3c\n",
"swkb":"Q \u3014\nW \u3015\nA \u3010\nS \u3011\nZ \u300a\nX \u300b\nE \uff5b\nR \uff5d\nD \u300c\nF \u300d\nC \u300e\nV \u300f\nT \u2018\nY \u2019\nG \u201c\nH \u201d\nB \u301d\nN \u301e\nU \uff0b\nI \uff0d\nO \u00d7\nP \u00f7\nJ \u2260\nK \u2252\nL Orz\nM \u2026"
}
2 changes: 1 addition & 1 deletion python/input_methods/chewing/debug/version.txt
@@ -1 +1 @@
0.16
1.3.0-beta