Hi,

 

Trying to produce a multilingual legend that shows two (or more) languages.

 

I thought I could simply use text substitution to achieve this in my thconfig file.

 

Source cave.th

text en "area sand"      "sand<br>darat"

text en "area water"     "water<br>danum"

export map …

 

This works great except the formatting of the legend is borked.  As you can see the text is vertically aligned with the middle of the text against the top of the legend box.

 

th_legend.tex looks like this

\line{%

  \legendsymbolbox{\THLaaab}{\thfb\char119 \char97 \char108 \char108 \mainfont{}}\hskip10pt

  \legendsymbolbox{\THLaaaj}{\thfb\char99 \char104 \char105 \char109 \char110 \char101 \char121 \mainfont{}}\hskip10pt

  \legendsymbolbox{\THLaabh}{\vbox{\halign{#\hfil\cr\cr \thfb\char115 \char97 \char110 \char100 \cr\thfb \char100 \char97 \char114 \char97 \char116 \cr}}\mainfont{}}\hskip10pt

  \legendsymbolbox{\THLaacf}{\thfb\char112 \char111 \char105 \char110 \char116 \ \char115 \char116 \char97 \char108 \char97 \char99 \char116 \char105 \char116 \char101 \char115 \mainfont{}}\hskip10pt

\hss}

 

The legend boxes get drawn using metapost and the labels with TEX.  Although I can modify the metapost I can’t see the template for the TEX.

 

Any ideas where I could modify the alignment?

 

Alternatively is there a way of specifying the legend language mid creation so I could have two legends, one for each language?

 

Regards,

 

Henry Bennett

 

Dell Corporation Limited is authorised and regulated in the UK by the Financial Conduct Authority for consumer credit brokerage.

Registered in England and Wales. Company Registration Number: 2081369

Registered address: Dell House, The Boulevard, Cain Road, Bracknell,  Berkshire, RG12 1LF, UK.

Company details for other Dell UK entities can be found on  www.dell.co.uk.