* hz off? @ 2009-11-23 9:31 Steffen Wolfrum 2009-11-23 9:40 ` Thomas A. Schmitz 0 siblings, 1 reply; 7+ messages in thread From: Steffen Wolfrum @ 2009-11-23 9:31 UTC (permalink / raw) To: mailing list for ConTeXt users Hi, I am running the current stable MkIV (ConTeXt ver: 2009.10.27 16:35 MKIV) but can't get hz/hanging with the old method (see below). Do we have some other way today? Steffen ------- \showframe \definefontfeature[default][default][mode=node,expansion=quality] \usetypescript[palatino] \setupbodyfont[palatino] \setupalign[hz,hanging] \starttext \input knuth \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] 7+ messages in thread
* Re: hz off? 2009-11-23 9:31 hz off? Steffen Wolfrum @ 2009-11-23 9:40 ` Thomas A. Schmitz 2009-11-23 9:45 ` Hans Hagen 2009-11-23 9:52 ` Steffen Wolfrum 0 siblings, 2 replies; 7+ messages in thread From: Thomas A. Schmitz @ 2009-11-23 9:40 UTC (permalink / raw) To: mailing list for ConTeXt users On Nov 23, 2009, at 10:31 AM, Steffen Wolfrum wrote: > Hi, > > I am running the current stable MkIV (ConTeXt ver: 2009.10.27 16:35 MKIV) but can't get hz/hanging with the old method (see below). > > Do we have some other way today? > > > Steffen > > ------- > > \showframe > > \definefontfeature[default][default][mode=node,expansion=quality] \definefontfeature[default][default][mode=node,expansion=quality,protrusion=pure] > > \usetypescript[palatino] > \setupbodyfont[palatino] > \enableprotruding \enableadjusting > \starttext > > \input knuth > > \stoptext Best 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: hz off? 2009-11-23 9:40 ` Thomas A. Schmitz @ 2009-11-23 9:45 ` Hans Hagen 2009-11-23 9:52 ` Steffen Wolfrum 1 sibling, 0 replies; 7+ messages in thread From: Hans Hagen @ 2009-11-23 9:45 UTC (permalink / raw) To: mailing list for ConTeXt users Thomas A. Schmitz wrote: > \enableprotruding > \enableadjusting \setupaling[hanging] \setupaling[hz] also works with the align={..,..} Hans ----------------------------------------------------------------- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: hz off? 2009-11-23 9:40 ` Thomas A. Schmitz 2009-11-23 9:45 ` Hans Hagen @ 2009-11-23 9:52 ` Steffen Wolfrum 2009-11-23 10:07 ` Hans Hagen 1 sibling, 1 reply; 7+ messages in thread From: Steffen Wolfrum @ 2009-11-23 9:52 UTC (permalink / raw) To: mailing list for ConTeXt users And what's the way to define your own protrusion? Shouldn't it go like this? \showframe \startluacode fonts.protrusions.vectors['MyVector'] = { [0x2044] = { 0, 0.50 }, -- fraction slash [0x002f] = { 0, 0.50 }, -- solidus slash [0x002C] = { 0, 0.50 }, -- comma [0x002E] = { 0, 0.50 }, -- period [0x003A] = { 0, 0.50 }, -- colon [0x003B] = { 0, 0.50 }, -- semicolon [0x002D] = { 0, 0.50 }, -- hyphen [0x2013] = { 0, 0.25 }, -- endash [0x201C] = { 0, -1.25 }, -- quotedblleft } fonts.protrusions.classes['Mypure'] = { vector = 'MyVector', factor = 1 } fonts.expansions.classes['Myquality'] = { stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 } \stopluacode \definefontfeature[default][default][mode=node,expansion=Myquality,protrusion=Mypure] \usetypescript[palatino] \setupbodyfont[palatino] \setupalign[hz,hanging] \enableprotruding \enableadjusting \starttext \input knuth \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: hz off? 2009-11-23 9:52 ` Steffen Wolfrum @ 2009-11-23 10:07 ` Hans Hagen 2009-11-23 10:16 ` Steffen Wolfrum 0 siblings, 1 reply; 7+ messages in thread From: Hans Hagen @ 2009-11-23 10:07 UTC (permalink / raw) To: mailing list for ConTeXt users Steffen Wolfrum wrote: > And what's the way to define your own protrusion? > > Shouldn't it go like this? > > > \showframe > > \startluacode > fonts.protrusions.vectors['MyVector'] = { > > [0x2044] = { 0, 0.50 }, -- fraction slash > [0x002f] = { 0, 0.50 }, -- solidus slash > [0x002C] = { 0, 0.50 }, -- comma > [0x002E] = { 0, 0.50 }, -- period > [0x003A] = { 0, 0.50 }, -- colon > [0x003B] = { 0, 0.50 }, -- semicolon > [0x002D] = { 0, 0.50 }, -- hyphen > [0x2013] = { 0, 0.25 }, -- endash > [0x201C] = { 0, -1.25 }, -- quotedblleft > > } > fonts.protrusions.classes['Mypure'] = { > vector = 'MyVector', factor = 1 > } > > fonts.expansions.classes['Myquality'] = { > stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 > } > \stopluacode something like that yes > > \definefontfeature[default][default][mode=node,expansion=Myquality,protrusion=Mypure] > > \usetypescript[palatino] > \setupbodyfont[palatino] > > \setupalign[hz,hanging] > > \enableprotruding > \enableadjusting the last two are redundant and not needed ----------------------------------------------------------------- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: hz off? 2009-11-23 10:07 ` Hans Hagen @ 2009-11-23 10:16 ` Steffen Wolfrum 2009-11-23 10:50 ` Hans Hagen 0 siblings, 1 reply; 7+ messages in thread From: Steffen Wolfrum @ 2009-11-23 10:16 UTC (permalink / raw) To: mailing list for ConTeXt users Am 23.11.2009 um 11:07 schrieb Hans Hagen: > Steffen Wolfrum wrote: >> And what's the way to define your own protrusion? >> Shouldn't it go like this? >> \showframe >> \startluacode >> fonts.protrusions.vectors['MyVector'] = { >> [0x2044] = { 0, 0.50 }, -- fraction slash >> [0x002f] = { 0, 0.50 }, -- solidus slash >> [0x002C] = { 0, 0.50 }, -- comma >> [0x002E] = { 0, 0.50 }, -- period >> [0x003A] = { 0, 0.50 }, -- colon >> [0x003B] = { 0, 0.50 }, -- semicolon >> [0x002D] = { 0, 0.50 }, -- hyphen >> [0x2013] = { 0, 0.25 }, -- endash >> [0x201C] = { 0, -1.25 }, -- quotedblleft >> } >> fonts.protrusions.classes['Mypure'] = { >> vector = 'MyVector', factor = 1 >> } >> fonts.expansions.classes['Myquality'] = { >> stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 >> } >> \stopluacode > > something like that yes but, that doesn't work anymore! just tested it with ConTeXt ver: 2009.10.27 16:35 MKIV: no protrusion at all ... 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: hz off? 2009-11-23 10:16 ` Steffen Wolfrum @ 2009-11-23 10:50 ` Hans Hagen 0 siblings, 0 replies; 7+ messages in thread From: Hans Hagen @ 2009-11-23 10:50 UTC (permalink / raw) To: mailing list for ConTeXt users Steffen Wolfrum wrote: > Am 23.11.2009 um 11:07 schrieb Hans Hagen: > >> Steffen Wolfrum wrote: >>> And what's the way to define your own protrusion? >>> Shouldn't it go like this? >>> \showframe >>> \startluacode >>> fonts.protrusions.vectors['MyVector'] = { >>> [0x2044] = { 0, 0.50 }, -- fraction slash >>> [0x002f] = { 0, 0.50 }, -- solidus slash >>> [0x002C] = { 0, 0.50 }, -- comma >>> [0x002E] = { 0, 0.50 }, -- period >>> [0x003A] = { 0, 0.50 }, -- colon >>> [0x003B] = { 0, 0.50 }, -- semicolon >>> [0x002D] = { 0, 0.50 }, -- hyphen >>> [0x2013] = { 0, 0.25 }, -- endash >>> [0x201C] = { 0, -1.25 }, -- quotedblleft >>> } >>> fonts.protrusions.classes['Mypure'] = { >>> vector = 'MyVector', factor = 1 >>> } >>> fonts.expansions.classes['Myquality'] = { >>> stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 >>> } >>> \stopluacode >> something like that yes > > > but, that doesn't work anymore! > > just tested it with ConTeXt ver: 2009.10.27 16:35 MKIV: no protrusion at all ... use lowercase vector names a next beta will provide \enabletrackers[fonts.expansion] \enabletrackers[fonts.protrusion] which shows such problems ----------------------------------------------------------------- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-23 10:50 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-11-23 9:31 hz off? Steffen Wolfrum 2009-11-23 9:40 ` Thomas A. Schmitz 2009-11-23 9:45 ` Hans Hagen 2009-11-23 9:52 ` Steffen Wolfrum 2009-11-23 10:07 ` Hans Hagen 2009-11-23 10:16 ` Steffen Wolfrum 2009-11-23 10:50 ` Hans Hagen
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).