Skip to content

Commit

Permalink
SQUASH: feat: hzk12 点阵字体美化显示,方便辨认
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Apr 8, 2024
1 parent 0e9902c commit 107410c
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions plugins/lib/hzk12.tin
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,28 @@ PaoTin++ © 2020~2024 的所有版权均由担子炮(dzp <danzipao@gmail.com>)
{right} {&2}
};
#local word {$word};
#list lines add {{$word[left]}};
#local line {$word[left]};
#replace line {%+1S} {1};
#replace line {%+1s} {0};
#list lines add {{$line}};
#local word {$word[right]};
};

hzk12.draw-block {$lines};
};

#alias {hzk12.draw-block} {
#local lines {%1};

#local code {};
#local n {};
#loop {1} {6} {n} {
#local first {@math.Eval{$n * 2 - 1}};
#local first {$lines[$first]};
#replace first {%+1S} {1};
#replace first {%+1s} {0};
#list first {tokenize} {$first};

#local second {@math.Eval{$n * 2}};
#local second {$lines[$second]};
#replace second {%+1S} {1};
#replace second {%+1s} {0};
#list second {tokenize} {$second};

#local i {};
Expand All @@ -66,18 +71,18 @@ PaoTin++ © 2020~2024 的所有版权均由担子炮(dzp <danzipao@gmail.com>)

#alias {hzk12.test} {
#local word {
|^ ^ ^ ^ |
| ^ ^^ ^ |
|^^^^^^ ^^^^^ |
| ^^ ^ ^ |
| ^ ^^ ^ ^ |
|^ ^ ^ |
| ^ ^ ^ |
|^^^^^^ ^ ^ |
| ^ ^ ^ |
| ^^ ^ |
| ^ ^ ^ ^ |
|^^ ^^ ^^ |
| * * |
| * * * |
| * ******* |
|* * ** * |
|* ** **** * |
|* * * * * |
|* * * * * |
| * **** * |
| * * * ** |
| * ** * |
|* * * |
| ****** |
};

hzk12.Beautify {$word};
Expand Down

0 comments on commit 107410c

Please sign in to comment.