Re: [NTG-context] symbols in luatex?
On Fri, 04 Jan 2008 14:20:45 -0700, Hans Hagen <[EMAIL PROTECTED]> wrote: > Thomas A. Schmitz wrote: > >> BTW, fea files and font features are a bit flaky these days, in the >> latest two versions, none of my fea gsub stuff works... But it's >> difficult for me to say whether it is the current version of luaTeX or >> of ConTeXt which is at fault. Will try to give more useful information >> when I have a bit more time. > > best take the beta (some reported bugs fixed) Does that include the one I reported? -) > fea is flaky anyway ... currently fea *replaces* existing features; FL (and FF?) can export fea files, so one can (in principle) add features to the original fea file for further features etc. > future versions of luatex will do a proper merge but this has a low > priority not too low I hope ;-) it's a great feature (no pun intended)! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] symbols in luatex?
Thomas A. Schmitz wrote: > BTW, fea files and font features are a bit flaky these days, in the > latest two versions, none of my fea gsub stuff works... But it's > difficult for me to say whether it is the current version of luaTeX or > of ConTeXt which is at fault. Will try to give more useful information > when I have a bit more time. best take the beta (some reported bugs fixed) fea is flaky anyway ... currently fea *replaces* existing features; future versions of luatex will do a proper merge but this has a low priority - 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] symbols in luatex?
On Jan 4, 2008, at 9:40 PM, Hans Hagen wrote: > ah so you know the number ... > > \getglyph{name:TeXGyreHeros-Regular}{\char"2329} > > should also work then > Yes, that works too! Thanks, maybe even easier! BTW, fea files and font features are a bit flaky these days, in the latest two versions, none of my fea gsub stuff works... But it's difficult for me to say whether it is the current version of luaTeX or of ConTeXt which is at fault. Will try to give more useful information when I have a bit more time. Thomas ___ 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] symbols in luatex?
Thomas A. Schmitz wrote: > {\bgroup\definedfont[name:TeXGyreHeros-Regular]\char"2329\egroup} ah so you know the number ... \getglyph{name:TeXGyreHeros-Regular}{\char"2329} should also work then - 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] symbols in luatex?
On Jan 4, 2008, at 6:39 PM, Wolfgang Schuster wrote: > The following should work. > > % engine=luatex > > \definecharacter anglebracketleft \char"2329 > \definecharacter anglebracketright \char"232A > > \starttext > > text \anglebracketleft text\anglebracketright\ text > > \stoptext > > Wolfgang On Jan 4, 2008, at 7:42 PM, Hans Hagen wrote: > > \definedfont[name:TeXGyreHeros-Regular] \otfchar{uni0323} % 803 ? Hans, Wolfgang, thanks a lot! Wolfgang's approach works immediately. \otfchar doesn't seem to work, but I could combine your suggestion with Wolfgang's and now have {\bgroup\definedfont[name:TeXGyreHeros-Regular]\char"2329\egroup} Cool! Without fiddling with map files and encodings, I can take glyphs from whatever OTF font I want. Thanks so much! Thomas ___ 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] symbols in luatex?
Thomas A. Schmitz wrote: > > I tried several numbers, and get some symbols from TeXGyreHeros, but I > haven't yet found out how luaTeX interprets the \char numbers... OTOH, > this is a workaround: mkiv is unicode so \char point to a unicode point > doesn't use any of those, so I'm saved for today, but will be back in > a few weeks when I need the other stuff as well... \definedfont[name:TeXGyreHeros-Regular] \otfchar{uni0323} % 803 ? - 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] non-typographic apostrophe
Thanks, Thomas. That worked like a champ. Cheers, Mike -Original Message- From: [EMAIL PROTECTED] on behalf of Thomas A. Schmitz Sent: Fri 1/4/2008 11:09 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] non-typographic apostrophe On Jan 4, 2008, at 5:52 PM, Santy, Michael wrote: > How do I include a non-typographic apostrophe in ConTeXt? If I type > ' (U+0027), it is automatically converted to a typographic > (directional) apostrophe. You could try \quotesingle (also depends on the font). HTH Thomas ___ 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 ___ ___ 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] symbols in luatex?
On Fri, 4 Jan 2008 18:03:28 +0100 "Thomas A. Schmitz" <[EMAIL PROTECTED]> wrote: > > On Jan 4, 2008, at 5:15 PM, Hans Hagen wrote: > > > doesn't \char work? > > Depends... fontforge tells me what I'm looking for is, e.g., character > 803 in TeXGyreHeros-Regular, so I tried this: > > \starttypescript[serif][greeksymbols][name] > \definefontsynonym [Serif] [name:TeXGyreHeros-Regular] > [features=default] > \stoptypescript > \starttypescript[GreekSymbols] > \definetypeface [GreekSymbols] [rm] [serif] [greeksymbols] [default] > \stoptypescript > > \usetypescript[GreekSymbols] > > \define{\anglebracketleft}% > {\bgroup\switchtobodyfont[GreekSymbols]\char803\egroup} > > I tried several numbers, and get some symbols from TeXGyreHeros, but I > haven't yet found out how luaTeX interprets the \char numbers... OTOH, > this is a workaround: It interprets the numbers in the same way as TeX. > \define{\anglebracketleft}% > {\bgroup\switchtobodyfont[GreekSymbols]〈\egroup} What you're looking for is "ANGLE BRACKET, RIGHT-POINTING". > but will obviously only work for symbols that are defined in Unicode, > so nothing in the "private" Unicode area. My presentation next week > doesn't use any of those, so I'm saved for today, but will be back in > a few weeks when I need the other stuff as well... The following should work. % engine=luatex \definecharacter anglebracketleft \char"2329 \definecharacter anglebracketright \char"232A \starttext text \anglebracketleft text\anglebracketright\ text \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 ___
[NTG-context] register
Hi, for fine-tuning the TOC I use e.g. ... \writebetweenlist [section] {\def\TOCstyle{\switchtobodyfont[9pt] \setupinterlinespace[line=11.15pt]}} ... for adjusting the vertical space and thus the page breaks. Is is possible to do something similar to the register? Steffen ___ 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] non-typographic apostrophe
On Jan 4, 2008, at 5:52 PM, Santy, Michael wrote: > How do I include a non-typographic apostrophe in ConTeXt? If I type > ' (U+0027), it is automatically converted to a typographic > (directional) apostrophe. You could try \quotesingle (also depends on the font). HTH Thomas ___ 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] symbols in luatex?
On Jan 4, 2008, at 5:15 PM, Hans Hagen wrote: > doesn't \char work? > Depends... fontforge tells me what I'm looking for is, e.g., character 803 in TeXGyreHeros-Regular, so I tried this: \starttypescript[serif][greeksymbols][name] \definefontsynonym [Serif] [name:TeXGyreHeros-Regular] [features=default] \stoptypescript \starttypescript[GreekSymbols] \definetypeface [GreekSymbols] [rm] [serif] [greeksymbols] [default] \stoptypescript \usetypescript[GreekSymbols] \define{\anglebracketleft}% {\bgroup\switchtobodyfont[GreekSymbols]\char803\egroup} I tried several numbers, and get some symbols from TeXGyreHeros, but I haven't yet found out how luaTeX interprets the \char numbers... OTOH, this is a workaround: \define{\anglebracketleft}% {\bgroup\switchtobodyfont[GreekSymbols]〈\egroup} but will obviously only work for symbols that are defined in Unicode, so nothing in the "private" Unicode area. My presentation next week doesn't use any of those, so I'm saved for today, but will be back in a few weeks when I need the other stuff as well... Thanks Thomas ___ 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] non-typographic apostrophe
How do I include a non-typographic apostrophe in ConTeXt? If I type ' (U+0027), it is automatically converted to a typographic (directional) apostrophe. Cheers, Mike ___ 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] symbols in luatex?
Thomas A. Schmitz wrote: > On Jan 2, 2008, at 2:04 PM, Thomas A. Schmitz wrote: > >> On Jan 2, 2008, at 12:42 PM, Hans Hagen wrote: >> >>> \startencoding[default] >>> >>> probably still works (may change in favor of virtual fonts) >> Thanks Hans, but nope, doesn't work. The font is found and used (I get >> glyphs for "normal" characters such as numbers), but the special >> characters just disappear from the output. >> >> Thomas > > Hmm, this is something I need for a presentation next week, so can I > ask again: how can I address arbitrary symbols in luaTeX? There has to > be some way, right? I'm also quite willing to look into the luaTeX way > of constructing a virtual font (I need some metrical and some math > symbols which I want to take from a different font), but I'm not sure > if there's any example out there how to do this. doesn't \char work? - 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] symbols in luatex?
On Jan 2, 2008, at 2:04 PM, Thomas A. Schmitz wrote: > > On Jan 2, 2008, at 12:42 PM, Hans Hagen wrote: > >> \startencoding[default] >> >> probably still works (may change in favor of virtual fonts) > > Thanks Hans, but nope, doesn't work. The font is found and used (I get > glyphs for "normal" characters such as numbers), but the special > characters just disappear from the output. > > Thomas Hmm, this is something I need for a presentation next week, so can I ask again: how can I address arbitrary symbols in luaTeX? There has to be some way, right? I'm also quite willing to look into the luaTeX way of constructing a virtual font (I need some metrical and some math symbols which I want to take from a different font), but I'm not sure if there's any example out there how to do this. Thanks! Thomas ___ 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] to obtain glyphs in marvosym.pfb
Le vendredi 4 janvier 2008, vous avez écrit : > On Jan 4, 2008 12:25 PM, Yvon Henel <[EMAIL PROTECTED]> wrote: > You need to provide tha tfm file name, not pfb, I thought so (for TeX was complaining about a missing tfm) but failed to see how exactly. Thanks awfully. > but there already > exists a module which does that. > > \usesymbols[mvs] > \setupsymbolset[martinvogel 2] > \symbol[Telephone] > > See and the corrosponding source file (symb-mvs.tex) > http://wiki.contextgarden.net/Symbols/mvs Thanks a lot. There is some discrepancies between the said module and my TeXlive (2007) distribution but I've succeeded in using "it". For those who could be interrested, I've done thus: copy symb-mvs.tex to symb-mvs2.tex in my texmf-local/tex/context inside this copy change \loadmapfile[original-base.map] into \loadmapfile[marvosym.map] and change \definefontsynonym [MartinVogel] [fmvr8x] into \definefontsynonym [MartinVogel] [umvs] don't forget to texhash and it works! Thanks a lot. -- Yvon Henel signature.asc Description: This is a digitally signed message part. ___ 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] \useattachment: Embedding files in PDFs
Hi all, I can use \useattachment to embed/attach files in a PDF file. I can use: \useattachment[whatever][title][newname][test.tex] \attachment[whatever] This creates an attachment with the description "title" and the name "test.tex". However, how can I set the author/subject? (Shown in tool tip of the annotation symbol; it is shown above the description; actually subject is enough for me.) Additionally, I miss the file size and possibly the modification date for the attachments; they are often handy to have. Is is possible to associate an embedded file stream with the document itself without creating an annotation symbol as with \attachment in ConTeXt? (The PDF spec allows this; cf. e.g. 3.10.3 in the PDF spec and http://www.microtype.com/showcase/EmbedFiles.pdf for an example PDF file.) Tobias ___ 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] to obtain glyphs in marvosym.pfb
On Jan 4, 2008 12:25 PM, Yvon Henel <[EMAIL PROTECTED]> wrote: > hello all > > > I begin to be able to use utopia-expert fonts thanks to the fourier tricks > located in the different type-*.enc. > My previous work with TeXfont has not been entirely useless for it has helped > me to understand what I needed to use the available material which gives > access to utopia-expert. > > I would seize the opportunity to thank all the people who made available the > howtos on ConTeXt, the wiki and so on. And also those who answered my first > questions on this list, even if I choose not to follow all their > recommendations ;-) To say the truth I've already devoted the last three days > in learning how to use ConTeXt and cannot envisage to swap to LuaTeX before > some time. > > > But alas I've got a new problem which I state hereafter: > > I've tried this: > \definesymbol [Telefon][\getglyph{umvs}{\char84}] > because umvs.tfm is in the marvosym directory > but it doesn't work. > I've also tried marvosym (because there is a marvosym.pfb) instead of umvs but > to no avail. You need to provide tha tfm file name, not pfb, but there already exists a module which does that. \usesymbols[mvs] \setupsymbolset[martinvogel 2] \symbol[Telephone] See and the corrosponding source file (symb-mvs.tex) http://wiki.contextgarden.net/Symbols/mvs 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] to obtain glyphs in marvosym.pfb
hello all I begin to be able to use utopia-expert fonts thanks to the fourier tricks located in the different type-*.enc. My previous work with TeXfont has not been entirely useless for it has helped me to understand what I needed to use the available material which gives access to utopia-expert. I would seize the opportunity to thank all the people who made available the howtos on ConTeXt, the wiki and so on. And also those who answered my first questions on this list, even if I choose not to follow all their recommendations ;-) To say the truth I've already devoted the last three days in learning how to use ConTeXt and cannot envisage to swap to LuaTeX before some time. But alas I've got a new problem which I state hereafter: I've tried this: \definesymbol [Telefon][\getglyph{umvs}{\char84}] because umvs.tfm is in the marvosym directory but it doesn't work. I've also tried marvosym (because there is a marvosym.pfb) instead of umvs but to no avail. I've succeeded nonetheless in obtaining the glyphs of fourier-orns with \definefontsynonym [Fourier-Ornements] [fourier-orns] [encoding=ec] \definesymbol [lefthand][\getglyph{Fourier-Ornements}{\char116}] Is it because I need to load a map or something? Any hint would be greatly appreciated Many thanks to all -- Yvon Henel signature.asc Description: This is a digitally signed message part. ___ 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] installing expert font, pb with texfont
On Jan 3, 2008 3:41 PM, Yvon Henel wrote: > hello all > > I try to follow "My Way" of April 2005 "Installing Expert Fonts" by Idris > Samawi Hamid, which is really clear, to install my own version of > utopia-expert. > > I am now at the TeXfont stage and I've got two strange errors > 1/ TeXfont complain about a missing texteuro > 2/ hungarumlaut is in fact a right curly brace "}" which would give curious > results in hungarian :) > > I've followed the guide step by step and the only difference I can spot is > that the author refers to a "texnansi-lm.enc" which does not exist in my > TeXlive 2007 and that I have used a "lm-texnansi.enc" as base file. > > Any hint would be greatly appreciated. My hint would be to use LuaTeX or XeTeX instead of pdfTeX via TeXFont if you can afford that, at least that's more future-oriented, although the high-level interface might not be 100% stable yet. texfont has some problems and fixing them is not on the high priority list (if you spot a bug in XeTeX or LuaTeX, it will be fixed in the shortest possible time). The procedure with TeXFont assumes some certain names of the glyphs. If glyphs in Utopia have other names (check the name of euro), you need to modify that map file and supply your own file instead of lm-texnansi.enc. 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 ___