PrefWindow // Bind useDynamicCandidateWindowOrigin().

This commit is contained in:
ShikiSuen 2023-08-30 22:02:05 +08:00
parent 9e26086133
commit e5ad493988
5 changed files with 40 additions and 15 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21701"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21701"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
@ -443,14 +444,14 @@
<point key="canvasLocation" x="-1350" y="59"/> <point key="canvasLocation" x="-1350" y="59"/>
</view> </view>
<view id="3x9-Ir-gx7" userLabel="vwrCandidates"> <view id="3x9-Ir-gx7" userLabel="vwrCandidates">
<rect key="frame" x="0.0" y="0.0" width="577" height="385"/> <rect key="frame" x="0.0" y="0.0" width="577" height="406"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="6" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="Lhc-qO-8m5"> <stackView distribution="fill" orientation="vertical" alignment="leading" spacing="6" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="Lhc-qO-8m5">
<rect key="frame" x="20" y="30" width="530" height="335"/> <rect key="frame" x="20" y="34" width="530" height="352"/>
<subviews> <subviews>
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="zUw-eX-tDv"> <stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="zUw-eX-tDv">
<rect key="frame" x="0.0" y="293" width="375" height="42"/> <rect key="frame" x="0.0" y="310" width="375" height="42"/>
<subviews> <subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" verticalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="Ldp-U1-36g"> <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" verticalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="Ldp-U1-36g">
<rect key="frame" x="-2" y="27" width="379" height="15"/> <rect key="frame" x="-2" y="27" width="379" height="15"/>
@ -523,13 +524,13 @@
</customSpacing> </customSpacing>
</stackView> </stackView>
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="nRb-2Q-BSg"> <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="nRb-2Q-BSg">
<rect key="frame" x="0.0" y="284" width="530" height="5"/> <rect key="frame" x="0.0" y="301" width="530" height="5"/>
<constraints> <constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="530" id="1Jo-sk-xF9"/> <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="530" id="1Jo-sk-xF9"/>
</constraints> </constraints>
</box> </box>
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="9L9-ua-Bhv"> <stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="9L9-ua-Bhv">
<rect key="frame" x="0.0" y="238" width="516" height="42"/> <rect key="frame" x="0.0" y="255" width="516" height="42"/>
<subviews> <subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="749" translatesAutoresizingMaskIntoConstraints="NO" id="Yl4-Ar-L6r"> <textField horizontalHuggingPriority="251" verticalHuggingPriority="749" translatesAutoresizingMaskIntoConstraints="NO" id="Yl4-Ar-L6r">
<rect key="frame" x="-2" y="27" width="314" height="15"/> <rect key="frame" x="-2" y="27" width="314" height="15"/>
@ -624,13 +625,13 @@
</customSpacing> </customSpacing>
</stackView> </stackView>
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="r0h-9S-fRl"> <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="r0h-9S-fRl">
<rect key="frame" x="0.0" y="229" width="530" height="5"/> <rect key="frame" x="0.0" y="246" width="530" height="5"/>
<constraints> <constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="530" id="EJu-Y7-gmC"/> <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="530" id="EJu-Y7-gmC"/>
</constraints> </constraints>
</box> </box>
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="Y6y-r1-U6p"> <stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="Y6y-r1-U6p">
<rect key="frame" x="0.0" y="183" width="313" height="42"/> <rect key="frame" x="0.0" y="200" width="313" height="42"/>
<subviews> <subviews>
<textField autoresizesSubviews="NO" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="IpX-f7-rTL"> <textField autoresizesSubviews="NO" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="IpX-f7-rTL">
<rect key="frame" x="-2" y="27" width="317" height="15"/> <rect key="frame" x="-2" y="27" width="317" height="15"/>
@ -693,16 +694,16 @@
</customSpacing> </customSpacing>
</stackView> </stackView>
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="7MU-T2-vKY"> <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="7MU-T2-vKY">
<rect key="frame" x="0.0" y="174" width="530" height="5"/> <rect key="frame" x="0.0" y="191" width="530" height="5"/>
<constraints> <constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="530" id="QYu-4N-uc8"/> <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="530" id="QYu-4N-uc8"/>
</constraints> </constraints>
</box> </box>
<stackView distribution="fill" orientation="vertical" alignment="leading" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="o0j-33-VXh"> <stackView distribution="fill" orientation="vertical" alignment="leading" spacing="6" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" translatesAutoresizingMaskIntoConstraints="NO" id="o0j-33-VXh">
<rect key="frame" x="0.0" y="92" width="399" height="78"/> <rect key="frame" x="0.0" y="92" width="409" height="95"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="13"> <textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="13">
<rect key="frame" x="-2" y="63" width="403" height="15"/> <rect key="frame" x="-2" y="80" width="403" height="15"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Choose the cursor position where you want to list possible candidates." id="14"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Choose the cursor position where you want to list possible candidates." id="14">
<font key="font" metaFont="cellTitle"/> <font key="font" metaFont="cellTitle"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@ -710,7 +711,7 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<matrix wantsLayer="YES" verticalHuggingPriority="751" tag="1" allowsEmptySelection="NO" translatesAutoresizingMaskIntoConstraints="NO" id="15"> <matrix wantsLayer="YES" verticalHuggingPriority="751" tag="1" allowsEmptySelection="NO" translatesAutoresizingMaskIntoConstraints="NO" id="15">
<rect key="frame" x="0.0" y="23" width="370" height="32"/> <rect key="frame" x="0.0" y="42" width="370" height="32"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
<size key="cellSize" width="370" height="15"/> <size key="cellSize" width="370" height="15"/>
<size key="intercellSpacing" width="4" height="2"/> <size key="intercellSpacing" width="4" height="2"/>
@ -735,7 +736,7 @@
</connections> </connections>
</matrix> </matrix>
<button translatesAutoresizingMaskIntoConstraints="NO" id="7z2-DD-c58"> <button translatesAutoresizingMaskIntoConstraints="NO" id="7z2-DD-c58">
<rect key="frame" x="-1" y="-0.5" width="318" height="16"/> <rect key="frame" x="-1" y="20.5" width="318" height="16"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="15" id="Ivs-uZ-4Eh"/> <constraint firstAttribute="height" constant="15" id="Ivs-uZ-4Eh"/>
</constraints> </constraints>
@ -747,16 +748,36 @@
<binding destination="32" name="value" keyPath="values.MoveCursorAfterSelectingCandidate" id="BbO-T6-zh3"/> <binding destination="32" name="value" keyPath="values.MoveCursorAfterSelectingCandidate" id="BbO-T6-zh3"/>
</connections> </connections>
</button> </button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="gdG-uX-PK4">
<rect key="frame" x="-1" y="-0.5" width="410" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="DMz-hx-2IO"/>
</constraints>
<buttonCell key="cell" type="check" title="Adjust candidate window location according to current phrase length" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="WcE-vn-c6K">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="cellTitle"/>
</buttonCell>
<connections>
<binding destination="32" name="value" keyPath="values.UseDynamicCandidateWindowOrigin" id="Off-fm-DRR"/>
<binding destination="32" name="enabled" keyPath="values.UseRearCursorMode" id="gKJ-4v-P9Z">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
</binding>
</connections>
</button>
</subviews> </subviews>
<visibilityPriorities> <visibilityPriorities>
<integer value="1000"/> <integer value="1000"/>
<integer value="1000"/> <integer value="1000"/>
<integer value="1000"/> <integer value="1000"/>
<integer value="1000"/>
</visibilityPriorities> </visibilityPriorities>
<customSpacing> <customSpacing>
<real value="3.4028234663852886e+38"/> <real value="3.4028234663852886e+38"/>
<real value="3.4028234663852886e+38"/> <real value="3.4028234663852886e+38"/>
<real value="3.4028234663852886e+38"/> <real value="3.4028234663852886e+38"/>
<real value="3.4028234663852886e+38"/>
</customSpacing> </customSpacing>
</stackView> </stackView>
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="FjU-gN-TjQ"> <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="FjU-gN-TjQ">
@ -866,7 +887,7 @@
<constraint firstItem="Lhc-qO-8m5" firstAttribute="leading" secondItem="3x9-Ir-gx7" secondAttribute="leading" constant="20" symbolic="YES" id="Xv4-Dc-8wm"/> <constraint firstItem="Lhc-qO-8m5" firstAttribute="leading" secondItem="3x9-Ir-gx7" secondAttribute="leading" constant="20" symbolic="YES" id="Xv4-Dc-8wm"/>
</constraints> </constraints>
<accessibility identifier="vwrCandidates"/> <accessibility identifier="vwrCandidates"/>
<point key="canvasLocation" x="-715.5" y="48.5"/> <point key="canvasLocation" x="-715.5" y="59"/>
</view> </view>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="XWo-36-xGi" userLabel="vwrBehavior"> <view id="XWo-36-xGi" userLabel="vwrBehavior">
@ -1612,7 +1633,7 @@
<rect key="frame" x="0.0" y="71" width="538" height="370"/> <rect key="frame" x="0.0" y="71" width="538" height="370"/>
<clipView key="contentView" drawsBackground="NO" id="x8s-wo-bxi"> <clipView key="contentView" drawsBackground="NO" id="x8s-wo-bxi">
<rect key="frame" x="0.0" y="0.0" width="538" height="370"/> <rect key="frame" x="0.0" y="0.0" width="538" height="370"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<textView wantsLayer="YES" importsGraphics="NO" richText="NO" verticallyResizable="YES" allowsUndo="YES" smartInsertDelete="YES" id="kSG-dz-P2N"> <textView wantsLayer="YES" importsGraphics="NO" richText="NO" verticallyResizable="YES" allowsUndo="YES" smartInsertDelete="YES" id="kSG-dz-P2N">
<rect key="frame" x="0.0" y="0.0" width="538" height="370"/> <rect key="frame" x="0.0" y="0.0" width="538" height="370"/>

View File

@ -121,6 +121,7 @@
"VdT-fw-7pQ.title" = "Debug Mode"; "VdT-fw-7pQ.title" = "Debug Mode";
"vpd-zx-GIk.title" = "Seigyou (JinYei)"; "vpd-zx-GIk.title" = "Seigyou (JinYei)";
"W24-T4-cg0.title" = "Enable CNS11643 Support (2023-05-19)"; "W24-T4-cg0.title" = "Enable CNS11643 Support (2023-05-19)";
"WcE-vn-c6K.title" = "Adjust candidate window location according to current node length";
"wFR-zX-M8H.title" = "Show Hanyu-Pinyin in the inline composition buffer"; "wFR-zX-M8H.title" = "Show Hanyu-Pinyin in the inline composition buffer";
"wN3-k3-b2a.title" = "Choose your desired user data folder path. Will be omitted if invalid."; "wN3-k3-b2a.title" = "Choose your desired user data folder path. Will be omitted if invalid.";
"wQ9-px-b07.title" = "Choose the macOS-level basic keyboard layout. Non-QWERTY alphanumerical keyboard layouts are for Pinyin parser only. This option will only affect the appearance of the on-screen-keyboard if the current Mandarin parser is neither (any) pinyin nor dynamically reparsable with different western keyboard layouts (like Eten 26, Hsu, etc.)."; "wQ9-px-b07.title" = "Choose the macOS-level basic keyboard layout. Non-QWERTY alphanumerical keyboard layouts are for Pinyin parser only. This option will only affect the appearance of the on-screen-keyboard if the current Mandarin parser is neither (any) pinyin nor dynamically reparsable with different western keyboard layouts (like Eten 26, Hsu, etc.).";

View File

@ -121,6 +121,7 @@
"VdT-fw-7pQ.title" = "欠陥辿着モード"; "VdT-fw-7pQ.title" = "欠陥辿着モード";
"vpd-zx-GIk.title" = "精業配列"; "vpd-zx-GIk.title" = "精業配列";
"W24-T4-cg0.title" = "全字庫モード // 入力可能の漢字数倍増 (2023-05-19)"; "W24-T4-cg0.title" = "全字庫モード // 入力可能の漢字数倍増 (2023-05-19)";
"WcE-vn-c6K.title" = "カーソル所在位置の単語の長さによって候補陳列ウィンドウの位置を調整";
"wFR-zX-M8H.title" = "弁音合併入力(入力緩衝列で音読みを漢語弁音に)"; "wFR-zX-M8H.title" = "弁音合併入力(入力緩衝列で音読みを漢語弁音に)";
"wN3-k3-b2a.title" = "欲しがるユーザー辞書保存先をご指定ください。無効の保存先設定は効かぬ。"; "wN3-k3-b2a.title" = "欲しがるユーザー辞書保存先をご指定ください。無効の保存先設定は効かぬ。";
"wQ9-px-b07.title" = "macOS 基礎キーボード配置をご指定ください。QWERTY 以外の英数キーボードは弁音以外の配列に不適用。弁音配列或いは「英数キーボードー配置と関わる注音配列(例えば許氏など)」を起用していない限り、キーボード配置の設定はキーボードビューアの有りようだけに影響を及ぼす。"; "wQ9-px-b07.title" = "macOS 基礎キーボード配置をご指定ください。QWERTY 以外の英数キーボードは弁音以外の配列に不適用。弁音配列或いは「英数キーボードー配置と関わる注音配列(例えば許氏など)」を起用していない限り、キーボード配置の設定はキーボードビューアの有りようだけに影響を及ぼす。";

View File

@ -121,6 +121,7 @@
"VdT-fw-7pQ.title" = "侦错模式"; "VdT-fw-7pQ.title" = "侦错模式";
"vpd-zx-GIk.title" = "精业"; "vpd-zx-GIk.title" = "精业";
"W24-T4-cg0.title" = "启用 CNS11643 全字库支援 (2023-05-19)"; "W24-T4-cg0.title" = "启用 CNS11643 全字库支援 (2023-05-19)";
"WcE-vn-c6K.title" = "根据当前位置的字词长度,自动调整选字窗的位置";
"wFR-zX-M8H.title" = "拼音并击(组字区内显示汉语拼音)"; "wFR-zX-M8H.title" = "拼音并击(组字区内显示汉语拼音)";
"wN3-k3-b2a.title" = "请在此指定您想指定的使用者语汇档案目录。无效值会被忽略。"; "wN3-k3-b2a.title" = "请在此指定您想指定的使用者语汇档案目录。无效值会被忽略。";
"wQ9-px-b07.title" = "请选择 macOS 基础键盘布局。QWERTY 以外的英数布局是为了拼音排列的使用者而准备的。如果当前的普通话/国音分析器并未设为拼音、或者并未设定成任何受西文键盘布局影响的注音排列(比如倚天 26 键排列、许氏排列,等)的话,则键盘布局选项仅会影响到荧幕键盘。"; "wQ9-px-b07.title" = "请选择 macOS 基础键盘布局。QWERTY 以外的英数布局是为了拼音排列的使用者而准备的。如果当前的普通话/国音分析器并未设为拼音、或者并未设定成任何受西文键盘布局影响的注音排列(比如倚天 26 键排列、许氏排列,等)的话,则键盘布局选项仅会影响到荧幕键盘。";

View File

@ -121,6 +121,7 @@
"VdT-fw-7pQ.title" = "偵錯模式"; "VdT-fw-7pQ.title" = "偵錯模式";
"vpd-zx-GIk.title" = "精業"; "vpd-zx-GIk.title" = "精業";
"W24-T4-cg0.title" = "啟用 CNS11643 全字庫支援 (2023-05-19)"; "W24-T4-cg0.title" = "啟用 CNS11643 全字庫支援 (2023-05-19)";
"WcE-vn-c6K.title" = "根據當前位置的字詞長度,自動調整選字窗的位置";
"wFR-zX-M8H.title" = "拼音並擊(組字區內顯示漢語拼音)"; "wFR-zX-M8H.title" = "拼音並擊(組字區內顯示漢語拼音)";
"wN3-k3-b2a.title" = "請在此指定您想指定的使用者語彙檔案目錄。無效值會被忽略。"; "wN3-k3-b2a.title" = "請在此指定您想指定的使用者語彙檔案目錄。無效值會被忽略。";
"wQ9-px-b07.title" = "請選擇 macOS 基礎鍵盤佈局。QWERTY 以外的英數佈局是為了拼音排列的使用者而準備的。如果當前的普通話/國音分析器並未設為拼音、或者並未設定成任何受西文鍵盤佈局影響的注音排列(比如倚天 26 鍵排列、許氏排列,等)的話,則鍵盤佈局選項僅會影響到螢幕鍵盤。"; "wQ9-px-b07.title" = "請選擇 macOS 基礎鍵盤佈局。QWERTY 以外的英數佈局是為了拼音排列的使用者而準備的。如果當前的普通話/國音分析器並未設為拼音、或者並未設定成任何受西文鍵盤佈局影響的注音排列(比如倚天 26 鍵排列、許氏排列,等)的話,則鍵盤佈局選項僅會影響到螢幕鍵盤。";