Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: icu52/scripts/ibm866_gen.sh

Issue 224943002: icu local change part1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: function indentation changed Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu52/scripts/eucjp_gen.sh ('k') | icu52/scripts/remove_unihan.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu52/scripts/ibm866_gen.sh
===================================================================
--- icu52/scripts/ibm866_gen.sh (revision 0)
+++ icu52/scripts/ibm866_gen.sh (revision 0)
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Reference:
+# http://encoding.spec.whatwg.org/#single-byte-decoder
+
+# Download the following file, run it in source/data/mappings directory
+# and save the result to ibm-866_html5-2012.ucm
+# http://encoding.spec.whatwg.org/index-ibm866.txt )
+
+cat <<PREAMBLE
+# ***************************************************************************
+# *
+# * Generated from index-ibm866.txt (
+# * http://encoding.spec.whatwg.org/index-ibm866.txt )
+# * following the algorithm for the single byte legacy encoding
+# * described at http://encoding.spec.whatwg.org/#single-byte-decoder
+# *
+# ***************************************************************************
+<code_set_name> "ibm-866_html5-2012"
+<char_name_mask> "AXXXX"
+<mb_cur_max> 1
+<mb_cur_min> 1
+<uconv_class> "SBCS"
+<subchar> \x7F
+<icu:charsetFamily> "ASCII"
+
+CHARMAP
+PREAMBLE
+
+
+
+
+awk 'BEGIN { for (i=0; i < 0x80; ++i) { printf("<U%04X> \\x%02X |0\n", i, i);}}
+!/^#/ && !/^$/ { printf ("<U%4s> \\x%02X |0\n", substr($2, 2), $1 + 0x80);}' \
+index-ibm866.txt | sort
Property changes on: icu52/scripts/ibm866_gen.sh
___________________________________________________________________
Added: svn:eol-style
+ LF
Added: svn:executable
+ *
« no previous file with comments | « icu52/scripts/eucjp_gen.sh ('k') | icu52/scripts/remove_unihan.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698