How to use .XCompose to produce snippets?











up vote
0
down vote

favorite












OS: Kubuntu 18.04 or Ubuntu 18.04



According to an answer in vi.stackexchange.com and this GitHub page including



<Multi_key> <i> <b> : "NL65AEGO0721647952"


in ~/.XCompose should generate NL65AEGO0721647952. But I can't get that to work. Nothing happens in plain text editors in Ubuntu or in Kubuntu.



I checked /usr/share/X11/locale/en_US.UTF-8/Compose to see if <Multi_key> <i> <b> was used for anything else but it isn't.



My ~/.XCompose



include "%L"

<Multi_key> <i> <b> : "NL65AEGO0721647952"


I have CapsLock as my Compose Key and can type other stuff like ©, ™, ®, µ, etc.



Edit:
Even



# Make compose key work for GTK, Qt
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim


doesn't help.










share|improve this question
























  • A comment says it doesn't work for KDE.
    – muru
    Dec 11 at 4:25










  • But I can't get it to work in Ubuntu as well.
    – DK Bose
    Dec 11 at 4:27










  • @muru And the comment you linked is from someone who's been battling, for years, to get KDE/qt to use Ctrl+Shift+u followed by Unicode the way gtk uses it. I don't think it's related to using the Compose key, which, by and large, works in KDE.
    – DK Bose
    Dec 11 at 4:32






  • 1




    I see. Anyway, if I run gedit in the terminal, with <Multi_key> <a> <b> : "askj" foobar in my .XCompose, I get this error: (gedit:4944): Gtk-WARNING **: 13:45:20.035: GTK+ supports to output one char only: "askj" foobar: <Multi_key> <a> <b> : "askj" foobar .... Looks like it no longer works with GTK.
    – muru
    Dec 11 at 4:47










  • @muru, right now I'm back on Kubuntu but I have leafpad (gtk2) and mousepad (gtk3) text editors installed. Both work with the snippet only if launched via the terminal and not when launched by keyboard shortcuts! Geany, also gtk3, produces a message similar to what you see.
    – DK Bose
    Dec 11 at 5:03















up vote
0
down vote

favorite












OS: Kubuntu 18.04 or Ubuntu 18.04



According to an answer in vi.stackexchange.com and this GitHub page including



<Multi_key> <i> <b> : "NL65AEGO0721647952"


in ~/.XCompose should generate NL65AEGO0721647952. But I can't get that to work. Nothing happens in plain text editors in Ubuntu or in Kubuntu.



I checked /usr/share/X11/locale/en_US.UTF-8/Compose to see if <Multi_key> <i> <b> was used for anything else but it isn't.



My ~/.XCompose



include "%L"

<Multi_key> <i> <b> : "NL65AEGO0721647952"


I have CapsLock as my Compose Key and can type other stuff like ©, ™, ®, µ, etc.



Edit:
Even



# Make compose key work for GTK, Qt
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim


doesn't help.










share|improve this question
























  • A comment says it doesn't work for KDE.
    – muru
    Dec 11 at 4:25










  • But I can't get it to work in Ubuntu as well.
    – DK Bose
    Dec 11 at 4:27










  • @muru And the comment you linked is from someone who's been battling, for years, to get KDE/qt to use Ctrl+Shift+u followed by Unicode the way gtk uses it. I don't think it's related to using the Compose key, which, by and large, works in KDE.
    – DK Bose
    Dec 11 at 4:32






  • 1




    I see. Anyway, if I run gedit in the terminal, with <Multi_key> <a> <b> : "askj" foobar in my .XCompose, I get this error: (gedit:4944): Gtk-WARNING **: 13:45:20.035: GTK+ supports to output one char only: "askj" foobar: <Multi_key> <a> <b> : "askj" foobar .... Looks like it no longer works with GTK.
    – muru
    Dec 11 at 4:47










  • @muru, right now I'm back on Kubuntu but I have leafpad (gtk2) and mousepad (gtk3) text editors installed. Both work with the snippet only if launched via the terminal and not when launched by keyboard shortcuts! Geany, also gtk3, produces a message similar to what you see.
    – DK Bose
    Dec 11 at 5:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











OS: Kubuntu 18.04 or Ubuntu 18.04



According to an answer in vi.stackexchange.com and this GitHub page including



<Multi_key> <i> <b> : "NL65AEGO0721647952"


in ~/.XCompose should generate NL65AEGO0721647952. But I can't get that to work. Nothing happens in plain text editors in Ubuntu or in Kubuntu.



I checked /usr/share/X11/locale/en_US.UTF-8/Compose to see if <Multi_key> <i> <b> was used for anything else but it isn't.



My ~/.XCompose



include "%L"

<Multi_key> <i> <b> : "NL65AEGO0721647952"


I have CapsLock as my Compose Key and can type other stuff like ©, ™, ®, µ, etc.



Edit:
Even



# Make compose key work for GTK, Qt
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim


doesn't help.










share|improve this question















OS: Kubuntu 18.04 or Ubuntu 18.04



According to an answer in vi.stackexchange.com and this GitHub page including



<Multi_key> <i> <b> : "NL65AEGO0721647952"


in ~/.XCompose should generate NL65AEGO0721647952. But I can't get that to work. Nothing happens in plain text editors in Ubuntu or in Kubuntu.



I checked /usr/share/X11/locale/en_US.UTF-8/Compose to see if <Multi_key> <i> <b> was used for anything else but it isn't.



My ~/.XCompose



include "%L"

<Multi_key> <i> <b> : "NL65AEGO0721647952"


I have CapsLock as my Compose Key and can type other stuff like ©, ™, ®, µ, etc.



Edit:
Even



# Make compose key work for GTK, Qt
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim


doesn't help.







18.04 compose-key






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 at 4:52

























asked Dec 11 at 4:14









DK Bose

12.8k123983




12.8k123983












  • A comment says it doesn't work for KDE.
    – muru
    Dec 11 at 4:25










  • But I can't get it to work in Ubuntu as well.
    – DK Bose
    Dec 11 at 4:27










  • @muru And the comment you linked is from someone who's been battling, for years, to get KDE/qt to use Ctrl+Shift+u followed by Unicode the way gtk uses it. I don't think it's related to using the Compose key, which, by and large, works in KDE.
    – DK Bose
    Dec 11 at 4:32






  • 1




    I see. Anyway, if I run gedit in the terminal, with <Multi_key> <a> <b> : "askj" foobar in my .XCompose, I get this error: (gedit:4944): Gtk-WARNING **: 13:45:20.035: GTK+ supports to output one char only: "askj" foobar: <Multi_key> <a> <b> : "askj" foobar .... Looks like it no longer works with GTK.
    – muru
    Dec 11 at 4:47










  • @muru, right now I'm back on Kubuntu but I have leafpad (gtk2) and mousepad (gtk3) text editors installed. Both work with the snippet only if launched via the terminal and not when launched by keyboard shortcuts! Geany, also gtk3, produces a message similar to what you see.
    – DK Bose
    Dec 11 at 5:03


















  • A comment says it doesn't work for KDE.
    – muru
    Dec 11 at 4:25










  • But I can't get it to work in Ubuntu as well.
    – DK Bose
    Dec 11 at 4:27










  • @muru And the comment you linked is from someone who's been battling, for years, to get KDE/qt to use Ctrl+Shift+u followed by Unicode the way gtk uses it. I don't think it's related to using the Compose key, which, by and large, works in KDE.
    – DK Bose
    Dec 11 at 4:32






  • 1




    I see. Anyway, if I run gedit in the terminal, with <Multi_key> <a> <b> : "askj" foobar in my .XCompose, I get this error: (gedit:4944): Gtk-WARNING **: 13:45:20.035: GTK+ supports to output one char only: "askj" foobar: <Multi_key> <a> <b> : "askj" foobar .... Looks like it no longer works with GTK.
    – muru
    Dec 11 at 4:47










  • @muru, right now I'm back on Kubuntu but I have leafpad (gtk2) and mousepad (gtk3) text editors installed. Both work with the snippet only if launched via the terminal and not when launched by keyboard shortcuts! Geany, also gtk3, produces a message similar to what you see.
    – DK Bose
    Dec 11 at 5:03
















A comment says it doesn't work for KDE.
– muru
Dec 11 at 4:25




A comment says it doesn't work for KDE.
– muru
Dec 11 at 4:25












But I can't get it to work in Ubuntu as well.
– DK Bose
Dec 11 at 4:27




But I can't get it to work in Ubuntu as well.
– DK Bose
Dec 11 at 4:27












@muru And the comment you linked is from someone who's been battling, for years, to get KDE/qt to use Ctrl+Shift+u followed by Unicode the way gtk uses it. I don't think it's related to using the Compose key, which, by and large, works in KDE.
– DK Bose
Dec 11 at 4:32




@muru And the comment you linked is from someone who's been battling, for years, to get KDE/qt to use Ctrl+Shift+u followed by Unicode the way gtk uses it. I don't think it's related to using the Compose key, which, by and large, works in KDE.
– DK Bose
Dec 11 at 4:32




1




1




I see. Anyway, if I run gedit in the terminal, with <Multi_key> <a> <b> : "askj" foobar in my .XCompose, I get this error: (gedit:4944): Gtk-WARNING **: 13:45:20.035: GTK+ supports to output one char only: "askj" foobar: <Multi_key> <a> <b> : "askj" foobar .... Looks like it no longer works with GTK.
– muru
Dec 11 at 4:47




I see. Anyway, if I run gedit in the terminal, with <Multi_key> <a> <b> : "askj" foobar in my .XCompose, I get this error: (gedit:4944): Gtk-WARNING **: 13:45:20.035: GTK+ supports to output one char only: "askj" foobar: <Multi_key> <a> <b> : "askj" foobar .... Looks like it no longer works with GTK.
– muru
Dec 11 at 4:47












@muru, right now I'm back on Kubuntu but I have leafpad (gtk2) and mousepad (gtk3) text editors installed. Both work with the snippet only if launched via the terminal and not when launched by keyboard shortcuts! Geany, also gtk3, produces a message similar to what you see.
– DK Bose
Dec 11 at 5:03




@muru, right now I'm back on Kubuntu but I have leafpad (gtk2) and mousepad (gtk3) text editors installed. Both work with the snippet only if launched via the terminal and not when launched by keyboard shortcuts! Geany, also gtk3, produces a message similar to what you see.
– DK Bose
Dec 11 at 5:03















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099947%2fhow-to-use-xcompose-to-produce-snippets%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099947%2fhow-to-use-xcompose-to-produce-snippets%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局