วิธีการป้อนข้อมูล

ปุ่ม Compose

แป้น (มักเป็น Alt ขวาหรือที่กำหนดเอง) ที่เริ่มลำดับการรวมหลายแป้น เป็นคุณสมบัติของ Linux/Unix: Compose + a + e → æ สามารถกำหนดค่าได้ผ่าน XCompose

· Updated

What is a Compose Key?

The Compose key is a special keyboard key (or a regular key designated as Compose in software) that initiates a multi-keystroke sequence for typing special characters. After pressing Compose, the user types a sequence of ordinary keys — and the OS combines them into a single special character. No key needs to be held simultaneously; Compose acts as a latch, waiting for the sequence to complete.

For example: Compose, then e, then ' produces é. Compose, then c, then , produces ç. Compose, then <, then < produces «. The Compose key is particularly popular in Unix/Linux environments but is also available on macOS and Windows with third-party tools.

How Compose Sequences Work

The Compose system uses a compose table — a list of sequences and their resulting characters. On Linux/X11 systems, the default compose table is usually at /usr/share/X11/locale/en_US.UTF-8/Compose and contains thousands of entries. Users can create custom sequences in ~/.XCompose.

Compose Sequence Result Character
Compose + e + ' é U+00E9
Compose + a + " ä U+00E4
Compose + o + / ø U+00F8
Compose + c + , ç U+00E7
Compose + n + ~ ñ U+00F1
Compose + < + < « U+00AB
Compose + - + - + . U+2013
Compose + - + - + - U+2014
Compose + 1 + 2 ½ U+00BD
Compose + t + m U+2122
Compose + c + o © U+00A9

Setting Up a Compose Key

Linux (X11/Wayland): In GNOME, go to Settings → Keyboard → Special Character Entry → Compose Key. Common choices for the physical key: Right Alt, Caps Lock, Menu key, Right Ctrl.

Command line (X11):

# Set Compose to Right Alt for current session
setxkbmap -option compose:ralt

# Persistent: add to /etc/default/keyboard
XKBOPTIONS="compose:ralt"

macOS: Not built in. Use the free Ukelele app or install X Compose tools via Homebrew. The dead-key system (Option + key) is more native on macOS.

Windows: The WinCompose application adds a Compose key that uses the same X11 compose table format.

Custom Compose Sequences

On Linux, ~/.XCompose lets you define personal sequences:

# ~/.XCompose
include "%L"   # include default system sequences

# Custom entries
<Multi_key> <e> <m> : "📧"    # email emoji
<Multi_key> <t> <h> <e> : "the"  # abbreviation expansion
<Multi_key> <minus> <gt> : "→"   # arrow

Quick Facts

Property Value
Mechanism Latch key + sequence → single character
Platform support Linux (native X11), Windows (WinCompose), macOS (third-party)
Compose table location /usr/share/X11/locale/en_US.UTF-8/Compose
User overrides ~/.XCompose
Common physical key choices Right Alt, Caps Lock, Menu key
Sequences for dashes Compose + -- + . → –; Compose + --- → —
Copyright symbol Compose + c + o → ©
Trademark symbol Compose + t + m → ™

เพิ่มเติมใน วิธีการป้อนข้อมูล

Character Palette

A system-level tool for browsing and inserting Unicode characters. macOS Character Viewer …

Input Method Editor (IME)

ส่วนประกอบซอฟต์แวร์ที่ช่วยให้ป้อนอักขระที่ซับซ้อน (CJK ภาษาเกาหลี ฯลฯ) ด้วยแป้นพิมพ์มาตรฐาน แปลงลำดับการกดแป้นเป็นอักขระผ่านการจับคู่แบบสัทศาสตร์หรือโครงสร้าง

การป้อนเลขฐานสิบหก

การป้อน code point Unicode โดยตรงด้วยการพิมพ์ค่า hex Mac: กด Option ค้างไว้ + hex …

คีย์ตาย

แป้นที่ไม่ผลิตผลลัพธ์ทันทีแต่ปรับเปลี่ยนการกดแป้นถัดไป ใช้สำหรับเครื่องหมายกำกับเสียง: กด ` แล้วกด e จะได้ è พบทั่วไปในรูปแบบแป้นพิมพ์ยุโรป

ตัวเลือกอักขระ

ส่วนประกอบ UI (แบบ native หรือบนเว็บ) สำหรับเรียกดูและเลือกอักขระด้วยสายตา ตัวเลือก emoji บนอุปกรณ์มือถือเป็นตัวอย่างที่พบบ่อยที่สุด

รหัส Alt

วิธีการป้อนข้อมูลของ Windows โดยใช้ Alt + ตัวเลขจาก numpad เพื่อพิมพ์อักขระตามหมายเลขหน้าโค้ด (Alt+0169 → ©, Alt+0176 …

วิธีการป้อน Unicode

วิธีการใดก็ตามในการป้อนอักขระโดยใช้ code point Unicode ได้แก่ การป้อน hex (Mac) การป้อน U+XXXX ผ่าน Ctrl+Shift+U …

แผนที่อักขระ

ยูทิลิตี GUI สำหรับเรียกดูและแทรกอักขระ Unicode Windows: charmap.exe Mac: Character Viewer (Control+Command+Space) Linux: gucharmap