diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-10-01 19:00:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-10-01 19:00:00 +0200 |
commit | c54e16cd36f55642657ebe388715b6fd890d13ec (patch) | |
tree | d67661ff79193fb8555c1cbc8d533bc91e65fd85 /tex/context/base/meta-fnt.lua | |
parent | 56f25d8a5368c042d5c8ab92205007cb9d5c21b3 (diff) | |
download | context-c54e16cd36f55642657ebe388715b6fd890d13ec.tar.gz |
beta 2013.10.01 19:00
Diffstat (limited to 'tex/context/base/meta-fnt.lua')
-rw-r--r-- | tex/context/base/meta-fnt.lua | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/tex/context/base/meta-fnt.lua b/tex/context/base/meta-fnt.lua index 811690b69..0ebe8e0dc 100644 --- a/tex/context/base/meta-fnt.lua +++ b/tex/context/base/meta-fnt.lua @@ -28,20 +28,25 @@ metapost.fonts = metapost.fonts or { } local characters, descriptions = { }, { } local factor, code, slot, width, height, depth, total, variants = 100, { }, 0, 0, 0, 0, 0, 0, true --- A next version of mplib will provide the tfm font information which --- gives better glyph dimensions, plus additional kerning information. --- --- Somehow actualtext is not used for cut and paste ... in spite of what --- manuals say ... the usual compatibility mess I guess. +-- The next variant of ActualText is what Taco and I could come up with +-- eventually. As of September 2013 Acrobat copies okay, Summatra copies a +-- question mark, pdftotext injects an extra space and Okular adds a +-- newline plus space. + +-- return formatters["BT /Span << /ActualText (CONTEXT) >> BDC [<feff>] TJ % t EMC ET"](code) local function topdf(n,code) if n < 0x10000 then - return formatters["/Span << /ActualText <feff%04x> >> BDC % t EMC"](n,code) + return formatters["BT /Span << /ActualText <feff%04x> >> BDC [<feff>] TJ % t EMC ET"](n,code) else - return formatters["/Span << /ActualText <feff%04x%04x> >> BDC % t EMC"](n/1024+0xD800,n%1024+0xDC00,code) + return formatters["BT /Span << /ActualText <feff%04x%04x> >> BDC [<feff>] TJ % t EMC ET"](n/1024+0xD800,n%1024+0xDC00,code) end end +-- local function topdf(n,code) +-- return formatters["/Span << /ActualText (CTX) >> BDC % t EMC"](code) +-- end + local flusher = { startfigure = function(chrnum,llx,lly,urx,ury) code = { } |