Re: [greenstone-users] highlighting messes up macros

From Katherine Don
DateTue, 04 Oct 2005 11:18:47 +1300
Subject Re: [greenstone-users] highlighting messes up macros
In-Reply-To (433D413B-3090402-gmx-net)
Hi jens

what exactly are you doing? you have a custom macro _fightmlpag_, and
you have metadata values that use that macro?
or are you using the macro from another macro?

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...)

Cheers,
Katherine

jens wille wrote:
> hi all!
>
> i got a really intricate problem with highlighting and custom
> macros: if highlighting is enabled it regularly messes up macros
> that take arguments.
>
> e.g., something like
> _macro_(arg-1,arg-2,arg-3)
>
> where
> _macro_ {<a href=_1_ title=_2_>_3_</a>}
>
> becomes
> <a href=arg- title=></a>1,arg-2,arg-3)
>
> please find attached two diff's of html source code which are cut
> down to the relevant passages (marked by '###').
>
> (said collection runs on version 2.60)
>
> i just seem to be unable to figure out what causes this mess - even
> if i set _(start|end)highlight_ to an empty string this happens.
>
> any help would be gratefully appreciated - i'm at a loss.
>
> cheers
> jens
>
>
> ------------------------------------------------------------------------
>
>
> hl=0:
> [http://linux2.fbi.fh-koeln.de/gsdl/cgi-bin/library?e=d-000-00---0rdk07--00-0-0--0prompt-10---4----dl0--0-1l--1-en-50---20-about-fenster--00031-001-0-0utfZz-8-00&a=d&c=rdk07&cl=&d=Dl37.3&hl=0]
>
> ### hl=0&h=dfd&q=07-1481-1"><img class="thumb" src="/gsdl/collect/rdk_demo/images/figures/07/07-1481-1_pag.jpg" alt="07-1481-1" title="07-1481-1: 5. Ehem. St. P□lten, wohl 17. Jh."></a><div class="legend">5. Ehem. St. P□lten, wohl 17. Jh.</div></div> ###
>
> hl=1:
> [http://linux2.fbi.fh-koeln.de/gsdl/cgi-bin/library?e=d-000-00---0rdk07--00-0-0--0prompt-10---4----dl0--0-1l--1-en-50---20-about-fenster--00031-001-0-0utfZz-8-00&a=d&c=rdk07&cl=&d=Dl37.3]
>
> ### hl=0&h=dfd&q="><img class="thumb" src="/gsdl/collect/rdk_demo/images/figures/07/07-" alt="" title=": "></a><div class="legend"></div>1481-1_pag.jpg,07-1481-1,5. Ehem. St. P□lten, wohl 17. Jh.)</div> ###
>
> ----
>
> macro definition:
> _fightmlpag_{<a href="_httpqueryfid__3_"><img class="thumb" src="_2_" alt="_3_" title="_3_: _4_"></a><div class="legend">_4_</div>}
>
> metadata value:
> _fightmlpag_(/gsdl/collect/gsarch/images/figures/[parent(Top):l.volume]/07-1481-1.jpg,/gsdl/collect/gsarch/images/figures/[parent(Top):l.volume]/07-1481-1_pag.jpg,07-1481-1,5. Ehem. St. P□lten_comma_ wohl 17. Jh.)
>
>
> ------------------------------------------------------------------------
>
>
> hl=0:
> [http://linux2.fbi.fh-koeln.de/gsdl/cgi-bin/library?e=q-000-00---0rdk07--00-0-0--0prompt-10---4----dff--0-0l--1-en-50---20-about-fa%c3%9fdekoration--00031-001-0-0utfZz-8-00&a=d&c=rdk07&cl=&hl=0&d=Df156]
>
> ### src="/gsdl/collect/rdk07/images/figures/07/07-0527-1_fig.jpg" alt="07-0527-1"></a></td> ###
>
> hl=1:
> [http://linux2.fbi.fh-koeln.de/gsdl/cgi-bin/library?e=q-000-00---0rdk07--00-0-0--0prompt-10---4----dff--0-0l--1-en-50---20-about-fa%c3%9fdekoration--00031-001-0-0utfZz-8-00&a=d&c=rdk07&cl=&hl=1&d=Df156]
>
> ### src="/gsdl/collect/rdk07/images/figures/07/07-0527-1_fig." alt=""></a>jpg,07-0527-1)</td> ###
>
> ----
>
> macro definition:
> _figscreenhtml_{<a href="_2_" title="_viewcropped_"><img class="thumb" src="_3_" alt="_4_"></a>}
>
> metadata value:
> _figscreenhtml_(/gsdl/collect/gsarch/images/figures/[f.volume]/07-0527-1.jpg,/gsdl/collect/gsarch/images/figures/[f.volume]/07-0527-1_cropped.jpg,/gsdl/collect/gsarch/images/figures/[f.volume]/07-0527-1_fig.jpg,07-0527-1)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users