From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Adding cp858? Date: Wed, 06 Sep 2006 21:17:34 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1157566685 6024 80.91.229.2 (6 Sep 2006 18:18:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 18:18:05 +0000 (UTC) Cc: handa@m17n.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 20:18:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GL1yL-0007BC-3s for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 20:18:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GL1yK-0006nq-1t for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 14:18:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GL1y7-0006nT-Ik for emacs-devel@gnu.org; Wed, 06 Sep 2006 14:17:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GL1y6-0006lf-M6 for emacs-devel@gnu.org; Wed, 06 Sep 2006 14:17:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GL1y6-0006lb-Hu for emacs-devel@gnu.org; Wed, 06 Sep 2006 14:17:46 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GL1yI-0007Xj-QG for emacs-devel@gnu.org; Wed, 06 Sep 2006 14:17:59 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-204-173.inter.net.il [84.229.204.173]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id EOU17825 (AUTH halo1); Wed, 6 Sep 2006 21:17:34 +0300 (IDT) Original-To: emacs-devel@gnu.org In-reply-to: (message from Reiner Steib on Wed, 06 Sep 2006 11:00:25 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59460 Archived-At: > From: Reiner Steib > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Wed, 06 Sep 2006 11:00:25 +0200 > > > For codepage.el, if cp858 can also be used on DOS, I think the > > similar change should be installed. > > I don't know if it's used on DOS; the author of the LaTeX file > mentioned OS/2. I don't know if there's a DOS version that supports cp858 (maybe the just-released FreeDOS will?), but I see no harm in adding this support. > If I understand it correctly, `cp850-decode-table' in `codepage.el' is > derived from Latin-1 (iso-8859-1). As Latin-1 doesn't include the EUR > sign, cp858 can't be derived from Latin-1. But `codepage.el' doesn't > seem to support Latin-9 (iso-8859-15) which includes the EUR (and some > other changes to Latin-1). I didn't find anything related to Latin-9 > there. I'm not sure if `codepage.el' provides any codepages that > include the EUR sign: codepage.el can support _any_ ISO-8859 character set. The target character set is given by the `charset' property of the symbol that holds the decoding table. Here's an example (watch the call to setplist): (defvar cp855-decode-table [ 255 133 129 131 135 137 139 141 143 145 147 149 151 240 153 155 161 163 236 173 167 169 234 244 184 190 199 209 211 213 215 221 226 228 230 232 171 182 165 252 246 250 159 242 238 248 157 224 160 162 235 172 166 168 233 243 183 189 198 208 210 212 214 216 225 227 229 231 170 181 164 251 245 249 158 241 237 247 156 222 239 132 128 130 134 136 138 140 142 144 146 148 150 253 152 154] "Table for converting ISO-8859-5 characters into codepage 855 glyphs.") (setplist 'cp855-decode-table '(charset cyrillic-iso8859-5 language "Cyrillic-ISO" offset 160))