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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu52/scripts/eucjp_gen.sh ('k') | icu52/scripts/remove_unihan.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/sh
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 # Reference:
7 # http://encoding.spec.whatwg.org/#single-byte-decoder
8
9 # Download the following file, run it in source/data/mappings directory
10 # and save the result to ibm-866_html5-2012.ucm
11 # http://encoding.spec.whatwg.org/index-ibm866.txt )
12
13 cat <<PREAMBLE
14 # ***************************************************************************
15 # *
16 # * Generated from index-ibm866.txt (
17 # * http://encoding.spec.whatwg.org/index-ibm866.txt )
18 # * following the algorithm for the single byte legacy encoding
19 # * described at http://encoding.spec.whatwg.org/#single-byte-decoder
20 # *
21 # ***************************************************************************
22 <code_set_name> "ibm-866_html5-2012"
23 <char_name_mask> "AXXXX"
24 <mb_cur_max> 1
25 <mb_cur_min> 1
26 <uconv_class> "SBCS"
27 <subchar> \x7F
28 <icu:charsetFamily> "ASCII"
29
30 CHARMAP
31 PREAMBLE
32
33
34
35
36 awk 'BEGIN { for (i=0; i < 0x80; ++i) { printf("<U%04X> \\x%02X |0\n", i, i);}}
37 !/^#/ && !/^$/ { printf ("<U%4s> \\x%02X |0\n", substr($2, 2), $1 + 0x80);}' \
38 index-ibm866.txt | sort
OLDNEW
« 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