[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] GNUmed 1.4.x … Parsing temp lates for placeholders lackin
From: |
Busser, Jim |
Subject: |
[Gnumed-devel] GNUmed 1.4.x … Parsing temp lates for placeholders lacking double internal delimitin g :: :: |
Date: |
Thu, 28 Nov 2013 09:39:04 +0000 |
As previously warned (and which just bit me), GNUmed 1.4x now requires each
placeholder to contain two sets of double-colon delimiters
:: ::
inside $< foo >$ whether
foo ::::
or else
field1 :: field2 :: (optional field3)
and so, on the possibility that the following (however imperfect) could be
helpful to anyone who gets similarly bit, you can export your template from
GNUmed to a file system directory as
filename
and then pipe its lines through
cat filename | grep "\$<\+.\+>\$\+" | grep -v
"\$<\+.\+::\{1\}.*::\{1\}.*>\$\+"
which should output only those lines which contain $< >$ and which fail to
contain the required double instance of
:: ::
Example:
==========
macbook:~ djb$ cat myfile.tex | grep "\$<\+.\+>\$\+" | grep -v
"\$<\+.\+::\{1\}.*::\{1\}.*>\$\+"
born $<date_of_birth::%d %b %Y>$\\
MRN \hspace{2 mm} $<external_id::MRN Medical Record Number//BC.CA_VCHA>$
macbook:~ djb$
==========
-- Jim
- [Gnumed-devel] GNUmed 1.4.x … Parsing temp lates for placeholders lacking double internal delimitin g :: ::,
Busser, Jim <=