Re: [NTG-context] Error concerning "pdfmapline"
On Fri, Apr 19, 2019 at 09:19:24AM +0200, Hans Hagen wrote: > On 4/18/2019 8:37 PM, Wolfgang Schuster wrote: > > > 2. Use a font in Truetype/Opentype format: > > http://unifraktur.sourceforge.net/ > Which is actually a quite nice and even readable fraktur. > > Hans Yes, perhaps. In the next days I will have a look at it. What do you mean with "even readable"? Of course the font should be readable, not only to me. During the last days I tried "1. Use the Type1 version of the fonts: [1], proposed by Wolfgang. There a pair of .afm and .pfb files is needed by "new" ConTeXt and I got an "even unreadable" fraktur with plenty of errors. See appended "Fraktur-afm-pfb.pdf". My MWE to this has been: \definefontsynonym [Fraktur] [name:yfrakregular] [features=default] \definefont [BalladenFont] [Fraktur at 12pt] [.75] \def\b{\hskip3pt} \starttext {\BalladenFont \char 020, \char 021, \char 022, \char 023, \char 024, \char 025, \char 026, \char 027, \char 028, \char 029,\\ \char 030, \char 031, \char 032, \char 033, \char 034, \char 035, \char 036, \char 037, \char 038, \char 039,\\ \char 040, \char 041, \char 042, \char 043, \char 044, \char 045, \char 046, \char 047, \char 048, \char 049,\\ \char 050, \char 051, \char 052, \char 053, \char 054, \char 055, \char 056, \char 057, \char 058, \char 059,\\ \char 060, \char 061, \char 062, \char 063, \char 064, \char 065, \char 066, \char 067, \char 068, \char 069,\\ \char 070, \char 071, \char 072, \char 073, \char 074, \char 075, \char 076, \char 077, \char 078, \char 079,\\ \char 080, \char 081, \char 082, \char 083, \char 084, \char 085, \char 086, \char 087, \char 088, \char 089,\\ \char 090, \char 091, \char 092, \char 093, \char 094, \char 095, \char 096, \char 097, \char 098, \char 099,\\ \char 100, \char 101, \char 102, \char 103, \char 104, \char 105, \char 106, \char 107, \char 108, \char 109,\\ \char 110, \char 111, \char 112, \char 113, \char 114, \char 115, \char 116, \char 117, \char 118, \char 119,\\ \char 120, \char 121, \char 122, \char 123, \char 124, \char 125, \char 126, \char 127, \char 128, \char 129,\\ \vskip2\lineheight Victor's: Sohn jagt zw*olf Boxk*ampfer quer *uber den Sylter Deich. \vskip\lineheight Victor's\b Sohn\b jagt\b zw\"olf\b Boxk\"ampfer\b quer\b \"uber\b den\b Sylter\b Deich. } \stoptext Now, in the meantime, I had also a look into your book [2] There is to be read: "Most natural is to use OpenType or Type1 fonts. In the case of Type1 a matching pair of afm and pfb files is needed. However, there can be situations where there is only a tfm and pfb file (or not even that: just a bitmap file)." What do you mean with that? Will "new" ConTeXt be capable in mastering a situation with "only a tfm and pfb file" as "old" ConTeXt did? With "old" ConTeXt I had with "yfrak.mf, yfrak.pfb, yfrak.tfm", a wonderfull Fraktur, without errors. Rudolf [1] https://ctan.org/tex-archive/fonts/ps-type1/yfonts [2] http://pragma-ade.com/general/manuals/fonts-mkiv.pdf, page 60, chapter 4.6 ("Old fuzzy fonts") Fraktur-afm-pfb.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] using metapost library makecirc with context.
On 4/19/2019 5:48 PM, Andrea De Michele wrote: I'm trying to use with Context makecirc a metapost library to draw electric circuits, but I have problems with the labels of the circuits element that are not displayed correctly. FIRST EXAMPLE (No labels are displayed) - \starttext \startMPinclusions input makecirc; \stopMPinclusions \startstaticMPfigure{circ1} u:= 1cm ; source.e((0,0u),DC,90,"\Delta V","2V") ; resistor.a((2u,1u),normal,90,"R_1","1$\Omega$") ; resistor.b((2u,-1u),normal,90,"R_2","2$\Omega$") ; wire(S.e.p,R.a.r,udsq) ; wire(S.e.n,R.b.l,udsq) ; wire(R.a.l,R.b.r,udsq) ; \stopstaticMPfigure \usestaticMPfigure[circ1] \stoptext I searched ctab for that library and it has soem hard wired latex stuff in it. You can make latex.mp empty (to play safe), Load the file with: \startMPinclusions string LaTeXsetup ; LaTeXsetup := ""; input "makecirc.mp"; vardef latex(expr t) = textext(t) enddef ; \stopMPinclusions I didn't look into the details but yoru example runs then. 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 ___
Re: [NTG-context] Isn't the name ConTeXt a bit search-engine unfriendly?
On 4/18/2019 9:48 PM, Exp wrote: Hi, ConTeXt is great but the pun of the name could cause unnecessary annoyance for newbies like me who need to google it a lot. Not sure if this is the right place to ask but is it possible to rename it to, like, ConTeX, in the future? Normally when searching for tex you can best add "TeX" too. It's not really a context issue, latex being rubber also gives unexpected hits. Changing a name after a few decades is not a good idea. 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 ___
[NTG-context] using metapost library makecirc with context.
I'm trying to use with Context makecirc a metapost library to draw electric circuits, but I have problems with the labels of the circuits element that are not displayed correctly. FIRST EXAMPLE (No labels are displayed) - \starttext \startMPinclusions input makecirc; \stopMPinclusions \startstaticMPfigure{circ1} u:= 1cm ; source.e((0,0u),DC,90,"\Delta V","2V") ; resistor.a((2u,1u),normal,90,"R_1","1$\Omega$") ; resistor.b((2u,-1u),normal,90,"R_2","2$\Omega$") ; wire(S.e.p,R.a.r,udsq) ; wire(S.e.n,R.b.l,udsq) ; wire(R.a.l,R.b.r,udsq) ; \stopstaticMPfigure \usestaticMPfigure[circ1] \stoptext - SECOND EXAMPLE (In the first circuit are displayed the labels of the second one and in the second only ?? are displayed) - \starttext \startstaticMPfigure{circ1} input makecirc; u:= 1cm ; source.e((0,0u),DC,90,"\Delta V","2V") ; resistor.a((2u,1u),normal,90,"R_1","1$\Omega$") ; resistor.b((2u,-1u),normal,90,"R_2","2$\Omega$") ; wire(S.e.p,R.a.r,udsq) ; wire(S.e.n,R.b.l,udsq) ; wire(R.a.l,R.b.r,udsq) ; \stopstaticMPfigure \usestaticMPfigure[circ1] \startstaticMPfigure{circ2} input makecirc; u:= 1cm ; source.e((0,0u),DC,90,"\Delta V","4V") ; resistor.a((2u,1u),normal,90,"R_3","3$\Omega$") ; resistor.b((2u,-1u),normal,90,"R_4","4$\Omega$") ; wire(S.e.p,R.a.r,udsq) ; wire(S.e.n,R.b.l,udsq) ; wire(R.a.l,R.b.r,udsq) ; \stopstaticMPfigure \usestaticMPfigure[circ2] \stoptext -- Andrea De Michele ___ 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 ___
Re: [NTG-context] Font expansion breaks interword spacing
On 4/19/2019 10:34 AM, Wolfgang Schuster wrote: Hi, I have a document where I use font expansion to get better line breaks but as a result the spacing between the letters is completely messed up in some words. \definefontfeature [default] [default] [expansion=quality] \setupbodyfont [lucidaot] \setupalign [hz] \starttext \dorecurse{20}{appeared } \dorecurse{20}{around } \dorecurse{20}{accompanying } \stoptext Wolfgang I think this is a side effect of the font design. Lucida has no kerns which means that the boundingbox has to do the trick of kerning. Now, if you look at the 'a' and 'r' you will notice that the right bounds of the a and left bounds of the r are more of less touching the shape. So, when we expand the shape that touching stays and becomes quite visible compared to the far from touching other shape.s Of course I can be looking at the wrong aspect but then i need an example exposing it. I'll send you some (lmtx) tweak to play with. 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 ___
Re: [NTG-context] Isn't the name ConTeXt a bit search-engine unfriendly?
I usually search for "ntg context" instead... Also searching within "contextgarden" helps sometimes. If you're looking for the key/values and syntax of a particular command (without additional information about the meanings), the most up-to-date reference is at http://www.pragma-ade.nl/general/qrcs/setup-en.pdf, also available in the distribution. On Fri, Apr 19, 2019 at 10:52 AM Exp wrote: > Hi, > > ConTeXt is great but the pun of the name could cause unnecessary annoyance > for newbies like me who need to google it a lot. > > Not sure if this is the right place to ask but is it possible to rename it > to, like, ConTeX, in the future? > > Cheers, > > Exp > > ___ > 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 > > ___ > ___ 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 ___
[NTG-context] Isn't the name ConTeXt a bit search-engine unfriendly?
Hi, ConTeXt is great but the pun of the name could cause unnecessary annoyance for newbies like me who need to google it a lot. Not sure if this is the right place to ask but is it possible to rename it to, like, ConTeX, in the future? Cheers, Exp ___ 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 ___
[NTG-context] Font expansion breaks interword spacing
Hi, I have a document where I use font expansion to get better line breaks but as a result the spacing between the letters is completely messed up in some words. \definefontfeature [default] [default] [expansion=quality] \setupbodyfont [lucidaot] \setupalign [hz] \starttext \dorecurse{20}{appeared } \dorecurse{20}{around } \dorecurse{20}{accompanying } \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] Error concerning "pdfmapline"
On 4/18/2019 8:37 PM, Wolfgang Schuster wrote: 2. Use a font in Truetype/Opentype format: http://unifraktur.sourceforge.net/ Which is actually a quite nice and even readable fraktur. 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 ___