From owner-svn-src-user@FreeBSD.ORG Wed Aug 5 22:22:50 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB26F1065676; Wed, 5 Aug 2009 22:22:50 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 970538FC23; Wed, 5 Aug 2009 22:22:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n75MMo9F026474; Wed, 5 Aug 2009 22:22:50 GMT (envelope-from edwin@svn.freebsd.org) Received: (from edwin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n75MMog0026470; Wed, 5 Aug 2009 22:22:50 GMT (envelope-from edwin@svn.freebsd.org) Message-Id: <200908052222.n75MMog0026470@svn.freebsd.org> From: Edwin Groothuis Date: Wed, 5 Aug 2009 22:22:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196077 - in user/edwin/locale/tools: . charmaps X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 22:22:51 -0000 Author: edwin Date: Wed Aug 5 22:22:50 2009 New Revision: 196077 URL: http://svn.freebsd.org/changeset/base/196077 Log: Add support for the eucCN charactermap Added: user/edwin/locale/tools/changeoffset.pl (contents, props changed) user/edwin/locale/tools/charmaps/eucCN.TXT Modified: user/edwin/locale/tools/charmaps.xml Added: user/edwin/locale/tools/changeoffset.pl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/edwin/locale/tools/changeoffset.pl Wed Aug 5 22:22:50 2009 (r196077) @@ -0,0 +1,30 @@ +#!/usr/bin/perl -w + +if ($#ARGV != 2) { + print STDERR "Usage: $0 \n"; + print STDERR "offset should be in hex and can be prefixed with a -.\n"; + exit; +} + +$fin = $ARGV[0]; +$fout = $ARGV[1]; +$offset = hex($ARGV[2]); + +open(FIN, "$fin.TXT") or die "Cannot open $fin.TXT for reading"; +open(FOUT, ">$fout.TXT"); + +foreach my $l () { + my @a = split(" ", $l); + + if ($a[0] =~ /^0x[0-9a-fA-F]+$/) { + my $c = length($a[0]); + my $h = hex($a[0]) + $offset; + + $l = sprintf("0x%*X%s", $c - 2, $h, substr($l, $c)); + } + + print FOUT $l; +} + +close(FOUT); +close(FIN); Modified: user/edwin/locale/tools/charmaps.xml ============================================================================== --- user/edwin/locale/tools/charmaps.xml Wed Aug 5 21:58:39 2009 (r196076) +++ user/edwin/locale/tools/charmaps.xml Wed Aug 5 22:22:50 2009 (r196077) @@ -381,83 +381,83 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +0xB0A2 0x963F # +0xB0A3 0x57C3 # +0xB0A4 0x6328 # +0xB0A5 0x54CE # +0xB0A6 0x5509 # +0xB0A7 0x54C0 # +0xB0A8 0x7691 # +0xB0A9 0x764C # +0xB0AA 0x853C # +0xB0AB 0x77EE # +0xB0AC 0x827E # +0xB0AD 0x788D # +0xB0AE 0x7231 # +0xB0AF 0x9698 # +0xB0B0 0x978D # +0xB0B1 0x6C28 # +0xB0B2 0x5B89 # +0xB0B3 0x4FFA # +0xB0B4 0x6309 # +0xB0B5 0x6697 # +0xB0B6 0x5CB8 # +0xB0B7 0x80FA # +0xB0B8 0x6848 # +0xB0B9 0x80AE # +0xB0BA 0x6602 # +0xB0BB 0x76CE # +0xB0BC 0x51F9 # +0xB0BD 0x6556 # +0xB0BE 0x71AC # +0xB0BF 0x7FF1 # +0xB0C0 0x8884 # +0xB0C1 0x50B2 # +0xB0C2 0x5965 # +0xB0C3 0x61CA # +0xB0C4 0x6FB3 # +0xB0C5 0x82AD # +0xB0C6 0x634C # +0xB0C7 0x6252 # +0xB0C8 0x53ED # +0xB0C9 0x5427 # +0xB0CA 0x7B06 # +0xB0CB 0x516B # +0xB0CC 0x75A4 # +0xB0CD 0x5DF4 # +0xB0CE 0x62D4 # +0xB0CF 0x8DCB # +0xB0D0 0x9776 # +0xB0D1 0x628A # +0xB0D2 0x8019 # +0xB0D3 0x575D # +0xB0D4 0x9738 # +0xB0D5 0x7F62 # +0xB0D6 0x7238 # +0xB0D7 0x767D # +0xB0D8 0x67CF # +0xB0D9 0x767E # +0xB0DA 0x6446 # +0xB0DB 0x4F70 # +0xB0DC 0x8D25 # +0xB0DD 0x62DC # +0xB0DE 0x7A17 # +0xB0DF 0x6591 # +0xB0E0 0x73ED # +0xB0E1 0x642C # +0xB0E2 0x6273 # +0xB0E3 0x822C # +0xB0E4 0x9881 # +0xB0E5 0x677F # +0xB0E6 0x7248 # +0xB0E7 0x626E # +0xB0E8 0x62CC # +0xB0E9 0x4F34 # +0xB0EA 0x74E3 # +0xB0EB 0x534A # +0xB0EC 0x529E # +0xB0ED 0x7ECA # +0xB0EE 0x90A6 # +0xB0EF 0x5E2E # +0xB0F0 0x6886 # +0xB0F1 0x699C # +0xB0F2 0x8180 # +0xB0F3 0x7ED1 # +0xB0F4 0x68D2 # +0xB0F5 0x78C5 # +0xB0F6 0x868C # +0xB0F7 0x9551 # +0xB0F8 0x508D # +0xB0F9 0x8C24 # +0xB0FA 0x82DE # +0xB0FB 0x80DE # +0xB0FC 0x5305 # +0xB0FD 0x8912 # +0xB0FE 0x5265 # +0xB1A1 0x8584 # +0xB1A2 0x96F9 # +0xB1A3 0x4FDD # +0xB1A4 0x5821 # +0xB1A5 0x9971 # +0xB1A6 0x5B9D # +0xB1A7 0x62B1 # +0xB1A8 0x62A5 # +0xB1A9 0x66B4 # +0xB1AA 0x8C79 # +0xB1AB 0x9C8D # +0xB1AC 0x7206 # +0xB1AD 0x676F # +0xB1AE 0x7891 # +0xB1AF 0x60B2 # +0xB1B0 0x5351 # +0xB1B1 0x5317 # +0xB1B2 0x8F88 # +0xB1B3 0x80CC # +0xB1B4 0x8D1D # +0xB1B5 0x94A1 # +0xB1B6 0x500D # +0xB1B7 0x72C8 # +0xB1B8 0x5907 # +0xB1B9 0x60EB # +0xB1BA 0x7119 # +0xB1BB 0x88AB # +0xB1BC 0x5954 # +0xB1BD 0x82EF # +0xB1BE 0x672C # +0xB1BF 0x7B28 # +0xB1C0 0x5D29 # +0xB1C1 0x7EF7 # +0xB1C2 0x752D # +0xB1C3 0x6CF5 # +0xB1C4 0x8E66 # +0xB1C5 0x8FF8 # +0xB1C6 0x903C # +0xB1C7 0x9F3B # +0xB1C8 0x6BD4 # +0xB1C9 0x9119 # +0xB1CA 0x7B14 # +0xB1CB 0x5F7C # +0xB1CC 0x78A7 # +0xB1CD 0x84D6 # +0xB1CE 0x853D # +0xB1CF 0x6BD5 # +0xB1D0 0x6BD9 # +0xB1D1 0x6BD6 # +0xB1D2 0x5E01 # +0xB1D3 0x5E87 # +0xB1D4 0x75F9 # *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***