Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: iso-8859-8/windows-1255 (Hebrew) and iso-8859-9/windows-1254 (Turkish)
Date: Thu, 28 Sep 2006 18:44:28 +0200	[thread overview]
Message-ID: <v9ven8uej7.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

I've learned that windows-1254 is a superset of iso-8859-9 (Turkish)
and windows-1255 is a superset of iso-8859-8 (Hebrew).

So it would probably make sense to add these pairs to
`mm-charset-synonym-alist' and `mm-charset-override-alist' as well, in
the same way we do for iso-8859-1/windows-1252 (West Europe), see the
patch below.  In western Europe, articles are often mislabeled as
iso-8859-1, when in fact the article is windows-1252.

Does anyone (especially people using those charsets) see a problem
with this change?

--8<---------------cut here---------------start------------->8---
--- mm-util.el	16 Jul 2006 14:33:12 -0000	7.54
+++ mm-util.el	28 Sep 2006 16:37:05 -0000
@@ -208,12 +208,22 @@
     ;; BIG-5HKSCS is similar to, but different than, BIG-5.
     ,@(unless (mm-coding-system-p 'big5-hkscs)
 	'((big5-hkscs . big5)))
-    ;; Windows-1252 is actually a superset of Latin-1.  See also
-    ;; `gnus-article-dumbquotes-map'.
+    ;; Windows-1252 is actually a superset of iso-8859-1 (West Europe).  See
+    ;; also `gnus-article-dumbquotes-map'.
     ,@(unless (mm-coding-system-p 'windows-1252)
 	(if (mm-coding-system-p 'cp1252)
 	    '((windows-1252 . cp1252))
 	  '((windows-1252 . iso-8859-1))))
+    ;; Windows-1254 is a superset of iso-8859-9 (Turkish).
+    ,@(unless (mm-coding-system-p 'windows-1254)
+	(if (mm-coding-system-p 'cp1254)
+	    '((windows-1254 . cp1254))
+	  '((windows-1254 . iso-8859-9))))
+    ;; Windows-1255 is a superset of iso-8859-8 (Hebrew).
+    ,@(unless (mm-coding-system-p 'windows-1255)
+	(if (mm-coding-system-p 'cp1255)
+	    '((windows-1255 . cp1255))
+	  '((windows-1255 . iso-8859-8))))
     ;; Windows-1250 is a variant of Latin-2 heavily used by Microsoft
     ;; Outlook users in Czech republic. Use this to allow reading of their
     ;; e-mails. cp1250 should be defined by M-x codepage-setup.
@@ -237,7 +247,9 @@
   "A mapping from unknown or invalid charset names to the real charset names.")
 
 (defcustom mm-charset-override-alist
-  `((iso-8859-1 . windows-1252))
+  '((iso-8859-1 . windows-1252)
+    (iso-8859-8 . windows-1255)
+    (iso-8859-9 . windows-1254))
   "A mapping from undesired charset names to their replacement.
 
 You may add pairs like (iso-8859-1 . windows-1252) here,
@@ -245,6 +257,8 @@
 superset of iso-8859-1."
   :type '(list (set :inline t
 		    (const (iso-8859-1 . windows-1252))
+		    (const (iso-8859-8 . windows-1255))
+		    (const (iso-8859-9 . windows-1254))
 		    (const (undecided  . windows-1252)))
 	       (repeat :inline t
 		       :tag "Other options"
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




             reply	other threads:[~2006-09-28 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-28 16:44 Reiner Steib [this message]
2006-10-04 21:49 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9ven8uej7.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).