* no protrusion for hyphen ??
@ 2010-03-03 11:44 Steffen Wolfrum
2010-03-03 12:31 ` Thomas A. Schmitz
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Wolfrum @ 2010-03-03 11:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I have read there were troubles with |-| in MkIV last year.
I found another one: the hyphen set by |-| doesn't get protruded.
See example below, please:
\startluacode
fonts.protrusions.vectors['stpure'] = {
[0x002D] = { 0, 0.50 }, -- hyphen
}
fonts.protrusions.classes['stwpure'] = {
vector = 'stpure', factor = 1
}
\stopluacode
\definefontfeature[default][default]
[mode=node,protrusion=stwpure,script=latn]% extend=2,slant=.2,
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\setupbodyfont[postscript,18pt]
\setupalign[line,block,hanging]
\showframe
\starttext
\dorecurse{13}{test } test|-|text test
\dorecurse{13}{test } test- text test
\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] 5+ messages in thread
* Re: no protrusion for hyphen ??
2010-03-03 11:44 no protrusion for hyphen ?? Steffen Wolfrum
@ 2010-03-03 12:31 ` Thomas A. Schmitz
2010-03-03 12:49 ` Steffen Wolfrum
0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2010-03-03 12:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mar 3, 2010, at 12:44 PM, Steffen Wolfrum wrote:
> Hi,
>
> I have read there were troubles with |-| in MkIV last year.
>
> I found another one: the hyphen set by |-| doesn't get protruded.
Why do you need this |-| hyphen?
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] 5+ messages in thread
* Re: no protrusion for hyphen ??
2010-03-03 12:31 ` Thomas A. Schmitz
@ 2010-03-03 12:49 ` Steffen Wolfrum
2010-03-03 13:04 ` Thomas A. Schmitz
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Wolfrum @ 2010-03-03 12:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 03.03.2010 um 13:31 schrieb Thomas A. Schmitz:
>
> On Mar 3, 2010, at 12:44 PM, Steffen Wolfrum wrote:
>
>> Hi,
>>
>> I have read there were troubles with |-| in MkIV last year.
>>
>> I found another one: the hyphen set by |-| doesn't get protruded.
>
> Why do you need this |-| hyphen?
For hyphenation!
Just try yourself: with "-" instead of "|-|" there is no hyphenation for test-text:
\startluacode
fonts.protrusions.vectors['stpure'] = {
[0x002D] = { 0, 0.50 }, -- hyphen
}
fonts.protrusions.classes['stwpure'] = {
vector = 'stpure', factor = 1
}
\stopluacode
\definefontfeature[default][default]
[mode=node,protrusion=stwpure,script=latn]% extend=2,slant=.2,
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\setupbodyfont[postscript,18pt]
\setupalign[line,block,hanging]
\showframe
\starttext
\dorecurse{13}{test } test|-|text test
\dorecurse{13}{test } test-text test
\dorecurse{13}{test } test- text test
\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] 5+ messages in thread
* Re: no protrusion for hyphen ??
2010-03-03 12:49 ` Steffen Wolfrum
@ 2010-03-03 13:04 ` Thomas A. Schmitz
2010-03-03 14:25 ` Steffen Wolfrum
0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2010-03-03 13:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mar 3, 2010, at 1:49 PM, Steffen Wolfrum wrote:
> For hyphenation!
>
> Just try yourself: with "-" instead of "|-|" there is no hyphenation for test-text:
>
>
> \startluacode
> fonts.protrusions.vectors['stpure'] = {
> [0x002D] = { 0, 0.50 }, -- hyphen
> }
> fonts.protrusions.classes['stwpure'] = {
> vector = 'stpure', factor = 1
> }
> \stopluacode
>
> \definefontfeature[default][default]
> [mode=node,protrusion=stwpure,script=latn]% extend=2,slant=.2,
> \usetypescript[postscript]
> \definetypeface[postscript][rm][serif][times][default]
> \setupbodyfont[postscript,18pt]
> \setupalign[line,block,hanging]
>
\setbreakpoints[compound]
> \showframe
>
> \starttext
>
> \dorecurse{13}{test } test|-|text test
>
> \dorecurse{13}{test } test-text test
>
> \dorecurse{13}{test } test- text test
>
> \stoptext
>
And see http://archive.contextgarden.net/message/20071214.090643.99a01996.en.html
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] 5+ messages in thread
* Re: no protrusion for hyphen ??
2010-03-03 13:04 ` Thomas A. Schmitz
@ 2010-03-03 14:25 ` Steffen Wolfrum
0 siblings, 0 replies; 5+ messages in thread
From: Steffen Wolfrum @ 2010-03-03 14:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 03.03.2010 um 14:04 schrieb Thomas A. Schmitz:
>
> On Mar 3, 2010, at 1:49 PM, Steffen Wolfrum wrote:
>
>> For hyphenation!
>>
>> Just try yourself: with "-" instead of "|-|" there is no hyphenation for test-text:
>>
>>
>> \startluacode
>> fonts.protrusions.vectors['stpure'] = {
>> [0x002D] = { 0, 0.50 }, -- hyphen
>> }
>> fonts.protrusions.classes['stwpure'] = {
>> vector = 'stpure', factor = 1
>> }
>> \stopluacode
>>
>> \definefontfeature[default][default]
>> [mode=node,protrusion=stwpure,script=latn]% extend=2,slant=.2,
>> \usetypescript[postscript]
>> \definetypeface[postscript][rm][serif][times][default]
>> \setupbodyfont[postscript,18pt]
>> \setupalign[line,block,hanging]
>>
>
> \setbreakpoints[compound]
>
>> \showframe
>>
>> \starttext
>>
>> \dorecurse{13}{test } test|-|text test
>>
>> \dorecurse{13}{test } test-text test
>>
>> \dorecurse{13}{test } test- text test
>>
>> \stoptext
>>
> And see http://archive.contextgarden.net/message/20071214.090643.99a01996.en.html
Wow ... 2007.12.14 :o)
Thank you Thomas!
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] 5+ messages in thread
end of thread, other threads:[~2010-03-03 14:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-03 11:44 no protrusion for hyphen ?? Steffen Wolfrum
2010-03-03 12:31 ` Thomas A. Schmitz
2010-03-03 12:49 ` Steffen Wolfrum
2010-03-03 13:04 ` Thomas A. Schmitz
2010-03-03 14:25 ` Steffen Wolfrum
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).