Use the [:space:] POSIX character class instead of [\r\n\t ]; it is more
legible, and it also accounts for formfeeds and vertical tabs too.
;;
(define (glyph-element-regexp name)
(make-regexp (string-append "<glyph"
- "(([\r\n\t ]+[-a-z]+=\"[^\"]*\")+)?"
- "[\r\n\t ]+glyph-name=\"("
+ "(([[:space:]]+[-a-z]+=\"[^\"]*\")+)?"
+ "[[:space:]]+glyph-name=\"("
name
")\""
- "(([\r\n\t ]+[-a-z]+=\"[^\"]*\")+)?"
- "([\r\n\t ]+)?"
+ "(([[:space:]]+[-a-z]+=\"[^\"]*\")+)?"
+ "([[:space:]]+)?"
"/>")))
(define (extract-glyph all-glyphs name size . rest)