<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Trebuchet MS",sans-serif;
color:#002060;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">Trying to produce a multilingual legend that shows two (or more) languages.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">I thought I could simply use text substitution to achieve this in my thconfig file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">Source cave.th<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">text en "area sand" "sand<br>darat"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">text en "area water" "water<br>danum"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">export map …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060;mso-fareast-language:EN-GB"><img width="181" height="278" id="Picture_x0020_1" src="cid:image003.png@01D12DD3.9A7B0D40"></span><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">th_legend.tex looks like this<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">\line{%<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"> \legendsymbolbox{\THLaaab}{\thfb\char119 \char97 \char108 \char108 \mainfont{}}\hskip10pt<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"> \legendsymbolbox{\THLaaaj}{\thfb\char99 \char104 \char105 \char109 \char110 \char101 \char121 \mainfont{}}\hskip10pt<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"> \legendsymbolbox{\THLaabh}{\vbox{\<span style="background:yellow;mso-highlight:yellow">halign{#\hfil\cr\cr \thfb\char115 \char97
\char110 \char100 \cr\thfb \char100 \char97 \char114 \char97 \char116 \cr</span>}}\mainfont{}}\hskip10pt<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"> \legendsymbolbox{\THLaacf}{\thfb\char112 \char111 \char105 \char110 \char116 \ \char115 \char116 \char97 \char108 \char97 \char99
\char116 \char105 \char116 \char101 \char115 \mainfont{}}\hskip10pt<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">\hss}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">Any ideas where I could modify the alignment?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060">Alternatively is there a way of specifying the legend language mid creation so I could have two legends, one for each language?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060;mso-fareast-language:EN-GB">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#002060;mso-fareast-language:EN-GB">Henry Bennett<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><font size=3><span style="font-family: Times New Roman;"><span style="mso-ansi-language: EN-GB" lang=EN-GB>Dell Corporation Limited </span>is authorised and regulated in the UK by the Financial Conduct Authority for consumer credit brokerage. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></font></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><font size=3><span style="font-family: Times New Roman;">Registered in <span style="mso-ansi-language: EN-GB" lang=EN-GB>England and Wales. Company Registration Number: 2081369<o:p></o:p></span></span></font></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><span style="mso-ansi-language: EN-GB" lang=EN-GB><font size=3><span style="font-family: Times New Roman;">Registered address: Dell House, The Boulevard, Cain Road, Bracknell, Berkshire, RG12 1LF, UK.<o:p></o:p></span></font></span></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><span style="mso-ansi-language: EN-GB" lang=EN-GB><span size=3 style="font-family: Times New Roman;">Company details for other Dell UK entities can be found on </span><A href="http://www.dell.co.uk/"><span style="COLOR: windowtext"><span size=3 style="font-family: Times New Roman;">www.dell.co.uk</span></span></A><font size=3><span style="font-family: Times New Roman;">.<o:p></o:p></span></font></span></P></body>
</html>