Last active
August 6, 2019 16:01
-
-
Save eggplants/2d2a6735658145e4db67d48608a9da08 to your computer and use it in GitHub Desktop.
textimgの-fオプションにとった結果,文字化けしなかった文字を前にいれた
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A:/usr/share/fonts/truetype/lato/Lato-Medium.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-SemiboldItalic.ttf | |
A:/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf | |
A:/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumSquareRoundB.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-LightItalic.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSansNarrow-Italic.ttf | |
A:/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf | |
Aあ:/usr/share/fonts/opentype/ipafont-mincho/ipam.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Italic.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumSquareRoundR.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumSquareB.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSerif-Italic.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-MediumItalic.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Black.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSansNarrow-Regular.ttf | |
Aあ:/usr/share/fonts/truetype/vlgothic/VL-PGothic-Regular.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumGothic.ttf | |
A:/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSerif-Bold.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Light.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Regular.ttf | |
A:/usr/share/fonts/truetype/ancient-scripts/Symbola_hint.ttf | |
Aあ:/usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSans-Italic.ttf | |
あ:/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-ThinItalic.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumBarunGothicBold.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSerif-BoldItalic.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSansNarrow-BoldItalic.ttf | |
A:/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf | |
Aあ:/usr/share/fonts/opentype/ipafont-mincho/ipamp.ttf | |
Aあ:/usr/share/fonts/opentype/ipafont-gothic/ipag.ttf | |
Aあ:/usr/share/fonts/truetype/fonts-japanese-mincho.ttf | |
Aあ:/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumGothicBold.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSans-BoldItalic.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-HairlineItalic.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Thin.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-BoldItalic.ttf | |
Aあ:/usr/share/fonts/truetype/fonts-japanese-gothic.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Bold.ttf | |
A:/usr/share/fonts/truetype/noto/NotoMono-Regular.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSansNarrow-Bold.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Heavy.ttf | |
A:/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Semibold.ttf | |
:/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumSquareR.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-HeavyItalic.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumMyeongjo.ttf | |
Aあ:/usr/share/fonts/truetype/nanum/NanumMyeongjoBold.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-BlackItalic.ttf | |
A:/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf | |
A:/usr/share/fonts/truetype/lato/Lato-Hairline.tt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text(){ | |
echo $1|textimg -f $4 -o a.png | |
convert a.png i.txt | |
cat i.txt|tr , " "|\ | |
awk '{ | |
if($1==0){print ""} | |
if($4==0){printf"0"} | |
else{printf"1"}}'|\ | |
sed "1d">i | |
cat i|sed "y/01/$2$3/";echo;}; | |
#main | |
h1=(あ A);h2=(■);h3=(□) | |
h4=(/font/path) | |
for s1 in ${h1[@]};do | |
for s2 in ${h2[@]};do | |
for s3 in ${h3[@]};do | |
for s4 in ${h4[@]};do | |
text $s1 $s2 $s3 $s4>>u | |
done;done;done;done | |
cat u|textimg -asl20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text(){ | |
echo あ|textimg -f /usr/share/fonts/$1 -o a.png | |
convert a.png i.txt | |
cat i.txt|tr , " "|\ | |
awk '{ | |
if($1==0){print ""} | |
if($4==0){printf"0"} | |
else{printf"1"}}'|\ | |
sed "1d">i | |
cat i|sed "y/01/□■/";echo;}; | |
:https://gist.github.com/eggplants/2d2a6735658145e4db67d48608a9da08 | |
h1=($(grep あ avail_sg_fc_textimg.txt|sed "s@^.*fonts/@@g"|xargs)) | |
for s1 in ${h1[@]};do | |
text $s1>>u | |
done | |
cat u|textimg -asl20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text(){ | |
echo あ|textimg -f /usr/share/fonts/$1 -o a.png | |
convert a.png i.txt | |
cat i.txt|tr , " "|\ | |
awk '{ | |
if($1==0){print ""} | |
if($4==0){printf"0"} | |
else{printf"1"}}'|\ | |
sed "1d">i | |
cat i|sed "y/01/□■/";echo;}; | |
h1=($(echo " | |
truetype/nanum/NanumSquareRoundB.ttf | |
opentype/ipafont-mincho/ipam.ttf | |
truetype/nanum/NanumSquareRoundR.ttf | |
truetype/nanum/NanumSquareB.ttf | |
truetype/nanum/NanumBarunGothic.ttf | |
truetype/vlgothic/VL-PGothic-Regular.ttf | |
truetype/nanum/NanumGothic.ttf | |
opentype/ipafont-gothic/ipagp.ttf | |
truetype/droid/DroidSansFallbackFull.ttf | |
truetype/nanum/NanumBarunGothicBold.ttf | |
opentype/ipafont-mincho/ipamp.ttf | |
opentype/ipafont-gothic/ipag.ttf | |
truetype/fonts-japanese-mincho.ttf | |
truetype/vlgothic/VL-Gothic-Regular.ttf | |
truetype/nanum/NanumGothicBold.ttf | |
truetype/fonts-japanese-gothic.ttf | |
truetype/nanum/NanumSquareR.ttf | |
truetype/nanum/NanumMyeongjo.ttf | |
truetype/nanum/NanumMyeongjoBold.ttf | |
"|xargs)) | |
for s1 in ${h1[@]};do | |
text $s1>>u | |
done | |
cat u|textimg -asl20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment