sil-dictionary-lexical-services / SubentryPromotion

A set of programs to promote subentries to lexical entries
GNU General Public License v3.0
0 stars 1 forks source link

se2lx.pl should report how many subentries have been promoted #12

Closed WesPeacock closed 3 years ago

WesPeacock commented 4 years ago

Had thought of doing a grep -c in the wrapper like this: grep -c $(perl -E "use 5.020;use Config::Tiny;my \$config= Config::Tiny->read(\"Sample-lc.ini\",'crlf'); say \"\$config->{se2lx_$sfm}->{SpecialTag}\"; ") BearBullMole-complex-promo.db

But, the special tags for seT and seseT are the same, so it won't be completely accurate

Probably this would be good enough: grep '\\spec' <$promodbname|cut -c6-99 |sort|uniq -c

$ grep '\spec' <$promodbname|cut -c6-99 |sort|uniq -c 11 COMPOUND 3 DERIVATIVE 1 IDIOM 4 _PHRASALVERB 1 SAYING

WesPeacock commented 4 years ago

Apropos of not much, note the previous comment converted the grep output underscores to formatting, c.f.

11 _COMPOUND_

WesPeacock commented 3 years ago

Fixed in commit 62d4d84 - Improve the "I'm done" message in runse2lx.sh