Debian Codegraph @

texmf-dist/omega/otp/char2uni/incp1251.otp

raw
1 % File incp1251.otp
2 % Conversion to Unicode from Cyrillic MS-DOS encoding (CP 1251)
3 % Copyright (c) 1995 John Plaice and Yannis Haralambous
4 % Copyright (c) 2002 Roozbeh Pournader
5 % This file is part of the Omega project.
6 %
7 % This file was derived from data in the tcs program
8 % (ftp://plan9.att.com/plan9/unixsrc/tcs.shar.Z, 16 November 1994)
9 % and then modified based on data from glibc data files
10 % (http://www.gnu.org/software/libc/libc.html)
11 %
12
13 input: 1;
14 output: 2;
15
16 tables:
17
18 tabcp1251[@"40] = {
19 @"0402, @"0403, @"201A, @"0453, @"201E, @"2026, @"2020, @"2021,
20 @"20AC, @"2030, @"0409, @"2039, @"040A, @"040C, @"040B, @"040F,
21 @"0452, @"2018, @"2019, @"201C, @"201D, @"2022, @"2013, @"2014,
22 @"FFFD, @"2122, @"0459, @"203A, @"045A, @"045C, @"045B, @"045F,
23 @"00A0, @"040E, @"045E, @"0408, @"00A4, @"0490, @"00A6, @"00A7,
24 @"0401, @"00A9, @"0404, @"00AB, @"00AC, @"00AD, @"00AE, @"0407,
25 @"00B0, @"00B1, @"0406, @"0456, @"0491, @"00B5, @"00B6, @"00B7,
26 @"0451, @"2116, @"0454, @"00BB, @"0458, @"0405, @"0455, @"0457
27 };
28
29 expressions:
30
31 @"00-@"7F => \1;
32 @"C0-@"FF => #(\1 + @"350);
33 @"80-@"BF => #(tabcp1251[\1-@"80]);
34 . => @"FFFD;