Re: [NTG-context] Apostrophes not converting to typographical curly apostrophes
* Hans Hagen pra...@wxs.nl [120322 22:24]: On 22-3-2012 07:32, John Magolske wrote: I'm having difficulty getting straight 0x0027 apostrophes to convert into typographical single-quotes when using a given typescript. [...] search the wiki for 'features' ... you need to tell context what features to use for an opentype font Thanks, I found it's trep that lets the straight apostrophes get curly: \definefontfeature[default][trep=yes] This was informative: http://wiki.contextgarden.net/Quotesingle Regards, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Apostrophes not converting to typographical curly apostrophes
I'm having difficulty getting straight 0x0027 apostrophes to convert into typographical single-quotes when using a given typescript. In the following example, \quote{single quotes} generates curly typographical single quotes, but the apostrophe comes out as a straight apostrophe in the PDF output: \usetypescriptfile[type-lemonde] \usetypescript[lemonde-1] \setupbodyfont[lemonde,ss,11pt] \starttext Why don't the apostrophes show up as \quotation{curly}? The \quote{single quotes} and \quotation{double quotes} are fine\ldots{} \stoptext The only way I can generate curly apostrophes is by placing 0x2019 characters into the source. However, when I comment out those first three lines, the output displays a curly apostrophe fine in the default font. Am I doing something wrong with how I've set up my typescript? ~/texmf/tex/context/user/type-lemonde.tex looks like this: \starttypescript [serif] [lemonde] \definefontsynonym [LeMondeLivre-Roman] [name:lemondelivrenormalosf] \definefontsynonym [LeMondeLivre-Bold] [name:lemondelivreboldosf] \definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf] \definefontsynonym [Serif] [LeMondeLivre-Roman] \definefontsynonym [SerifBold] [LeMondeLivre-Bold] \definefontsynonym [SerifItalic] [LeMondeLivre-Italic] \stoptypescript \starttypescript [sans] [lemonde] \definefontsynonym [LeMondeSans-Roman] [name:lemondesansnormalosf] \definefontsynonym [LeMondeSans-Bold][name:lemondesansboldosf] \definefontsynonym [LeMondeSans-Italic] [name:lemondesansitalicosf] \definefontsynonym [Sans][LeMondeSans-Roman] \definefontsynonym [SansBold][LeMondeSans-Bold] \definefontsynonym [SansItalic] [LeMondeSans-Italic] \stoptypescript \starttypescript [lemonde-1] \definetypeface [lemonde] [rm] [serif][lemonde] \definetypeface [lemonde] [ss] [sans] [lemonde] \stoptypescript This is using MkIV, recently updated minimals. Thanks for any help, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Where to place typescripts so that they are globally accessable?
I'm using MkIV installed from minimals, and have set up a typescript (type-lemonde.tex) for a font I'm using. It works fine when I copy type-lemonde.tex into the working directory, but I'd like to have it in one central location rather than having to copy it around to multiple project directories. I see: 1. Copy the typescript files into either $TEXMF/tex/texmf-fonts/tex/context/user $TEXMF/tex/texmf-project/tex/context/user http://wiki.contextgarden.net/Fonts_in_LuaTeX But `echo $TEXMF` comes up blank. What should TEXMF be set to? Is $TEXMF the same as the ConTeXt path mentioned here: A typescript must live in your project folder or in another folder in your ConTeXt path (e.g., (texmf)/tex/context/user) http://wiki.contextgarden.net/TypeScripts I've tried several things including: ~/context/tex/texmf-fonts/tex/context/user/type-lemonde.tex ...but can't seem to get anything to work. Thanks for any help, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where to place typescripts so that they are globally accessable?
* Jannis Pohlmann jan...@xfce.org [110520 13:48]: Fri, 20 May 2011 13:40:26 -0700 John Magolske listm...@b79.net wrote: I've tried several things including: ~/context/tex/texmf-fonts/tex/context/user/type-lemonde.tex ...but can't seem to get anything to work. Just to be sure: did you run context --generate after creating that file somewhere? I did run that command after placing the file in the above location, but I'm thinking since TEXMF is not set, ConTeXt doesn't know how to find the typescript. John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where to place typescripts so that they are globally accessable?
* Jannis Pohlmann jan...@xfce.org [110520 14:20]: Fri, 20 May 2011 13:58:17 -0700 John Magolske listm...@b79.net: * Jannis Pohlmann jan...@xfce.org [110520 13:48]: Fri, 20 May 2011 13:40:26 -0700 John Magolske listm...@b79.net: I've tried several things including: ~/context/tex/texmf-fonts/tex/context/user/type-lemonde.tex ...but can't seem to get anything to work. Just to be sure: did you run context --generate after creating that file somewhere? I did run that command after placing the file in the above location, but I'm thinking since TEXMF is not set, ConTeXt doesn't know how to find the typescript. It's not set here either. Is ~/context your ConTeXt installation directory? If not then it might be worth trying a standard directory like ~/texmf instead (or ~/texmf/tex/context/base/ in your case). I always put my modifications into ~/texmf, run context --generate and it works. Yes, ~/context is my ConTeXt installation directory. I placed the typescript in ~/texmf like so: ~/texmf/type-lemonde.tex then ran `context --generate` ... but still no luck. John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where to place typescripts so that they are globally accessable?
* Hans Hagen pra...@wxs.nl [110520 14:42]: On 20-5-2011 11:27, John Magolske wrote: ~/texmf/type-lemonde.tex then ran `context --generate` ... but still no luck. ~/texmf/tex/context/user/type-lemonde.tex it need to be somewhere under ../tex/context (to avoid conflicts with other macro packages) Yes, that works! Thanks, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Postscript Type1 fonts MK IV - [SOLVED]
* Khaled Hosny khaledho...@eglug.org [100830 18:29]: Try Taco's suggestion, I myself got unpredictable results with ~/.fonts, try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data Thanks! This solved my problem: % mkdir -p ~/texmf/fonts/data % mv *.{pfb,afm} ~/texmf/fonts/data % export OSFONTDIR=$HOME/.fonts;$HOME/texmf/fonts/data Or, to keep all fonts under ~/.fonts , this also works: % mkdir -p ~/.fonts/tex % mv *.{pfb,afm} ~/.fonts/tex % mkdir -p ~/texmf/fonts % ln -s ~/.fonts/tex ~/texmf/fonts/data % export OSFONTDIR=$HOME/.fonts For some reason I was trying $HOME/context/tex/texmf/fonts/data previously, which didn't work. But things are now working quite nicely now -- thank you all. Regards, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Postscript Type1 fonts MK IV
* Khaled Hosny khaledho...@eglug.org [100829 08:37]: On Sat, Aug 28, 2010 at 11:50:38PM -0700, John Magolske wrote: Also, the SabonLT-Roman.afm file that came from Linotype has a section titled StartKernData, but .afm files generated using type1afm, fontforge, font2afm, etc. have no kerning section. Would using such .afm files cause sub-standard output with regard to kerning? FontForge can load mac type1 kerning, see: http://fontforge.sourceforge.net/faq.html#FOND-kern Thanks, useful information linked there: The mac stored kerning information in the FOND resource associated with a bitmap font (it is not stored in the file with the postscript font). If you wish kerning data for a mac postscript font, you must find a font file containing a bitmap font with the same family and style as the postscript. Reading this, I went into the directory of the font in question, found the *.bmap file and ran `fondu -afm` on it. This created afm files for all the fonts in that family, each file including a StartKernData section with plenty of kerning data. So I feel closer...at least I know how to create afm files that include kerning data. But unfortunately, I still can't get these fonts to work with ConTeXt. It must have something to do with the font itself, as the SabonLT-Roman.afm and SabonLT-Roman.pfb I placed in the ~/.fonts directory are working fine. John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Postscript Type1 fonts MK IV
* Hans Hagen pra...@wxs.nl [100828 15:34]: On 28-8-2010 1:16, John Magolske wrote: I'd like to get some Postscript Type1 fonts working with MK IV (installed via the minimals under Linux). put the afm files in the tree as well - either in the afm subtree (with pfb's in the type1 subtree) - or in the data tree (alongside pfb's) then run mtxrun --generate Thanks -- I put a SabonLT-Roman.afm and a SabonLT-Roman.pfb into ~/.fonts and got things working. But I'm having a heck of a time with another font family. It's a PS Type1 font for Mac, and I've tried all sorts of things in attempting to generate .pfb .afm files from the original Mac PS Type1 fonts ... fontforge, fondu, type1afm, font2afm ... on the Mac on my Linux box. But I can't get an afm/pfb combo that works. I've pasted the output of a `context` command below (changed the font name here as I don't think its license allows for converting it). Is it inherently tricky to get Type1 PS Mac fonts working with ConTeXt luatex on Linux? I'm trying to avoid spending another $300 for some fonts I already purchased but can no longer use (not on a Mac much any more). I was able to use these *.pfb fonts with LaTeX + xetex in the past under Linux. Also, the SabonLT-Roman.afm file that came from Linotype has a section titled StartKernData, but .afm files generated using type1afm, fontforge, font2afm, etc. have no kerning section. Would using such .afm files cause sub-standard output with regard to kerning? Any suggestions/clarifications much appreciated, John % context test1.tex MTXrun | run 1: luatex --fmt=/home/john/context/tex/texmf-cache/luatex-cache /context/de...42/formats/cont-en --lua=/home/john/context/tex/texmf-cache /luatex-cache/context/de...42/formats/cont-en.lui --backend=pdf ./test1.tex This is LuaTeX, Version beta-0.61.0-2010072816 \write18 enabled. (test1.tex ConTeXt ver: 2010.08.20 00:00 MKIV fmt: 2010.8.22 int: english/english system : cont-new loaded (/home/john/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/john/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/home/john/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/home/john/context/tex/texmf-context/tex/context/user/cont-sys.rme (/home/john/context/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/john/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (/home/john/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/john/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : test1.top loaded (test1.top) fonts : preloading latin modern fonts {/home/john/context/tex/texmf/fonts/map/dvips/lm/lm-math.map} {/home/john/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} {/home/john/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active load afm reading /home/john/.fonts/SomeMacintoshPSfont.afm load afm unifying /home/john/.fonts/SomeMacintoshPSfont.afm load afm assigning private slot U+F for unknown glyph name onesuperior load afm assigning private slot U+F0001 for unknown glyph name ffl load afm assigning private slot U+F0002 for unknown glyph name ffi load afm assigning private slot U+F0003 for unknown glyph name ff load afm assigning private slot U+F0004 for unknown glyph name nbspace load afm assigning private slot U+F0005 for unknown glyph name FL261 load afm assigning private slot U+F0006 for unknown glyph name fi load afm assigning private slot U+F0007 for unknown glyph name twosuperior load afm assigning private slot U+F0008 for unknown glyph name threesuperior load afm assigning private slot U+F0009 for unknown glyph name fl load afm add ligatures load afm add tex-ligatures load afm add extra kerns load afm add tounicode data load afm saving: SomeMacintoshPSfont in cache report | lua: compiling /home/john/context/tex/texmf-cache/luatex-cache/context /de675cef24f333545b18002e92921442/fonts/afmacintoshPSfont.tma into /home/john/context/tex/texmf-cache/luatex-cache/context/de...42/fonts/afmacintoshPSfont.tmc define fonts source file 'SomeMacintoshPSfont' is not found define fonts unable to determine font format for '' publications: loading formatting style from bxml-apa (/home/john/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file test1.tex at line 10 pagesflushing realpage 1, userpage 1, subpage 1 systems : end file test1.tex at line 12 system : cont-err loaded (/home/john/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont
Re: [NTG-context] Postscript Type1 fonts MK IV
* Taco Hoekwater t...@elvenkind.com [100829 00:24]: On 08/29/2010 08:50 AM, John Magolske wrote: Is it inherently tricky to get Type1 PS Mac fonts working with ConTeXt luatex on Linux? It should not be. load afm reading /home/john/.fonts/SomeMacintoshPSfont.afm Why the odd afm name? Is there a matching SomeMacintoshPSfont.pfb ? There is a matching SomeMacintoshPSfont.pfb. The odd name has to do with me replacing the real font name with a made-up name in what I pasted into my email to the list. Maybe that's silly/overly-cautious ... but I think the license for that font doesn't allow converting it from a Mac PS font to a (Win?) PS font, generating afm files from it with type1afm, etc. Anyhow, to re-cap, I did: * go to the iMac find a font named SomeMacintoshPSfont * use Fontforge to generate SomeMacintoshPSfont.pfb * use the type1afm utility to generate SomeMacintoshPSfont.afm * put these pfb afm files in the ~/.fonts directory on Linux box * run `mtxrun --generate` * run `mtxrun --script fonts --reload` * view output of `mtxrun --script fonts --list --all` to get names for use in typscript. But it doesn't work for some reason... load afm saving: SomeMacintoshPSfont in cache ... define fonts source file 'SomeMacintoshPSfont' is not found Regards, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: Debian_installation - repositories not found
For Debian/unstable you do NOT need *ANY* of those. Everything is in Debian unstable and testing!! ... Just do apt-get install context should be enough. But that is not the most recent context, I haven't found time for packaging a more current version for now. I hope that I can manage it in the next weeks. I decided to install the minimals for now so as to be able to follow the latest ConTeXt developments. Thanks for maintaining the Debian packages, volunteering for various projects myself, I understand it all takes time. Regards, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Postscript Type1 fonts MK IV
I'd like to get some Postscript Type1 fonts working with MK IV (installed via the minimals under Linux). I placed the *.pfb fonts in ~/.fonts and did: mtxrun --script fonts --reload mtxrun --script fonts --list --all --pattern=* ...but the output doesn't show any of the *.pfb fonts. The *.ttf fonts installed alongside them in ~/.fonts do show up, and I can create PDFs with those ttf fonts using the `context` command, but I'm not sure how to proceed with the Postscript fonts. Thanks for any suggestions, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: Debian_installation - repositories not found
Hi Norbert, Err http://people.debian.org lmodern/ Packages 404 Not Found [IP: 206.12.19.5 80] Err http://people.debian.org lmodern/ Sources 404 Not Found [IP: 206.12.19.5 80] Err http://people.debian.org context/ Packages 404 Not Found [IP: 206.12.19.5 80] Err http://people.debian.org context/ Sources 404 Not Found [IP: 206.12.19.5 80] Ah, yes, lmodern and context packages are gone. Don't remember why, but I assume because there were no differences anymore and people could simply install the versions from Debian/stable ... John, what are you running (Debian release) and what do you want to install? I'm running Debian unstable, and would like to install a somewhat recent version of ConTeXt IV. I was under the impression the steps listed in http://wiki.contextgarden.net/Debian_installation would accomplish this. I'm also considering installing the minimals instead, but it would be nice to be able to apt-get a recent ConTeXt if possible. I'd like to keep LaTeX on my system as well, and would like to avoid too much redundancy (small 16GB SSD). Regards, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF's generated by XeTeX and LuaTeX, font licensing
Reading through the license of a commercial font I'm interested in, I see it stipulated for PDF files created that: ... a reader or user cannot create new content using one of our fonts in a PDF application ... the complete font is not embedded And in an email correspondence with the vendor: We just ask that you subset the font when exporting the PDFs ... Do PDF's generated by XeTeX and LuaTeX subset the font in this way? Regards, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Debian_installation - repositories not found
In attempting to install ConTeXt on Debian sid as per http://wiki.contextgarden.net/Debian_installation I added these to my /etc/apt/sources.list : # for texlive deb http://people.debian.org/~preining/TeX/ tl2007/ deb-src http://people.debian.org/~preining/TeX/ src/ # for lmodern deb http://people.debian.org/~preining/TeX/ lmodern/ deb-src http://people.debian.org/~preining/TeX/ lmodern/ # for context deb http://people.debian.org/~preining/TeX/ context/ deb-src http://people.debian.org/~preining/TeX/ context/ But when running aptitude update: Err http://people.debian.org lmodern/ Packages 404 Not Found [IP: 206.12.19.5 80] Err http://people.debian.org lmodern/ Sources 404 Not Found [IP: 206.12.19.5 80] Err http://people.debian.org context/ Packages 404 Not Found [IP: 206.12.19.5 80] Err http://people.debian.org context/ Sources 404 Not Found [IP: 206.12.19.5 80] Are there other repositories to point to for the most recent packages? Maybe these are just temporarily unavailable? Or am I missing something else? Thanks for any suggestions, John -- John Magolske http://B79.net/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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \totalnumberofpages and \setuparranging [2UP]
Yes, the --arrange option does the trick! Thankyou Tobias and Johan for the informative replies. What a nice system ConTeXt is, it's becoming one of my favorite tools. John Could it be that texexec needs to be run with texexec --arrange Johan 2005/12/15, Tobias Burnus : Hi, John Magolske wrote: I'm having trouble getting \totalnumberofpages to display while using \setuparranging [2UP]. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \totalnumberofpages and \setuparranging [2UP]
Hi all, I'm having trouble getting \totalnumberofpages to display while using \setuparranging [2UP]. What I'd like to do is print a letter, two columns to a page, then cut the page in two so the letter is in long columns with fractional page numbering at the bottom of each column, 1/4, 2/4, 3/4, 4/4. But what's happening is 1/1, 2/2, 3/3, 4/4. \definepapersize[4.25x11][width=4.25in,height=11in] \setuppapersize [4.25x11][letter] \setuplayout[backspace=.75in, width=2.75in, topspace=.75in, top=0in, header=0in, footer=.5in, height=9.75in] \setuppagenumbering[location={footer,right},right={~/~}{\lastpage}] \setuparranging [2UP] Removing \setuparranging [2UP] allows \totalnumberofpages to work fine, and upon replacing it, the first run works. But subsequent runs revert back to 1/1, 2/2, etc. This is using the texexec --pdf command. I read through the thread \totalnumberofpages texexec --pages=1:2, but being new to ConTeXt, I can't quite make out if that's relevant. Any suggestions much appreciated. - John ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context