Re: [NTG-context] Feature request: Title Case/Start Case

2011-01-31 Thread Wolfgang Schuster

Am 31.01.2011 um 02:11 schrieb Reviczky, Adam:

 Hi,
 
 May I ask for supporting Title Case or Start Case in core ConTeXt?
 Eg: The first letter of each word is capitalized, the rest are lower case.
 
 It would be nice to have something like these:
 \TitleCase{What to capitalize in title case} resulting in What to Capitalize 
 in Title Case
 \StartCase{What to capitalize in start case} resulting in What To Capitalize 
 In Start Case

\setuphead[title][style=\Words]
\starttext
\title{What to capitalize in start case}
\stoptext

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
___


Re: [NTG-context] Feature request: Title Case/Start Case

2011-01-31 Thread Reviczky, Adam
\setuphead[title][style=\Words]
\starttext
\title{What to capitalize in start case}
\stoptext
Thanks, yes, I've seen that, but I was just wondering if this can be done in a 
paragraph, outside a section element.

Adam
___
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] Feature request: Title Case/Start Case

2011-01-31 Thread Wolfgang Schuster

Am 31.01.2011 um 10:21 schrieb Reviczky, Adam:

 \setuphead[title][style=\Words]
 \starttext
 \title{What to capitalize in start case}
 \stoptext
 Thanks, yes, I've seen that, but I was just wondering if this can be done in 
 a paragraph, outside a section element.


\definestartstop[TitleCase][style=\Words]
\starttext
\Words{What to capitalize in start case}\par
\TitleCase{What to capitalize in start case}\par
\startTitleCase What to capitalize in start case\stopTitleCase
\stoptext

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
___


Re: [NTG-context] Feature request: Title Case/Start Case

2011-01-31 Thread Reviczky, Adam
\definestartstop[TitleCase][style=\Words]
\starttext
\Words{What to capitalize in start case}\par
\TitleCase{What to capitalize in start case}\par
\startTitleCase What to capitalize in start case\stopTitleCase
\stoptext
Excellent, thank you Wolfgang!

Adam
___
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
___


[NTG-context] Feature request: Title Case/Start Case

2011-01-30 Thread Reviczky, Adam
Hi,

May I ask for supporting Title Case or Start Case in core ConTeXt?
Eg: The first letter of each word is capitalized, the rest are lower case.

It would be nice to have something like these:
\TitleCase{What to capitalize in title case} resulting in What to Capitalize 
in Title Case
\StartCase{What to capitalize in start case} resulting in What To Capitalize 
In Start Case

If something like this doesn't belong to the core, then can somebody tell me 
how to achieve that as a macro (I've just briefly looked at the typo-cap)?

Thanks,
Adam
___
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
___