<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi all.
<div class=""><br class="">
</div>
<div class="">I think I’ve found a possible cause for this /ToUnicode  problem.</div>
<div class="">It’s with the way the  /CMapName  is constructed within the  CMap  resource itself,</div>
<div class="">at least when the font's name contains spaces.</div>
<div class=""><br class="">
</div>
<div class="">See the attached image, where the window on the left is from a PDF constructed by XeLaTeX,</div>
<div class="">while the one on the right comes from the PDF/UA Association, and is properly valid.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><img apple-inline="yes" id="DCFBB640-F90B-44CC-B183-B92705B69D3A" width="640" height="280" src="cid:26EE79DA-D1DD-4BDA-B30F-098631BE55E9@telstra.com.au" class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Because the space character is normally a delimiter, this is certainly invalid Postscript coding</div>
<div class="">to assign a value to  /CMapName .  So presumably it’s wrong in PDF too.</div>
<div class="">Surely the space needs to be encoded as #20 here?</div>
<div class="">The ‘.’ and ‘,’ are questionable. I think these are actually OK.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Changing the font to ‘Times’, the resulting PDF validates just fine.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Is it really a good idea to use the full path to the file, as the name here?</div>
<div class="">The PDF spec says it should be the name used in the file: viz.</div>
<div class="">
<div style="text-align: center;" class=""><font face="Arial" class=""><br class="">
</font></div>
<table cellspacing="0" cellpadding="0" style="border-collapse: collapse;" class="">
<tbody class="">
<tr class="">
<td valign="top" style="width: 83.0px; padding: 0.0px 5.0px 0.0px 5.0px" class="">
<p style="margin: 3px 0px; text-align: justify; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Arial;" class="">
<b class="">CMapName</b></p>
</td>
<td valign="top" style="width: 60.0px; padding: 0.0px 5.0px 0.0px 5.0px" class="">
<p style="margin: 3px 0px; text-align: justify; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Arial;" class="">
name</p>
</td>
<td valign="top" style="width: 291.0px; padding: 0.0px 5.0px 0.0px 5.0px" class="">
<p style="margin: 3px 0px; text-align: justify; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Arial;" class="">
<i class="">(Required) </i>The name of the CMap. It shall be the same as the value of
<b class="">CMapName </b>in the CMap file. </p>
</td>
</tr>
</tbody>
</table>
<br class="">
</div>
<div class=""><br class="">
</div>
</div>
<div class=""><br class="">
</div>
<div class="">BTW, there was also an issue with Ghostscript, concerning the way  CMapName  is constructed.</div>
<div class="">see  <a href="https://bugs.ghostscript.com/show_bug.cgi?id=690114" class="">https://bugs.ghostscript.com/show_bug.cgi?id=690114</a>  .</div>
<div class="">There is was the  // at the start of the name that was questioned.</div>
<div class=""> dvipdfmx  seems to be encoding the directory delimiter as a `-` now.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 Aug 2018, at 8:10 am, Ross Moore <<a href="mailto:ross.moore@mq.edu.au" class="">ross.moore@mq.edu.au</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">There seems to be a subtle problem with the way subsetted Type0 fonts are built</div>
<div class="">by xdvipdfmx with XeLaTeX jobs, for the purposes of finding the /ToUnicode  resource.</div>
</div>
</div>
</blockquote>
<br class="">
<br class="">
<blockquote type="cite" class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">So I cannot see why the /ToUnicode resource is not being found.</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>This error in naming is almost certainly the reason.</div>
<br class="">
</div>
<div><br class="">
</div>
<div>Cheers,</div>
<div><br class="">
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Ross</div>
</div>
<br class="">
<div class="">
<div style="font-family: Arial, sans-serif; orphans: 2; widows: 2;" class=""><span class="Apple-style-span" style="font-size: 9px;"><b class=""><span style="font-size: 9pt;" class=""><br class="Apple-interchange-newline">
Dr Ross Moore</span></b></span></div>
<div style="orphans: 2; widows: 2;" class="">
<p style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin-bottom: 3.75pt;" class="">
<font color="#000000" class=""><b style="color: rgb(119, 119, 119); font-family: Arial, sans-serif; font-size: 9pt; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Mathematics
 Dept </b><b style="color: rgb(119, 119, 119); font-family: Arial, sans-serif; font-size: 9pt; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">|</b><font color="#777777" face="Arial, sans-serif" class=""><span style="font-size: 9pt;" class=""> 12
 Wally</span></font><font face="Arial, sans-serif" class="">’</font><font color="#777777" face="Arial, sans-serif" class=""><span style="font-size: 9pt;" class="">s Walk, 734</span></font><br class="">
<font color="#777777" face="Arial, sans-serif" class=""><span style="font-size: 9pt;" class="">Macquarie University, NSW 2109, Australia</span></font><font color="#777777" size="3" class=""><span style="font-family: "Times New Roman", serif; font-size: 12pt;" class=""></span></font></font></p>
<p style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Arial, sans-serif; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;" class="">
<b class=""><span style="font-size: 9pt;" class=""><font color="#000000" class="">T:</font></span></b><span style="font-size: 9pt;" class=""><font color="#000000" class=""> +61 2 9850 <b class="">8955  |  F:</b> </font><a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class=""><font color="#000000" class="">+61
 2 9850 8114</font></a><br class="">
<font color="#000000" class=""><b class="">M:</b><a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255</a><b class="">  |  </b>E: </font><a href="mailto:rick.minter@mq.edu.au" target="_blank" class=""><font color="#000000" class="">ross.moore@mq.edu.au</font><font color="#1155cc" class=""><span style="color: black;" class=""></span></font></a><font color="#1155cc" class=""><span style="color: black;" class=""></span></font><span style="color: black;" class=""></span><br class="">
</span></p>
<p style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Arial, sans-serif; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;" class="">
<span style="font-size: 9pt;" class=""><span style="color: black;" class=""><a title="Macquarie University" href="http://mq.edu.au/" target="_blank" class="">http://www.maths.mq.edu.au</a></span></span></p>
<p style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Arial, sans-serif; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;" class="">
<span style="font-size: 12px; line-height: normal;"><a href="http://mq.edu.au/" target="_blank" style="font-size: 12px; line-height: normal;" class=""><span><br class="Apple-interchange-newline" style="caret-color: rgb(0, 105, 217); color: rgb(0, 105, 217); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
<span style="caret-color: rgb(0, 105, 217); color: rgb(0, 105, 217); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span><span><img apple-inline="yes" id="A9287F5A-0D97-4C09-868C-E30B64952840" src="cid:image001.png@01D030BE.D37A46F0" class=""></span></span></span></span></a></span></p>
<p style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; font-family: Arial, sans-serif; color: rgb(119, 119, 119); font-size: 7pt;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><span style="color: rgb(119, 119, 119); font-size: 7pt;" class=""><br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
CRICOS Provider Number 00002J. Think before you print. <br class="">
Please consider the environment before printing this email.</span><span style="font-family: "Times New Roman", serif; font-size: 12pt;" class=""></span></a></p>
<p style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; font-family: Arial, sans-serif; color: rgb(119, 119, 119); font-size: 7pt;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><span style="color: rgb(119, 119, 119); font-size: 7pt;" class="">This message is intended for the addressee named and may <br class="">
contain confidential information. If you are not the intended <br class="">
recipient, please delete it and notify the sender. Views expressed <br class="">
in this message are those of the individual sender, and are not <br class="">
necessarily the views of Macquarie University.</span></a></p>
</div>
</div>
<br class="">
</body>
</html>