67 |
$CHARSET{G96n}->{ $_.$F }->{chars} = 96; |
$CHARSET{G96n}->{ $_.$F }->{chars} = 96; |
68 |
$CHARSET{G96n}->{ $_.$F }->{ucs} = |
$CHARSET{G96n}->{ $_.$F }->{ucs} = |
69 |
({'' => 0xF4C000}->{ $_ }||0) + 96*96 * ($f-0x30); |
({'' => 0xF4C000}->{ $_ }||0) + 96*96 * ($f-0x30); |
70 |
## BUG: 94^n DRCSes with I byte have no mapping area |
## BUG: 96^n DRCSes with I byte have no mapping area |
71 |
} |
} |
72 |
} |
} |
73 |
|
$CHARSET{G94n}->{"\x20\x40"}->{ucs} = 0x70460000; ## DRCS 94^2 04/00 |
74 |
|
$CHARSET{G94n}->{P4_0} = $CHARSET{G94n}->{"\x20\x40"}; |
75 |
|
|
76 |
for (0x60..0x6F) { |
for (0x60..0x6F) { |
77 |
my $F = pack 'C', $_; |
my $F = pack 'C', $_; |
78 |
## BUG: 9x^3 sets have no mapping area |
## BUG: 9x^3 sets have no mapping area |
216 |
$C{option} = { |
$C{option} = { |
217 |
C1invoke_to_right => 0, ## C1 invoked to: (0: ESC Fe, 1: CR) |
C1invoke_to_right => 0, ## C1 invoked to: (0: ESC Fe, 1: CR) |
218 |
G94n_designate_long => 0, ## (1: ESC 02/04 02/08 04/00..02) |
G94n_designate_long => 0, ## (1: ESC 02/04 02/08 04/00..02) |
219 |
designate_to => { ## Designated G buffer (-1: not be outputed) |
designate_to => { ## Designated G buffer (-1: not to be outputed) |
220 |
C0 => { |
C0 => { |
221 |
default => 0, |
default => 0, |
222 |
}, |
}, |
240 |
default => -1, |
default => -1, |
241 |
}, |
}, |
242 |
}, |
}, |
243 |
|
final_to_set => { |
244 |
|
C0 => {}, C1 => {}, G94 => {}, G94n => {}, |
245 |
|
G96 => {}, G96n => {}, coding_system => {}, |
246 |
|
}, |
247 |
Ginvoke_by_single_shift => [0,0,0,0], ## Invoked by SS |
Ginvoke_by_single_shift => [0,0,0,0], ## Invoked by SS |
248 |
Ginvoke_to_left => [1,1,1,1], ## Which invoked to? (1: L, 0: R) |
Ginvoke_to_left => [1,1,1,1], ## Which invoked to? (1: L, 0: R) |
249 |
private_set => { ## Private set vs Final byte |
private_set => { ## Private set vs Final byte |
250 |
C0 => [], |
C0 => [], |
251 |
C1 => [], |
C1 => [], |
252 |
G94 => [], |
G94 => [], |
253 |
G94n => [[],[],[],[],[]], |
G94n => [[],[],[],[],["\x20\x40"]], |
254 |
G96 => [], |
G96 => [], |
255 |
#G96n => [], ## (not implemented) |
#G96n => [], ## (not implemented) |
256 |
U96n => [], ## mule-unicode sets |
U96n => [], ## mule-unicode sets |
265 |
undef_char => ["\x3F", {type => 'G94', charset => 'B'}], |
undef_char => ["\x3F", {type => 'G94', charset => 'B'}], |
266 |
use_revision => 1, ## Output IRR |
use_revision => 1, ## Output IRR |
267 |
}; |
}; |
|
## Special code area (such as 0xFD-0xFF of sjis'es) |
|
|
$C{Gsmap} = {"\xA0" => "\x{F8F0}", "\xFD" => "\x{F8F1}", "\xFE" => "\x{F8F2}", "\xFF" => "\x{F8F3}"}; |
|
|
$C{GsmapR} = {}; ## Reversed table |
|
268 |
\%C; |
\%C; |
269 |
} |
} |
270 |
|
|
271 |
sub new_object_sjis { |
sub new_object_sjis { |
272 |
my $C = new_object; |
my $C = &new_object; |
273 |
$C->{coding_system} = $CODING_SYSTEM{Csjis}; |
$C->{coding_system} = $CODING_SYSTEM{Csjis}; |
274 |
$C->{CR} = undef; |
$C->{CR} = undef; |
275 |
$C->{GR} = 'G2'; ## 0xA1-0xDF |
$C->{GR} = 'G2'; ## 0xA1-0xDF |
276 |
#$C->{G0} = $CHARSET{G94}->{J}; ## JIS X 0201:1997 Latin |
$C->{G0} = $CHARSET{G94}->{J}; ## JIS X 0201:1997 Latin |
277 |
$C->{G1} = $CHARSET{G94n}->{'B@'}; ## JIS X 0208:1997 |
$C->{G1} = $CHARSET{G94n}->{"\x4F"}; ## JIS X 0213:2000 |
278 |
$C->{G2} = $CHARSET{G94}->{I}; ## JIS X 0201:1997 Katakana |
$C->{G2} = $CHARSET{G94}->{I}; ## JIS X 0201:1997 Katakana |
279 |
$C->{G3} = $CHARSET{G94n}->{"\x50"}; ## JIS X 0213:2000 plane 2 |
$C->{G3} = $CHARSET{G94n}->{"\x50"}; ## JIS X 0213:2000 plane 2 |
280 |
|
## Special code area (0xFD-0xFF) |
281 |
|
$C->{Gsmap} = {"\xA0" => "\x{F8F0}", "\xFD" => "\x{F8F1}", "\xFE" => "\x{F8F2}", "\xFF" => "\x{F8F3}"}; |
282 |
|
$C->{GsmapR} = {}; ## Reversed table |
283 |
|
$C->{option}->{undef_char_sjis} = "\x81\xAC"; |
284 |
$C; |
$C; |
285 |
} |
} |
286 |
|
|