* faulty to unicode mapping of chars encoded with surrogate pairs? @ 2018-08-08 10:13 Ulrike Fischer 2018-08-08 12:15 ` Hans Hagen 0 siblings, 1 reply; 3+ messages in thread From: Ulrike Fischer @ 2018-08-08 10:13 UTC (permalink / raw) To: ntg-context when I compile the following with context \pdfvariable compresslevel=0 \starttext $f$ \stoptext I get in the pdf 1 beginbfchar <0515> <D875DC53> endbfchar D875DC53 is according to http://www.russellcottrell.com/greek/utilities/surrogatepaircalculator.htm the codepoint 2D453 and this is not a valid unicode point. As a result copy& paste doesn't work correctly. A similar example with xelatex writes D835DC53 (remark the 3 instead of the 7) instead in the pdf which gives the correct code point 1D453 and copies fine. lualatex gives the faulty value too. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: faulty to unicode mapping of chars encoded with surrogate pairs? 2018-08-08 10:13 faulty to unicode mapping of chars encoded with surrogate pairs? Ulrike Fischer @ 2018-08-08 12:15 ` Hans Hagen 2018-08-08 12:49 ` Ulrike Fischer 0 siblings, 1 reply; 3+ messages in thread From: Hans Hagen @ 2018-08-08 12:15 UTC (permalink / raw) To: news3, mailing list for ConTeXt users On 8/8/2018 12:13 PM, Ulrike Fischer wrote: > when I compile the following with context > > \pdfvariable compresslevel=0 > \starttext > $f$ > \stoptext > > I get in the pdf > > 1 beginbfchar > <0515> <D875DC53> > endbfchar > > D875DC53 is according to > http://www.russellcottrell.com/greek/utilities/surrogatepaircalculator.htm > the codepoint 2D453 and this is not a valid unicode point. As a > result copy& paste doesn't work correctly. > > A similar example with xelatex writes D835DC53 (remark the 3 > instead of the 7) instead in the pdf which gives the correct code > point 1D453 and copies fine. > > lualatex gives the faulty value too. line 228 in font-map should be: k = k - 0x10000 (not v = ...) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: faulty to unicode mapping of chars encoded with surrogate pairs? 2018-08-08 12:15 ` Hans Hagen @ 2018-08-08 12:49 ` Ulrike Fischer 0 siblings, 0 replies; 3+ messages in thread From: Ulrike Fischer @ 2018-08-08 12:49 UTC (permalink / raw) To: ntg-context Am Wed, 8 Aug 2018 14:15:41 +0200 schrieb Hans Hagen: > line 228 in font-map should be: > > k = k - 0x10000 > > (not v = ...) Thanks, that corrects the problem. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-08 12:49 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-08-08 10:13 faulty to unicode mapping of chars encoded with surrogate pairs? Ulrike Fischer 2018-08-08 12:15 ` Hans Hagen 2018-08-08 12:49 ` Ulrike Fischer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).