mirror of https://git.cro.wtf/kip.git
s/epto2kmm.bqn:init
This commit is contained in:
parent
dd4f546d09
commit
52cd51be2f
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bqn
|
||||
#Converts Epto's font files to kmm files & keeps the copyright notice
|
||||
nl←@+10⋄L2Hex←{((2⊸×⊸+˜´⌽)˘⌽‿4⥊'█'=𝕩)⊏∾"0a"+⟜↕¨10‿26}⋄Split←((⊢-˜+`׬)∘=⊔⊢)
|
||||
ToImm←{𝕊x:{"CP":⟨⟩;"FH":⟨⟩;"FW":⟨⟩;"VER":⟨⟩;"MAX":⟨⟩;#Assumes FH,FW=8,8∧MAX=256
|
||||
"INF":"{"∾(¯1↓4↓x)∾"}"∾nl;"NAME":":"∾(1⊑b);
|
||||
"CH":nl∾˜∾' '⊸∾¨('#'⊸∾)¨L2Hex¨32(⌊∘÷˜⟜(↕≠)⊔⊢)y/˜nl≠y←¯2↓x↓˜1+⊑/nl=x;
|
||||
𝕩:""}⊑b←' 'Split 𝕩}⋄•Out";
|
||||
"∾˜∾ToImm¨1↓'@'Split•FChars 0⊑•args
|
Loading…
Reference in New Issue