|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace ToolkitLab\ASCII\Formatter; |
|
4
|
|
|
|
|
5
|
|
|
class UnicodeFormatter extends AbstractFormatter { |
|
6
|
|
|
|
|
7
|
|
|
public function __construct() { |
|
8
|
|
|
$this->metadata = [ |
|
9
|
|
|
"name" => "Unicode", |
|
10
|
|
|
"useHeader" => true, |
|
11
|
|
|
"useFooter" => true, |
|
12
|
|
|
"isSeparated" => false, |
|
13
|
|
|
"BL" => json_decode('"\u2551"'), |
|
14
|
|
|
"BR" => json_decode('"\u2551"'), |
|
15
|
|
|
"BM" => json_decode('"\u2551"'), |
|
16
|
|
|
"HBL" => json_decode('"\u2554"'), |
|
17
|
|
|
"HBR" => json_decode('"\u2557"'), |
|
18
|
|
|
"HBM" => json_decode('"\u2566"'), |
|
19
|
|
|
"HPAD" => json_decode('"\u2550"'), |
|
20
|
|
|
"H2BL" => json_decode('"\u2560"'), |
|
21
|
|
|
"H2BR" => json_decode('"\u2563"'), |
|
22
|
|
|
"H2BM" => json_decode('"\u256C"'), |
|
23
|
|
|
"H2PAD" => json_decode('"\u2550"'), |
|
24
|
|
|
"BBL" => json_decode('"\u2551"'), |
|
25
|
|
|
"BBR" => json_decode('"\u2551"'), |
|
26
|
|
|
"BBM" => json_decode('"\u2551"'), |
|
27
|
|
|
"BPAD" => json_decode('"\u2550"'), |
|
28
|
|
|
"FBL" => json_decode('"\u255A"'), |
|
29
|
|
|
"FBR" => json_decode('"\u255D"'), |
|
30
|
|
|
"FBM" => json_decode('"\u2569"'), |
|
31
|
|
|
"FPAD" => json_decode('"\u2550"') |
|
32
|
|
|
]; |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
} |
|
36
|
|
|
|