You are not logged in.
Pages: 1
Hello,
I'm starting with arch linux coming from Ubuntu.
In my workflow I've a Keycrhon K8 keyboard using a US International Layout (to use things like ç, I'm brazilian) and my system uses English as a main language.
I realy don´t know why, but in archlinux with gnome or any other DE '+c turn in ć instead of cedilla.
To make my keyboard works fine, I need to use my system with Portuguese language, but I would like to use my system in English,
any ideas how to make this happen?
ty.
some images to context: https://imgur.com/a/NMWoOeu
Last edited by cezarcruz (2024-04-06 23:11:57)
Offline
localectl
locale
locale -a
dadkey handling is provided by your https://wiki.archlinux.org/title/Input_method - gnome/gtk defaults to ibus, the general default on X11 would be xcompose and the default US map has
<dead_acute> <Ccedilla> : "Ḉ" U1E08 # LATIN CAPITAL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <dead_cedilla> <C> : "Ḉ" U1E08 # LATIN CAPITAL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <Multi_key> <comma> <C> : "Ḉ" U1E08 # LATIN CAPITAL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <Multi_key> <cedilla> <C> : "Ḉ" U1E08 # LATIN CAPITAL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <ccedilla> : "ḉ" U1E09 # LATIN SMALL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <dead_cedilla> <c> : "ḉ" U1E09 # LATIN SMALL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <Multi_key> <comma> <c> : "ḉ" U1E09 # LATIN SMALL LETTER C WITH CEDILLA AND ACUTE
<dead_acute> <Multi_key> <cedilla> <c> : "ḉ" U1E09 # LATIN SMALL LETTER C WITH CEDILLA AND ACUTE
(dead_grave/acute and c don't cause a cedilla) - I don't have the Compose map for other locales around, so I can't immediately grep whether any other map does that (butit depends on your locale, so we can look there)
Did you use a brazilian/portuguese locale on ubuntu?
Offline
Running this comands:
Language English
Formats Brasil
Keyboard Us, alt. intl.
localectl
System Locale: LANG=en_US.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp
locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
locale -a
C
C.utf8
en_US.utf8
POSIX
pt_BR.utf8
Language Portuguese
Formats Brasil
Keyboard Us, alt. intl.
localectl
System Locale: LANG=pt_BR.UTF-8
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp
locale
LANG=pt_BR.UTF-8
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=
locale -a
C
C.utf8
en_US.utf8
POSIX
pt_BR.utf8
Did you use a brazilian/portuguese locale on ubuntu?
Yes, and works out of the box
Offline
grep -iE 'dead_[ga]' /usr/share/X11/locale/pt_BR.UTF-8/Compose | grep -i ced
But /usr/share/X11/locale/pt_BR.UTF-8/Compose might also include other locales.
This seems to be a frequent issue, btw.
https://forums.fedoraforum.org/showthre … -solutions
You can either use the pt_BR.UTF-8 locale,
export XCOMPOSEFILE=/usr/share/X11/locale/pt_BR.UTF-8/Compose
[edit: bounced export]
or in your own ~/.XCompose
# use US compositions by default - don#t forget that, w/o you'll not get any other dead-key behavior
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
# but give me my funky ç with a tail
<dead_acute> <C> : "Ç"
<dead_acute> <c> : "ç"
Last edited by seth (2024-04-07 06:50:17)
Offline
the second solution (XCompose) worked, but I can't exacly understand the problem.
but, thank you for your time.
Offline
The behavior you sought is part of the pt_BR.UTF-8 locale (deadkey *behavior* is not part of the keyboard configuration)
If you're missing other deadkey features, you can use the XCOMPOSEFILE, https://wiki.archlinux.org/title/Environment_variables
Offline
Pages: 1