Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe-type-tools/keyboard-layouts
/ functions
Functions
36 in github.com/adobe-type-tools/keyboard-layouts
⨍
Functions
36
◇
Types & classes
2
↓ 22 callers
Function
char_description
Return description of characters, e.g. 'DIGIT ONE', 'EXCLAMATION MARK' etc.
mac2winKeyboard.py:518
↓ 10 callers
Function
make_klc_filename
Windows .dll files allow for 8-character file names only, which is why the output file name is truncated. If the input file name contains a n
mac2winKeyboard.py:581
↓ 8 callers
Method
check_states
Assign index numbers to the different shift states, by comparing them to the minimum and maximum possible modifier configurations.
mac2winKeyboard.py:92
↓ 8 callers
Method
get_key_output
Used to find output per state, for every key. If no output, return '-1' (a.k.a. not defined).
mac2winKeyboard.py:335
↓ 7 callers
Function
make_keyboard_name
Return the base name of the .keylayout file
mac2winKeyboard.py:621
↓ 4 callers
Function
verify_input_file
Check if the input file exists, and if the suffix is .keylayout https://stackoverflow.com/a/15203955
mac2winKeyboard.py:629
↓ 3 callers
Function
actualize_copyright_year
(s)
test_mac2winKeyboard.py:136
↓ 3 callers
Function
char_from_hex
Return character from a Unicode code point.
mac2winKeyboard.py:510
↓ 3 callers
Function
make_klc_data
(keyboard_name, keyboard_data)
mac2winKeyboard.py:662
↓ 3 callers
Function
process_input_keylayout
(input_keylayout)
mac2winKeyboard.py:614
↓ 3 callers
Function
read_file
Read a file, make list of the lines, close the file.
mac2winKeyboard.py:479
↓ 2 callers
Function
filter_xml
Filter xml-based .keylayout file. Unicode entities (�) make the ElementTree xml parser choke, that’s why some replacement operatio
mac2winKeyboard.py:532
↓ 2 callers
Function
get_args
(args=None)
mac2winKeyboard.py:676
↓ 2 callers
Function
run
(args)
mac2winKeyboard.py:696
↓ 1 callers
Function
codepoint_from_char
Return a 4 or 5-digit Unicode hex string for the passed character.
mac2winKeyboard.py:489
↓ 1 callers
Method
find_deadkeys
Populate dictionary self.deadkeys which contains the state ID and the code point of an actual dead key. (for instance, '3': '
mac2winKeyboard.py:201
↓ 1 callers
Method
find_outputs
Find the real output values of all the keys, e.g. replacing the action IDs in the XML keyboard layout with the code points they
mac2winKeyboard.py:260
↓ 1 callers
Method
get_deadkey_table
Summary of dead keys, and their results in all intended combinations.
mac2winKeyboard.py:436
↓ 1 callers
Method
get_key_table
(self)
mac2winKeyboard.py:347
↓ 1 callers
Method
get_keyname_dead
List of dead keys contained in the klc keyboard layout.
mac2winKeyboard.py:460
↓ 1 callers
Method
make_deadkey_dict
Populate self.deadkey_dict, which maps a deadkey e.g. (02dc, circumflex) to (base character, accented character) tuples e.g.
mac2winKeyboard.py:281
↓ 1 callers
Function
make_klc_epilogue
()
mac2winKeyboard.py:656
↓ 1 callers
Function
make_klc_prologue
(keyboard_name)
mac2winKeyboard.py:645
↓ 1 callers
Method
make_output_dict
This script is configured to work for the first keymap set of an XML keyboard layout only. Here, the filtering occurs:
mac2winKeyboard.py:301
↓ 1 callers
Method
match_actions
Extend self.action_list is extended by the base character, e.g. [ '6', # action id 's1', # state
mac2winKeyboard.py:235
↓ 1 callers
Method
parse
(self, tree)
mac2winKeyboard.py:103
Method
__init__
(self, tree)
mac2winKeyboard.py:54
Method
test_char_description
(self)
test_mac2winKeyboard.py:11
Method
test_filter_xml
(self)
test_mac2winKeyboard.py:87
Method
test_get_args
(self)
test_mac2winKeyboard.py:82
Method
test_make_keyboard_name
(self)
test_mac2winKeyboard.py:27
Method
test_make_klc_data
(self)
test_mac2winKeyboard.py:95
Method
test_make_klc_filename
(self)
test_mac2winKeyboard.py:37
Method
test_read_file
(self)
test_mac2winKeyboard.py:59
Method
test_run
(self)
test_mac2winKeyboard.py:116
Method
test_verify_input_file
(self)
test_mac2winKeyboard.py:64