* languagespecifics
@ 2011-11-04 9:11 Peter Münster
2011-11-04 13:29 ` languagespecifics Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2011-11-04 9:11 UTC (permalink / raw)
To: ConTeXt users
Hello,
Is there something like \startlanguagespecifics[fr] ... \stoplanguagespecifics
in mkiv?
Does it make sense, to keep the module t-french.tex? I would like to
integrate \setcharacterspacing[frenchpunctuation] everywhere (text,
headers, footers and so on), but when a user loads the module and
changes settings for headers or footers afterwards, that setting would
be overwritten.
Thus, if there are no methods, to do such things, I would drop the
module and french specific settings have to be set up on a per document
basis.
What do you think?
--
Peter
___________________________________________________________________________________
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] 6+ messages in thread
* Re: languagespecifics
2011-11-04 9:11 languagespecifics Peter Münster
@ 2011-11-04 13:29 ` Hans Hagen
2011-11-05 12:49 ` languagespecifics Peter Münster
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-11-04 13:29 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Peter Münster
On 4-11-2011 10:11, Peter Münster wrote:
> Hello,
>
> Is there something like \startlanguagespecifics[fr] ... \stoplanguagespecifics
> in mkiv?
>
> Does it make sense, to keep the module t-french.tex? I would like to
> integrate \setcharacterspacing[frenchpunctuation] everywhere (text,
> headers, footers and so on), but when a user loads the module and
> changes settings for headers or footers afterwards, that setting would
> be overwritten.
>
> Thus, if there are no methods, to do such things, I would drop the
> module and french specific settings have to be set up on a per document
> basis.
>
> What do you think?
I'll add a setups option ...
\startsetups dutch:cow
\externalfigure[cow.pdf][frame=on]
\stopsetups
\setuplanguage[nl][setups=dutch:cow]
\starttext
test\language[dutch]test
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] 6+ messages in thread
* Re: languagespecifics
2011-11-04 13:29 ` languagespecifics Hans Hagen
@ 2011-11-05 12:49 ` Peter Münster
2011-11-06 11:47 ` languagespecifics Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2011-11-05 12:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Nov 04 2011, Hans Hagen wrote:
> I'll add a setups option ...
Thanks! Will there also be a possibility to reset settings, when leaving
a language? I had used this before:
\appendtoks \setcharacterspacing[reset] \to \everyresetlanguagespecifics
--
Peter
___________________________________________________________________________________
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] 6+ messages in thread
* Re: languagespecifics
2011-11-05 12:49 ` languagespecifics Peter Münster
@ 2011-11-06 11:47 ` Hans Hagen
2011-11-06 19:40 ` languagespecifics Peter Münster
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-11-06 11:47 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Peter Münster
On 5-11-2011 13:49, Peter Münster wrote:
> On Fri, Nov 04 2011, Hans Hagen wrote:
>
>> I'll add a setups option ...
>
> Thanks! Will there also be a possibility to reset settings, when leaving
> a language? I had used this before:
>
> \appendtoks \setcharacterspacing[reset] \to \everyresetlanguagespecifics
the reset issue is the reason why there is no mechanism yet ... your
example is an an indication of this: it would reset globally set spacing
on the other hand, when you switch language, it will normally happen
grouped so settings are local then
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] 6+ messages in thread
* Re: languagespecifics
2011-11-06 11:47 ` languagespecifics Hans Hagen
@ 2011-11-06 19:40 ` Peter Münster
2011-11-06 19:49 ` languagespecifics Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2011-11-06 19:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, Nov 06 2011, Hans Hagen wrote:
> the reset issue is the reason why there is no mechanism yet ... your example
> is an an indication of this: it would reset globally set spacing
>
> on the other hand, when you switch language, it will normally happen grouped
> so settings are local then
Requiring grouping is good, but it would not solve this specific case:
the mainlanguage is a global setting.
Something like "\setuplanguage[all, !fr][setups=not-french]" would help,
that means setups for all languages but French. Or just \setuplanguage[all][...].
Test file:
--8<---------------cut here---------------start------------->8---
%% Future t-french.tex:
\startsetups french
\setcharacterspacing[frenchpunctuation]
% other French specific settings
\stopsetups
\startsetups not-french
\setcharacterspacing[reset]
% cancel other French specific settings
\stopsetups
\setuplanguage [all] [setups=not-french]
\setuplanguage [fr] [setups=french]
\mainlanguage [fr]
%% Document:
\usemodule[french]
\starttext
test: test\par
\start
\language[en]
test: test\par
\stop
test: test
\stoptext
--8<---------------cut here---------------end--------------->8---
--
Peter
___________________________________________________________________________________
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] 6+ messages in thread
* Re: languagespecifics
2011-11-06 19:40 ` languagespecifics Peter Münster
@ 2011-11-06 19:49 ` Wolfgang Schuster
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2011-11-06 19:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 06.11.2011 um 20:40 schrieb Peter Münster:
> On Sun, Nov 06 2011, Hans Hagen wrote:
>
>> the reset issue is the reason why there is no mechanism yet ... your example
>> is an an indication of this: it would reset globally set spacing
>>
>> on the other hand, when you switch language, it will normally happen grouped
>> so settings are local then
>
> Requiring grouping is good, but it would not solve this specific case:
> the mainlanguage is a global setting.
>
> Something like "\setuplanguage[all, !fr][setups=not-french]" would help,
> that means setups for all languages but French. Or just \setuplanguage[all][…].
There is \setuplanguage[default][..,.=.,..].
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] 6+ messages in thread
end of thread, other threads:[~2011-11-06 19:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-04 9:11 languagespecifics Peter Münster
2011-11-04 13:29 ` languagespecifics Hans Hagen
2011-11-05 12:49 ` languagespecifics Peter Münster
2011-11-06 11:47 ` languagespecifics Hans Hagen
2011-11-06 19:40 ` languagespecifics Peter Münster
2011-11-06 19:49 ` languagespecifics Wolfgang Schuster
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).