Skip to content

Commit

Permalink
* Regen HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyt committed Apr 2, 2015
1 parent 0a966e3 commit ceac47e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
@@ -0,0 +1,3 @@
gen ::
perl gen.pl | sh
jade -P jade --out html
2 changes: 1 addition & 1 deletion font/jade-unescape.pl
Expand Up @@ -26,7 +26,7 @@ sub k {
my $str = shift;
$str =~ s!&#xFc6a([1-9]);!chr(0x245f + $1)!eg;
$str =~ s!&#xF([89af]...);!
$k->{$1} ? qq[<rt>$k->{$1}</rt>] : qq[<mark>&#xF$1</mark>]
$k->{$1} ? qq[<rt>$k->{$1}</rt>] : qq[<mark>&#xF$1;</mark>]
!eg;
$str =~ s!&#xF([^89af]...);!
$k->{$1} ? qq[<rt>$k->{$1}</rt>] : qq[<img src="img/k/$1.png">]
Expand Down
6 changes: 6 additions & 0 deletions gen.pl
@@ -0,0 +1,6 @@
use 5.12.0;
for ('01'..'26') {
my ($dic) = glob("*$_*.dic");
say "perl a-tsioh_sandbox/recode_utf8.pl $dic | python a-tsioh_sandbox/dic2jade.py | perl font/jade-unescape.pl > jade/$_.jade"
}

7 changes: 7 additions & 0 deletions html/style.css
Expand Up @@ -37,3 +37,10 @@ img {
height: 24px;
border: 1px solid red;
}
@font-face {
font-family: 'k';
src: url('./font/koktai-k.woff') format('woff');
}
mark {
font-family: 'k';
}

0 comments on commit ceac47e

Please sign in to comment.