# Use esse arquivo em $HOME/.XCompose
# Ele é basicamente uma cópia do /usr/share/X11/locale/pt_BR.UTF-8/Compose
# com a adição de uma linha:
# <dead_tilde> <slash> : "~/"
# Eu sei que o .Xcompose não foi feito pra isso, mas é o que tem pra hoje.
# Após aplicar isso, é só reiniciar o terminal que voce ta usando, alguns
# terminais não precisam disso.
#
# diff output:
#
#
diff -p /usr/share/X11/locale/pt_BR.UTF-8/Compose .XCompose
*** /usr/share/X11/locale/pt_BR.UTF-8/Compose 2022-11-17 13:22:34.000000000 -0300
--- .XCompose 2022-12-09 08:33:20.432050413 -0300
*************** include "/usr/share/X11/locale/en_US.UTF
*** 12,17 ****
--- 12,20 ----
# Two nice additions -- maybe add to en_US.UTF8?
<Multi_key> <quotedbl> <backslash> : "〝" U301d # REVERSED DOUBLE PRIME QUOTATION MARK
<Multi_key> <quotedbl> <slash> : "〞" U301e # DOUBLE PRIME QUOTATION MARK
+ # Old-school tilde + slash without requiring to escape with space
+ # or repeating the tilde char
+ <dead_tilde> <slash> : "~/"
# Overriding C with acute:
<dead_acute> <C> : "Ç" Ccedilla # LATIN CAPITAL LETTER C WITH CEDILLA
<dead_acute> <c> : "ç" ccedilla # LATIN SMALL LETTER C WITH CEDILLA
#
#
Last active
December 9, 2022 11:46
-
-
Save murder/9fd546dea4569a738e213351554ec00f to your computer and use it in GitHub Desktop.
~/ com behavior oldschool - sem necessidade de espaço ou ~ novamente
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UTF-8 (Unicode) compose sequences | |
# | |
# Originally modified for Brazilian Portuguese | |
# by Gustavo Noronha Silva <[email protected]>. | |
# Transformed to an include file plus some overrides | |
# by Benno Schulenberg <[email protected]> | |
# Accomodate ~/ by popularity - I know this is no place | |
# by murder <[email protected]> | |
# Use the sequences from en_US.UTF-8 as the basis: | |
include "/usr/share/X11/locale/en_US.UTF-8/Compose" | |
# This one should probably be deleted, because in | |
# en_US.UTF8 this is lowercase schwa, not uppercase: | |
<Multi_key> <e> <e> : "Ə" U018f | |
# Two nice additions -- maybe add to en_US.UTF8? | |
<Multi_key> <quotedbl> <backslash> : "〝" U301d # REVERSED DOUBLE PRIME QUOTATION MARK | |
<Multi_key> <quotedbl> <slash> : "〞" U301e # DOUBLE PRIME QUOTATION MARK | |
# Old-school tilde + slash without requiring to escape | |
# with space or repeating the tilde char | |
<dead_tilde> <slash> : "~/" | |
# Overriding C with acute: | |
<dead_acute> <C> : "Ç" Ccedilla # LATIN CAPITAL LETTER C WITH CEDILLA | |
<dead_acute> <c> : "ç" ccedilla # LATIN SMALL LETTER C WITH CEDILLA | |
# Overriding E with ogonek: | |
<Multi_key> <comma> <E> : "Ȩ" U0228 # LATIN CAPITAL LETTER E WITH CEDILLA | |
<Multi_key> <comma> <e> : "ȩ" U0229 # LATIN SMALL LETTER E WITH CEDILLA | |
# Overriding U with ogonek: | |
<Multi_key> <U> <comma> <E> : "Ḝ" U1E1C # LATIN CAPITAL LETTER E WITH CEDILLA AND BREVE | |
<Multi_key> <U> <comma> <e> : "ḝ" U1E1D # LATIN SMALL LETTER E WITH CEDILLA AND BREVE | |
# These two should probably go back into en_US.UTF8; | |
# they were most likely mistakenly dropped in June 2006: | |
<Multi_key> <acute> <U03D2> : "ϓ" U03D3 # GREEK UPSILON WITH ACUTE AND HOOK SYMBOL | |
<Multi_key> <apostrophe> <U03D2> : "ϓ" U03D3 # GREEK UPSILON WITH ACUTE AND HOOK SYMBOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment