View Single Post
Old 08-11-2019, 08:30 AM   #148
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
fbink reading from stdin can lead to some unexpected results

Code:
[FBInk] Codepoint U+5348 is not covered by this font!
[FBInk] Codepoint U+524D is not covered by this font!
Next line should start @ row 240
[FBInk] Codepoint U+7B54 is not covered by this font!
Next line should start @ row 241
Next line should start @ row 242
Next line should start @ row 243
[FBInk] Codepoint U+30B3 is not covered by this font!
[FBInk] Codepoint U+30C3 is not covered by this font!
[FBInk] Codepoint U+30D7 is not covered by this font!
Next line should start @ row 244
like huh, what's going on

Code:
while read line
do
    # do something with line
    fbink "$line" # works with fancy options too
    fbink --clear # reads all other lines and prints them by itself (or not, if not ASCII)
done < somefile.txt
now I end up `< /dev/null` all fbink calls :-}

Last edited by frostschutz; 08-11-2019 at 08:34 AM.
frostschutz is offline   Reply With Quote