Skip to content

Instantly share code, notes, and snippets.

@roelvan
Last active May 28, 2017 11:48
Show Gist options
  • Save roelvan/253499100437cf26d838e84c9e5a0ff5 to your computer and use it in GitHub Desktop.
Save roelvan/253499100437cf26d838e84c9e5a0ff5 to your computer and use it in GitHub Desktop.
Cheatsheet for Vietnamese Telex Keyboard Input. Can be added to Alfred for Mac.
  1. install cheatset: sudo gem install cheatset --no-ri --no-rdoc
  2. compile file: cheatset generate telex.rb
cheatsheet do
title 'Telex Vietnamese Input' # Will be displayed by Dash in the docset list
docset_file_name 'Telex Vietnamese' # Used for the filename of the docset
keyword 'keyboard' # Used as the initial search keyword (listed in Preferences > Docsets)
# resources 'resources_dir' # An optional resources folder which can contain images or anything else
introduction 'How to use Telex Vietnamese input?' # Optional, can contain Markdown or HTML
# A cheat sheet must consist of categories
category do
id 'Keyboard'
entry do
command 's'
name 'á, é, ó, ú, í'
notes 'as becomes á'
end
entry do
command 'f'
name 'à, è, ò, ù, ì'
notes 'af becomes à'
end
entry do
command 'r'
name 'ả, ẻ, ỏ, ủ, ỉ'
notes 'ar becomes ả'
end
entry do
command 'x'
name 'ã, ẽ, õ, ũ, ĩ'
notes 'ax becomes ã'
end
entry do
command 'j'
name 'ạ, ẹ, ọ, ụ, ị'
notes 'aj becomes ạ'
end
entry do
command 'a, e, o'
name 'â, ê, ô'
notes 'aa becomes â'
end
entry do
command 'w'
name 'ă'
notes 'aw becomes ă'
end
entry do
command 'w'
name 'ơ, ư'
notes 'ow becomes ơ'
end
entry do
command 'dd'
name 'đ'
notes 'dd becomes đ'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment