Re: [NTG-context] Smileys
Am 2011-08-16 um 22:55 schrieb Cecil Westerhof: Instead of using something like ;-}, what looks nice, but is not the highpoint of typography, I would like to use something like \smiley, \grin, \cool, … Why don’t you just define these commands yourself? You could include pictures or use a smiley font or even something like {\tt :-)} No, there's no module yet, if that was your question. You might consider to opensource your definitions as a module. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt Book: Request for help!
On Mon, Aug 15, 2011 at 01:16:55PM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: > Yes!! That's _exactly_ the challenge! My vision is for ConTeXt to break > out of the shell! > > :-) > > Best wishes > Idris > -- Hi Idris, As a tech writer for 27+ years, who is a recent Context newbie, I applaud your efforts and wish you the best. I just recently have been in the middle of a paradigm change myself, going from Xywrite on the PC to trying to learn and use Context and using vim/gvim as my editor. Back in 1988 or so, when i was employed at TI, we were tasked with trying to get people to use the then new Ventura Publisher for creating documents, etc. This was all pre- Windows. As a result of that i can understand your concern for having a complete system in place for your new users. Everything has to be in place. I too look forward to your book. I also look forward to seeing some examples using an Arabic font. My wife is Persian so I've gained an appreciation for typography with regard to this language also. The fact that Context as well as Vim could handle these fonts well were factors in my trying to learn them. Keep up the good work. Russ ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] punk is dead
On Wed, Aug 17, 2011 at 12:58:34AM +0200, Hans Hagen wrote: > On 16-8-2011 10:44, Jano Kula wrote: > > >is there any reason why the latest beta doesn't typeset random glyphs > >with rand feature as it used to at least a year ago? > > fixed in next veta BTW, the latest release of the fonts have slanted versions, so no need for auto-slanting. Attached a patch for type-otf.mkiv. Mojca, can we have the fonts in minimals (they are on CTAN), I think Hans likes them ;) Regards, Khaled -- Khaled Hosny Egyptian Arab diff --git a/tex/context/base/type-otf.mkiv b/tex/context/base/type-otf.mkiv index df4809e..a846e4d 100644 --- a/tex/context/base/type-otf.mkiv +++ b/tex/context/base/type-otf.mkiv @@ -1887,13 +1887,12 @@ \starttypescriptcollection[punk] \definefontfeature [punknova] [mode=node,script=latn,rand=yes,kern=yes,liga=yes,tlig=yes] -\definefontfeature [punknova-slanted] [punknova] [slant=.25] \starttypescript [serif] [punknova] -\definefontsynonym [Serif] [\s!file:punknova-regular] [\s!features=punknova] -\definefontsynonym [SerifSlanted][\s!file:punknova-regular] [\s!features=punknova-slanted] -\definefontsynonym [SerifBold] [\s!file:punknova-bold][\s!features=punknova] -\definefontsynonym [SerifBoldSlanted][\s!file:punknova-bold][\s!features=punknova-slanted] +\definefontsynonym [Serif] [\s!file:punknova-regular] [\s!features=punknova] +\definefontsynonym [SerifSlanted][\s!file:punknova-slanted] [\s!features=punknova] +\definefontsynonym [SerifBold] [\s!file:punknova-bold][\s!features=punknova] +\definefontsynonym [SerifBoldSlanted][\s!file:punknova-boldslanted] [\s!features=punknova] \definefontsynonym [SerifItalic] [SerifSlanted] \definefontsynonym [SerifBoldItalic] [SerifBoldSlanted] \stoptypescript ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tracking in MKII and MKIV
On 16-8-2011 10:37, Hans Hagen wrote: best disable the regular kerning: \starttext \definedfont[Serif*none] % no kerning \hsize 2.389in \kerncharacters[0.125] THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011 \kerncharacters[0.250] THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011 \stoptext node mode fonts supported in next beta - 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! 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 ___
Re: [NTG-context] punk is dead
On 16-8-2011 10:44, Jano Kula wrote: is there any reason why the latest beta doesn't typeset random glyphs with rand feature as it used to at least a year ago? fixed in next veta - 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! 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 ___
Re: [NTG-context] DTD or similar for export file?
On 16-8-2011 12:05, Vladimir Lomov wrote: Hi. I'm playing with 'export' and wonder is there 'official' DTD or something similar for 'export' file? export-example.rng but it's not complete yet - 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! 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 ___
Re: [NTG-context] How to prevent line split in typing block when using custom command?
Am 16.08.2011 um 14:05 schrieb Vladimir Lomov: > Hi. > > Consider the following two example files: > > […] > > \definetyping[EXAMPLE][escape=yes] > \definestartstop[important][style=bold] > > \starttext > > This is an example with \quotation{long} verbatim text. > Why context fail to compile this example? Is there a method to process it? > > \startEXAMPLE > This is a short verbatim line > > This this this this this this very very very very very very > /BTEX\important{long long long long}/ETEX long long line line line line line > line > \stopEXAMPLE > > \stoptext > > In first case the long line is not splitted, in second case the line is > splitted. How to prevent line splitting? Use a nonbreakable space in the escaped text, i.e. “long~long”. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
Am 16.08.2011 um 22:55 schrieb Cecil Westerhof: > 2011/8/16 Henning Hraban Ramm > Is it possible to work with smileys in ConTeXt? > > > Why not? > But perhaps you could specifiy what you'd like to achieve. > > Instead of using something like ;-}, what looks nice, but is not the > highpoint of typography, I would like to use something like \smiley, \grin, > \cool, … You need a font with the symbol, there are also fonts available where you can use layers to use different colors for parts of the symbol. - http://www.ffdingbatsfont.com/ - http://www.ntg.nl/pipermail/ntg-context/2011/057859.html Apples new emoji font is also very interesting but you can’t use it with ConTeXt. - http://typophile.com/node/83760 - http://www.appleinsider.com/articles/11/02/27/inside_mac_os_x_10_7_lion_font_book_3_emoji_support.html 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
2011/8/16 Henning Hraban Ramm > Is it possible to work with smileys in ConTeXt? >> > > > Why not? > But perhaps you could specifiy what you'd like to achieve. > Instead of using something like ;-}, what looks nice, but is not the highpoint of typography, I would like to use something like \smiley, \grin, \cool, … -- Cecil Westerhof ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] punk is dead
Hi Hans & comp. is there any reason why the latest beta doesn't typeset random glyphs with rand feature as it used to at least a year ago? *.tma and *.tmc files also differ in size. ConTeXt ver: 2011.08.04 00:42 MKIV LuaTeX-0.70.1 \definefontfeature[punk] [mode=node,script=latn,rand=yes,kern=yes,tlig=yes] \starttypescript[serif][punknova] \definefontsynonym[Serif][file:punknova-regular][features=punk] \stoptypescript \starttypescript[punknova] \definetypeface[punknova][rm][serif][punknova][default] \stoptypescript \setupbodyfont[punknova] \starttext \rm \input knuth\par \stoptext BTW, is \installfontfeature deprecated as the font-ini.mkiv says: "installing font features *was* experimental"? Any other way to install font features from *.fea file instead of \installfontfeature[otf][rock] \definefontfeature [myfeature] [mode=node,rock=yes,featurefile=rockfile.fea] Thank you, Jano ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
Am 2011-08-16 um 21:46 schrieb Cecil Westerhof: Is it possible to work with smileys in ConTeXt? Why not? But perhaps you could specifiy what you'd like to achieve. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Smileys
Is it possible to work with smileys in ConTeXt? -- Cecil Westerhof ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with installing ConTeXt
On Tue, 16 Aug 2011, Cecil Westerhof wrote: The way I try to couple ConTeXt and TeXworks is described in the following document: http://www.decebal.nl/ConTeXtManual.pdf IIRC, if you install minimals using '--goodies=all', you get a properly configured texworks. Aditya ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with installing ConTeXt
2011/8/16 Cecil Westerhof > I am still struggling to get ConTeXt running under Windows. At home where > (when I work with Windows) I work with Vista it worked. At the company they > use XP. I did the same as I did at home, but now I get error messages about > configuration files that can not be found in the non existing directory > c:\contextminimal. I installed ConTeXt in c:\context. > I found the problem. I had previously tried to install with Vyatcheslav Yatskovsky's installer, which did not work. After cleaning up, it seems to work. -- Cecil Westerhof ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to prevent line split in typing block when using custom command?
Hi. Consider the following two example files: - 8< \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \starttext This is an example with \quotation{long} verbatim text. Why context complians? Is there a method to process this file? \startEXAMPLE This is a short verbatim line This this this this this this very very very very very very long long long long long long line line line line line line \stopEXAMPLE \stoptext - 8< \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \definestartstop[important][style=bold] \starttext This is an example with \quotation{long} verbatim text. Why context fail to compile this example? Is there a method to process it? \startEXAMPLE This is a short verbatim line This this this this this this very very very very very very /BTEX\important{long long long long}/ETEX long long line line line line line line \stopEXAMPLE \stoptext - 8< In first case the long line is not splitted, in second case the line is splitted. How to prevent line splitting? --- TIA, Vladimir Lomov -- Q: How many surrealists does it take to change a light bulb? A: Two, one to hold the giraffe, and the other to fill the bathtub with brightly colored machine tools. [Surrealist jokes just aren't my cup of fur. Ed.] ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Line length limitation of typing block?
** Wolfgang Schuster [2011-08-16 12:07:22 +0200]: > Am 16.08.2011 um 12:00 schrieb Vladimir Lomov: >> Hi. >> Please consider the following two examples: >> [...] >> context (mkiv) fails to compile first file (error: > You forgot \stopEXAMPLE. Sigh, I overlooked it (acutally my vim setup uses autocompletion and it autocompleted wrong command so I even didn't check whole example). >> Seems that there is a limitation on line length in typing block, then >> how to process a file with such line? >> The second example compiles well but the long is splitted. How to avoid >> this? (Adding ',space=fixed' to '\definetyping' doesn't help.) > Use \typebuffer[ex1]. Thank you, this rises another question... --- WBR, Vladimir Lomov -- More are taken in by hope than by cunning. -- Vauvenargues ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with installing ConTeXt
I am still struggling to get ConTeXt running under Windows. At home where (when I work with Windows) I work with Vista it worked. At the company they use XP. I did the same as I did at home, but now I get error messages about configuration files that can not be found in the non existing directory c:\contextminimal. I installed ConTeXt in c:\context. Is it possible that something changed since yesterday? The way I try to couple ConTeXt and TeXworks is described in the following document: http://www.decebal.nl/ConTeXtManual.pdf -- Cecil Westerhof ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Line length limitation of typing block?
Am 16.08.2011 um 12:00 schrieb Vladimir Lomov: > Hi. > > Please consider the following two examples: > > [...] > > context (mkiv) fails to compile first file (error: You forgot \stopEXAMPLE. > Seems that there is a limitation on line length in typing block, then > how to process a file with such line? > > The second example compiles well but the long is splitted. How to avoid > this? (Adding ',space=fixed' to '\definetyping' doesn't help.) Use \typebuffer[ex1]. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] DTD or similar for export file?
Hi. I'm playing with 'export' and wonder is there 'official' DTD or something similar for 'export' file? P.S. I'm trying to figure out how to write notes using context and export them into (x)html. Currently I'm happy with default xhtml produced by context but want to get 'real' xhtml. --- TIA, Vladimir Lomov -- What a misfortune to be a woman! And yet, the worst misfortune is not to understand what a misfortune it is. -- Kierkegaard, 1813-1855. ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Line length limitation of typing block?
Hi. Please consider the following two examples: \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \starttext This is an example with \quotation{long} verbatim text. Why context fails to compile the file? Is there a method to process this file? \startEXAMPLE This is a short verbatim line This this this this this this very very very very very very long long long long long long line line line line line line \stoptext \stoptext \setupbackend[export=yes] \definetyping[EXAMPLE][escape=yes] \starttext This is an example with \quotation{long} verbatim text. The version without buffer fails. \startbuffer[ex1] This is a short verbatim line This this this this this this very very very very very very long long long long long long line line line line line line \stopbuffer \startEXAMPLE /BTEX\getbuffer[ex1]/ETEX \stopEXAMPLE \stoptext context (mkiv) fails to compile first file (error: Runaway argument? This this this this this this very ve\ETC. ! File ended while scanning use of \dododowithbuffer. system > tex > error on line 0 in file : File ended while scanning use of \dododowithbuffer ... \par <*> ./exa-feat1.tex \stoptext ? ) Seems that there is a limitation on line length in typing block, then how to process a file with such line? The second example compiles well but the long is splitted. How to avoid this? (Adding ',space=fixed' to '\definetyping' doesn't help.) P.S. Sorry two questions in one topic. --- TIA, Vladimir Lomov -- "The wages of sin are death; but after they're done taking out taxes, it's just a tired feeling:" ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] wrong mlib process calls
Hi, I have added the 'mtr' process in front of the normal 'tr' process. [mlib-pps.lua] ... appendaction(processoractions,"system",fg_process) appendaction(processoractions,"system",mtr_process) appendaction(processoractions,"system",tr_process) -- last, as color can be reset ... Strangely the 'mtr' process is also(!) called, if normal transparency ('tr') or text ('tx') is used. You can imagine that the 'cleanup code' has unwanted side effects here. :-) A change of the 'appendaction' order has no impact. I simply added commands.writestatus('mtr_process',table.serialize(prescript)) at the start of mtr_process and this is what I get for the attached example: mtr_process > t={ { "tr_transparency", "0.5" }, { "tr_alternative", "1" }, ["tr_alternative"]="1", ["tr_transparency"]="0.5", } mtr_process > t={ { "tr_transparency", "0.5" }, { "tr_alternative", "1" }, ["tr_alternative"]="1", ["tr_transparency"]="0.5", } mtr_process > t={ { "tx_stage", "final" }, { "tx_number", "1" }, ["tx_number"]="1", ["tx_stage"]="final", } Any ideas what goes wrong here? Example and patched file added. Peter mtx-context | current version: 2011.08.04 00:42 This is LuaTeX, Version beta-0.70.1-2011051907 (rev 4277) \nopdfcompression \setuppagenumber[state=stop] \definecolor[foo][r=1,g=0,b=0,,a=1,t=.5] %\definecolor[foo][r=1,g=0,b=0] \startuniqueMPgraphic{foo}{color} rgbcolor c; % this only works with non transparent colors; otherwise... %c:= \MPvar{color}; % ...: ! Equation cannot be performed (color=numeric). % works with non|transparent colors, but grayscale conversion!! c:= \MPcolor{\MPvar{color}}; fill OverlayBox scaled .25 withcolor c; fill OverlayBox scaled .50 withcolor transparent(normaltransparent,.5,c); fill OverlayBox scaled 1.0 withcolor c withtransparency(normaltransparent,.5); label(decimal(redpart c) & "," & decimal(greenpart c) & "," & decimal(bluepart c),center(OverlayBox)); \stopuniqueMPgraphic \defineoverlay[foo][\uniqueMPgraphic{foo}{color=foo}] \starttext \framed[width=10cm,height=2cm,frame=on,background=foo]{} \stoptext mlib-pps.7z Description: Binary data ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tracking in MKII and MKIV
best disable the regular kerning: \starttext \definedfont[Serif*none] % no kerning \hsize 2.389in \kerncharacters[0.125] THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011 \kerncharacters[0.250] THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011 \stoptext - 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! 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 ___
Re: [NTG-context] Tracking in MKII and MKIV
On 16-8-2011 2:22, Raymond LeClair wrote: The graphic designer tells me it is very common to specify the interletter spacing, or tracking, and in fact, he considers this capability to be essential. intercharacter spacing is ok for titling but for running text ... maybe common but not that good (after all it spoils the font design) I understand that these, so called, microtypography capabilities are present in pdfTeX fully, but only partially present in LuaTeX (protrusion and expansion), although tracking can be set in a way using \kerncharacters[0.5] in LuaTeX. pdftex has some inter character kerning features but they are considered to be experimental and in context they are supported (see hand-ini.mkii) but I must admit that I never used it and have forgotten how to enable it However, the quality of the typesetting produced by LuaTeX is completely inadequate, while the quality of the typesetting produced by pdfTeX is very good. nu clue (yet) but i might as well remove the old mechanism from mkiv as we have better ways Am I miss-understanding the differences in capability between pdfTeX and LuaTeX in this regard? yes, see example below (somewhat changed so you might want to wikify it as example (it will confuse mojca's number of hits filters as 'twitter' and 'ladygaga' might lead to false google lookups). \definepapersize[LG1][width=9.24in,height=6.87in] \definepapersize[LP1][width=9.49in,height=7.12in] \setuppapersize[LG1][LP1] \setuplayout[location=middle,marking=off] \definefont[LabelFont][Serif sa 0.583] \definecharacterkerning [mykerning] [factor=.5] \startbuffer THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011 \stopbuffer \startsetups covertext \framed [ width=2.389in, align=normal, frame=off, offset=0pt, foregroundstyle=\LabelFont ] { \baselineskip10.5pt \setcharacterkerning[mykerning] \getbuffer \par } \stopsetups \startuniqueMPgraphic{cover} StartPage ; left_margin := 0.3472in ; top_margin := 0.3472in ; draw textext.lrt("\setups[covertext]") shifted ulcorner Page shifted (left_margin,-top_margin) ; StopPage ; \stopuniqueMPgraphic \defineoverlay[cover][\uniqueMPgraphic{cover}] \definelayer [page] [width=\paperwidth, height=\paperheight] \showframe \starttext % variant one: \setupbackgrounds [paper] [background={cover}] \startstandardmakeup\stopstandardmakeup \page \setupbackgrounds [paper] [background=] % variant two: \setlayer [page] [preset=lefttop, offset=0.3472in] {\setups[covertext]} \setuplayout [page] \tightlayer[page] \page \setuplayout \stoptext Hans - 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! 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 ___
Re: [NTG-context] Tracking in MKII and MKIV
Am 16.08.2011 um 02:22 schrieb Raymond LeClair: > I am automating the creation of books using ConTeXt with a graphic design > graduate student at the Rhode Island School of Design. > > The book cover is created using MetaPost inside a ConTeXt source file. > > The graphic designer tells me it is very common to specify the interletter > spacing, or tracking, and in fact, he considers this capability to be > essential. > > I understand that these, so called, microtypography capabilities are present > in pdfTeX fully, but only partially present in LuaTeX (protrusion and > expansion), although tracking can be set in a way using \kerncharacters[0.5] > in LuaTeX. > > However, the quality of the typesetting produced by LuaTeX is completely > inadequate, while the quality of the typesetting produced by pdfTeX is very > good. > > Am I miss-understanding the differences in capability between pdfTeX and > LuaTeX in this regard? To place elements on a fixed position on the page you can use layers. It’s also important to disable kerning, ligatures etc. \definepapersize[LG1][width=9.24in,height=6.87in] \definepapersize[LP1][width=9.49in,height=7.12in] \setuppapersize[LG1][LP1] \setuplayout[location=middle,marking=off] \setuppagenumber[state=stop] %\definefont[LabelFont][Serif sa 0.583] \definefont[LabelFont][Serif*none at 7pt] \definelayer[cover] \starttext \startlayout[page] \startstandardmakeup \setlayerframed [cover] [x=0.3472in, y=0.3472in] [frame=off, width=2.6in, align={right,broad}, foregroundstyle=LabelFont] {\setupinterlinespace[line=10.5pt] \setuptolerance[space]% \kerncharacters[0.25] THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011\par} \placelayer[cover] \stopstandardmakeup \stoplayout \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Why is the \crlf needed to display the table correctly
2011/8/16 Wolfgang Schuster > > I think it is an obscure bug. If I take your code but change the > following: > > \setupTABLE[c][1][align=right,width=.35\textwidth] > > \setupTABLE[c][2][width=.65\textwidth] > > > > I have the same problem. > > Change “align=right” to “align={right,broad}”. > At the moment I am not at the (Windows) computer where I write this document. I'll try it tonight. -- Cecil Westerhof ___ 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.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Why is the \crlf needed to display the table correctly
Am 16.08.2011 um 00:05 schrieb Cecil Westerhof: > I think it is an obscure bug. If I take your code but change the following: > \setupTABLE[c][1][align=right,width=.35\textwidth] > \setupTABLE[c][2][width=.65\textwidth] > > I have the same problem. Change “align=right” to “align={right,broad}”. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___