~jtv/corpusfiltergraph/cross-python

« back to all changes in this revision

Viewing changes to trunk/lib/corpusfg/graphs/sa-champollion/zh_cn/cn-tk-number-ascii

  • Committer: tahoar
  • Date: 2012-05-02 15:46:23 UTC
  • Revision ID: svn-v4:bc069b21-dff4-4e29-a776-06a4e04bad4e::266
new layout. need to update code to use the new layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl -p
 
2
#
 
3
# This script put space around ASCII numbers and letters
 
4
#
 
5
$| = 1; # disable Perl output buffering
 
6
s/\d+(\,\d+)*(\.\d+)?/ $& /g;
 
7
s/[a-zA-Z]+/sprintf " %s ", lc $& /eg;
 
8
s/[\x21-\x2B\x2D\x2F]|[\x3A-\x40]|[\x5B-\x60]|[\x7B-\x7E]/ $& /g;