~ubuntu-branches/ubuntu/wily/gperiodic/wily

« back to all changes in this revision

Viewing changes to src/temp.pl

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-05-13 20:46:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040513204609-2ymqncvzfrqx8a7i
Tags: 2.0.7-4
Removed the DEPRECATED flags to build fine with GTK+2.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
while(<>) {
2
 
  # {N_("Hydrogen"), "H", "1", "1.00794", "14.01", "20.28", "2.20", 1, 1, 0x7FFFFFFF, 0xAAAA, 0xFFFF, 0xAAAA},
3
 
        #            name          symb      num       melt       boil
4
 
  # s/^(\s*\{\s*N_\("[^"]+"\),\s+"[^"]+",\s+"\d+",\s+)"(\d+)",\s+"(\d+)",(.*)/$1"$2k", "$3k", /
5
 
 
6
 
        chomp;
7
 
  if( 
8
 
                #            name         symbol         number                  melting                           boiling
9
 
          /^(\s*\{N_\("[^"]+"\),\s+"[^"]+\",\s+"\[?(?:\d+|n\/a)\]?",\s+)"(\[?(?:(\d*\.?\d*)|(n\/a))\]?)",\s+"(\[?(?:(\d*\.?\d*)|(n\/a))\]?)"(.+)/i
10
 
        ) {
11
 
          print $1, '"', $2, 'k", "', $3, 'k"', $4, ", ", $5, "\n";
12
 
        }
13
 
 
14
 
}