Re: [NTG-context] Greek font in Footnote problem
First: thanks to Giuseppe and Hans for their suggestions! As soon as I have a bit more time, I will look into the \scantokens command and try and correct my Greek modules. However, I had a couple of minutes today, and it looks like the solution to Alan's problem is much simpler. In your sample, Alan, if you replace \setupbodyfont[cmr, 10.5pt] with \setupbodyfont[cmr, 10pt] %or 11 pt or 12 pt the file compiles cleanly, with Greek in the footnotes where it should appear. So, for the time being, it doesn't seem to be a problem with the catcode changes. If I'm not mistaken, this would have given weird characters, but the problem was that the font change was not done at all. So: I had already mailed off-list to Alan that I thought the problem was with defining the new bodyfont. And I think this is right. In my definition for the Greek fonts, I have this line: \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4p t,16pt,18pt,20pt,22pt][rm][Gf=greeoxon sa 1.08] So I would assume the following: 1. When the body font of the document is 10, 11 or 12 pt, the footnote body font is in one of the predefined sizes, i.e. 8, 9, 10, whatever. 2. When the body font is a weird number like 10.5, ConTeXt (or is it eTeX itself?) recalculates the size for the footnote, which will be an even weirder number. Accordingly, the definitions in my file won't work anymore. Thusly: I looked at the source to find out by which factor the font in the footnotes is scaled, but couldn't find out. So my questions: how is this font size calculated? Or is it possible to give a "blanket" declaration for font sizes in my file (there is something like <-> in LaTeX which means "all sizes," if memory serves right). Thanks for the help! Best Thomas On Jan 21, 2005, at 8:29 PM, h h extern wrote: Giuseppe Bilotta wrote: Wednesday, January 19, 2005 Thomas A.Schmitz wrote: On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote: enablegreek relies on catcode changes, so it cannot work inside commands. It should be redefined to make use of e-TeX's \scantoken feature so that it can re-parse its input. Giuseppe, I'll be too bust the next three weeks to look into this, but would love to correct my quick and dirty hack. Can you give me a hint where I can learn more about \scantoken and how I can implement it for my Greek stuff? Ehehehe. The reason why I was so generic in my answer is precisely the same :) Something like \def\localgreek#1{\scantokens{\Gf\enablegreek#1}} could work. more precisely: \starttext \def\rescan#1{\scantokens{#1}} [\rescan{oeps}] \def\rescan#1{\scantokens{#1\ignorespaces}} [\rescan{oeps}] \stoptext and therefore: \def\localgreek#1{\rescan{\Gf\enablegreek#1}} - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font in Footnote problem
Giuseppe Bilotta wrote: Wednesday, January 19, 2005 Thomas A.Schmitz wrote: On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote: enablegreek relies on catcode changes, so it cannot work inside commands. It should be redefined to make use of e-TeX's \scantoken feature so that it can re-parse its input. Giuseppe, I'll be too bust the next three weeks to look into this, but would love to correct my quick and dirty hack. Can you give me a hint where I can learn more about \scantoken and how I can implement it for my Greek stuff? Ehehehe. The reason why I was so generic in my answer is precisely the same :) Something like \def\localgreek#1{\scantokens{\Gf\enablegreek#1}} could work. more precisely: \starttext \def\rescan#1{\scantokens{#1}} [\rescan{oeps}] \def\rescan#1{\scantokens{#1\ignorespaces}} [\rescan{oeps}] \stoptext and therefore: \def\localgreek#1{\rescan{\Gf\enablegreek#1}} - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Re[2]: [NTG-context] Greek font in Footnote problem
Guiseppe and Thomas— A quick run though with my test file indicates that \def\localgreek#1{\scantokens{\Gf\enablegreek#1}} will work in the body text, but only if one enters the Greek code using double braces as follows: {\localgreek{Greek code}} With single braces either the Greek turns on and stays on thereafter or the breathings get messed up with initial spaces. Still no Greek in the footnotes, though. Alan On Jan 19, 2005, at 7:05 AM, Giuseppe Bilotta wrote: Wednesday, January 19, 2005 Thomas A.Schmitz wrote: On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote: enablegreek relies on catcode changes, so it cannot work inside commands. It should be redefined to make use of e-TeX's \scantoken feature so that it can re-parse its input. Giuseppe, I'll be too bust the next three weeks to look into this, but would love to correct my quick and dirty hack. Can you give me a hint where I can learn more about \scantoken and how I can implement it for my Greek stuff? Ehehehe. The reason why I was so generic in my answer is precisely the same :) Something like \def\localgreek#1{\scantokens{\Gf\enablegreek#1}} could work. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Greek font in Footnote problem
Wednesday, January 19, 2005 Thomas A.Schmitz wrote: > On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote: >> enablegreek relies on catcode changes, so it cannot work inside >> commands. It should be redefined to make use of e-TeX's >> \scantoken feature so that it can re-parse its input. > Giuseppe, > I'll be too bust the next three weeks to look into this, but would love > to correct my quick and dirty hack. Can you give me a hint where I can > learn more about \scantoken and how I can implement it for my Greek > stuff? Ehehehe. The reason why I was so generic in my answer is precisely the same :) Something like \def\localgreek#1{\scantokens{\Gf\enablegreek#1}} could work. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font in Footnote problem
On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote: enablegreek relies on catcode changes, so it cannot work inside commands. It should be redefined to make use of e-TeX's \scantoken feature so that it can re-parse its input. -- Giuseppe "Oblomov" Bilotta Giuseppe, I'll be too bust the next three weeks to look into this, but would love to correct my quick and dirty hack. Can you give me a hint where I can learn more about \scantoken and how I can implement it for my Greek stuff? Thanks Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font in Footnote problem
Monday, January 17, 2005 Alan Bowen wrote: > I am having trouble getting Greek in footnote environment. The Greek > appears as it should in the text body, but in a footnote all I get is > the input. In short, ConTeXt \footnote seems to ignore the \localgreek > command. I attach a brief test file that should produce the problem as > well as the input file defining the Greek font in the first place. > Any suggestions would be very much appreciated. > By the way, there is no message in the log file to the effect that the > Greek font is unavailable at a given font size. And I am using ConTeXt > ver: 2004.10.26 fmt: 2005.1.3. > Alan > ___ > \enableregime[mac] > \input Oxonia > \usetypescript [all] [latin-modern] [texnansi] > \setupbodyfont[reset] > \setupbodyfont[cmr, 10.5pt] > \starttext > The cat is on the mat. The cat is on the mat. \localgreek{a>utopt'ew} > is not a compound of \localgreek{a>ut'oc} and \localgreek{>opte'uw}. > The cat is on the mat. > % > \footnote{The etymology proposed on p.\ 136 is mistaken: > \localgreek{a>utopt'ew} is not a compound of \localgreek{a>ut'oc} and > \localgreek{>opte'uw}.}\ % > % > The cat is on the mat. > \stoptext > __ > % Oxonia.tex > \definebodyfont[10pt,10.5pt,11pt,12pt,14pt][rm][Gf=greeoxon sa 1.08] > \def\enablegreek{\language[greek]\catcode`~=\other\catcode`|=\other\catc > ode`'=\other} enablegreek relies on catcode changes, so it cannot work inside commands. It should be redefined to make use of e-TeX's \scantoken feature so that it can re-parse its input. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Greek font in Footnote problem
I am having trouble getting Greek in footnote environment. The Greek appears as it should in the text body, but in a footnote all I get is the input. In short, ConTeXt \footnote seems to ignore the \localgreek command. I attach a brief test file that should produce the problem as well as the input file defining the Greek font in the first place. Any suggestions would be very much appreciated. By the way, there is no message in the log file to the effect that the Greek font is unavailable at a given font size. And I am using ConTeXt ver: 2004.10.26 fmt: 2005.1.3. Alan ___ \enableregime[mac] \input Oxonia \usetypescript [all] [latin-modern] [texnansi] \setupbodyfont[reset] \setupbodyfont[cmr, 10.5pt] \starttext The cat is on the mat. The cat is on the mat. \localgreek{a>utopt'ew} is not a compound of \localgreek{a>ut'oc} and \localgreek{>opte'uw}. The cat is on the mat. % \footnote{The etymology proposed on p.\ 136 is mistaken: \localgreek{a>utopt'ew} is not a compound of \localgreek{a>ut'oc} and \localgreek{>opte'uw}.}\ % % The cat is on the mat. \stoptext __ % Oxonia.tex \definebodyfont[10pt,10.5pt,11pt,12pt,14pt][rm][Gf=greeoxon sa 1.08] \def\enablegreek{\language[greek]\catcode`~=\other\catcode`|=\other\catc ode`'=\other} \def\startgreek{\par\begingroup\Gf\enablegreek} \let\stopgreek\endgroup \def\localgreek{\groupedcommand{\Gf\enablegreek}{}} \define\sampi{\getglyph{greeoxon}{\char34}} \define\digamma{\getglyph{greeoxon}{\char35}} \define\stigma{\getglyph{greeoxon}{\char36}} \define\koppa{\getglyph{greeoxon}{\char37}} \define\lunars{\getglyph{greeoxon}{\char1}} \define\lunarS{\getglyph{greeoxon}{\char13}} \define\brcl{\getglyph{greeoxon}{\char8}} \define\brcr{\getglyph{greeoxon}{\char9}} \define\hbrl{\getglyph{greeoxon}{\char123}} \define\hbrr{\getglyph{greeoxon}{\char125}} \define\crux{\getglyph{greeoxon}{\char43}} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Greek Font Problem SOLVED
Thanks to the very kind and patient efforts of Thomas Schmitz, I no longer get ugly bitmaps in typesetting Greek but lovely script. I am posting the solution to the problem in the hope that it might prove useful to others. PROBLEM: bitmap display of Greek fonts on typesetting. These fonts (Teubner, Oxonia, Leipzig, Ibycus, Kadmos, Bosphoros) come in a package obtained from Thomas. SOLUTION: 1. remove/trash teTeX folder(s) 2. reinstall teTeX (TeXLive 2004) using i–Installer 3. re-install ConTeXt updater • these first three steps were necessary because my installation of teTeX had become corrupted 4. in Terminal execute ruby /usr/local/teTeX/share/texmf.tetex/scripts/context/ruby/textools.rb --fixtexmftrees ~/Library/texmf 5. copy cont-sys.tex into /usr/local/teTeX/share/texmf.local/tex/context/user/ 6. move the file greek.map into ~/Library/texmf/fonts/map/greek.map 7. in Terminal execute sudo updmap --disable greek.map and then sudo updmap --enable Map greek.map I will happy to send those interested a copy of cont-sys.tex. (Thomas prepared this file by modifying cont-sys.rme) Alan ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font problem
Alan, that's the right file, though if you use Gerben's installer, the teTeX directory in /Library is a symlink to /usr/local/teTeX (not the other way round). I have the same installation and the same file. Are you sure it doesn't contain those lines? It should, and mine does. How did you open it? I suggest we make further communciation off list if you don't mind. I can send you my edited version of the file, but it would be instructive if you could edit it yourself. Best Thomas On Nov 15, 2004, at 1:20 PM, Alan Bowen wrote: Thomas— I am a novice at Unix and the intricacies of Gerben’s distribution. So I am probably missing something. But, thus far, the only cont-sys.rme file that I have found is at the end of the path (a) /Library/TeTeX/share/texmf/tex/context/user/cont-sys.rme (b) inside the teTeX alias folder /share/texmf.tetex/tex/context/user/cont-sys.rme and it does not contain the lines you say should be commented out. The file header is: %D \module %D [ file=cont-sys, %Dversion=1995.10.10, %D title=\CONTEXT\ Miscellaneous Macros, %D subtitle=System Specific Setups, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. Alan On Nov 14, 2004, at 4:24 PM, Thomas A.Schmitz wrote: OK, I see. Gerben's installer copies context into texmf.tetex, my bad. The path should be texmf.tetex/tex/context/user/cont-sys.rme; everything else like in my first message. If you ever install a newer version of context into texmf.local (e.g. by dloading the latest release and unzipping it), you'll have to repeat these steps. Good luck! Thomas On Nov 14, 2004, at 10:05 PM, Alan Bowen wrote: Thomas— On my system the sub-folder texmf.local/tex/context contains one folder /config and this has only one file in it, /cont-usr.tex. The path to this texmf.local folder is /Library/teTeX/share/texmf.local. I am puzzled by this: I have relied on i-Installer to set up the latest version of TeX Live 2004. Alan On Nov 14, 2004, at 3:40 PM, Thomas A.Schmitz wrote: ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font problem
Thomas— I am a novice at Unix and the intricacies of Gerben’s distribution. So I am probably missing something. But, thus far, the only cont-sys.rme file that I have found is at the end of the path (a) /Library/TeTeX/share/texmf/tex/context/user/cont-sys.rme (b) inside the teTeX alias folder /share/texmf.tetex/tex/context/user/cont-sys.rme and it does not contain the lines you say should be commented out. The file header is: %D \module %D [ file=cont-sys, %Dversion=1995.10.10, %D title=\CONTEXT\ Miscellaneous Macros, %D subtitle=System Specific Setups, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. Alan On Nov 14, 2004, at 4:24 PM, Thomas A.Schmitz wrote: OK, I see. Gerben's installer copies context into texmf.tetex, my bad. The path should be texmf.tetex/tex/context/user/cont-sys.rme; everything else like in my first message. If you ever install a newer version of context into texmf.local (e.g. by dloading the latest release and unzipping it), you'll have to repeat these steps. Good luck! Thomas On Nov 14, 2004, at 10:05 PM, Alan Bowen wrote: Thomas— On my system the sub-folder texmf.local/tex/context contains one folder /config and this has only one file in it, /cont-usr.tex. The path to this texmf.local folder is /Library/teTeX/share/texmf.local. I am puzzled by this: I have relied on i-Installer to set up the latest version of TeX Live 2004. Alan On Nov 14, 2004, at 3:40 PM, Thomas A.Schmitz wrote: ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font problem
OK, I see. Gerben's installer copies context into texmf.tetex, my bad. The path should be texmf.tetex/tex/context/user/cont-sys.rme; everything else like in my first message. If you ever install a newer version of context into texmf.local (e.g. by dloading the latest release and unzipping it), you'll have to repeat these steps. Good luck! Thomas On Nov 14, 2004, at 10:05 PM, Alan Bowen wrote: Thomas— On my system the sub-folder texmf.local/tex/context contains one folder /config and this has only one file in it, /cont-usr.tex. The path to this texmf.local folder is /Library/teTeX/share/texmf.local. I am puzzled by this: I have relied on i-Installer to set up the latest version of TeX Live 2004. Alan On Nov 14, 2004, at 3:40 PM, Thomas A.Schmitz wrote: ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font problem
Thomas— On my system the sub-folder texmf.local/tex/context contains one folder /config and this has only one file in it, /cont-usr.tex. The path to this texmf.local folder is /Library/teTeX/share/texmf.local. I am puzzled by this: I have relied on i-Installer to set up the latest version of TeX Live 2004. Alan On Nov 14, 2004, at 3:40 PM, Thomas A.Schmitz wrote: Alan, had the same problems here. My workaround (I'm not sure if it's a solution): find the file texmf.local/tex/context/user/cont-sys.rme. Comment out the following lines: \autoloadmapfilestrue \resetmapfiles \loadmapfile[original-base.map] \loadmapfile[ec-base.map] \loadmapfile[8r-base.map] \loadmapfile[qx-base.map] \loadmapfile[texnansi-base.map] \loadmapfile[original-ams-cmr.map] \loadmapfile[original-ams-euler.map] \loadmapfile[original-public-lm.map] \loadmapfile[original-public-plr.map] \loadmapfile[original-public-csr.map] \loadmapfile[texnansi-public-lm.map] \loadmapfile[ec-public-lm.map] Save the file to cont-sys.tex (you'll probably need root privileges to write to this directory). Rerun context, should be as good as new. Cheers Thomas On Nov 14, 2004, at 8:21 PM, Alan Bowen wrote: I have just updated ConTeXt using Gerben’s i-Installer and now my Greek font (Oxonia) is rendered by an ugly collection of bitmaps. Moreover, there are now many warning about duplicate fontmaps. Any suggestions about I should fix this will be much appreciated. I append the console report produced when I processed a test file. Alan __ TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 executable : pdfetex format : cont-en inputfile : greektest output : pdftex interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) output format initialized to DVI entering extended mode (./greektest.tex ConTeXt ver: 2004.10.28 fmt: 2004.11.14 int: english mes: english language : language en is active system : cont-new loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex systems: beware: some patches loaded from cont-new.tex! color : palette rollover is available system (E-TEX) : [line 1021] system (E-TEX) : [line 1076] ) system : cont-old loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme fonts : [berry] [ec] [] (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns en->default:default->1->2:2 uk->default:default->2->2 :2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2: 2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 i t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded specials : tex,postscript,rokicki loaded system : greektest.top loaded (./greektest.top specials : loading definition file tpd (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex system (E-TEX) : [line 2255] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded ) (/Users/acbowen/Library/texmf/tex/generic/greek/Oxonia.tex bodyfont : bodyfont 7.3pt is defined (can better be done global) bodyfont : bodyfont 7.3pt is defined (can better be done global) bodyfont : bodyfont 5.2pt is defined (can better be done global) bodyfont : bodyfont 5.2pt is defined (can better be done global) bodyfont : bodyfont 8.4pt is defined (can better be done global) bodyfont : bodyfont 8.4pt is defined (can better be done global) bodyfont : bodyfont 6.3pt is defined (can better be done global) bodyfont : bodyfont 6.3pt is defined (can better be done global) bodyfont : bodyfont 12.5pt is defined (can better be done global) bodyfont : bodyfont 12.5pt is defined (can better be done global) bodyfont : bodyfont 10.5pt is defined (can better be done global) bodyfont : bodyfont 9.7pt is defined (can better be done global) bodyfont
Re: [NTG-context] Greek font problem
Alan, had the same problems here. My workaround (I'm not sure if it's a solution): find the file texmf.local/tex/context/user/cont-sys.rme. Comment out the following lines: \autoloadmapfilestrue \resetmapfiles \loadmapfile[original-base.map] \loadmapfile[ec-base.map] \loadmapfile[8r-base.map] \loadmapfile[qx-base.map] \loadmapfile[texnansi-base.map] \loadmapfile[original-ams-cmr.map] \loadmapfile[original-ams-euler.map] \loadmapfile[original-public-lm.map] \loadmapfile[original-public-plr.map] \loadmapfile[original-public-csr.map] \loadmapfile[texnansi-public-lm.map] \loadmapfile[ec-public-lm.map] Save the file to cont-sys.tex (you'll probably need root privileges to write to this directory). Rerun context, should be as good as new. Cheers Thomas On Nov 14, 2004, at 8:21 PM, Alan Bowen wrote: I have just updated ConTeXt using Gerben’s i-Installer and now my Greek font (Oxonia) is rendered by an ugly collection of bitmaps. Moreover, there are now many warning about duplicate fontmaps. Any suggestions about I should fix this will be much appreciated. I append the console report produced when I processed a test file. Alan __ TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 executable : pdfetex format : cont-en inputfile : greektest output : pdftex interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) output format initialized to DVI entering extended mode (./greektest.tex ConTeXt ver: 2004.10.28 fmt: 2004.11.14 int: english mes: english language : language en is active system : cont-new loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex systems: beware: some patches loaded from cont-new.tex! color : palette rollover is available system (E-TEX) : [line 1021] system (E-TEX) : [line 1076] ) system : cont-old loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme fonts : [berry] [ec] [] (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns en->default:default->1->2:2 uk->default:default->2->2 :2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2: 2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 i t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded specials : tex,postscript,rokicki loaded system : greektest.top loaded (./greektest.top specials : loading definition file tpd (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex system (E-TEX) : [line 2255] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded ) (/Users/acbowen/Library/texmf/tex/generic/greek/Oxonia.tex bodyfont : bodyfont 7.3pt is defined (can better be done global) bodyfont : bodyfont 7.3pt is defined (can better be done global) bodyfont : bodyfont 5.2pt is defined (can better be done global) bodyfont : bodyfont 5.2pt is defined (can better be done global) bodyfont : bodyfont 8.4pt is defined (can better be done global) bodyfont : bodyfont 8.4pt is defined (can better be done global) bodyfont : bodyfont 6.3pt is defined (can better be done global) bodyfont : bodyfont 6.3pt is defined (can better be done global) bodyfont : bodyfont 12.5pt is defined (can better be done global) bodyfont : bodyfont 12.5pt is defined (can better be done global) bodyfont : bodyfont 10.5pt is defined (can better be done global) bodyfont : bodyfont 9.7pt is defined (can better be done global) bodyfont : bodyfont 9.7pt is defined (can better be done global) bodyfont : bodyfont 11.2pt is defined (can better be done global) bodyfont : bodyfont 11.2pt is defined (can better be done global) bodyfont : bodyfont 16.7pt is defined (can better be done global) bodyfont : bodyfont 16.7pt is defined (can better be done global) bodyfont : bodyfont 14pt is
[NTG-context] Greek font problem
I have just updated ConTeXt using Gerben’s i-Installer and now my Greek font (Oxonia) is rendered by an ugly collection of bitmaps. Moreover, there are now many warning about duplicate fontmaps. Any suggestions about I should fix this will be much appreciated. I append the console report produced when I processed a test file. Alan __ TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 executable : pdfetex format : cont-en inputfile : greektest output : pdftex interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) output format initialized to DVI entering extended mode (./greektest.tex ConTeXt ver: 2004.10.28 fmt: 2004.11.14 int: english mes: english language : language en is active system : cont-new loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex systems: beware: some patches loaded from cont-new.tex! color : palette rollover is available system (E-TEX) : [line 1021] system (E-TEX) : [line 1076] ) system : cont-old loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme fonts : [berry] [ec] [] (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns en->default:default->1->2:2 uk->default:default->2->2 :2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2: 2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 i t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded specials : tex,postscript,rokicki loaded system : greektest.top loaded (./greektest.top specials : loading definition file tpd (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex system (E-TEX) : [line 2255] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded ) (/Users/acbowen/Library/texmf/tex/generic/greek/Oxonia.tex bodyfont : bodyfont 7.3pt is defined (can better be done global) bodyfont : bodyfont 7.3pt is defined (can better be done global) bodyfont : bodyfont 5.2pt is defined (can better be done global) bodyfont : bodyfont 5.2pt is defined (can better be done global) bodyfont : bodyfont 8.4pt is defined (can better be done global) bodyfont : bodyfont 8.4pt is defined (can better be done global) bodyfont : bodyfont 6.3pt is defined (can better be done global) bodyfont : bodyfont 6.3pt is defined (can better be done global) bodyfont : bodyfont 12.5pt is defined (can better be done global) bodyfont : bodyfont 12.5pt is defined (can better be done global) bodyfont : bodyfont 10.5pt is defined (can better be done global) bodyfont : bodyfont 9.7pt is defined (can better be done global) bodyfont : bodyfont 9.7pt is defined (can better be done global) bodyfont : bodyfont 11.2pt is defined (can better be done global) bodyfont : bodyfont 11.2pt is defined (can better be done global) bodyfont : bodyfont 16.7pt is defined (can better be done global) bodyfont : bodyfont 16.7pt is defined (can better be done global) bodyfont : bodyfont 14pt is defined (can better be done global) system : command \digamma is already defined ) fonts : [all] [latin-modern] [texnansi] (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-pre.tex fonts : [serif,sans,mono,math] [computer-modern] [default,name,size] (/usr/local/teTeX/share/texmf.local/tex/context/base/type
Re: [NTG-context] Greek font
Thanks again for helping. I'm happy to say that I'm almost home free. The trick was to go via .vpl-files and edit them. The missing glyphs were somewhere in the table, I could simply copy and paste them in the right position; I then added ligatures for all the accents/breathings etc and finally kerning information. I then used vptovf to produce a matching tfm, and everything worked as expected; even the "space" has micraculously reappeared. Strangely, when I put the resulting .vf-file into my "fonts/vf"-folder, TeX would go haywire; this means that I couldn't use any remapping in the fonts. I had to cut a few corners, it is just a "quick-and-dirty" fix, but it works!!! I've learnt more about fonts than I ever wanted, but I now have (almost) real control; I even managed to replace one character I didn't like with its counterpart from another font (and then edit this new character to perfection in pfaedit, a really amazing tool). One last (little) problem; maybe one of you has an idea: since I couldn't remap, I have trouble producing a single breathing in front of a capital letter. I helped myself by defining \define\<{\getglyph{greeoxon}{96}}, so I could at least use \ Maybe one day I'll know enough about TeX to do all of this the proper way. Maybe one day I'll be able to use Omega (btw, how can the new e-Omega/Aleph be obtained? And where can I dload Omega 1.15?). But for the time being, I'm a happy camper again. Should any of you be interested, I'd be glad to share my stuff. Best Thomas ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
At 15:52 08/09/2003 +0200, you wrote: Hi Thomas, This matter is much more complicated than I thought in first instance. - I must admit, that am of no further help. I do hope, dat Hans is following this tread. He is the guru to get this matter moving. sure, but this week i'm in dante+gutenberg meeting mode as well as project deadline mode Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
On Mon, Sep 08, 2003 at 04:40:31PM +0200, Thomas A. Schmitz wrote: > Willi, > thanks for being supportive. In the meantime, I have taken another > step: by using tftopl, I produced a .pl-file of my font and edited it. > I inserted a "LIGTABLE" with ligature (and kerning) information. After > using pltotf and using the new .tfm, I had partial success: I get a lot > of the ligatures I want! However, a few problems remain: > 1) The "space"-glyph has vanished. I assume it must somehow have been > mismapped. Does anybody have an idea how I could remap this? TeX doesn't use a space glyph. Instead, there is a fontdimen space and there may be boundarychar kerns and ligatures to replace space kerns and -ligs. If you want more complete documentation: get a TeX source tree, run weave on pltotf.web or vptovf.web and compile the resulting TeX file. -- Siep Kroonenberg [EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Greek font
Monday, September 8, 2003 Thomas A.Schmitz wrote: > Willi, > thanks for being supportive. In the meantime, I have taken another > step: by using tftopl, I produced a .pl-file of my font and edited it. > I inserted a "LIGTABLE" with ligature (and kerning) information. After > using pltotf and using the new .tfm, I had partial success: I get a lot > of the ligatures I want! However, a few problems remain: > 1) The "space"-glyph has vanished. I assume it must somehow have been > mismapped. Does anybody have an idea how I could remap this? Can't help you here. > 2) One Greek accent is called by using the "~"-character. However, I > have no idea to which slot it is mapped; the same is true for the > "|"-character. How can I find out? And, by what Giuseppe wrote me a > while ago, I gather that I have to make at least the "|" inactive. Is > this done with \catcode`|=\other ? Yes, and you need to do the same for ~; or, you can use the = instead of the ~ for the circumflex accent. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Willi, thanks for being supportive. In the meantime, I have taken another step: by using tftopl, I produced a .pl-file of my font and edited it. I inserted a "LIGTABLE" with ligature (and kerning) information. After using pltotf and using the new .tfm, I had partial success: I get a lot of the ligatures I want! However, a few problems remain: 1) The "space"-glyph has vanished. I assume it must somehow have been mismapped. Does anybody have an idea how I could remap this? 2) One Greek accent is called by using the "~"-character. However, I have no idea to which slot it is mapped; the same is true for the "|"-character. How can I find out? And, by what Giuseppe wrote me a while ago, I gather that I have to make at least the "|" inactive. Is this done with \catcode`|=\other ? I'm hopeful that these problems can be solved. And I am looking forward to that. I feel a lot like the monkey in a story by Wilhelm Busch: it has a coconut, it knows there must be something delicious inside, but it doesn't know how to reach it. that's the way i feel about context! Best Thomas ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Hi Thomas, This matter is much more complicated than I thought in first instance. - I must admit, that am of no further help. I do hope, dat Hans is following this tread. He is the guru to get this matter moving. Cheers Willi ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
On Sat, 6 Sep 2003 18:13:21 +0200 Thomas A.Schmitz <[EMAIL PROTECTED]> wrote: > What I would need to do is: > 1) tell TeX that the combination ">'a" should be considered a ligature in LaTeX this is implemented using some tricks (language support) from the 'babel' package. Thus, this has _nothing_ to do with fonts and their encoding. It is neither a remapping using virtual fonts nor a reencoding of fonts. It _is_ transliteration. Therefore, it has to be implemented in ConTeXt. > 2) tell my driver that this ligature can be found in slot 165. it's already done in the tfm and vf files Jens ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Well, it's me again. I spent the entire weekend trying to set this up, but so far, I haven't had any real success. I tried a couple of things like different encodings with pfaedit, I tried texfont, fontinst, t1utils... I thought that defining the ligatures in a .vf-file would be the best approach. Well, it did work, but only kind of: I could create a .vpl-file via afm2tfm and edit it, introducing the ligatures I needed. These ligatures would then work as expected. The only problem was that when I recoded this .vpl to a .vf and a .tfm and installed the .tfm, it would miss a couple of characters--they were just gone (like uppercase D, G and P), their slots empty. When I actually installed the .vf-file in the "texmf/fonts/vf/"-folder, I would get no glyphs at all, sometimes a bunch of warnings about duplicate definitions. Please bear with me if I'm getting on your nerves--this my third or fourth attempt to use ConTeXt. I just love it, it's wonderful and makes so many things so easy. But every time, using Greek is the stumbling block for me. unfortunately, writing in classical Greek is part of my job, so if I can't make it work in acceptable quality, I will have to go back to LaTeX. So pretty please--can anybody help me? Or even point me to people with professional knowledge who might be able to help for a fee? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
OK, another step (in the right direction?). lgr-tex is an encoding for monotoniko Greek (i.e. has only the acute accent, the only one used in moderne dimotiki Greek), so not suitable. However, it refers to a file of the CB-Greek family "cblig.mf," which contains just the information I was looking for - defines all the ligatures, like so: "ligtable ">": % smooth breathing "a" =: oct"202", "e" =: oct"342", "h" =: oct"232", "r" =: oct"374" I can actually understand what this file does: if TeX finds the combination >a, it will produce a ligature mapped to slot o202. Does this help me in any way? Is there a way I could use a similar table in ConTeXt? -- Thomas A. Schmitz Philologisches Seminar Universitaet Bonn Am Hof 1 e 53113 Bonn Tel.: 0228/73-7747 Fax: 0228/73-7748 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Yes, I actually tried Kerkis, it may be appropriate for modern Greek, but I find it ugly for classical texts. When I do this texfont --encoding=gpkerkis --vendor=me --collection=Oxonia --makepath --install and try the font, I don't get any Greek glyphs - strange. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Willi, thanks for your reply! The problem is: I do have proper tfm-files, and the font is installed properly (since it works). But given that classical (polytonic) Greek demands some unusual features, I think I will have to adapt the font by hand. On the /showfont map, for example, I can see that a certain "ligature" is in, say, slot 165. Combinations of accents [+ breathing] + vowel are produced by the ligature mechanisms (let's say that's the character for "alpha with acute accent and smooth breathing"). What I would need to do is: 1) tell TeX that the combination ">'a" should be considered a ligature 2) tell my driver that this ligature can be found in slot 165. Feasible? Or am I shooting for the impossible? Well, I got one step further and converted the tfm and vf-files into vp-files that I can read--and maybe edit, if only I knew how... The thing is, the font does work in LaTeX, so it shouldn't be impossible to make it work in ConTeXt, right? Best, Thomas ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Am Samstag, 06.09.03, um 17:49 Uhr (Europe/Zurich) schrieb Willi Egger: With afm2tfm you can generate a tfm file with the required encoding (Could one use e.g. texnansi?) No, texnansi encoding is a western european roman encoding. But I guess one could use a real greek encoding with texfont, perhaps lgr-tex (contains only numbers, I don't know what they mean) or one of the numerous kerkis encodings? (gpkerkis looks good) (It looks you could actually use Kerkis fonts; it's a greek Bookman.) But don't ask me more... ;-) Grüßlis vom Hraban! -- http://www.fiee.net/texnique/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Greek font
Hi Thomas, May be that I am not the right person to reply. Never the less I have installed quite some fonts in ConTeXt. As you show in your message, you have the pfb and afm files. With afm2tfm you can generate a tfm file with the required encoding (Could one use e.g. texnansi?) By means of texfont you can generate the fontfiles needed for ConTeXt in the required encoding including a mapfile which you can include in the pdftex.cfg. Willi - Original Message - From: "Thomas A.Schmitz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 06, 2003 10:06 AM Subject: [NTG-context] Greek font > Please excuse this long post. I was/am fiddling with fonts, "probably > the most complicated aspect of TeX," to quote Hans... I feel I'm almost > there, but I still need some help and would be very grateful if anybody > could give me a hint. > Thanks to Giuseppe Bilotta's help, I managed to typeset classical Greek > with the CB-Greek fonts. Everything works, the accents are in the right > places etc., yet the original CB-Greek doesn't look very good in pdfs. > I have a very beautiful Greek font that comes with the LaTeX > "psgreek"-package; it works in LaTeX and is, according to the manual, > encoded with the same map as CB-Greek (in LaTeX, the encoding is called > lgrenc.def, but I couldn't find any useful imformation in that file). I > wrote a typescriptfile to use it in ConTeXt. The font works, all the > glyphs are there, as I can see with a \showfont, but they're not in the > right slots, which means that it doesn't build the correct ligatures > for displaying accents etc. I assume I need to write a new encoding > file to reassign the glyphs to their new position. I'd be willing to do > this by hand (there aren't too many of them, after all), but how do I > go about that? > What I have got about this font (it's called "GreekOxonia," and in my > eyes, it's the most beautiful typeface that's out there for classical > Greek): > greeoxon.pfb > greeoxon.sfd > greeoxon.sfd~ > greeoxon.afm > greeoxon.tfm > a map file psgreek.map > and a couple of accompanying .vf, .ovf and .ofm-files (all of them > containing just a few characters of gibberish when I try to open them). > Can anybody give me a hint where I could start? Any help would be most > appreciated! > Best > Thomas > > ___ > ntg-context mailing list > [EMAIL PROTECTED] > http://www.ntg.nl/mailman/listinfo/ntg-context > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Greek font
Please excuse this long post. I was/am fiddling with fonts, "probably the most complicated aspect of TeX," to quote Hans... I feel I'm almost there, but I still need some help and would be very grateful if anybody could give me a hint. Thanks to Giuseppe Bilotta's help, I managed to typeset classical Greek with the CB-Greek fonts. Everything works, the accents are in the right places etc., yet the original CB-Greek doesn't look very good in pdfs. I have a very beautiful Greek font that comes with the LaTeX "psgreek"-package; it works in LaTeX and is, according to the manual, encoded with the same map as CB-Greek (in LaTeX, the encoding is called lgrenc.def, but I couldn't find any useful imformation in that file). I wrote a typescriptfile to use it in ConTeXt. The font works, all the glyphs are there, as I can see with a \showfont, but they're not in the right slots, which means that it doesn't build the correct ligatures for displaying accents etc. I assume I need to write a new encoding file to reassign the glyphs to their new position. I'd be willing to do this by hand (there aren't too many of them, after all), but how do I go about that? What I have got about this font (it's called "GreekOxonia," and in my eyes, it's the most beautiful typeface that's out there for classical Greek): greeoxon.pfb greeoxon.sfd greeoxon.sfd~ greeoxon.afm greeoxon.tfm a map file psgreek.map and a couple of accompanying .vf, .ovf and .ofm-files (all of them containing just a few characters of gibberish when I try to open them). Can anybody give me a hint where I could start? Any help would be most appreciated! Best Thomas ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context