Re: [NTG-context] Initials and short paragraph
Thank you, I think I can make something with this. On Tue, Jun 20, 2017 at 9:45 PM, Pablo Rodriguez wrote: > On 06/20/2017 10:15 PM, Martin Oppegaard wrote: > > Thanks for the suggestions! Is there a way to get the amount of > > horizontal space the initial takes so that can be put in manually in > > front of the next paragraph? > > Martin, > > how about making the initial transparent? > > \definecolor[transparentblue][t=0, a=1] > \setupwhitespace[medium] > \starttext > \placeinitial > Knuth writes: > > \placeinitial \starteffect[hidden]K\stopeffect\input knuth > \setupinitial[color=transparentblue] > > \placeinitial K\input knuth > \stoptext > > The sample contains two methods. > > Just in case it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Initials and short paragraph
Thanks for the suggestions! Is there a way to get the amount of horizontal space the initial takes so that can be put in manually in front of the next paragraph? On Tue, Jun 20, 2017 at 6:51 PM, Pablo Rodriguez wrote: > On 06/09/2017 07:05 AM, Martin Oppegaard wrote: > > Hi, > > > > When placing an initial and the paragraph is short, the initial is > > laid over the next paragraph. Example: > > > > \starttext > > \placeinitial > > Knuth writes: > > > > \input knuth > > \stoptext > > > > Is there anything to do about this? > > Hi Martin, > > I guess initials make sense only when used inside a paragraph. It is > problematic when you have white space defined. > > Having margin initials is also another approach. You may compare both > with the following sample: > > \setupwhitespace[medium] > \setupinitial[location=margin] > \starttext > \placeinitial > Knuth writes: > > \input knuth > \setupinitial[location=text] > \placeinitial > Knuth writes:\\ > \input knuth > \stoptext > > I hope it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Initials and short paragraph
Hi, When placing an initial and the paragraph is short, the initial is laid over the next paragraph. Example: \starttext \placeinitial Knuth writes: \input knuth \stoptext Is there anything to do about this? Regards, Martin Oppegaard ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with old style figures and particular font
On Fri, Aug 12 2016, Wolfgang Schuster wrote: > > > Martin Oppegaard > 11. August 2016 um 21:42 > > Hi Wolfgang, thank you for the quick reply. > > > Moving \definefontfeature before \setupbodyfont doesn't change > anything > for me. Here is the output of running context: > > You need also "script=latn" when you enable oldstyle numerals. > > You can use the mtxrun script to list the available features of a font > where you also see the necessary script: > > $ mtxrun --script font --list --info fbbregular > > resolvers | trees | analyzing 'home:texmf' > mtx-fonts | > mtx-fonts | mapping : fbbregular > mtx-fonts | fontname : fbbregular > mtx-fonts | fullname : fbbregular > mtx-fonts | filename : fbb-Regular.otf > mtx-fonts | family : fbb > mtx-fonts | weight : normal > mtx-fonts | style : normal > mtx-fonts | width : normal > mtx-fonts | variant : normal > mtx-fonts | fweight : conflict: regular > mtx-fonts | > ... > mtx-fonts | > mtx-fonts | gsub features: > mtx-fonts | > mtx-fonts | feature script languages > mtx-fonts | > ... > mtx-fonts | onum grek dflt > mtx-fonts | latn dflt > > begin example > \starttypescript [serif] [fbb] > \setups[font:fallback:serif] > \definefontsynonym [Serif] [file:fbbregular] > \definefontsynonym [SerifItalic] [file:fbbitalic] > \definefontsynonym [SerifBold] [file:fbbbold] > \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic] > \stoptypescript > > \definefontfeature[default][default][script=latn,onum=yes] > > \definetypeface [fbb] [rm] [serif] [fbb] [default] [features=default] > \definetypeface [fbb] [mm] [math] [modern] [default] > > \setupbodyfont[fbb] > > \starttext > ABC abc 1234 > \stoptext > end example > > Wolfgang Ah that solved it, thank you very much! Best regards, Martin Oppegaard ___ 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] Problems with old style figures and particular font
Hi Wolfgang, thank you for the quick reply. On Thu, Aug 11 2016, Wolfgang Schuster wrote: > > > Martin Oppegaard > 10. August 2016 um 22:27 > > Dear list, > > I'm having problems getting old style figures and ligatures with > the fbb > font. I'm using Tex live 2014 on OpenBSD 5.9 and context version > 2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has > onum > and liga, and it works fine with lualatex. I have tried with a > typescript and simplefont (the fbb font is being used in all three > cases); see attached examples. Do you have any suggestions? > > % type-fbb.mkiv > \starttypescript [serif] [fbb] [name] > \definefontsynonym [Serif] [file:fbb-Regular.otf] > [features=default] > \definefontsynonym [SerifItalic] [file:fbb-Italic.otf] > [features=default] > \stoptypescript > > \starttypescript [fbb] > \definetypeface [fbb] [rm] [serif] [fbb] [default] > \stoptypescript > > > % contex-test1.tex > \usetypescriptfile[type-fbb] > \usetypescript[fbb] > \setupbodyfont[fbb,11pt] > \definefontfeature[default][default][liga=yes,onum=yes] > > Move the \definefontfeature setting before \setupbodyfont because > changes to the feature set after the font is loaded are ignored. > > \definefontfeature[default][default][liga=yes,onum=yes] > \setupbodyfont[fbb,11pt] > > Wolfgang > Moving \definefontfeature before \setupbodyfont doesn't change anything for me. Here is the output of running context: open source > 1 > 1 > /usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2016.2.22 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv close source> 2 > 2 > /usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv system > files > jobname 'context-test1', input './context-test1', result 'context-test1' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/martin/documents/fbb-test/context-test1.tex open source > 3 > 4 > type-fbb.mkiv close source> 3 > 4 > type-fbb.mkiv fonts > preloading modern-designsize (math) fonts > typescripts > unknown library 'modern-designsize' or 'modern' fonts > 'fallback modern-designsize mm 11pt' is loaded fonts > preloading modern-designsize (mono) fonts > 'fallback modern-designsize tt 11pt' is loaded backend > xmp > using file '/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 close source> 2 > 4 > /home/martin/documents/fbb-test/context-test1.tex close source> 1 > 4 > /usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv system > structure > start used structure used structure > text: context-test1 system > structure > stop used structure system > files > start used files used file >1: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv usedmethod=database used file >2: filename=cont-new.mkiv filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv usedmethod=database used file >3: filename=lang-us.lua filetype=lua foundname=/usr/local/share/texmf-dist/tex/context/patterns/lang-us.lua usedmethod=database used file >4: filename=/home/martin/documents/fbb-test/context-test1.tex foundname=/home/martin/documents/fbb-test/context-test1.tex usedmethod=direct used file >5: filename=type-fbb.mkiv foundname=type-fbb.mkiv usedmethod=direct used file >6: filename=fbb-Regular.otf filetype=otf format=otf foundname=/usr/local/share/texmf-dist/fonts/opentype/public/fbb/fbb-Regular.otf usedmethod=database used file >7: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml usedmethod=database system > files > stop used files system > options > start commandline options used option > currentrun="3" used option > fulljobname="./context-test1.tex" used option > input="./context-test1.tex" used option > kindofrun="2" used option > maxnofruns="8" used option > no-parse-first-line="true" system
[NTG-context] Problems with old style figures and particular font
Dear list, I'm having problems getting old style figures and ligatures with the fbb font. I'm using Tex live 2014 on OpenBSD 5.9 and context version 2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has onum and liga, and it works fine with lualatex. I have tried with a typescript and simplefont (the fbb font is being used in all three cases); see attached examples. Do you have any suggestions? % type-fbb.mkiv \starttypescript [serif] [fbb] [name] \definefontsynonym [Serif] [file:fbb-Regular.otf] [features=default] \definefontsynonym [SerifItalic] [file:fbb-Italic.otf] [features=default] \stoptypescript \starttypescript [fbb] \definetypeface [fbb] [rm] [serif] [fbb] [default] \stoptypescript % contex-test1.tex \usetypescriptfile[type-fbb] \usetypescript[fbb] \setupbodyfont[fbb,11pt] \definefontfeature[default][default][liga=yes,onum=yes] \starttext 1234567890 ff \stoptext % context-test2.tex \usemodule[simplefonts][size=11pt] \setmainfont[fbb Regular] \definefontfeature[default][default][liga=yes,onum=yes] \starttext 1234567890 ff \stoptext % lualatex-test.tex \documentclass[11pt]{article} \usepackage{fontspec} \setmainfont[Numbers=OldStyle,Ligatures=Historic]{fbb Regular} \begin{document} 1234567890 ff \end{document} Best regards, Martin Oppegaard ___ 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 ___