unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* RE: Proposal about adding cp1251 (Russian Windoz) encoding in Emacs
@ 2002-08-28  5:48 Krjukov Victor
  2002-08-28  6:37 ` Kenichi Handa
  0 siblings, 1 reply; 10+ messages in thread
From: Krjukov Victor @ 2002-08-28  5:48 UTC (permalink / raw)
  Cc: bug-gnu-emacs, d.love

If I'm not wrong (http://www.microsoft.com/typography/unicode/1251.htm)
cp1251 is a character set with cyrillic letters added in the upper half
of character table; i'm not sure people in Korea, for example, or even
in France with their accented letters really want their Emacs on Windows
switch to this language environment automatically. On the other hand,
this should be the default _cyrillic_ language environment on Windows
systems for sure.

----
Sincerely Yours, Victor V. Kryukov, UFG
phone: +7501 967 3727, ext. 4387
email: vkryukov@ufg.com

> -----Original Message-----
> From: Eli Zaretskii [mailto:eliz@is.elta.co.il] 
> Sent: Wednesday, August 28, 2002 9:32 AM
> To: Kenichi Handa
> Cc: Krjukov Victor; bug-gnu-emacs@gnu.org; d.love@dl.ac.uk
> Subject: Re: Proposal about adding cp1251 (Russian Windoz) 
> encoding in Emacs
> 
> 
> 
> On Wed, 28 Aug 2002, Kenichi Handa wrote:
> 
> > Thank you for the report.  We have already supported cp1251
> > in the latest CVS code.  Could you please try it?  When you
> > set the language environment to "Windows-1251", you can
> > start using the coding system windows-1251 (alias cp1251).
> > 
> > But, I don't know if Emacs automatically switch to that
> > lang. env. when started on Windows.
> 
> If it doesn't, it should, IMHO.
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Proposal about adding cp1251 (Russian Windoz) encoding in Emacs
@ 2002-08-27  9:05 Krjukov Victor
  0 siblings, 0 replies; 10+ messages in thread
From: Krjukov Victor @ 2002-08-27  9:05 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2777 bytes --]

I forgot to attach changed files - here they are.

----
Sincerely Yours, Victor V. Kryukov, UFG
phone: +7501 967 3727, ext. 4387
email: vkryukov@ufg.com

> -----Original Message-----
> From: Krjukov Victor 
> Sent: Tuesday, August 27, 2002 1:04 PM
> To: 'bug-gnu-emacs@gnu.org'
> Subject: Proposal about adding cp1251 (Russian Windoz) 
> encoding in Emacs
> 
> 
> Greetings, Emacs developers.
> 
> MULE support in Emacs contains several encodings for Russian 
> language: 
> ISO 8859-5, used as main encoding (it's called a 'standard' 
> encoding but _nobody_ here actually use it);
> koi8-r (de-facto standard in email transmission and standard 
> in *nix systems - almost all *nix systems in Russia use it);
> and Alternativnyj (also known as cp866) - an ancient encoding 
> come from DOS world.
> 
> But Emacs has no support for cp1251 (standard Russian 
> encoding in Windows), though we have and activelly use Emacs 
> for Windows.
> 
> I've made several changes in several *el files from Emacs 
> 21.2 distribution, but it seems to me that you need to 
> recompile Emacs to include additional language in MULE 
> support (and I have no C compiler on my Windows system).
> 
> Could someone check attached files and probably implement 
> them in future Emacs version? This would be a great help to 
> russian windows-emacs users.
> 
> Thank you very much for this great program,
> 
> 		Victor V. Kryukov.
> 
> PS. I've also made some changes in lisp/language/cyrillic.el: 
> fix some typo (staff instead of stuff ;) and fix some bugs 
> (e.g. cyrillic-encode-koi8-r-char instead of 
> cyrillic-encode-alternativnyj-char at the bottom of folloving 
> excerpt in lines 203-217 of cyrillic.el looks really strange).
> 
> I have also another question: comparing sections in 
> cyrillic.el for koi8-r and for alternativnyj you may notice 
> that one line       
> (if (r0 == ,(charset-id 'cyrillic-iso8859-5))
> only present for define-ccl-program ccl-encode-koi8 and not 
> in ccl-encode-alternativnyj - is it a bug or a feature?
> ---
> (make-coding-system
>  'cyrillic-alternativnyj 4 ?A
>  "ALTERNATIVNYJ 8-bit encoding for Cyrillic"
>  '(ccl-decode-alternativnyj . ccl-encode-alternativnyj)
>  `((safe-chars . ,(let ((table (make-char-table 'safe-chars))
> 			(i 0))
> 		    (while (< i 256)
> 		      (aset table (aref 
> cyrillic-alternativnyj-decode-table i)
> 			    t)
> 		      (setq i (1+ i)))
> 		    table))
>    (valid-codes (0 . 175) (224 . 241) 255)
>    (charset-origin-alist (cyrillic-iso8859-5 "ALTERNATIVNYJ"
> 					     
> cyrillic-encode-koi8-r-char))))
> ---
> 
> ----
> Sincerely Yours, Victor V. Kryukov, UFG
> phone: +7501 967 3727, ext. 4387
> email: vkryukov@ufg.com
> 

[-- Attachment #2: emacs-21.2.zip --]
[-- Type: application/x-zip-compressed, Size: 270324 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Proposal about adding cp1251 (Russian Windoz) encoding in Emacs
@ 2002-08-27  9:04 Krjukov Victor
  2002-08-28  1:14 ` Kenichi Handa
  0 siblings, 1 reply; 10+ messages in thread
From: Krjukov Victor @ 2002-08-27  9:04 UTC (permalink / raw)


Greetings, Emacs developers.

MULE support in Emacs contains several encodings for Russian language: 
ISO 8859-5, used as main encoding (it's called a 'standard' encoding but
_nobody_ here actually use it);
koi8-r (de-facto standard in email transmission and standard in *nix
systems - almost all *nix systems in Russia use it);
and Alternativnyj (also known as cp866) - an ancient encoding come from
DOS world.

But Emacs has no support for cp1251 (standard Russian encoding in
Windows), though we have and activelly use Emacs for Windows.

I've made several changes in several *el files from Emacs 21.2
distribution, but it seems to me that you need to recompile Emacs to
include additional language in MULE support (and I have no C compiler on
my Windows system).

Could someone check attached files and probably implement them in future
Emacs version? This would be a great help to russian windows-emacs
users.

Thank you very much for this great program,

		Victor V. Kryukov.

PS. I've also made some changes in lisp/language/cyrillic.el: fix some
typo (staff instead of stuff ;) and fix some bugs (e.g.
cyrillic-encode-koi8-r-char instead of
cyrillic-encode-alternativnyj-char at the bottom of folloving excerpt in
lines 203-217 of cyrillic.el looks really strange).

I have also another question: comparing sections in cyrillic.el for
koi8-r and for alternativnyj you may notice that one line       
(if (r0 == ,(charset-id 'cyrillic-iso8859-5))
only present for define-ccl-program ccl-encode-koi8 and not in
ccl-encode-alternativnyj - is it a bug or a feature?
---
(make-coding-system
 'cyrillic-alternativnyj 4 ?A
 "ALTERNATIVNYJ 8-bit encoding for Cyrillic"
 '(ccl-decode-alternativnyj . ccl-encode-alternativnyj)
 `((safe-chars . ,(let ((table (make-char-table 'safe-chars))
			(i 0))
		    (while (< i 256)
		      (aset table (aref
cyrillic-alternativnyj-decode-table i)
			    t)
		      (setq i (1+ i)))
		    table))
   (valid-codes (0 . 175) (224 . 241) 255)
   (charset-origin-alist (cyrillic-iso8859-5 "ALTERNATIVNYJ"
	
cyrillic-encode-koi8-r-char))))
---

----
Sincerely Yours, Victor V. Kryukov, UFG
phone: +7501 967 3727, ext. 4387
email: vkryukov@ufg.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-08-31 17:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-28  5:48 Proposal about adding cp1251 (Russian Windoz) encoding in Emacs Krjukov Victor
2002-08-28  6:37 ` Kenichi Handa
2002-08-28 13:06   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2002-08-27  9:05 Krjukov Victor
2002-08-27  9:04 Krjukov Victor
2002-08-28  1:14 ` Kenichi Handa
2002-08-28  5:31   ` Eli Zaretskii
2002-08-29 22:47   ` Dave Love
2002-08-30  2:39     ` Kenichi Handa
2002-08-31 17:20       ` Dave Love

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).