[NTG-context] copy&paste from pdf bug (smallcaps, text figures)

Philipp Gesang Philipp.Gesang at alumni.uni-heidelberg.de
Fri Aug 2 00:12:37 CEST 2013


···<date: 2013-08-02, Friday>···<from: Marco Patzer>···

> On 2013–08–01 Philipp Gesang wrote:
> 
> > ···<date: 2013-08-01, Thursday>···<from: Otared Kavian>···
> > 
> > > I tested your example: no problem here on Mac OS X 10.8.4, with
> > > either TeXShop, Adobe Redaer or Preview, with the latest beta
> > > (ConTeXt  ver: 2013.08.01 01:31 MKIV beta  fmt: 2013.8.1  int:
> > > english/english).
> > 
> > x64 linux here, but it’s the same with the windows version in
> > wine32. I get the bad output with okular (poppler), acroread, and
> > mupdf, but strangely not with zathura (mupdf-based).
> 
> Just to add to the list:
> 
> x64 linux here, and it works with the following poppler based
> viewers (zathura-poppler, xpdf, evince)

For those who want to test the git version, the commits are:

    last good: a61813ccdd4b7bcc81932317e1360fda6c79962d
    first bad: 6b2f7c5fd7a3e465f4e2662b1e5bd2c9d5cce8f8

Don’t forget to delete the cache.

I suspect I found the troublesome changes. The problem vanishes
if I revert this modification to font-map.lua:

    -local separator   = S("_.")
    -local other       = C((1 - separator)^1)
    -local ligsplitter = Ct(other * (separator * other)^0)
    +local ligseparator = P("_")
    +local varseparator = P(".")
    +local namesplitter = Ct(C((1 - ligseparator - varseparator)^1) * (ligseparator * C((1 - ligseparator - varseparator)^1))^0)

and then further down:

    -                local split = lpegmatch(ligsplitter,name)
    <...>
    +                local split = lpegmatch(namesplitter,name)

For convenience I repeat the link to the changeset:

    http://repo.or.cz/w/context.git/commitdiff/6b2f7c5fd7a3e465f4e2662b1e5bd2c9d5cce8f8

Best,
Philipp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130802/65621586/attachment.pgp>


More information about the ntg-context mailing list