Oman syöttölähteen luominen ja käyttäminen Macissa
macOS:ssä on oletusarvoisia syöttölähteitä eri kielille, kuten Pinyin kiinalle. Voit luoda ja lisätä oman syöttötavan mihin tahansa kieleen. Kun haluat lisätä syöttötavan, sinun on ensin luotava sääntötiedosto, joka yhdistää näppäimistöllä kirjoittamasi näkyviin kirjaimiin.
Oman syöttötavan luominen
Avaa Macissa tekstinkäsittelyappi, joka tukee Unicodea.
Luo sääntötiedosto käyttämällä alla olevaa näytetiedostoa ohjenuorana.
Tiedoston tulee olla pelkkä teksti -muodossa.
Tallenna tiedosto Unicode (UTF-16) -koodauksella ja käyttäen tiedostopäätettä, kuten .inputplugin.
Kaksoisklikkaa tallennettua tiedostoa.
Muokattu syöttölähteesi lisätään valikkorivin syöttövalikkoon ja Näppäimistö-asetusten syöttölähdeluetteloon. Voit tarkastella sitä valitsemalla Omenavalikko > Järjestelmäasetukset ja klikkaamalla sivupalkissa Näppäimistö . (Sinun on ehkä selattava alaspäin.) Valitse oikealla Tekstin syöttö ja klikkaa Muokkaa.
macOS tukee myös .cin-muotoa. Jos käytät .cin-tiedostoa, tiedoston koodaus voi olla UTF-16 tai UTF-8.
Sääntötiedosto
# (c) Apple Inc. 2023
# Sample plug-in input source rule file.
# The # character is used to indicate comments.
# The file format must be plain text. The file encoding must be Unicode (UTF-16) with or without an initial BOM (Byte Order Mark).
# The file consists of a number of tags, in uppercase ending with a colon, followed by the content of the tag.
#
# METHOD: This is the first entry in the file, defining the method used to implement the plug-in.
# The only method currently supported is ”TABLE”.
#
METHOD: TABLE
#
# ENCODE: This indicates whether the target is Traditional Chinese (”TC”), Simplified Chinese (”SC”), or Unicode (”Unicode”). All plug-in input sources appear as Unicode input sources in Keyboard settings.
#
ENCODE: TC
#
# PROMPT: This is the name of the plug-in, shown in the list of input sources in Keyboard settings and the Input menu.
#
PROMPT: Sample_En
#
# DELIMITER: This defines the delimiter for characters or phrases with the same input code.
# In this case, we are using the comma character.
#
DELIMITER: ,
#
# VERSION: This is used to indicate the version number of your plug-in.
#
VERSION: 1,0
#
# MAXINPUTCODE: The limit of the number of characters that can be input for a single conversion.
# There is no limit unless you specify one.
#
MAXINPUTCODE: 8
#
# VALIDINPUTKEY: The set of characters that can be used for input strings. These are case-insensitive but must be entered as one complete set.
#
VALIDINPUTKEY: 0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
#
# BEGINCHARACTER: This tag begins the definitions for the mappings and is required.
# The format for each mapping is:
# ...
# Blank lines and characters are ignored.
# The delimiter between output strings is that defined above by the DELIMITER tag.
# Indicate that the mapping definitions have ended with the ENDCHARACTER tag.
#
BEGINCHARACTER
aardvark 土豚
abacus 算盤
abalone 鮑魚,鰒魚
apple 蘋果
#
# ENDCHARACTER: This terminates the mapping definitions and is the last character in the file.
#
ENDCHARACTER
Oman syöttötavan poistaminen
Valitse Macissa Omenavalikko > Järjestelmäasetukset ja klikkaa sivupalkissa Näppäimistö . (Sinun on ehkä selattava alaspäin.)
Valitse oikealla Tekstin syöttö ja klikkaa Muokkaa.
Valitse syöttölähde ja klikkaa Poista-painiketta .
Säilytä käytöstä poistettu liitännäinen (voit lisätä syöttölähteesi uudelleen syöttölähdeluetteloon), tai poista se siirtämällä se roskakoriin.