XraySpectroscopy/Data-Format-Working-Group — Issue #10: Formula stoichiometry will require a specification of syntax
Author: bruceravel
Created: 2012-01-18 18:50:52+00:00
State: open
Labels: Sample namespace

In my software, I have these rules:

* Elements must be first letter capitalized
* Amounts can be expressed as integers or simple floats (i.e. something like /\d*\.\d+/)
* Formula units must be separated by round or square brackets and the brackets must match
* Formula amounts can be specified immediately following the closing bracket
* Underscores and spaces are ignored, as is markup associated with TeX or Inspec.