From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: easy way to make a custom variant of a coding system? Date: Tue, 02 Apr 2013 16:06:12 +0900 Message-ID: <87mwth1kez.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364886383 17519 80.91.229.3 (2 Apr 2013 07:06:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 07:06:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 02 09:06:51 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UMvIx-0004FM-4J for ged-emacs-devel@m.gmane.org; Tue, 02 Apr 2013 09:06:51 +0200 Original-Received: from localhost ([::1]:37940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMvIY-0008RP-FZ for ged-emacs-devel@m.gmane.org; Tue, 02 Apr 2013 03:06:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMvIP-0008QS-4o for emacs-devel@gnu.org; Tue, 02 Apr 2013 03:06:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMvIN-0006NK-R5 for emacs-devel@gnu.org; Tue, 02 Apr 2013 03:06:17 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:59668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMvIN-0006NA-Hz; Tue, 02 Apr 2013 03:06:15 -0400 Original-Received: from 218.33.195.56.eo.eaccess.ne.jp ([218.33.195.56] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) (envelope-from ) id 1UMvIM-0000Ed-0x; Tue, 02 Apr 2013 16:06:14 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 73182DFC5; Tue, 2 Apr 2013 16:06:12 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Original-Lines: 24 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 203.216.5.73 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158530 Archived-At: Hi, I have a bunch of files which are encoded using KDDI's custom variant of shift_jis, which adds emoji characters. These characters are all in Unicode now too (if not in lots of fonts), and there are handy conversion tables available[1]. Is there are an easy way to make a "derived" coding system for this? I mean, so that I could just add a coding system "shift_jis-kddi", and tell emacs "use the builtin shift_jis support, but also add these additional character codes (and their unicode code points)..." Thanks, -miles [1] http://www.unicode.org/Public/UNIDATA/EmojiSources.txt -- Admiration, n. Our polite recognition of another's resemblance to ourselves.