emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding cp858?


From: Eli Zaretskii
Subject: Re: Adding cp858?
Date: Wed, 06 Sep 2006 21:17:34 +0300

> From: Reiner Steib <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, address@hidden
> 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))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]