[greenstone-users] highlighting messes up macros

From jens wille
DateFri, 30 Sep 2005 15:44:27 +0200
Subject [greenstone-users] highlighting messes up macros
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


<<attachment>>
Type: text/plain
Filename: library1.diff

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. €lten, wohl 17. Jh."></a><div class="legend">5. Ehem. St. €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. €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. €lten_comma_ wohl 17. Jh.)


<<attachment>>
Type: text/plain
Filename: library2.diff

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)