<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Of late our good friends at Microsoft have taken to putting parentheses
in font names - "Arial (W1)" is an example that keeps coming up.<br>
Unfortunately these seems to break XEP 4.9<br>
<br>
Here's the font definition fragment from my xep.xml<br>
<br>
<pre><font-group xml:base=<a class="moz-txt-link-rfc2396E" href="file:/tmp/">"file:/tmp/"</a> label="Windows TrueType" embed="true" subset="true"></pre>
<pre> <font-family name="OCR-B (CBA)"></pre>
<pre> <font><font-data ttf="TT0646Z_.ttf"/></font></pre>
<pre> </font-family></pre>
<pre></font-group></pre>
<br>
My relevant xsl:fo fragment looks like this:<br>
<br>
<pre><fo:block id="Paragraph_2" background-color="transparent"
space-before="0pt" space-after="1.0E-4pt" line-height="120%"
color="black" margin-right="0pt" margin-left="0pt" font-size="12pt"
font-family="OCR-B (CBA), Symbol, serif" font-weight="normal"
text-align="left" text-indent="0pt" white-space-collapse="false">
BTW OCR-B (CBA) rocks </fo:block></pre>
<br>
XEP Warnings are:<br>
<br>
<pre>XEP Warning: Unexpected token in font-family: FUNCTOR</pre>
<pre>XEP Warning: Unexpected token in font-family: RIGHT PARENTHESIS</pre>
<br>
and I get no PDF output.<br>
<br>
I've also tried escaping the parentheses:<br>
<pre><fo:block id="Paragraph_2" background-color="transparent"
space-before="0pt" space-after="1.0E-4pt" line-height="120%"
color="black" margin-right="0pt" margin-left="0pt" font-size="12pt"
font-family="OCR-B \(CBA\), Symbol, serif" font-weight="normal"
text-align="left" text-indent="0pt" white-space-collapse="false">BTW
OCR-B (CBA) rocks </fo:block></pre>
<br>
to no avail.<br>
<br>
Renaming the font to remove the parentheses resolves the issue.<br>
Is this a bug? - Any help would be appreciated.<br>
<br>
Regards,<br>
Justin.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<title>Exari Signature</title>
<basefont size="2" face="Arial, Helvetica, sans-serif" color="#666666">
<div>
<p style="font-family: sans-serif;" align="left"> <strong>Justin Lipton</strong><br>
<a href="mailto:justin.lipton@exari.com">justin.lipton@exari.com</a><br>
Level 7, 10-16 Queen Street, Melbourne 3000 Australia <br>
Tel +61 3 9621 2775 | Fax +61 3 9621 2776 <br>
</p>
</div>
<div>
<p style="font-family: sans-serif;" align="left"> <strong>Exari Systems</strong><br>
London | Melbourne | San Francisco <br>
<a href="http://www.exari.com">www.exari.com</a></p>
<p style="font-family: sans-serif;" align="left"><strong>Really
Important Notice</strong><br>
<small>Actually, this is only important if this email was sent to you
by mistake or if someone sent it to you when they shouldn't have. If
you got it by mistake, please reply and tell us so we can re-send it to
the right person. If you got it from someone who should know better,
please tell them they're in big trouble. In either case, please don't
forward it on to anyone else. Or print it. Or talk about it. Otherwise
you'll be in big trouble too.</small><br>
<br>
<a href="http://www.exari.com/document-assembly.html"><img
alt="exari logo" src="cid:part1.03040904.07040302@exari.com"
align="bottom" border="0" height="24" width="72"></a><br>
</p>
</div>
</div>
</body>
</html>