<div id="compose" contenteditable="true" style="padding-left: 16px; padding-right: 16px; padding-bottom: 8px;">Hi Jonathan,</div><div id="compose" contenteditable="true" style="padding-left: 16px; padding-right: 16px; padding-bottom: 8px;">I suppose not everyone have a chance to build and try this yet. By any chance you can provide a PDF test case demonstrating the feature? Then perhaps more people can comment.</div><div id="compose" contenteditable="true" style="padding-left: 16px; padding-right: 16px; padding-bottom: 8px;">- Jiang</div><div id="compose" contenteditable="true" style="padding-left: 16px; padding-right: 16px; padding-bottom: 8px;"><br></div>
    <div class="gmail_quote">_____________________________<br>From: Jonathan Kew <<a dir="ltr" href="mailto:jfkthame@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">jfkthame@gmail.com</a>><br>Sent: 星期四, 二月 18, 2016 7:00 下午<br>Subject: [XeTeX] New feature planned for xetex<br>To: Unicode-based TeX for Mac OS X and other platforms <<a dir="ltr" href="mailto:xetex@tug.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">xetex@tug.org</a>><br><br><br>This is a pretty specialized feature, likely to be interest only to a <br>small minority of users. But for those it concerns, here's something <br>that is "coming soon to a XeTeX near you".......<br><br><br>I've recently implemented a new feature, controlled by the integer <br>parameter \XeTeXinterwordspaceshaping. This will be available in the <br>TL'16 release, if all goes well.<br><br>This feature is relevant only when using OpenType/Graphite/AAT fonts, <br>not legacy .tfm-based fonts.<br><br>When \XeTeXinterwordspaceshaping is greater than 0, XeTeX will attempt <br>to support fonts where the width of inter-word spaces may vary <br>contextually, depending on the preceding and following text. This is <br>needed by fonts such as SIL's Awami Nastaliq (in development) where <br>words are expected to kern together across spaces.<br><br>The default behavior of xetex is to measure each word in isolation, and <br>simply string together a sequence of such word and space (glue) nodes to <br>form the horizontal list that is then line-broken to form a paragraph. <br>Normally, when inter-word spaces do not depend on the adjacent words, <br>this works fine; but in Awami the width of inter-word spaces may vary <br>drastically, even becoming negative in some cases.<br><br>Setting \XeTeXinterwordspaceshaping=1 tells xetex to measure such spaces <br>"in context" and take account of the contextually-modified widths during <br>line breaking. This greatly improves the typeset result with such a <br>font. Each word is still shaped and rendered individually, but <br>line-breaking and word spacing respects the inter-word kerning.<br><br>A further complication occurs when not only the width of the space but <br>also the glyphs of the adjacent words themselves may be subject to <br>contextual changes. An example of this would be a font that has OpenType <br>ligature rules that apply to multiple-word sequences; e.g. a symbol font <br>that ligates the text "credit card" to render a credit-card icon. <br>Another example is the word-final swash forms in Hoefler Italic, which <br>are intended to be used at end-of-line but NOT before word spaces within <br>the line.<br><br>These cases are addressed with \XeTeXinterwordspaceshaping=2. With this <br>value, not only are inter-word spaces measured in context, but also each <br>run of text (words and intervening spaces) in a single font will be <br>re-shaped as a unit at \shipout time. This allows full shaping <br>(contextual swashes, ligatures, etc) to take effect across inter-word <br>spaces.<br><br>Currently, this feature is implemented only in the "contextual-space" <br>branch of the code at sourceforge; anyone interested in testing it will <br>need to check out and build the code from there. After some time, if no <br>major problems show up, I expect to merge it to the master branch, and <br>then to the TeXLive source tree.<br><br>Feedback welcome..........<br><br>JK<br><br><br><br>--------------------------------------------------<br>Subscriptions, Archive, and List information, etc.:<br>  <a dir="ltr" href="http://tug.org/mailman/listinfo/xetex" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="6">http://tug.org/mailman/listinfo/xetex</a><br><br><br></div>