Two AFDKO-related Tool Updates

I spent this evening in Gyeongju, Korea enhancing two AFDKO-related tools, extract-cids.pl and extract-gids.pl.

These tools are tx filters, and simply output the list of CIDs or GIDs in a font. I had been using another tool, mkrange.pl, to turn the list into ranges. One of the enhancements, which is the addition of an “-r” option, makes the mkrange.pl tool no longer necessary. In other words, the following two command lines have the same result:

% extract-cids.pl -r <font>
% extract-cids.pl <font> | mkrange.pl

The extract-cids.pl tool was additionally enhanced with an “-s” option, which outputs the ranges on a single line using a comma separator. This makes the output very convenient in terms of repurposing it, such as copying it, then pasting it into a new command line as the argument of the “-g” option that is supported by many AFDKO tools. Consider the following two command lines and their output:

% extract-cids.pl -r cidfont.ps
/0-/8358
/8720-/9081
/9084-/9353

% extract-cids.pl -r -s cidfont.ps
/0-/8358,/8720-/9081,/9084-/9353

Enjoy!

Comments are closed.