Re: LyX function for German hard S?
Stefano Franchi wrote: >> However, in the main LyX window, we need to interpret each and every >> key press and so must generate the std::string from these key presses. >> We can't leave things to Qt. Our own, home grown key handling code is >> less sophisticated than Qt's, but crucially for us, we have total >> control over it to do lots of other stuff. > That makes sense. Now I know why the behavior is different An Italian living in New Zealand and spelling in American. What is the Commonwealth coming to ;-) > ---I suppose there must be something wrong with my setup, then, if the > compose key works in QT but doesn't in LyX. Will wait for the next > release and hope for the best, but thanks for the explanation. There's also some strange nonsense about an interaction between our key handling and some far eastern multibyte input method that is compiled into some Qt distributions. Hazy about the details; ask José ;-) -- Angus
Re: LyX function for German hard S?
However, in the main LyX window, we need to interpret each and every key press and so must generate the std::string from these key presses. We can't leave things to Qt. Our own, home grown key handling code is less sophisticated than Qt's, but crucially for us, we have total control over it to do lots of other stuff. That makes sense. Now I know why the behavior is different---I suppose there must be something wrong with my setup, then, if the compose key works in QT but doesn't in LyX. Will wait for the next release and hope for the best, but thanks for the explanation. S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-7408 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: LyX function for German hard S?
Stefano Franchi wrote: > I still don't understand why > I can get ß in the minibuffer (with, on my Mac, option-s) and not in > the main window, but I can live in blissful ignorance for now. Because we leave it to the Qt toolkit to interpret your key presses when in the minibuffer and then deal with the result of those key presses (some character in an internal Qt encoding. Let's call that encoding "unicode"). Thereafter, we translate this unicode-encoded character into one encoded in the local 8 bit encoding that you use in the main, LyX window. The code looks something like: QString const data_from_minibuffer = ...; std::string const data_in_local_8_bit_encoding = fromqstr(data_from_minibuffer); where fromqstr() is a function that performs the magical transformation. The LyX core deals with this std::strings, not with QString objects. However, in the main LyX window, we need to interpret each and every key press and so must generate the std::string from these key presses. We can't leave things to Qt. Our own, home grown key handling code is less sophisticated than Qt's, but crucially for us, we have total control over it to do lots of other stuff. -- Angus
Re: LyX function for German hard S?
I see, you're right. In fact, Christian is right: But I had to type Alt-2-2-5 like Uwe(not 3: 3 gives nothing on my PC, so I thought his suggestion is a curious but nonworking strategy. I was obviously wrong and he was right). Thank you all for clarifying this, it is a useful bit of information. Regards, Nusret --- Uwe Stöhr <[EMAIL PROTECTED]> wrote: > Nusret BALCI wrote: > > > Christian, > > the key combination you mentioned doesn't work > (for me > > not a big deal, though: there are several other > > convenient ways to enter scharfes s), but I wonder > why > > you thought this would do: What's the magic behind > > > Alt-2-2-3? > > Alt-"number" inserts the character with the "number" > from the current > code page. > > You find some code pages here: > http://www.microsoft.com/globaldev/reference/wincp.mspx > and here: > http://czyborra.com/charsets/codepages.html > > In Windows-1252 the "ß" is at position "DF" which is > a hex number; in > decimal system it is the number "223" > > On my PC it seem that the old "CP850 (DOSLatin1)" > codepage is used > because the "ß" is at position "E1" which > corresponds to "Alt-225". > > regards Uwe > __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Re: LyX function for German hard S?
Nusret BALCI wrote: Christian, the key combination you mentioned doesn't work (for me not a big deal, though: there are several other convenient ways to enter scharfes s), but I wonder why you thought this would do: What's the magic behind Alt-2-2-3? Alt-"number" inserts the character with the "number" from the current code page. You find some code pages here: http://www.microsoft.com/globaldev/reference/wincp.mspx and here: http://czyborra.com/charsets/codepages.html In Windows-1252 the "ß" is at position "DF" which is a hex number; in decimal system it is the number "223" On my PC it seem that the old "CP850 (DOSLatin1)" codepage is used because the "ß" is at position "E1" which corresponds to "Alt-225". regards Uwe
Re: LyX function for German hard S?
On Saturday 19 November 2005 21:09, Nusret BALCI wrote: > Christian, > the key combination you mentioned doesn't work (for me > not a big deal, though: there are several other > convenient ways to enter scharfes s), but I wonder why > you thought this would do: What's the magic behind > Alt-2-2-3? 223 is the code of ß in a given encoding. In this context the encoding is used by microsoft, it is almost equal to latin-1 but not quite (as usual :-), in this range of values is the same as latin-1. Just to confirm (calling from ipython): In [13]: print chr(223).decode('latin-1') ß > Thank you. > Nusret -- José Abílio
Re: LyX function for German hard S?
Christian, the key combination you mentioned doesn't work (for me not a big deal, though: there are several other convenient ways to enter scharfes s), but I wonder why you thought this would do: What's the magic behind Alt-2-2-3? Thank you. Nusret --- [EMAIL PROTECTED] wrote: > On Sat, 19 Nov 2005, Nusret BALCI wrote: > > > I use windows, and I suspect now there isn't a > compose key functionality > > available on windows for standard keyboards (If I > understand correctly > > what a compose key does). > > As far as I know, there is no such thing as a > compose key on windows, > sorry. In this particular case you can however try > the following: > > * Hold down the key Alt (and keep it down) > * type 2 2 3 on your numeric keypad > * Release the Alt key > > This should produce an ß (I can't test if for you > though, I'm on Linux and > for me AltGr-s produces ß) > > cheers > /Christian > > -- > Christian Ridderström, +46-8-768 39 44 > http://www.md.kth.se/~chr > > > __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Re: LyX function for German hard S?
On Sat, 19 Nov 2005, Nusret BALCI wrote: > I use windows, and I suspect now there isn't a compose key functionality > available on windows for standard keyboards (If I understand correctly > what a compose key does). As far as I know, there is no such thing as a compose key on windows, sorry. In this particular case you can however try the following: * Hold down the key Alt (and keep it down) * type 2 2 3 on your numeric keypad * Release the Alt key This should produce an ß (I can't test if for you though, I'm on Linux and for me AltGr-s produces ß) cheers /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: LyX function for German hard S?
On Nov 19, 2005, at 8:30 AM, Uwe Stöhr wrote: Stefano Franchi wrote: My keyboard is acting strangely again, and I need to use the minibuffer to input accented characters and similia. But I can't remember the function needed to input the German hard-S. Can anyone help? Thanks. What about this: Copy the following line to the bind you are using (normally cua.bind): \bind "C-S-A" "self-insert ß"" THe restart LyX and now Control-Shift-a should insert an "ß" Brilliant! That's exactly what I was hunting for: inserting ß from the minibuffer. Updating the bindings file is a plus I had not thought of, but I'll do it right away. I have been using the ERT \ss as a temporary solution, but it's ugly to see. I still don't understand why I can get ß in the minibuffer (with, on my Mac, option-s) and not in the main window, but I can live in blissful ignorance for now. Thanks, S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-7408 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: LyX function for German hard S?
John, Things are getting clearer now: you are right in that ctrl-. has an effect (and yes, I know Ctrl is used with other keys :). I've just typed Ctrl-. and exported the file as latex. It translates to [EMAIL PROTECTED] (backslash-at-dot) Ctrl-.12 therefore doesn't output what you expect in my setup. I guess that's why I get "command disabled" message in math mode. Output is just a dot, therefore I didn't notice the difference before. Your result is probably different because you use a different binding file, right? Mine is cua.bind. Also, the most important difference seems to be our OS's :). I use windows, and I suspect now there isn't a compose key functionality available on windows for standard keyboards (If I understand correctly what a compose key does). Nusret --- John Coppens <[EMAIL PROTECTED]> wrote: > On Sat, 19 Nov 2005 07:25:57 -0800 (PST) > Nusret BALCI <[EMAIL PROTECTED]> wrote: > > > > > I tried Ctrl-., but in text mode Ctrl has no > effect, > > Sure Ctl has some effect (not alone, but with the > other key combined). > To type 1/2 as one symbol, try > > Ctrl-. and then (without Ctrl) 1 and 2 > > if the 1 appears immediately, then Ctl-. is not > defined. > > > Really, I didn't know there is a different > "Multi-key" > > or a "compose" key :). > > If I'm not mistaken, there was a time it was called > Compose. Now, the > official denomination is Multi_key (note _, not > -!) > > Also note that the compose key is sequential (not > like Shift/Ctrl). You > have to release it before typing the letters. > > John > __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Re: LyX function for German hard S?
Stefano Franchi wrote: My keyboard is acting strangely again, and I need to use the minibuffer to input accented characters and similia. But I can't remember the function needed to input the German hard-S. Can anyone help? Thanks. What about this: Copy the following line to the bind you are using (normally cua.bind): \bind "C-S-A" "self-insert ß"" THe restart LyX and now Control-Shift-a should insert an "ß" I hope this works for you. regards Uwe
Re: LyX function for German hard S?
On Sat, 19 Nov 2005 07:25:57 -0800 (PST) Nusret BALCI <[EMAIL PROTECTED]> wrote: > > I tried Ctrl-., but in text mode Ctrl has no effect, Sure Ctl has some effect (not alone, but with the other key combined). To type 1/2 as one symbol, try Ctrl-. and then (without Ctrl) 1 and 2 if the 1 appears immediately, then Ctl-. is not defined. > Really, I didn't know there is a different "Multi-key" > or a "compose" key :). If I'm not mistaken, there was a time it was called Compose. Now, the official denomination is Multi_key (note _, not -!) Also note that the compose key is sequential (not like Shift/Ctrl). You have to release it before typing the letters. John
Re: LyX function for German hard S?
I tried Ctrl-., but in text mode Ctrl has no effect, on math mode the message on the status bar is "command disabled", whatever that means. Really, I didn't know there is a different "Multi-key" or a "compose" key :). Nusret --- John Coppens <[EMAIL PROTECTED]> wrote: > On Sat, 19 Nov 2005 06:58:38 -0800 (PST) > Nusret BALCI <[EMAIL PROTECTED]> wrote: > > > Sorry for probably OT question, just beacuse you > > mentioned it: which key do you refer to as compose > > key? (is there an equivalent on usual keyboards, > or is > > it something special to some keyboards: mine seems > not > > to have one. Only Ctrl, Alt and Shift). > > I'm not quite sure, I seem to remember that by > default Ctrl-. (the 'full > stop' or decimal point) is the compose key. I put: > > keycode 116 = Multi_key > keycode 115 = Multi_key > > in my ./Xmodmap file, which defines both Windooze > keys as Compose. > > John > __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Re: LyX function for German hard S?
On Sat, 19 Nov 2005 06:58:38 -0800 (PST) Nusret BALCI <[EMAIL PROTECTED]> wrote: > Sorry for probably OT question, just beacuse you > mentioned it: which key do you refer to as compose > key? (is there an equivalent on usual keyboards, or is > it something special to some keyboards: mine seems not > to have one. Only Ctrl, Alt and Shift). I'm not quite sure, I seem to remember that by default Ctrl-. (the 'full stop' or decimal point) is the compose key. I put: keycode 116 = Multi_key keycode 115 = Multi_key in my ./Xmodmap file, which defines both Windooze keys as Compose. John
Re: LyX function for German hard S?
To Angus: Sorry for probably OT question, just beacuse you mentioned it: which key do you refer to as compose key? (is there an equivalent on usual keyboards, or is it something special to some keyboards: mine seems not to have one. Only Ctrl, Alt and Shift). Regards, Nusret --- Angus Leeming <[EMAIL PROTECTED]> wrote: > Stefano Franchi wrote: > > > My keyboard is acting strangely again, and I need > to use the minibuffer > > to input accented characters and similia. But I > can't remember the > > function needed to input the German hard-S. Can > anyone help? Thanks. > > > > Stefano > > Hi, Stefano. > > The latex command is \ss{}, no? There's no native > support for this in LyX. > Our German developers have always been happy enough > with a functioning > keyboard or compose key (Compose-s-s here gives ß). > > -- > Angus > > __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Re: LyX function for German hard S?
Stefano Franchi wrote: > My keyboard is acting strangely again, and I need to use the minibuffer > to input accented characters and similia. But I can't remember the > function needed to input the German hard-S. Can anyone help? Thanks. > > Stefano Hi, Stefano. The latex command is \ss{}, no? There's no native support for this in LyX. Our German developers have always been happy enough with a functioning keyboard or compose key (Compose-s-s here gives ß). -- Angus