From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89397 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Getting copy-pastable ligatures? Date: Fri, 5 Dec 2014 10:13:12 +0100 Message-ID: References: <89A34EB7-83BB-4961-8A7B-17B57784D4FE@rna.nl> <547B9C6F.8000800@wxs.nl> <0FAF06B9-84CC-465E-8714-CEA77DDCF45E@rna.nl> <54807C26.2030604@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1796805369==" X-Trace: ger.gmane.org 1417770848 11903 80.91.229.3 (5 Dec 2014 09:14:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 09:14:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 05 10:14:04 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xwoxd-0007qT-S1 for gctc-ntg-context-518@m.gmane.org; Fri, 05 Dec 2014 10:14:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB36A10223 for ; Fri, 5 Dec 2014 10:14:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K7R-bYRIUL8X for ; Fri, 5 Dec 2014 10:13:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1FC9210236 for ; Fri, 5 Dec 2014 10:13:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B8EC101EF for ; Fri, 5 Dec 2014 10:13:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sb3suGZiHvwg for ; Fri, 5 Dec 2014 10:13:20 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C95F3101EC for ; Fri, 5 Dec 2014 10:13:20 +0100 (CET) Original-Received: from mail.rna.nl (D57D7632.static.ziggozakelijk.nl [213.125.118.50]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sB59DDl8010905 for ; Fri, 5 Dec 2014 10:13:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id B945F136D91A for ; Fri, 5 Dec 2014 10:13:13 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZpdA2JsgFPL1 for ; Fri, 5 Dec 2014 10:13:12 +0100 (CET) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) by mail.rna.nl (Postfix) with ESMTPSA id CEF3A136D902 for ; Fri, 5 Dec 2014 10:13:12 +0100 (CET) In-Reply-To: <54807C26.2030604@wxs.nl> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.118.50; country=NL; region=North Brabant; city=Tilburg; latitude=51.5769; longitude=5.1063; http://maps.google.com/maps?q=51.5769,5.1063&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RNnJdeCa - f79ec053f26b - 20141205 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89397 Archived-At: --===============1796805369== Content-Type: multipart/alternative; boundary="Apple-Mail=_0F79CFC9-169A-4665-B9EB-16FECE098989" --Apple-Mail=_0F79CFC9-169A-4665-B9EB-16FECE098989 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 04 Dec 2014, at 16:22, Hans Hagen wrote: > On 12/4/2014 3:54 PM, Gerben Wierda wrote: >> On 30 Nov 2014, at 23:38, Hans Hagen wrote: >>=20 >>> On 11/30/2014 1:22 PM, Gerben Wierda wrote: >>>> I=92m using mkii. I=92d like ot be able to copy-paste words form = the >>>> resulting pdf. That works well, except for words that contain = ligatures >>>> (e.g. fl fi etc.) Is there a way I can tell (Con)TeXt that the = result >>>> must be copy-pastable. >>>>=20 >>>> To make matters slightly more complex I=92m using Optima, converted = on a Mac: >>>>=20 >>>> \usetypescript[serif,sans,mono] [hanging] [normal] >>>>=20 >>>> % Bypassing type-gtamacfonts.tex >>>> \starttypescript [sans,serif] [optima] [texnansi,ec] >>>> \definefontsynonym [Optima-Regular] = [\typescriptthree-OptimaRegular] >>>> [encoding=3D\typescriptthree] >>>> \definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic] >>>> [encoding=3D\typescriptthree] >>>> \definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold] >>>> [encoding=3D\typescriptthree] >>>> \definefontsynonym [Optima-BoldItalic] = [\typescriptthree-OptimaBoldItalic] >>>> [encoding=3D\typescriptthree] >>>> \definefontsynonym [Optima-ExtraBlack] = [\typescriptthree-OptimaExtraBlack] >>>> [encoding=3D\typescriptthree] >>>> \stoptypescript >>>> \starttypescript [sans,serif] [optima] [name] >>>> \setups [font:fallback:\typescriptone] >>>> \definefontsynonym [\typescriptprefix\typescriptone] = [Optima-Regular] >>>> \definefontsynonym [\typescriptprefix\typescriptone Italic] = [Optima-Italic] >>>> \definefontsynonym [\typescriptprefix\typescriptone = Bold][Optima-Bold] >>>> \definefontsynonym [\typescriptprefix\typescriptone BoldItalic] >>>> [Optima-BoldItalic] >>>> \definefontsynonym [\typescriptprefix\typescriptone Black] >>>> [Optima-ExtraBlack] >>>> \stoptypescript >>>> = \definetypeface[allsans][rm][serif][optima][default][encoding=3Dtexnansi] >>>> = \definetypeface[allsans][ss][sans][optima][default][encoding=3Dtexnansi] >>>> \loadmapfile [gtamacfonts.map] >>>> \setupbodyfont[allsans,10pt] >>>=20 >>> op zich zou het moeten werken (een tonunicode vector) als er een = pdfr-*.mkii file is voor de encoding ... er is er eentje voor ec = encoding >>=20 >> Ik ben er niet zo in thuis, maar welke items in bij font setup moet = ik dan wijzigen? >=20 > texnansi -> ec I changed some of the last font statements to \definetypeface[allsans][rm][serif][optima][default][encoding=3Dec] \definetypeface[allsans][ss][sans][optima][default][encoding=3Dec] but that does not help. Probably more is needed, but that requires a = programmer-level knowledge of ConTeXt and not a user-level :-) G >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_0F79CFC9-169A-4665-B9EB-16FECE098989 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
On 04 Dec 2014, at 16:22, Hans Hagen = <pragma@wxs.nl> = wrote:

On 12/4/2014 3:54 PM, Gerben = Wierda wrote:
On 30 Nov 2014, at 23:38, = Hans Hagen <pragma@wxs.nl> = wrote:

On 11/30/2014 1:22 PM, Gerben = Wierda wrote:
I=92m using mkii. I=92d like = ot be able to copy-paste words form the
resulting pdf. That works = well, except for words that contain ligatures
(e.g. fl fi etc.) Is = there a way I can tell (Con)TeXt that the result
must be = copy-pastable.

To make matters slightly more complex I=92m using = Optima, converted on a Mac:

\usetypescript[serif,sans,mono] = [hanging] [normal]

% Bypassing = type-gtamacfonts.tex
\starttypescript [sans,serif] [optima] = [texnansi,ec]
\definefontsynonym [Optima-Regular] = [\typescriptthree-OptimaRegular]
[encoding=3D\typescriptthree]
\defi= nefontsynonym [Optima-Italic] = [\typescriptthree-OptimaItalic]
[encoding=3D\typescriptthree]
\defin= efontsynonym [Optima-Bold] = [\typescriptthree-OptimaBold]
[encoding=3D\typescriptthree]
\definef= ontsynonym [Optima-BoldItalic] = [\typescriptthree-OptimaBoldItalic]
[encoding=3D\typescriptthree]
\d= efinefontsynonym [Optima-ExtraBlack] = [\typescriptthree-OptimaExtraBlack]
[encoding=3D\typescriptthree]
\s= toptypescript
\starttypescript [sans,serif] [optima] = [name]
\setups =  [font:fallback:\typescriptone]
\definefontsynonym = [\typescriptprefix\typescriptone] [Optima-Regular]
\definefontsynonym = [\typescriptprefix\typescriptone Italic] = [Optima-Italic]
\definefontsynonym [\typescriptprefix\typescriptone = Bold][Optima-Bold]
\definefontsynonym = [\typescriptprefix\typescriptone = BoldItalic]
[Optima-BoldItalic]
\definefontsynonym = [\typescriptprefix\typescriptone = Black]
[Optima-ExtraBlack]
\stoptypescript
\definetypeface[allsan= s][rm][serif][optima][default][encoding=3Dtexnansi]
\definetypeface[all= sans][ss][sans][optima][default][encoding=3Dtexnansi]
\loadmapfile = [gtamacfonts.map]
\setupbodyfont[allsans,10pt]

op = zich zou het moeten werken (een tonunicode vector) als er een = pdfr-*.mkii file is voor de encoding ... er is er eentje voor ec = encoding

Ik ben er niet zo in thuis, maar welke = items in bij font setup moet ik dan = wijzigen?

texnansi -> = ec

I changed some of the last = font statements = to

\definetypeface[allsans][rm][serif][optim= a][default][encoding=3Dec]
\definetypeface[allsans][ss][sans][optima][d= efault][encoding=3Dec]

but that does = not help. Probably more is needed, but that requires a programmer-level = knowledge of ConTeXt and not a user-level = :-)

G


----------------------------------------------------------------= -
           &nb= sp;            = ;            &= nbsp;    Hans Hagen | PRAGMA = ADE
           &= nbsp; Ridderstraat 27 | 8061 GH Hasselt | The = Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 = 74 | www.pragma-ade.com
  &= nbsp;           &nb= sp;            = ;            &= nbsp;    | 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://tex.aanhet.net
archive =  : http://foundry.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_0F79CFC9-169A-4665-B9EB-16FECE098989-- --===============1796805369== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1796805369==--