Re: Unicode support in awful.prompt

2012-11-01 Thread Julien Danjou
On Wed, Oct 31 2012, Uli Schlachter wrote:

 Uhm. I press the key that is labeled with ö on my keyboard. Then I release
 that key again. Afterwards, I do the same with ä, ü and ß. If I feel
 really fancy, I even press the shift key at the same time. Amazing, I know.

I'm always amazed by your ninja techniques, Uli.

-- 
Julien Danjou
// Free Software hacker  freelance
// http://julien.danjou.info


pgpPUOrKfIgyJ.pgp
Description: PGP signature


Re: Unicode support in awful.prompt

2012-11-01 Thread Wayne Werner
Another option would be to have a virtual keyboard on-screen. I know there
are a few out there, though I forget the names off the top of my head.


On Wed, Oct 31, 2012 at 4:05 PM, Raphael Plasson rplas...@gmail.com wrote:

 So this is an input problem. Here is my experience:
 - If I switch to a keybord mapping with accented character (for example
 setxkbmap fr), no problem to enter accented character by directly
 pressing to corresponding key
 - I use some IM system (I am using ibus), but it cannot be used from lua
 prompts (applications must be IM-aware, if I understand correctly)
 - If I use the Multikey method, it doesn't work either: the combination
 Multi-e-' should give [é], it gives [ e'], that is the multikey is not
 recognized as such and translated as a space.

 So this is an XCB problem at least for the multi-key problem, right? Is
 it also a problem for ibus inputs, or is it possible to make awesome
 ibus-aware? The point is that when using an US keyboard (for example),
 Multikey or Ibus are the only reliable solutions to type accented
 characters (switching the keyboard mapping being a not so good solution,
 that implies to enter blindly the characters...).

 Raphaël

 --
 To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.



Re: Unicode support in awful.prompt

2012-10-31 Thread Uli Schlachter
Hi,

On 31.10.2012 20:12, Daniel Martí wrote:
 I've been looking for this for some time, but haven't found anything
 yet. Would it be possible for awful.prompt to be compatible with unicode
 characters? This won't make much sense to you now, since they are rarely
 used in the command line (unless some filename was to have them) but it
 would be an excellent feature for further extension.

what exactly do you mean with compatible with unicode characters? I can enter
öäüß into a prompt here without any problem (and I think that they are also
passed on correctly).

Uli
-- 
For saving the Earth.. and eating cheesecake!

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: Unicode support in awful.prompt

2012-10-31 Thread Daniel Martí
On Wed, Oct 31, 2012 at 08:33:12PM +0100, Uli Schlachter wrote:
 Hi,
 
 On 31.10.2012 20:12, Daniel Martí wrote:
  I've been looking for this for some time, but haven't found anything
  yet. Would it be possible for awful.prompt to be compatible with unicode
  characters? This won't make much sense to you now, since they are rarely
  used in the command line (unless some filename was to have them) but it
  would be an excellent feature for further extension.
 
 what exactly do you mean with compatible with unicode characters? I can 
 enter
 öäüß into a prompt here without any problem (and I think that they are also
 passed on correctly).

I mean that, exactly. How can you enter such characters? I can't. Even
when moving rc.lua away and thus using the default config, it won't
work.

Locales are set up correctly, by the way. Using awesome 3.4.13.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpXnNcnot17j.pgp
Description: PGP signature


Re: Unicode support in awful.prompt

2012-10-31 Thread Uli Schlachter
On 31.10.2012 21:13, Daniel Martí wrote:
 On Wed, Oct 31, 2012 at 08:33:12PM +0100, Uli Schlachter wrote:
 Hi,

 On 31.10.2012 20:12, Daniel Martí wrote:
 I've been looking for this for some time, but haven't found anything
 yet. Would it be possible for awful.prompt to be compatible with unicode
 characters? This won't make much sense to you now, since they are rarely
 used in the command line (unless some filename was to have them) but it
 would be an excellent feature for further extension.

 what exactly do you mean with compatible with unicode characters? I can 
 enter
 öäüß into a prompt here without any problem (and I think that they are also
 passed on correctly).
 
 I mean that, exactly. How can you enter such characters? I can't. Even
 when moving rc.lua away and thus using the default config, it won't
 work.
 
 Locales are set up correctly, by the way. Using awesome 3.4.13.

Uhm. I press the key that is labeled with ö on my keyboard. Then I release
that key again. Afterwards, I do the same with ä, ü and ß. If I feel
really fancy, I even press the shift key at the same time. Amazing, I know.

Uli
-- 
- Buck, when, exactly, did you lose your mind?
- Three months ago. I woke up one morning married to a pineapple.
  An ugly pineapple... But I loved her.

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: Unicode support in awful.prompt

2012-10-31 Thread Daniel Martí
On Wed, Oct 31, 2012 at 09:36:49PM +0100, Uli Schlachter wrote:
 On 31.10.2012 21:13, Daniel Martí wrote:
  On Wed, Oct 31, 2012 at 08:33:12PM +0100, Uli Schlachter wrote:
  Hi,
 
  On 31.10.2012 20:12, Daniel Martí wrote:
  I've been looking for this for some time, but haven't found anything
  yet. Would it be possible for awful.prompt to be compatible with unicode
  characters? This won't make much sense to you now, since they are rarely
  used in the command line (unless some filename was to have them) but it
  would be an excellent feature for further extension.
 
  what exactly do you mean with compatible with unicode characters? I can 
  enter
  öäüß into a prompt here without any problem (and I think that they are also
  passed on correctly).
  
  I mean that, exactly. How can you enter such characters? I can't. Even
  when moving rc.lua away and thus using the default config, it won't
  work.
  
  Locales are set up correctly, by the way. Using awesome 3.4.13.
 
 Uhm. I press the key that is labeled with ö on my keyboard. Then I release
 that key again. Afterwards, I do the same with ä, ü and ß. If I feel
 really fancy, I even press the shift key at the same time. Amazing, I know.

Seriously now, it's not working for me.

I found something interesting: Doing Alt Gr + some letter gives out
strange characters, like ß or æ. They work on the prompt. BUT when doing
characters like à or á, which need two separate keystrokes in time (i.e.
they can't be pressed both at once), only the last keystroke is caught.

I suppose that's the issue.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpNZfpYlNZnP.pgp
Description: PGP signature


Re: Unicode support in awful.prompt

2012-10-31 Thread Raphael Plasson
So this is an input problem. Here is my experience:
- If I switch to a keybord mapping with accented character (for example
setxkbmap fr), no problem to enter accented character by directly
pressing to corresponding key
- I use some IM system (I am using ibus), but it cannot be used from lua
prompts (applications must be IM-aware, if I understand correctly)
- If I use the Multikey method, it doesn't work either: the combination
Multi-e-' should give [é], it gives [ e'], that is the multikey is not
recognized as such and translated as a space.

So this is an XCB problem at least for the multi-key problem, right? Is
it also a problem for ibus inputs, or is it possible to make awesome
ibus-aware? The point is that when using an US keyboard (for example),
Multikey or Ibus are the only reliable solutions to type accented
characters (switching the keyboard mapping being a not so good solution,
that implies to enter blindly the characters...).

Raphaël

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.