<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi David,<div><br><div><div>On 07/05/2015, at 9:26 AM, David Carlisle wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><blockquote type="cite">The character itself, as bytes that is, is not wrong and users should be able to create these.<br></blockquote><blockquote type="cite">But preferably through macros that ensure that they come correctly paired.<br></blockquote><br>placing two character tokens representing a surrogate pair should not<br>though magically turn itself<br>into a single character. </div></blockquote><div><br></div><div>Agreed.</div><div>You don't know whether you want a single character until </div><div>you know what kind of output is being generated.</div><div>That need not be known on input.</div><br><blockquote type="cite"><div>The UTF-8 or ^^^^ encoding should refer to<br>the unicode code point not<br>to the UTF-16 encoding,<br></div></blockquote><div><br></div><div>No disagreement to this.</div><br><blockquote type="cite"><div><br>In the current versions ^^^^d835^^^^dc00 is two characters in luatex<br>and one character in xetex<br>as the implementation detail that xetex's underlying storage is mostly<br>UTF-16 is exposed. </div></blockquote><div><br></div><div>This seems to be premature of XeTeX then.</div><div>It seems to be making an assumption on how those bytes </div><div>will ultimately be used.</div><br><blockquote type="cite"><div>If it is<br>not possible to prevent ^^^ or utf8 encoded surrogate pairs combining<br>then it is better to<br>prevent them being formed.</div></blockquote><div><br></div><div>Hmm. </div><div>What if you have an entirely different purpose in mind for those bytes?</div><div>You still need to be able to create them and do further processing with them.</div><div><br></div><div>Maybe there should be a primitive that sets a flag controlling what</div><div>happens to surrogates' bytes on input?</div><div>It may well be that XeTeX's current behaviour is best for putting</div><div>content into PDF pages; but not best in other situations. So a macro</div><div>programmer should have a means to change this, when needed.</div><br><blockquote type="cite"><div><br>this is no different to XML where & #xd835;& #xdc00; always refers to<br>two (invalid) characters not<br>to & #x1d400;<br></div></blockquote><div><br></div><div>Seems fine to me.</div><div>If application software wants/needs to combine them, it can do so.</div><br><blockquote type="cite"><div><br>David<br></div></blockquote><br></div><div><br></div><div>Cheers,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Ross</div><div><br></div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(159, 20, 26); font-family: 'Myriad Pro', Myriad, Corbel, 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(159, 20, 26); font-family: 'Myriad Pro', Myriad, Corbel, 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(159, 20, 26); font-family: 'Myriad Pro', Myriad, Corbel, 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; -webkit-text-decorations-in-effect: underline; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(159, 20, 26); font-family: 'Myriad Pro', Myriad, Corbel, 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; -webkit-text-decorations-in-effect: underline; "><span class="Apple-style-span" style="border-collapse: collapse; font-family: 'Myriad Pro', Myriad, Corbel, 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><p style="font-size: 14px; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 10px; margin-top: 0px; text-align: left; "><span style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 15px; "><strong>Ross Moore</strong></span></p><p style="font-size: 14px; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 5px; text-align: left; "><span style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 15px; ">Senior Lecturer</span></p><p style="font-size: 14px; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 5px; text-align: left; "><span style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 15px; "><strong>Mathematics Department<span style="color: rgb(221, 25, 17); ">  |  </span></strong> Level 2, E7A <br>Macquarie University, NSW 2109, Australia</span></p><p style="font-size: 14px; line-height: 15px; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 5px; text-align: left; "><span style="font-family: arial, helvetica, sans-serif; font-size: 12px; "><strong>T:</strong> +61 2 9850 8955<span style="font-family: arial, helvetica, sans-serif; font-size: 12px; "><strong><span style="color: rgb(221, 25, 17); ">   |  </span></strong></span><strong>F:</strong> +61 2 9850 8114<br><strong>M:</strong> +61 407 288 255<span style="font-family: arial, helvetica, sans-serif; font-size: 12px; "><strong><span style="color: rgb(221, 25, 17); ">  |  </span></strong></span><span style="color: rgb(0, 0, 0); "><span style="text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 0, 0); "><a title="Macquarie University" href="http://mq.edu.au/" target="_blank" style="text-decoration: none; color: rgb(159, 20, 26); outline-style: none; outline-width: initial; outline-color: initial; ">http://www.maths.mq.edu.au</a>/</span></span></span></p><p style="font-size: 14px; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 10px; "><a href="http://mq.edu.au/" style="text-decoration: underline; color: rgb(159, 20, 26); outline-style: none; outline-width: initial; outline-color: initial; "><span style="text-decoration: underline; color: rgb(159, 20, 26); outline-style: none; outline-width: initial; outline-color: initial; "><img height="58" width="260" id="299d05aa-b96e-4d4c-88c0-a94026d0467b" apple-width="yes" apple-height="yes" src="cid:E8A16F9D-1F7D-4892-9BAC-4D9031DA295A@mqauth.uni.mq.edu.au"></span></a></p><p style="font-size: 14px; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 10px; text-align: left; "><a href="http://mq.edu.au/" style="text-decoration: underline; color: rgb(159, 20, 26); outline-style: none; outline-width: initial; outline-color: initial; "><span style="font-family: arial, helvetica, sans-serif; font-size: 9px; color: rgb(119, 119, 119); line-height: 12px; ">CRICOS Provider Number 00002J. Think before you print. Please consider the environment before printing this email.</span></a></p><p style="font-size: 14px; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 0px; text-align: left; "><a href="http://mq.edu.au/" style="text-decoration: underline; color: rgb(159, 20, 26); outline-style: none; outline-width: initial; outline-color: initial; "><span style="font-family: arial, helvetica, sans-serif; font-size: 9px; color: rgb(119, 119, 119); line-height: 12px; ">This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of Macquarie University.</span></a></p></span></span>
</span></span></span></span></span></span></span></div>
<br></div></body></html>