Re: [greenstone-users] highlighting messes up macros

From jens wille
DateTue, 04 Oct 2005 01:16:56 +0200
Subject Re: [greenstone-users] highlighting messes up macros
In-Reply-To (4341AE47-1000705-cs-waikato-ac-nz)
hi katherine,

thanks for your reply!

Katherine Don wrote, on 04.10.2005 00:18:
> If you could give a bit more info, that would be great. e.g where
> the macro is defined (extra.dm or standard macro file?), how its
> called (from another macro, inside metadata displayed by which
> format statment...)
oh, sure - i'm sorry...

...here we go: yes, i got a custom macro, defined in a collection
specific extra.dm [1]. and metadata values that use this macro [2],
and are then displayed by the "format DocumentText" statement [3].

[1] <http://linux2.fbi.fh-koeln.de/gsdl/collect/rdk07/macros/extra.dm>
[2] <http://linux2.fbi.fh-koeln.de/gsdl/collect/rdk07/import/>
("enriched" html's and metadata.xml)
[3] <http://linux2.fbi.fh-koeln.de/gsdl/collect/rdk07/etc/collect.cfg>

the problem now seems to be that something that has to do with
highlighting "disturbs" the first macro argument _before_ the macro
is resolved so that it appears to displayclass::expandstring (?) as
if it had only one (corrupted) argument.

meanwhile i suspect it to happen only (not necessarily always,
though frequently) if the first (or any?) argument value contains a
character like '-' or '.' (word boundary?) - as soon as i turn off
highlighting everything's fine again.

e.g.:

f.screen_h =
_figscreenhtml_(/gsdl/collect/gsarch/images/figures/[f.volume]/07-0001-1.jpg,/gsdl/collect/gsarch/images/figures/[f.volume]/07-0001-1_cropped.jpg,/gsdl/collect/gsarch/images/figures/[f.volume]/07-0001-1_fig.jpg,07-0001-1)
(split apart after the first '-')

p.figure_h =
_fightmlpag_(/gsdl/collect/gsarch/images/figures/[parent(Top):l.volume]/07-0001-1.jpg,/gsdl/collect/gsarch/images/figures/[parent(Top):l.volume]/07-0001-1_pag.jpg,07-0001-1,1.
Hans Burgkmair_comma_ 1507_comma_ Augsburg.)
(ditto)

any ideas? (if more information is needed just let me know ;-)

tia
jens