ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug with setuplanguage
@ 2016-06-04 22:32 Aditya Mahajan
  2016-06-05  6:24 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2016-06-04 22:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 613 bytes --]

Hi,

I discovered this bug while answering a question on TeX.SX. Consider:

\define\cyrdash{\dontleavehmode\scale[sx=0.80]{---}}
\unprotect
\setuplanguage
   [\s!ru]
   [
     \c!midsentence=\cyrdash,
     \c!leftsentence=\cyrdash,
     \c!rightsentence=\cyrdash,
   ]
\protect


\setupbodyfont[dejavu]

\starttext
Normal text|<|English

\mainlanguage[ru]
Normal text|<|Russian
\stoptext

The pdf shows:

Normal text—English
Normal text„Russian

Why the quote instead of the emdash. The output is okay is if 
\mainlanguage is set before |<| is used for the first time.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Bug with setuplanguage
  2016-06-04 22:32 Bug with setuplanguage Aditya Mahajan
@ 2016-06-05  6:24 ` Wolfgang Schuster
  2016-06-05 17:22   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2016-06-05  6:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Aditya Mahajan <mailto:adityam@umich.edu>
> 5. Juni 2016 um 00:32
> Hi,
>
> I discovered this bug while answering a question on TeX.SX. Consider:
>
> \define\cyrdash{\dontleavehmode\scale[sx=0.80]{---}}
> \unprotect
> \setuplanguage
>   [\s!ru]
>   [
>     \c!midsentence=\cyrdash,
>     \c!leftsentence=\cyrdash,
>     \c!rightsentence=\cyrdash,
>   ]
> \protect
>
>
> \setupbodyfont[dejavu]
>
> \starttext
> Normal text|<|English
>
> \mainlanguage[ru]
> Normal text|<|Russian
> \stoptext
>
> The pdf shows:
>
> Normal text—English
> Normal text„Russian
>
> Why the quote instead of the emdash. The output is okay is if 
> \mainlanguage is set before |<| is used for the first time.
When subsentences are nested the inner group uses the leftsubsentence 
and rightsubsentence symbols.

\mainlanguage[ru]

\starttext
outer|<|inner|<|nested|>|inner|>|outer
\stoptext

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Bug with setuplanguage
  2016-06-05  6:24 ` Wolfgang Schuster
@ 2016-06-05 17:22   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2016-06-05 17:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1041 bytes --]

On Sun, 5 Jun 2016, Wolfgang Schuster wrote:

>> Aditya Mahajan <mailto:adityam@umich.edu>
>> 5. Juni 2016 um 00:32
>> Hi,
>> 
>> I discovered this bug while answering a question on TeX.SX. Consider:
>> 
>> \define\cyrdash{\dontleavehmode\scale[sx=0.80]{---}}
>> \unprotect
>> \setuplanguage
>>   [\s!ru]
>>   [
>>     \c!midsentence=\cyrdash,
>>     \c!leftsentence=\cyrdash,
>>     \c!rightsentence=\cyrdash,
>>   ]
>> \protect
>> 
>> 
>> \setupbodyfont[dejavu]
>> 
>> \starttext
>> Normal text|<|English
>> 
>> \mainlanguage[ru]
>> Normal text|<|Russian
>> \stoptext
>> 
>> The pdf shows:
>> 
>> Normal text—English
>> Normal text„Russian
>> 
>> Why the quote instead of the emdash. The output is okay is if \mainlanguage 
>> is set before |<| is used for the first time.
> When subsentences are nested the inner group uses the leftsubsentence and 
> rightsubsentence symbols.
>
> \mainlanguage[ru]
>
> \starttext
> outer|<|inner|<|nested|>|inner|>|outer
> \stoptext

Ah, thanks!

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-06-05 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-04 22:32 Bug with setuplanguage Aditya Mahajan
2016-06-05  6:24 ` Wolfgang Schuster
2016-06-05 17:22   ` Aditya Mahajan

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