这是indexloc提供的服务,不要输入任何密码
Skip to content

Lindydancer/iso-oem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

iso-oem - set up display for Latin 1 using an OEM (MS-DOS) font

Author: Anders Lindgren
Version: 1.0.1
URL: https://github.com/Lindydancer/iso-oem

This package sets up the display to show Latin 1 (ISO 8859/1) characters using an OEM font, i.e. a plain MS-DOS font.

Usage

Place this file somewhere in Emacs load path and place the following line in an appropriate init file, e.g. "~/.emacs".

    (require 'iso-oem)
    (standard-display-iso-oem)

The following, more complex code, should conditionally enable this when an oem font with a standard naming scheme is used:

    (let ((font (cdr-safe (assq 'font (frame-parameters)))))
      (if (and font
               (or (string-match "-oem-$" font)
                   (string-match "-ms_oemlatin$" font)
                   (string-match "-ms_oemlatin_8$" font)))
          (standard-display-iso-oem)))

Unfortunately, this package modified the global display table. Hence, it's not possible to mix an oem font and a corrently encoded Latin 1 font.

Make sure that standard-display-european is not called after this file has been loaded.

See iso-syntax (in the standard Emacs distribution) for a syntax table for Latin 1.

Emacs version compatibility

This is guaranteed to be compatible with Emacs 22. This is the version I use under Windows, as later Emacs versions have severe performance problems.

Note

This package is NOT designed to be used to edit OEM (ms-dos) files. Unfortunately, I don't know of any package that provides the necessary syntax and display tables.


Converted from iso-oem.el by el2markup.

About

Use an OEM (MS-DOS) font to edit Latin 1 in Emacs

Resources

Stars

Watchers

Forks

Packages

No packages published