Project

General

Profile

« Previous | Next » 

Revision 7491

mappings/Makefile: VegCore.vocab.csv: Use the term's type label instead of its header level to determine if it's a synonym or alternative. This allows header levels to be chosen for presentational reasons rather than being constrained by being parsable.

View differences:

mappings/Makefile
27 27
	php -r 'fpassthru(fopen("https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore", "r"));' >$@
28 28

  
29 29
$(vocab): VegCore.htm
30
	(echo VegCore; $(sed) -n 's/^<h[24][^>]*>(<img [^>]*> *)?<a href="#[^>]*>(([a-z]|[A-Z]{2})[^<]*)<\/a>.*<a href="#[^"-]+".*$$/\2/p'\
30
	(echo VegCore; $(sed) -n 's/^<h[2-4][^>]*>(<img [^>]*title="[^"S][^"]*:"[^>]*> *)?<a href="#[^>]*>(([a-z]|[A-Z]{2})[^<]*)<\/a>.*<a href="#[^"-]+".*$$/\2/p'\
31 31
|sort -u) <$< >$@
32 32

  
33 33
$(thesaurus): VegCore.htm

Also available in: Unified diff