Changeset 4 in recipecards for trunk/recipe2xml
- Timestamp:
- 09/11/13 19:49:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/recipe2xml
r2 r4 2 2 use strict; 3 3 4 #TODO: look at this existing XML format: http://www.happy-monkey.net/recipebook/doc/author-tutorial.html 5 4 6 $/ = ''; 5 7 6 print "<recipe>\n";8 print qq{<recipe xmlns="http://xmlns.grim.ath.cx/recipe">\n}; 7 9 while (<>) { 8 10 chomp; … … 37 39 s/(\d)x/$1⨯/g; 38 40 # temperature 39 s/(\d)\s*deg .(\s*F)?/$1℉/g;41 s/(\d)\s*deg(\.|rees)(\s*F)?/$1℉/g; 40 42 # fractions 41 43 s{1/3}{⅓}g;
Note: See TracChangeset
for help on using the changeset viewer.