Loading ...
Sorry, an error occurred while loading the content.

Re: how to insert Russian char 0xE0 ?

Expand Messages
  • Dmitry Koudryavtsev
    Thomas, thanks for your patch - that was a great start point ... Yes. Just say rrrr and you ll understand that xE0 mean for me :) I applied your patch
    Message 1 of 8 , Oct 28, 2006
    • 0 Attachment
      Thomas,

      thanks for your patch - that was a great start point

      >Is there a key for this on yours?
      Yes. Just say "rrrr" and you'll understand that \xE0 mean for me :)

      I applied your patch and... No results !
      I tried to enter this char in cp866 and win-1251 in your string:
      ...
      ; TMH FIX:
      set-variable #l0 &lget "...|ç|ð|þ|..." #l0
      ...

      but, I get \xA0 or \xF0 !!! I don't know why...

      I also tried to use "...|ç|\xE0|þ|..." #l0
      but get \xA0 again !!!

      Finally, I make may own macro

      define-macro rr
      insert-string "\xE0"
      !emacro

      and... "M-x rr" finally, success ! :)

      hmm... probably, set-char-mask converts \xE0 to something wrong,
      but, I'm not so experienced to detect the problem...

      Yes, It will be better to avoid any special macro... but...

      --- In jasspa@yahoogroups.com, Thomas Hundt <thundt@...> wrote:
      >
      > > Yes, I know, It works... but how about keyboard ?
      >
      > I don't have a Russian keyboard :-)
      > Is there a key for this on yours?
      >
      > (How do you type it in Word, or otherwise? In Windows, you can type
      any
      > character by its numeric code by typing Alt-0nnn. For character 240,
      > you would type Alt-0240, which I think is the one you're looking for.)
      > I think if you can't type it from the keyboard, it's a limitation of
      > whatever terminal or SSH program you're going through. (I have the
      same
      > problem as you: I can type it in Windows but not on Linux. I'm using
      > Putty SSH.)
      >
      > One idea is, you could write a macro that inserts it, and bind that to
      > whatever key you want.
      >
      > Another, probably better, idea is, you could come up with a
      > two-character substitution, and add that to abbref.emf. I have added a
      > couple of things to mine and copied it into my company directory so
      that
      > it loads in favor of the default one. This file has a function
      > 'expand-iso-accents' (below) that contains two lists: a list of
      > combinations, and a list of characters they get replaced by when you
      hit
      > Esc-Esc (example: "12" gets replaced by the "1/2" symbol). I think the
      > character you're looking for is substituted by ~d. Try it (code below
      > -- I don't think the stock file has this character).
      >
      > NB the substitutions I added to the ends of these strings are standard
      > ones in GNU Emacs, but missing in Jasspa.
      >
      >
      >
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      > ; expand-iso-accents routines
      > ; #### MODIFIED #### TMH FIX
      > define-macro expand-iso-accents
      > ; TMH FIX:
      > !if ¬ &set #l0 &lfind
      >
      "|+-|12|14|34|ae|AE|`a|^a|'a|\"a|~a|.a|co|`e|^e|'e|\"e|`i|^i|'i|\"i|~n|oe|`o|^o|'o|\"o|~o|/o|rg|sz|tm|`u|^u|'u|\"u|\"y|'y|`A|^A|'A|\"A|~A|.A|`E|^E|'E|\"E|`I|^I|'I|\"I|~N|OE|`O|^O|'O|\"O|~O|/O|`U|^U|'U|\"U|\"Y|'Y|^!|^?|a:|A:|o:|O:|u:|U:|ss|a\"|A\"|o\"|O\"|u\"|U\"|dg|ae|AE|oe|OE|ue|UE|~c|~d|~t|\"s|/a|/e|~<|~>|~!|~?|"

      > &mid @wl &sub $window-col 2 2
      > ; !if ¬ &set #l0 &lfind
      >
      "|+-|12|14|34|ae|AE|`a|^a|'a|\"a|~a|.a|co|`e|^e|'e|\"e|`i|^i|'i|\"i|~n|oe|`o|^o|'o|\"o|~o|/o|rg|sz|tm|`u|^u|'u|\"u|\"y|'y|`A|^A|'A|\"A|~A|.A|`E|^E|'E|\"E|`I|^I|'I|\"I|~N|OE|`O|^O|'O|\"O|~O|/O|`U|^U|'U|\"U|\"Y|'Y|^!|^?|"

      > &mid @wl &sub $window-col 2 2
      > !abort
      > !endif
      > backward-delete-char
      > backward-delete-char
      > ; TMH FIX:
      > set-variable #l0 &lget
      >
      "|±|½|¼|¾|æ|Æ|à|â|á|ä|ã|å|©|è|ê|é|ë|ì|î|í|ï|ñ|œ|ò|ô|ó|ö|õ|ø|®|ß|™|ù|û|ú|ü|ÿ|ý|À|Â|Á|Ä|Ã|Å|È|Ê|É|Ë|Ì|Î|Í|Ï|Ñ|Œ|Ò|Ô|Ó|Ö|Õ|Ø|Ù|Û|Ú|Ü|Ÿ|Ý|¡|¿|ä|Ä|ö|Ö|ü|Ü|ß|ä|Ä|ö|Ö|ü|Ü|°|ä|Ä|ö|Ö|ü|Ü|ç|ð|þ|ß|å|æ|«|»|¡|¿|"

      > #l0
      > ; set-variable #l0 &lget
      >
      "|±|½|¼|¾|æ|Æ|à|â|á|ä|ã|å|©|è|ê|é|ë|ì|î|í|ï|ñ|œ|ò|ô|ó|ö|õ|ø|®|ß|™|ù|û|ú|ü|ÿ|ý|À|Â|Á|Ä|Ã|Å|È|Ê|É|Ë|Ì|Î|Í|Ï|Ñ|Œ|Ò|Ô|Ó|Ö|Õ|Ø|Ù|Û|Ú|Ü|Ÿ|Ý|¡|¿|"

      > #l0
      > 0 set-char-mask "L"
      > !if &set #l1 &sin #l0 $result
      > 0 set-char-mask "U"
      > set-variable #l0 &mid $result #l1 1
      > !endif
      > insert-string #l0
      > !emacro
      >
      >
      >
      >
      >
      > -Th
      >
      >
      > Dmitry Koudryavtsev wrote:
      > > Yes, I know, It works... but how about keyboard ?
      > >
      > >> Edit>Insert Symbol
      >
      > > My problem is that CONSOLE version of ME
      > > does not allow me to write russian "ð" (code 0xF0).
      > > Window version working ok.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.