User Tools

Site Tools


characterresources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
characterresources [2026/06/01 19:42] – tonycharacterresources [2026/06/01 21:14] (current) – [macOS: Unicode is the way] tony
Line 4: Line 4:
 The fundamental difference lies in where the data is handled and what that data represents: USB HID Scan Codes are hardware-level, layout-agnostic position indicators sent by the keyboard, while Host-Side Character Encoding is software-level interpretation that turns those positions into meaningful text. The fundamental difference lies in where the data is handled and what that data represents: USB HID Scan Codes are hardware-level, layout-agnostic position indicators sent by the keyboard, while Host-Side Character Encoding is software-level interpretation that turns those positions into meaningful text.
  
-===== 1. USB HID Keyboard Scan Codes (The Twiddler4 Level) =====+===== USB HID Keyboard Scan Codes (The Twiddler4 Level) =====
  
 A USB HID (Human Interface Device) Scan Code is a raw, numerical value that the Twiddler sends to the host computer to report the physical press or release of a key. A USB HID (Human Interface Device) Scan Code is a raw, numerical value that the Twiddler sends to the host computer to report the physical press or release of a key.
Line 16: Line 16:
   * The catch: The keyboard hardware has absolutely no idea whether you are typing in English, French, or Japanese. It simply reports: "The key at position 0x04 has been pressed."   * The catch: The keyboard hardware has absolutely no idea whether you are typing in English, French, or Japanese. It simply reports: "The key at position 0x04 has been pressed."
  
-===== 2. Host-Side Character Encoding (The Operating System Level) =====+===== Host-Side Character Encoding (The Operating System Level) =====
  
 Host-Side Character Encoding is the final step in the software chain where numerical values are translated into specific visual characters (like "A", "\n", or "€") based on digital standards like ASCII, UTF-8, or UTF-16. Host-Side Character Encoding is the final step in the software chain where numerical values are translated into specific visual characters (like "A", "\n", or "€") based on digital standards like ASCII, UTF-8, or UTF-16.
Line 25: Line 25:
    
   * How it works: The OS receives the raw scan code, checks the active language layout, maps it to a virtual key, and then converts it into a character code (such as Unicode U+0061 for a lowercase "a").   * How it works: The OS receives the raw scan code, checks the active language layout, maps it to a virtual key, and then converts it into a character code (such as Unicode U+0061 for a lowercase "a").
 +
 +=====Extended Characters=====
 +
 +Typing extended characters (like accented letters, currency symbols, or em dashes) on a Twiddler depends entirely on the operating system you are plugging it into. Because standard keyboards only have about 104 keys, operating systems use different software tricks to map the rest of the world's characters.
 +
 +Here is how to type extended characters across the major platforms.
 +
 +====Windows: "Alt-Keypad" ====
 +
 +Windows gives you two primary ways to type extended characters: using numeric codes or switching your keyboard layout.
 +
 +===Alt Codes (Requires the <keypad> Tag)===
 +
 +Windows uses the Windows-1252 character set.  You can use **Alt codes** with the Twiddler.
 +
 +  - Check out https://www.gaijin.at/en/infos/ascii-ansi-character-table. Find the extended character you want to type in the 1st column.
 +  - Note its decimal number in the 2nd column.
 +  - In Twiddler Tuner add the opening Left Alt <lAlt>,  4 x Keypad <KPx>, and closing Left Alt </LAlt> tags.  
 +
 +==¢ (Cent sign)==
 +Decimal 162 = <LAlt><KP0><KP1><KP6><KP2></LAlt>
 +==° (Degree symbol)==
 +Decimal 176 = <LAlt><KP0><KP1><KP7><KP6></LAlt>
 +==é (e with acute accent)==
 +Decimal 233 = <LAlt><KP0><KP2><KP3><KP3></LAlt>
 +==— (Em dash)== 
 +Decimal 151 = <LAlt><KP0><KP1><KP5><KP1></LAlt>
 +
 +
 +==== macOS: Unicode is the way ====
 +
 +Mac makes typing extended characters incredibly seamless, regardless of the physical keyboard layout. Just enable the [[https://en.wikipedia.org/wiki/Unicode_input#In_MacOS|Unicode Hex Input layout]] on your Mac.
 +
 +===Unicode (Just the <LOption> tags)===
 +macOS uses the Unicode character set. This means you can enter the hexadecimal code in-between the 
 +<LOption> </LOption> tags. 
 +
 +  - Check out https://unicodeplus.com/. 
 +  - Find the extended character you want to type. 
 +  - Note it's Codepoint number. Usually in the format U+xxxx
 +  - In Twiddler Tuner add the opening Left Option <LOption>, Codepoint number **AFTER** the U+, and closing Left Option </LOption> tags.
 +
 +=== Option Key Shortcuts ===
 +
 +Instead of using Left Shift like in Windows, the **Option** key is your primary modifier.  
 +
 +==¢ (Cent sign)==
 +Unicode 00A2 = <LOption>00a2</LOption>
 +==° (Degree symbol)==
 +Unicode 176 = <LOption>00b0</LOption>
 +==é (e with acute accent)==
 +Unicode 00E9= <LOption>00e9</LOption>
 +==— (Em dash)== 
 +Unicode 2014 = <LOption>2014</LOption>
  
  
characterresources.1780342928.txt.gz · Last modified: by tony