ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \textfraction broken?
@ 2017-07-10 17:53 Alan Bowen
  2017-07-10 23:34 ` Alan Bowen
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2017-07-10 17:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 144 bytes --]

Has there been a change to \textfraction?

Try
1\textfraction{1/2}.

I get
1 /1/2
with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)

Alan

[-- Attachment #1.2: Type: text/html, Size: 1043 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \textfraction broken?
  2017-07-10 17:53 \textfraction broken? Alan Bowen
@ 2017-07-10 23:34 ` Alan Bowen
  2017-07-11  0:09   ` Henri Menke
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2017-07-10 23:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 423 bytes --]

Adding

\definefontfeature[fraction][frac=yes]
\definehighlight[textfraction][style={\feature[+][fraction]}]

fixes the problem in the sample just sent.

Sorry for the misfire.

Alan

On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> Has there been a change to \textfraction?
>
> Try
> 1\textfraction{1/2}.
>
> I get
> 1 /1/2
> with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)
>
> Alan
>

[-- Attachment #1.2: Type: text/html, Size: 2191 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \textfraction broken?
  2017-07-10 23:34 ` Alan Bowen
@ 2017-07-11  0:09   ` Henri Menke
  2017-07-12 16:53     ` Alan Bowen
  0 siblings, 1 reply; 5+ messages in thread
From: Henri Menke @ 2017-07-11  0:09 UTC (permalink / raw)
  To: ntg-context

On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote:
> Adding
> 
> \definefontfeature[fraction][frac=yes]		
> \definehighlight[textfraction][style={\feature[+][fraction]}]	
> 
> fixes the problem in the sample just sent.

This, and the font has to have the corresponding feature present.

> 
> Sorry for the misfire.
> 
> Alan
> 
> On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenalan03@gmail.com> wrote:
> > Has there been a change to \textfraction?
> > 
> > Try
> > 1\textfraction{1/2}.
> > 
> > I get 
> > 1 /1/2
> > with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)
> > 
> > Alan
> > 
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \textfraction broken?
  2017-07-11  0:09   ` Henri Menke
@ 2017-07-12 16:53     ` Alan Bowen
  2017-07-12 21:06       ` Henri Menke
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2017-07-12 16:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2050 bytes --]

Thanks, Henri.

The mwe seems to work without specifying the font, but that may just be a
deceptive triumph of bad form.

I have a number of fonts in my document in which I would like \textfraction
to work. Is there are global way to prepare them or must I do it one by one?

Alan

On Mon, Jul 10, 2017 at 8:09 PM, Henri Menke <henrimenke@gmail.com> wrote:

> On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote:
> > Adding
> >
> > \definefontfeature[fraction][frac=yes]
> > \definehighlight[textfraction][style={\feature[+][fraction]}]
> >
> > fixes the problem in the sample just sent.
>
> This, and the font has to have the corresponding feature present.
>
> >
> > Sorry for the misfire.
> >
> > Alan
> >
> > On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenalan03@gmail.com>
> wrote:
> > > Has there been a change to \textfraction?
> > >
> > > Try
> > > 1\textfraction{1/2}.
> > >
> > > I get
> > > 1 /1/2
> > > with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)
> > >
> > > Alan
> > >
> > ____________________________________________________________
> _______________________
> > 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
> ____________________________________________________________
> _______________________

[-- Attachment #1.2: Type: text/html, Size: 4156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \textfraction broken?
  2017-07-12 16:53     ` Alan Bowen
@ 2017-07-12 21:06       ` Henri Menke
  0 siblings, 0 replies; 5+ messages in thread
From: Henri Menke @ 2017-07-12 21:06 UTC (permalink / raw)
  To: ntg-context

On Wed, 2017-07-12 at 12:53 -0400, Alan Bowen wrote:
> Thanks, Henri.
> 
> The mwe seems to work without specifying the font, but that may just be a deceptive triumph of bad
> form.
> 
> I have a number of fonts in my document in which I would like \textfraction to work. Is there are
> global way to prepare them or must I do it one by one?

You cannot prepare the font for this by yourself (unless you are a font designer).  The font needs
to have the "frac" feature present.  Your macro \textfraction{1/2} simply typesets 1/2 with the frac
feature enabled.  You can find out if your font has this feature using the tool otfinfo, e.g.

$ otfinfo -f FiraSans-Regular.otf
aalt	Access All Alternates
c2sc	Small Capitals From Capitals
calt	Contextual Alternates
case	Case-Sensitive Forms
ccmp	Glyph Composition/Decomposition
cpsp	Capital Spacing
dlig	Discretionary Ligatures
dnom	Denominators
frac	Fractions
kern	Kerning
liga	Standard Ligatures
lnum	Lining Figures
mark	Mark Positioning
mgrk	Mathematical Greek
mkmk	Mark to Mark Positioning
numr	Numerators
onum	Oldstyle Figures
ordn	Ordinals
pnum	Proportional Figures
salt	Stylistic Alternates
smcp	Small Capitals
ss01	Stylistic Set 1
ss02	Stylistic Set 2
ss03	Stylistic Set 3
ss04	Stylistic Set 4
subs	Subscript
sups	Superscript
tnum	Tabular Figures
zero	Slashed Zero

> 
> Alan
> 
> On Mon, Jul 10, 2017 at 8:09 PM, Henri Menke <henrimenke@gmail.com> wrote:
> > On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote:
> > > Adding
> > >
> > > \definefontfeature[fraction][frac=yes]
> > > \definehighlight[textfraction][style={\feature[+][fraction]}]
> > >
> > > fixes the problem in the sample just sent.
> > 
> > This, and the font has to have the corresponding feature present.
> > 
> > >
> > > Sorry for the misfire.
> > >
> > > Alan
> > >
> > > On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenalan03@gmail.com> wrote:
> > > > Has there been a change to \textfraction?
> > > >
> > > > Try
> > > > 1\textfraction{1/2}.
> > > >
> > > > I get 
> > > > 1 /1/2
> > > > with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)
> > > >
> > > > Alan
> > > >
> > > ___________________________________________________________________________________
> > > 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
> > ___________________________________________________________________________________
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-12 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10 17:53 \textfraction broken? Alan Bowen
2017-07-10 23:34 ` Alan Bowen
2017-07-11  0:09   ` Henri Menke
2017-07-12 16:53     ` Alan Bowen
2017-07-12 21:06       ` Henri Menke

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).