Re: [NTG-context] [OT] Quick ref for Lua ?
> OK , found it > http://lua-users.org/wiki/LuaShortReference Interesting :-) Thanks! Arthur ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Visualization module and mkiv
Wolfgang Schuster wrote: > Hi, > > the visualization module did at the moment not work in mkiv, the fault > is the unbalanced \start/stopcolor command in the definition of > \fakerule. > > The current definition is: > > \def\fakerule#1% > {\strut > %\startcolor[fakerulecolor]% hm, i wonder when that one got commented, fixed Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Visualization module and mkiv
Hi, the visualization module did at the moment not work in mkiv, the fault is the unbalanced \start/stopcolor command in the definition of \fakerule. The current definition is: \def\fakerule#1% {\strut %\startcolor[fakerulecolor]% \iffakebaseline \vrule\!!height1.25ex\!!depth-.05ex\!!width#1% \kern-#1% \vrule\!!height-.05ex\!!depth .25ex\!!width#1% \else \vrule\!!height1.25ex\!!depth .25ex\!!width#1% \fi \stopcolor \allowbreak} 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Not embedding CID fonts
Arthur Reutenauer wrote: > Unix I can say "export MKTEXPK=echo" (and the call to mktexpk is no problem to disable that one in texexec, unless of course someone is depending on it; btw, setting MKTEXTEX=0 in texmf.cnf should also disable it - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Quick ref for Lua ?
On Oct 25, 2007 3:43 PM, Arthur Reutenauer <[EMAIL PROTECTED]> wrote: > The Lua users wiki is very helpful but I don't think there is any PDF > quick ref (http://lua-users.org/wiki/). And if you mean "Lua, as in Lua > used in LuaTeX" (with all the additional libraries, etc.), then no, > definitely no. OK , found it http://lua-users.org/wiki/LuaShortReference -- luigi http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007 it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \doattributed[box|copy]
Wolfgang Schuster wrote: > Easy to fix. ok, will be fixed in next upload - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] default engine for texexec
Peter Münster wrote: > On Sat, Dec 29, 2007 at 04:04:43PM -0700, Idris Samawi Hamid wrote: >> On Sat, 29 Dec 2007 15:22:37 -0700, Peter Münster <[EMAIL PROTECTED]> wrote: >> >>> What methods do exist, to change the default engine for texexec (for >>> example luatex instead of pdftex)? >> == >> % luatex > > Hello Idris, > > With "default" I mean, that this is the engine, that will be used if I > don't specify any engine in the file or on the command line. > > When I typeset for example the file > \starttext > Hi > \stoptext > > with the command "texexec file", I want luatex to be used. And with the > command "texexec --pdftex file" I want pdftex to be used. because eventually mkiv will provide new functionality adding the % lines makes sense; texexec will always default to pdftex because otherwise we break compatibility when used in scripts mtxrun --script context which wil become the luatex replacemenent for texexec for luatex Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is contextgarden.net down?
Mojca Miklavec wrote: > On Dec 30, 2007 4:06 PM, Vyatcheslav Yatskovsky wrote: >> Hello, >> >> Is contextgarden.net down? I cannot access it. > > Not only apache, not even ssh works. > ssh_exchange_identification: Connection closed by remote host > > Last time when the machino had to be rebooted (2 weeks ago) it was a > full disk. I don't remember consuming any worth-mentioning amount of > space since then (it had 2 GB free disk last time when I checked). > > DOS attack perhaps? :-) > > The good news is that Patrick is away until ... (well, I prefer not to > even think about that) > Read as: "Garden down until furter notice!" isn't the thing to a power switch that can be turned on/off remotely i.e. reboot? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \doattributed[box|copy]
> Easy to fix. > > % engine=luatex > > \def\dodoattributedcopy > {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi > {\ifvbox\attributeboxcount\unvcopy\else\unhcopy\fi\attributeboxcount}% >\stopinheritattributes} > > \def\dodoattributedbox > {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi > {\ifvbox\attributeboxcount\unvbox\else\unhbox\fi\attributeboxcount}% >\stopinheritattributes} > > \starttext > > \enableattributeinheritance > > \setbox\scratchbox\vbox{foo} > \attributedbox\scratchbox > > \stoptext > > Wolfgang Compilation ok with last mkiv This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6) ConTeXt ver: 2007.12.29 22:30 MKIV fmt: 2007.12.30 int: english/english -- luigi http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007 it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] default engine for texexec
Hi Peter, On Sun, 30 Dec 2007 01:29:46 -0700, Peter Münster <[EMAIL PROTECTED]> wrote: > with the command "texexec file", I want luatex to be used. And with the > command "texexec --pdftex file" I want pdftex to be used. IIRC there used to be an ini file with those options, but it's gone now. For one thing, older engines like tex and omega are no longer supported (no etex), luatex is still experimental, and aleph is obsolete (except for testing for relevant luatex bugs). So pdftex is the only really solid engine (I don't know anything about xetex). So maybe Hans is waiting till mkiv stabilizes before giving us that option back? Best Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \doattributed[box|copy]
On Dec 30, 2007 6:01 PM, luigi scarso <[EMAIL PROTECTED]> wrote: > On Dec 30, 2007 3:09 PM, Peter Rolf <[EMAIL PROTECTED]> wrote: > > Hi, > > > > compilation still breaks in case of a vbox. Minimal example attached. > Confirm with last mkiv > This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6) > ConTeXt ver: 2007.12.29 22:30 MKIV fmt: 2007.12.30 int: english/english > > With hbox compilation is ok. Easy to fix. % engine=luatex \def\dodoattributedcopy {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi {\ifvbox\attributeboxcount\unvcopy\else\unhcopy\fi\attributeboxcount}% \stopinheritattributes} \def\dodoattributedbox {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi {\ifvbox\attributeboxcount\unvbox\else\unhbox\fi\attributeboxcount}% \stopinheritattributes} \starttext \enableattributeinheritance \setbox\scratchbox\vbox{foo} \attributedbox\scratchbox \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \doattributed[box|copy]
On Dec 30, 2007 3:09 PM, Peter Rolf <[EMAIL PROTECTED]> wrote: > Hi, > > compilation still breaks in case of a vbox. Minimal example attached. Confirm with last mkiv This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6) ConTeXt ver: 2007.12.29 22:30 MKIV fmt: 2007.12.30 int: english/english With hbox compilation is ok. -- luigi http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007 it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is contextgarden.net down?
On Dec 30, 2007 4:06 PM, Vyatcheslav Yatskovsky wrote: > Hello, > > Is contextgarden.net down? I cannot access it. Not only apache, not even ssh works. ssh_exchange_identification: Connection closed by remote host Last time when the machino had to be rebooted (2 weeks ago) it was a full disk. I don't remember consuming any worth-mentioning amount of space since then (it had 2 GB free disk last time when I checked). DOS attack perhaps? :-) The good news is that Patrick is away until ... (well, I prefer not to even think about that) Read as: "Garden down until furter notice!" Mojca ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Is contextgarden.net down?
Hello, Is contextgarden.net down? I cannot access it. Vyatcheslav ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in \doattributed[box|copy]
Hi, compilation still breaks in case of a vbox. Minimal example attached. Best wishes and a happy new year, Peter - Among the maxims on Lord Naoshige's wall there was this one: "Matters of great concern should be treated lightly." Master Ittei commented, "Matters of small concern should be treated seriously." [..] (Hagakure) % engine=luatex \starttext \enableattributeinheritance \setbox\scratchbox\vbox{foo} \attributedbox\scratchbox \stoptext ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Not embedding CID fonts (was: Re: What's the ps_name ...)
Hello Zhichu and all, > Thanks Hans. Do you have any comments about how to now embed the standard > Adobe CJK fonts? I made experiments with pdfTeX in order to produce a file with Chinese text without embedding the font. It actually works---with minor inconvenients---and I attach a small example file which uses AdobeMingStd-Light. It should of course be possible to adapt it for the Adobe font for Simplified Chinese (AdobeSongStd-Light), as well as for Japanese or Korean. Here is how you should use it: - Produce the TFM files for the subfonts of AdobeMingStd-Light. You should call them uni-adobe-ming-XX.tfm where XX is the number of the Unicode row (the range from U+XX00 to U+XXFF); I guess you know how to do that. - Find a way to deactivate mktexpk somehow: the point is that my macros emulate the subfonts in PDF directly, but pdfTeX doesn't know that and wants to find the glyphs somewhere. Since they're not present anywhere, he calls mktexpk as a last resort, but that fails as well and it's only a waste of time. So you need to simply deactivate mktexpk (I hope it's not an inconvenience for you and you don't rely on PK generation otherwise). When running on a shell on Unix I can say "export MKTEXPK=echo" (and the call to mktexpk is replaced by a simple echo). There may be options in mktex.cnf or mktex.opt which would enable you to set things platform-independently, but I couldn't find anything useful. On the other hand, if you can't do that, it also works but you waste some time in the process. The central idea of my macros is to use CIDFont's, a concept introduced by Adobe for its CJKV fonts, as I'm sure you know. The point is that all of the standard Adobe CJKV fonts are CIDFont's and use a special kind of encoding called CID encoding, which is quite distinct from encoding based on glyph names as used by Type 1 fonts. I think this is why your attempts by using .enc files didn't work; I strongly suspect it's not possible at all to use .enc files with CIDFont's, and you have to use the equivalent concept for CID encoding, that is CMap. This is what I have done here, by embedding the appropriate CMap for each subfont. Since it's an example file, I only wrote the CMap's for the Unicode rows U+51XX, U+66XX and U+67XX, so you would have to enhance it if you want to use the other Chinese characters. It's easy to do, but it's a further inconvenience of this approach, since it means you have to embed a CMap which weigh 2 to 5 KB for each Unicode row (that is, up to 256 characters). I hope it works for you. I also attach the output by pdfTeX on my machine. Obviously this is somewhat cumbersome in pdfTeX and would be much easier to do with LuaTeX (where you don't need subfonts at all), but I didn't look into that. XeTeX wouldn't work the same way since you can't write PDF objects directly the way I've done it. Arthur % engine=pdftex % Example ConTeXt macros for using Adobe Reader's default Traditional Chinese % font AdobeMingStd-Light without embedding it in the PDF file. % © A. Reutenauer, December 2007. Brest, Paris, Strasbourg, Opio. % This file is distributed under the terms of the WTF Public License % (http://sam.zoy.org/wtfpl/) % It must be used with pdfTeX: the macros very strongly depends on some pdfTeX % primitives. They would probably work with LuaTeX which inherits them, % although it's a complete waste of resources (LuaTeX doesn't need subfonts at % all, which are used heavily here). They would, on the other hand, most % certainly *not* work with XeTeX (and would be just as pointless as with % LuaTeX). % The file is UTF-8-encoded! \enableregime[utf8] % We use the chi-00 module with slight modifications in one macro, at the very % end of that file, before the text starts. \usemodule[chi-00] % This overrides the default ConTeXt settings and defines the “template” for % TFM fonts: "uni-adobe-ming-XX" (where XX is the Unicode “row” number). % We need to first produce the corresponding TFM files somehow. \definefontsynonym [ChineseRegular][uni-adobe-ming-][encoding=cjk-uni] % Counters for PDF object numbers (this is where the fun begins!) \newcount\cidfontobj \newcount\subfontobj \newcount\fontdescobj \newcount\cmapobj % Three \if's: true/false whether the subfont has already been embedded or not. % For the moment we only support 3 Unicode rows: U+51XX, U+66XX and U+67XX % % Yes, this is completely ad-hoc code :-) It's only meant as a proof of % concept. It doesn't even know about hex digits, by the way: in TeX's mind, % 51, 66 and 67 are actually decimal number (which is why I used U+51E0 几 in % the sample text, and not the—in my opinion more correct—character U+5E7E 幾). % % But of course, it can be improved an enhanced a lot. \newif\ifli\lifalse \newif\iflxvi\lxvifalse \newif\iflxvii\lxviifalse % --- The actual font data --- % -- Global things -- % First we need a CIDFont dic
Re: [NTG-context] default engine for texexec
On Sat, Dec 29, 2007 at 04:04:43PM -0700, Idris Samawi Hamid wrote: > > On Sat, 29 Dec 2007 15:22:37 -0700, Peter Münster <[EMAIL PROTECTED]> wrote: > > > What methods do exist, to change the default engine for texexec (for > > example luatex instead of pdftex)? > > == > % luatex Hello Idris, With "default" I mean, that this is the engine, that will be used if I don't specify any engine in the file or on the command line. When I typeset for example the file \starttext Hi \stoptext with the command "texexec file", I want luatex to be used. And with the command "texexec --pdftex file" I want pdftex to be used. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___