https://github.com/miyako/4d-plugin-text-input-service
Commands to control the front-end text editor on Mac
https://github.com/miyako/4d-plugin-text-input-service
4d-plugin
Last synced: 16 days ago
JSON representation
Commands to control the front-end text editor on Mac
- Host: GitHub
- URL: https://github.com/miyako/4d-plugin-text-input-service
- Owner: miyako
- License: mit
- Created: 2015-04-22T01:54:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-08-07T02:17:37.000Z (almost 3 years ago)
- Last Synced: 2025-01-08T17:55:31.553Z (over 1 year ago)
- Topics: 4d-plugin
- Language: C
- Homepage:
- Size: 3.11 MB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 4d-plugin-text-input-service
Commands to control the front-end text editor.


[](LICENSE)


* 新バージョンは[こちら](https://github.com/miyako/4d-plugin-text-input-service-v2)
* Windows向けは[こちら](https://github.com/miyako/4d-plugin-input-method-manager/)

## Syntax
```4d
source:=INPUT SOURCE Get for language (language)
```
Parameter|Type|Description
------------|------------|----
language|TEXT|
source|TEXT|
```4d
INPUT SOURCE LIST (sources)
```
Parameter|Type|Description
------------|------------|----
sources|ARRAY TEXT|
```4d
source:=INPUT SOURCE Get
INPUT SOURCE SET (source)
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
```4d
category:=INPUT SOURCE Get category (source)
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
category|TEXT|
```4d
source:=INPUT SOURCE Get ASCII
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
```4d
icon:=INPUT SOURCE Get icon (source)
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
icon|PICTURE|
```4d
name:=INPUT SOURCE Get name (source)
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
name|TEXT|
```4d
type:=INPUT SOURCE Get type (source)
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
type|TEXT|
```4d
INPUT SOURCE DISABLE (source)
INPUT SOURCE ENABLE (source)
```
Parameter|Type|Description
------------|------------|----
source|TEXT|
```4d
layout:=KEYBOARD LAYOUT Get
layout:=KEYBOARD LAYOUT Get ASCII
layout:=KEYBOARD LAYOUT Get override
KEYBOARD LAYOUT SET OVERRIDE (layout)
```
Parameter|Type|Description
------------|------------|----
layout|TEXT|
### Examples
```4d
$ascii:=INPUT SOURCE Get ASCII //英数キーを押したときに選択されるもの
//例:
//com.apple.inputmethod.Kotoeri.Roman
//com.apple.keylayout.US
$current:=INPUT SOURCE Get //現在のもの
$kana:=INPUT SOURCE Get for language ("ja") //かなキーを押したときに選択されるもの
//例:
//com.apple.inputmethod.Kotoeri.Japanese
//jp.co.ergo.egbridge_universal_2.component.Japanese
//com.justsystems.inputmethod.atok22.Japanese
//com.google.inputmethod.Japanese.base
If (Shift down)
//ことえり英数をアンインストールする
INPUT SOURCE DISABLE ("com.apple.inputmethod.Kotoeri.Roman")
//U.S.をインストールする
INPUT SOURCE ENABLE ("com.apple.keylayout.US")
//U.S.を使用する
INPUT SOURCE SET ("com.apple.keylayout.US")
End if
```