* Bug: footnote's "textcommand" overflows?
@ 2011-04-24 17:23 Oliver Buerschaper
2011-04-24 19:16 ` Oliver Buerschaper
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2011-04-24 17:23 UTC (permalink / raw)
To: mailing ConTeXt users list for
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
Dear all,
there appears to be a bug in the handling of font features in footnotes… the following messes up the footnote block in 2011.04.20 16:23, but yields the expected result in 2011.02.14 23:30.
---
\definefontfeature
[superscripts]
[default]
[sups=yes]
\usetypefile
[type-optical]
\usetypescript
[minion]
\setupbodyfont
[minion]
\setupnote
[footnote]
[textcommand=\setfontfeature{superscripts},
textstyle=,
numbercommand=]
\starttext
\dorecurse{9}{This\footnote{Hello World #1} is a test.\par }
\stoptext
---
The problem is not triggered for Latin Modern, also not for, say, "textcommand=\it". What's going on?
Best,
Oliver
[-- Attachment #2: type-optical.tex --]
[-- Type: application/octet-stream, Size: 11893 bytes --]
%D \module
%D [ file=type-optical,
%D version=2009.03.25,
%D title=\CONTEXT\ Typescript Macros,
%D subtitle=Adobe Font Definitions,
%D author=Wolfgang Schuster,
%D date=\currentdate,
%D copyright=Wolfgang Schuster]
%C
%C Copyright 2009 Wolfgang Schuster.
%C This file may be distributed under the GNU General Public License v. 2.0.
% OB
%
% From Minion Pro Opticals release notes:
%
% Caption: 6--8.4 pt
% Regular: 8.5--13.0 pt
% Subhead: 13.1--19.9 pt
% Display: 20.0+ pt
\startsetups [font:optical:serif]
\definefontsynonym [SerifCaption-Regular] [SerifRegular-Regular]
\definefontsynonym [SerifCaption-Bold] [SerifCaption-Regular]
\definefontsynonym [SerifCaption-Italic] [SerifCaption-Regular]
\definefontsynonym [SerifCaption-Slanted] [SerifCaption-Italic]
\definefontsynonym [SerifCaption-BoldItalic] [SerifCaption-Regular]
\definefontsynonym [SerifCaption-BoldSlanted] [SerifCaption-BoldItalic]
\definefontsynonym [SerifRegular-Regular] [DefaultFont]
\definefontsynonym [SerifRegular-Bold] [SerifRegular-Regular]
\definefontsynonym [SerifRegular-Italic] [SerifRegular-Regular]
\definefontsynonym [SerifRegular-Slanted] [SerifRegular-Italic]
\definefontsynonym [SerifRegular-BoldItalic] [SerifRegular-Regular]
\definefontsynonym [SerifRegular-BoldSlanted] [SerifRegular-BoldItalic]
\definefontsynonym [SerifSubhead-Regular] [SerifRegular-Regular]
\definefontsynonym [SerifSubhead-Bold] [SerifSubhead-Regular]
\definefontsynonym [SerifSubhead-Italic] [SerifSubhead-Regular]
\definefontsynonym [SerifSubhead-Slanted] [SerifSubhead-Italic]
\definefontsynonym [SerifSubhead-BoldItalic] [SerifSubhead-Regular]
\definefontsynonym [SerifSubhead-BoldSlanted] [SerifSubhead-BoldItalic]
\definefontsynonym [SerifDisplay-Regular] [SerifRegular-Regular]
\definefontsynonym [SerifDisplay-Bold] [SerifDisplay-Regular]
\definefontsynonym [SerifDisplay-Italic] [SerifDisplay-Regular]
\definefontsynonym [SerifDisplay-Slanted] [SerifDisplay-Italic]
\definefontsynonym [SerifDisplay-BoldItalic] [SerifDisplay-Regular]
\definefontsynonym [SerifDisplay-BoldSlanted] [SerifDisplay-BoldItalic]
\stopsetups
\startsetups [font:optical:sans]
\definefontsynonym [SansCaption-Regular] [SansRegular-Regular]
\definefontsynonym [SansCaption-Bold] [SansCaption-Regular]
\definefontsynonym [SansCaption-Italic] [SansCaption-Regular]
\definefontsynonym [SansCaption-Slanted] [SansCaption-Italic]
\definefontsynonym [SansCaption-BoldItalic] [SansCaption-Regular]
\definefontsynonym [SansCaption-BoldSlanted] [SansCaption-BoldItalic]
\definefontsynonym [SansRegular-Regular] [DefaultFont]
\definefontsynonym [SansRegular-Bold] [SansRegular-Regular]
\definefontsynonym [SansRegular-Italic] [SansRegular-Regular]
\definefontsynonym [SansRegular-Slanted] [SansRegular-Italic]
\definefontsynonym [SansRegular-BoldItalic] [SansRegular-Regular]
\definefontsynonym [SansRegular-BoldSlanted] [SansRegular-BoldItalic]
\definefontsynonym [SansSubhead-Regular] [SansRegular-Regular]
\definefontsynonym [SansSubhead-Bold] [SansSubhead-Regular]
\definefontsynonym [SansSubhead-Italic] [SansSubhead-Regular]
\definefontsynonym [SansSubhead-Slanted] [SansSubhead-Italic]
\definefontsynonym [SansSubhead-BoldItalic] [SansSubhead-Regular]
\definefontsynonym [SansSubhead-BoldSlanted] [SansSubhead-BoldItalic]
\definefontsynonym [SansDisplay-Regular] [SansRegular-Regular]
\definefontsynonym [SansDisplay-Bold] [SansDisplay-Regular]
\definefontsynonym [SansDisplay-Italic] [SansDisplay-Regular]
\definefontsynonym [SansDisplay-Slanted] [SansDisplay-Italic]
\definefontsynonym [SansDisplay-BoldItalic] [SansDisplay-Regular]
\definefontsynonym [SansDisplay-BoldSlanted] [SansDisplay-BoldItalic]
\stopsetups
\starttypescript [serif] [optical] [size]
\definebodyfont [4pt,5pt,6pt,7pt,8pt] [rm]
[tf=SerifCaption-Regular sa 1,
bf=SerifCaption-Bold sa 1,
it=SerifCaption-Italic sa 1,
sl=SerifCaption-Slanted sa 1,
bi=SerifCaption-BoldItalic sa 1,
bs=SerifCaption-BoldSlanted sa 1]
\definebodyfont [9pt,10pt,11pt,12pt] [rm]
[tf=SerifRegular-Regular sa 1,
bf=SerifRegular-Bold sa 1,
it=SerifRegular-Italic sa 1,
sl=SerifRegular-Slanted sa 1,
bi=SerifRegular-BoldItalic sa 1,
bs=SerifRegular-BoldSlanted sa 1]
\definebodyfont [14.4pt,17.3pt] [rm]
[tf=SerifSubhead-Regular sa 1,
bf=SerifSubhead-Bold sa 1,
it=SerifSubhead-Italic sa 1,
sl=SerifSubhead-Slanted sa 1,
bi=SerifSubhead-BoldItalic sa 1,
bs=SerifSubhead-BoldSlanted sa 1]
\definebodyfont [20.7pt] [rm]
[tf=SerifDisplay-Regular sa 1,
bf=SerifDisplay-Bold sa 1,
it=SerifDisplay-Italic sa 1,
sl=SerifDisplay-Slanted sa 1,
bi=SerifDisplay-BoldItalic sa 1,
bs=SerifDisplay-BoldSlanted sa 1]
\stoptypescript
\starttypescript [sans] [optical] [size]
\definebodyfont [4pt,5pt,6pt,7pt,8pt] [ss]
[tf=SansCaption-Regular sa 1,
bf=SansCaption-Bold sa 1,
it=SansCaption-Italic sa 1,
sl=SansCaption-Slanted sa 1,
bi=SansCaption-BoldItalic sa 1,
bs=SansCaption-BoldSlanted sa 1]
\definebodyfont [9pt,10pt,11pt,12pt] [ss]
[tf=SansRegular-Regular sa 1,
bf=SansRegular-Bold sa 1,
it=SansRegular-Italic sa 1,
sl=SansRegular-Slanted sa 1,
bi=SansRegular-BoldItalic sa 1,
bs=SansRegular-BoldSlanted sa 1]
\definebodyfont [14.4pt,17.3pt] [ss]
[tf=SansSubhead-Regular sa 1,
bf=SansSubhead-Bold sa 1,
it=SansSubhead-Italic sa 1,
sl=SansSubhead-Slanted sa 1,
bi=SansSubhead-BoldItalic sa 1,
bs=SansSubhead-BoldSlanted sa 1]
\definebodyfont [20.7pt] [ss]
[tf=SansDisplay-Regular sa 1,
bf=SansDisplay-Bold sa 1,
it=SansDisplay-Italic sa 1,
sl=SansDisplay-Slanted sa 1,
bi=SansDisplay-BoldItalic sa 1,
bs=SansDisplay-BoldSlanted sa 1]
\stoptypescript
\starttypescript [serif] [brioso,minion]
\definefontsynonym [Serif] [SerifRegular-Regular]
\definefontsynonym [SerifBold] [SerifRegular-Bold]
\definefontsynonym [SerifItalic] [SerifRegular-Italic]
\definefontsynonym [SerifBoldItalic] [SerifRegular-BoldItalic]
\stoptypescript
\starttypescript [sans] [cronos]
\definefontsynonym [Sans] [SansRegular-Regular]
\definefontsynonym [SansBold] [SansRegular-Bold]
\definefontsynonym [SansItalic] [SansRegular-Italic]
\definefontsynonym [SansBoldItalic] [SansRegular-BoldItalic]
\stoptypescript
\starttypescript [serif] [minion]
\setups[font:optical:serif]
\definefontsynonym [SerifCaption-Regular] [name:MinionPro-Capt] [features=default]
\definefontsynonym [SerifCaption-Bold] [name:MinionPro-BoldCapt] [features=default]
\definefontsynonym [SerifCaption-Italic] [name:MinionPro-ItCapt] [features=default]
\definefontsynonym [SerifCaption-BoldItalic] [name:MinionPro-BoldItCapt] [features=default]
\definefontsynonym [SerifRegular-Regular] [name:MinionPro-Regular] [features=default]
\definefontsynonym [SerifRegular-Bold] [name:MinionPro-Bold] [features=default]
\definefontsynonym [SerifRegular-Italic] [name:MinionPro-It] [features=default]
\definefontsynonym [SerifRegular-BoldItalic] [name:MinionPro-BoldIt] [features=default]
\definefontsynonym [SerifSubhead-Regular] [name:MinionPro-Subh] [features=default]
\definefontsynonym [SerifSubhead-Bold] [name:MinionPro-BoldSubh] [features=default]
\definefontsynonym [SerifSubhead-Italic] [name:MinionPro-ItSubh] [features=default]
\definefontsynonym [SerifSubhead-BoldItalic] [name:MinionPro-BoldItSubh] [features=default]
\definefontsynonym [SerifDisplay-Regular] [name:MinionPro-Disp] [features=default]
\definefontsynonym [SerifDisplay-Bold] [name:MinionPro-BoldDisp] [features=default]
\definefontsynonym [SerifDisplay-Italic] [name:MinionPro-ItDisp] [features=default]
\definefontsynonym [SerifDisplay-BoldItalic] [name:MinionPro-BoldItDisp] [features=default]
\stoptypescript
\starttypescript [serif] [brioso]
\setups[font:optical:serif]
\definefontsynonym [SerifCaption-Regular] [name:BriosoPro-Capt] [features=default]
\definefontsynonym [SerifCaption-Bold] [name:BriosoPro-BoldCapt] [features=default]
\definefontsynonym [SerifCaption-Italic] [name:BriosoPro-ItCapt] [features=default]
\definefontsynonym [SerifCaption-BoldItalic] [name:BriosoPro-BoldItCapt] [features=default]
\definefontsynonym [SerifRegular-Regular] [name:BriosoPro-Regular] [features=default]
\definefontsynonym [SerifRegular-Bold] [name:BriosoPro-Bold] [features=default]
\definefontsynonym [SerifRegular-Italic] [name:BriosoPro-Italic] [features=default]
\definefontsynonym [SerifRegular-BoldItalic] [name:BriosoPro-BoldIt] [features=default]
\definefontsynonym [SerifSubhead-Regular] [name:BriosoPro-Subh] [features=default]
\definefontsynonym [SerifSubhead-Bold] [name:BriosoPro-BoldSubh] [features=default]
\definefontsynonym [SerifSubhead-Italic] [name:BriosoPro-ItSubh] [features=default]
\definefontsynonym [SerifSubhead-BoldItalic] [name:BriosoPro-BoldItSubh] [features=default]
\definefontsynonym [SerifDisplay-Regular] [name:BriosoPro-Disp] [features=default]
\definefontsynonym [SerifDisplay-Bold] [name:BriosoPro-BoldDisp] [features=default]
\definefontsynonym [SerifDisplay-Italic] [name:BriosoPro-ItDisp] [features=default]
\definefontsynonym [SerifDisplay-BoldItalic] [name:BriosoPro-BoldItDisp] [features=default]
\stoptypescript
\starttypescript [sans] [cronos]
\setups[font:optical:sans]
\definefontsynonym [SansCaption-Regular] [name:CronosPro-Capt] [features=default]
\definefontsynonym [SansCaption-Italic] [name:CronosPro-CaptIt] [features=default]
\definefontsynonym [SansCaption-Bold] [name:CronosPro-BoldCapt] [features=default]
\definefontsynonym [SansCaption-BoldItalic] [name:CronosPro-BoldCaptIt] [features=default]
\definefontsynonym [SansRegular-Regular] [name:CronosPro-Regular] [features=default]
\definefontsynonym [SansRegular-Italic] [name:CronosPro-Italic] [features=default]
\definefontsynonym [SansRegular-Bold] [name:CronosPro-Bold] [features=default]
\definefontsynonym [SansRegular-BoldItalic] [name:CronosPro-BoldIt] [features=default]
\definefontsynonym [SansSubhead-Regular] [name:CronosPro-Subh] [features=default]
\definefontsynonym [SansSubhead-Bold] [name:CronosPro-BoldSubh] [features=default]
\definefontsynonym [SansSubhead-Italic] [name:CronosPro-SubhIt] [features=default]
\definefontsynonym [SansSubhead-BoldItalic] [name:CronosPro-BoldSubhIt] [features=default]
\definefontsynonym [SansDisplay-Regular] [name:CronosPro-Disp] [features=default]
\definefontsynonym [SansDisplay-Bold] [name:CronosPro-BoldDisp] [features=default]
\definefontsynonym [SansDisplay-Italic] [name:CronosPro-DispIt] [features=default]
\definefontsynonym [SansDisplay-BoldItalic] [name:CronosPro-BoldDispIt] [features=default]
\stoptypescript
\starttypescript [brioso,minion]
\definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [optical]
\stoptypescript
\starttypescript [cronos]
\definetypeface [\typescriptone] [ss] [sans] [\typescriptone] [optical]
\stoptypescript
\endinput
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: footnote's "textcommand" overflows?
2011-04-24 17:23 Bug: footnote's "textcommand" overflows? Oliver Buerschaper
@ 2011-04-24 19:16 ` Oliver Buerschaper
2011-04-24 19:23 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2011-04-24 19:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
> there appears to be a bug in the handling of font features in footnotes… the following messes up the footnote block in 2011.04.20 16:23, but yields the expected result in 2011.02.14 23:30.
Even shorter example (with Latin Modern):
---
\definefontfeature
[superscripts]
[default]
[sups=yes]
\setupnote
[footnote]
[textcommand=\os,
textstyle=]
\starttext
The \type{textcommand} should not leak into the footnote block%
\footnote{The number 13 should not be typeset with oldstyle numerals.}.
\stoptext
---
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: footnote's "textcommand" overflows?
2011-04-24 19:16 ` Oliver Buerschaper
@ 2011-04-24 19:23 ` Wolfgang Schuster
2011-04-25 8:30 ` Oliver Buerschaper
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-04-24 19:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 24.04.2011 um 21:16 schrieb Oliver Buerschaper:
>> there appears to be a bug in the handling of font features in footnotes… the following messes up the footnote block in 2011.04.20 16:23, but yields the expected result in 2011.02.14 23:30.
>
> Even shorter example (with Latin Modern):
>
> ---
> \definefontfeature
> [superscripts]
> [default]
> [sups=yes]
>
> \setupnote
> [footnote]
> [textcommand=\os,
> textstyle=]
Use “textstyle”, command keys expect commands with argument and not font/style switches.
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: footnote's "textcommand" overflows?
2011-04-24 19:23 ` Wolfgang Schuster
@ 2011-04-25 8:30 ` Oliver Buerschaper
0 siblings, 0 replies; 4+ messages in thread
From: Oliver Buerschaper @ 2011-04-25 8:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Use “textstyle”, command keys expect commands with argument and not font/style switches.
Thanks for the explanation. Will keep that in mind…
Oliver
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-25 8:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-24 17:23 Bug: footnote's "textcommand" overflows? Oliver Buerschaper
2011-04-24 19:16 ` Oliver Buerschaper
2011-04-24 19:23 ` Wolfgang Schuster
2011-04-25 8:30 ` Oliver Buerschaper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).