| 1 |
% File incp1252.otp |
| 2 |
% Conversion to Unicode from Windows Latin I codepage (CP1252) |
| 3 |
% Copyright (c) 2002 Roozbeh Pournader |
| 4 |
% This file is part of the Omega project. |
| 5 |
% |
| 6 |
% This file was derived from information available from |
| 7 |
% Microsoft's website about codepages |
| 8 |
% (http://www.microsoft.com/globaldev/) |
| 9 |
% |
| 10 |
|
| 11 |
input: 1; |
| 12 |
output: 2; |
| 13 |
|
| 14 |
tables: |
| 15 |
|
| 16 |
tabcp1252[@"20] = { |
| 17 |
@"20AC, @"FFFD, @"201A, @"0192, @"201E, @"2026, @"2020, @"2021, |
| 18 |
@"02C6, @"2030, @"0160, @"2039, @"0152, @"FFFD, @"017D, @"FFFD, |
| 19 |
@"FFFD, @"2018, @"2019, @"201C, @"201D, @"2022, @"2013, @"2014, |
| 20 |
@"02DC, @"2122, @"0161, @"203A, @"0153, @"FFFD, @"017E, @"0178 |
| 21 |
}; |
| 22 |
|
| 23 |
expressions: |
| 24 |
|
| 25 |
@"80-@"9F => #(tabcp1252[\1-@"80]); |
| 26 |
@"00-@"FF => \1; |
| 27 |
. => @"FFFD; |