Re: [NTG-context] \mainlanguage[pe]

2016-08-01 Thread Mohammad Hossein Bateni
gives the 'missing number' error. > > % \mainlanguage[en] > \romannumerals{\currentdate[day]} > > 1. The \currentdate command isn’t expandable and is therefore not expanded > when you use it as argument for another command. > > 2. The \romannumerals commands expects a number

Re: [NTG-context] \mainlanguage[pe]

2016-07-08 Thread Meer, Hans van der
When naming these macros I would recommend to not use abbreviations like \jday, \jdate but rather using more explicite names like for example \jalaliday. Otherwise confusion with \jdate as a date in the Julian calendar easily could result. Hans van der Meer > On 07 Jul 2016, at 23:28, Hans

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Hans Hagen
On 7/7/2016 2:40 PM, Mohammad Hossein Bateni wrote: While you're at it, could you also add something like jday, jmonth, jmm, jyear, etc. to use the Jalali calendar instead of the Gregorian? I see that the—commented—conversion code exists in core-con.lua. I am willing to provide test cases for

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Wolfgang Schuster
Mohammad Hossein Bateni <mailto:bat...@gmail.com> 7. Juli 2016 um 16:31 Thanks, Wolfgang! BTW why doesn't the following work? it gives the 'missing number' error. % \mainlanguage[en] \romannumerals{\currentdate[day]} 1. The \currentdate command isn’t expandable and is therefore not ex

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
Thanks, Wolfgang! BTW why doesn't the following work? it gives the 'missing number' error. % \mainlanguage[en] \romannumerals{\currentdate[day]} On Thu, Jul 7, 2016 at 10:02 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni <bat...@gmail.com>

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Wolfgang Schuster
Mohammad Hossein Bateni 7. Juli 2016 um 10:53 Wolfgang & Hans, In customizing the date, is there a way to use a number converter on day and year? In particular, I'd like to apply persiandecimals conversion on them. You can only change the numbers for the day (see

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
While you're at it, could you also add something like jday, jmonth, jmm, jyear, etc. to use the Jalali calendar instead of the Gregorian? I see that the—commented—conversion code exists in core-con.lua. I am willing to provide test cases for the conversion. Thanks! —MHB On Thu, Jul 7, 2016 at

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
Wolfgang & Hans, In customizing the date, is there a way to use a number converter on day and year? In particular, I'd like to apply persiandecimals conversion on them. (I have a similar question regarding \currentime.) Thanks! —Hossein On Wed, Jul 6, 2016 at 2:30 PM, Wolfgang Schuster <

Re: [NTG-context] \mainlanguage[pe]

2016-07-06 Thread Mojca Miklavec
On 6 July 2016 at 20:02, Mohammad Hossein Bateni wrote: > Hello, > > This was lost in the other thread, so I'm starting a fresh one dedicated to > the question. > > 1) \showinstalledlanguages does not show pe/persian/fa or anything like that > but it has several arabic variants. was this dropped

Re: [NTG-context] \mainlanguage[pe]

2016-07-06 Thread Wolfgang Schuster
Mohammad Hossein Bateni 6. Juli 2016 um 20:02 Hello, This was lost in the other thread, so I'm starting a fresh one dedicated to the question. 1) \showinstalledlanguages does not show pe/persian/fa or anything like that but it has several arabic variants. was this

[NTG-context] \mainlanguage[pe]

2016-07-06 Thread Mohammad Hossein Bateni
Hello, This was lost in the other thread, so I'm starting a fresh one dedicated to the question. 1) \showinstalledlanguages does not show pe/persian/fa or anything like that but it has several arabic variants. was this dropped in MkIV or was there never a persian language environment even in

Re: [NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Lukáš Procházka
... Great, thank you! Lukas On Thu, 31 Dec 2015 11:52:46 +0100, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Lukáš Procházka <mailto:l...@pontex.cz> 31. Dezember 2015 um 11:07 Hello, how to detect which language set by \mainlanguage[xy] is active? How to detect it b

Re: [NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Wolfgang Schuster
Lukáš Procházka <mailto:l...@pontex.cz> 31. Dezember 2015 um 11:07 Hello, how to detect which language set by \mainlanguage[xy] is active? How to detect it by a) ConTeXt and b) Lua? Something like: \mainlanguage[cz] \ifmainlanguage{cz} Do someting \fi and if context.languages.

[NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Lukáš Procházka
Hello, how to detect which language set by \mainlanguage[xy] is active? How to detect it by a) ConTeXt and b) Lua? Something like: \mainlanguage[cz] \ifmainlanguage{cz} Do someting \fi and if context.languages.active() == "cz" then -- Do somthing end Best regards, Luka

Re: [NTG-context] Bug with ligatures (EBGaramond) and \mainlanguage[es]

2015-03-26 Thread Hans Hagen
On 3/26/2015 7:10 AM, Pablo Rodriguez wrote: On 03/26/2015 06:23 AM, Andrés Conrado wrote: Hello, list. When I try to use the EBGaramond font (http://www.georgduffner.at/ebgaramond/) in spanish (using \mainlanguage[es]), ligatures disappear. But they only disappear when they belong to a word

Re: [NTG-context] Bug with ligatures (EBGaramond) and \mainlanguage[es]

2015-03-26 Thread Pablo Rodriguez
On 03/26/2015 06:23 AM, Andrés Conrado wrote: Hello, list. When I try to use the EBGaramond font (http://www.georgduffner.at/ebgaramond/) in spanish (using \mainlanguage[es]), ligatures disappear. But they only disappear when they belong to a word (when alone, they look fine). See MWE, if you

[NTG-context] Bug with ligatures (EBGaramond) and \mainlanguage[es]

2015-03-25 Thread Andrés Conrado
Hello, list. When I try to use the EBGaramond font (http://www.georgduffner.at/ebgaramond/) in spanish (using \mainlanguage[es]), ligatures disappear. But they only disappear when they belong to a word (when alone, they look fine). See MWE, if you remove the comment in the \mainlanguage

Re: [NTG-context] checking mainlanguage setup

2011-06-01 Thread Jeong Dalyoung
methods are working well, but the last one using \noexpand cause the error. Thank you. Best regards, Dalyoung \mainlanguage[en] \starttext \startitemize[n] \head Using \type{context.setvalue(Lang,English)} \startluacode if languages.current() == en then context.setvalue(Lang,English) else

Re: [NTG-context] checking mainlanguage setup

2011-06-01 Thread Hans Hagen
On 31-5-2011 4:33, Procházka Lukáš Ing. - Pontex s. r. o. wrote: On Tue, 31 May 2011 12:45:00 +0200, Jeong Dalyoung hak...@me.com wrote: Dear Lucas, Shouldn't it be (untested): context(\\def\\lang{English}) It is working. context([[\def\lang{English}]]) It is not working. It

Re: [NTG-context] checking mainlanguage setup

2011-06-01 Thread Hans Hagen
On 1-6-2011 10:14, Hans Hagen wrote: [[ ]] vs is a lua thing ... but when you pass things from within tex, expansions happens the same in both; you can try context(\detokenize{...}) Sorry, that should have been \ctxlua{\detokenize{...}} which takes care of things at the tex end. When at

Re: [NTG-context] checking mainlanguage setup

2011-06-01 Thread Wolfgang Schuster
] [ en=English 2, nl=Dutch 2, unknown=Unknown 2]} \setuplabeltext[en][langthree=English 3] \setuplabeltext[nl][langthree=Dutch 3] \setuplabeltext[langthree=Unknown 3] \starttext \LangOne:\LangTwo:\labeltext{langthree}:\translate[en=English 4,nl=Dutch 4] \mainlanguage[nl

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Sat, 28 May 2011 14:26:47 +0200, Jeong Dalyoung hak...@me.com wrote: context([[\\def\\lang{English}]]) It is not working. It just prints def langEnglish. BTW, are not there too many backslashes? Shouldn't it be (untested): context(\\def\\lang{English}) or

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Jeong Dalyoung
Dear Lucas, Shouldn't it be (untested): context(\\def\\lang{English}) It is working. context([[\def\lang{English}]]) It is not working. It prints def lang English. Thank you. Best regards, Dalyoung

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 31 May 2011 12:45:00 +0200, Jeong Dalyoung hak...@me.com wrote: Dear Lucas, Shouldn't it be (untested): context(\\def\\lang{English}) It is working. context([[\def\lang{English}]]) It is not working. It prints def lang English. Thank you. Best regards, Dalyoung OK. I

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Jeong Dalyoung
Dear Lukas, Thank you for the explanation. I guessed that your original [[\\def\\lang{English}]] No errors message, but it's not working as the way as I want. It just print def langEnglish. [[\def\lang{English}]] This cause the error message and halt the compiling. Best regards,

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Aditya Mahajan
On Wed, 1 Jun 2011, Jeong Dalyoung wrote: Dear Lukas, Thank you for the explanation. I guessed that your original [[\\def\\lang{English}]] No errors message, but it's not working as the way as I want. It just print def langEnglish. [[\def\lang{English}]] This cause the error

Re: [NTG-context] checking mainlanguage setup

2011-05-28 Thread Jeong Dalyoung
Dear Aditya, Here are the test result. context.setvalue(lang, English) It is working. context([[\\def\\lang{English}]]) It is not working. It just prints def langEnglish. Now, I got two solutions, using luacode and using \doifelse. Thank you. Best regards, Dalyoung

Re: [NTG-context] checking mainlanguage setup

2011-05-28 Thread Hans Hagen
On 28-5-2011 2:26, Jeong Dalyoung wrote: Dear Aditya, Here are the test result. context.setvalue(lang, English) It is working. context([[\\def\\lang{English}]]) It is not working. It just prints def langEnglish. context.language('en')

[NTG-context] checking mainlanguage setup

2011-05-27 Thread Jeong Dalyoung
Dear all, Is it possible to check what is the mainlanguage set in document? Now, I use \enablemode[kr] to do something A. But, I'd like to do it automatically if possible. For example, I'd like to do the following type of setup. if mainlanguage == kr then do something A elseif

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Pontus Lurcock
On Fri 27 May 2011, Jeong Dalyoung wrote: Is it possible to check what is the mainlanguage set in document? Now, I use \enablemode[kr] to do something A. But, I'd like to do it automatically if possible. According to http://wiki.contextgarden.net/Modes#System_modes , the mode **kr should

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Marco
I'd like to do the following type of setup. if mainlanguage == kr then do something A elseif mainlanguage == en then do something B else do something C endif \starttext \startluacode if languages.current() == kr then context(Something A) elseif

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Peter Münster
On Fri, May 27 2011, Jeong Dalyoung wrote: Is it possible to check what is the mainlanguage set in document? Yes. Example: %\mainlanguage[fr] %\language[fr] \starttext currentlanguage: \doifelse\currentlanguage{fr}{French}{Not French}\par currentmainlanguage: \doifelse\currentmainlanguage{fr

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Jeong Dalyoung
your Subject line so it is more specific than Re: Contents of ntg-context digest... Today's Topics: 1. Re: checking mainlanguage setup (Pontus Lurcock) 2. Re: checking mainlanguage setup (Marco) 3. Re: checking mainlanguage setup (Peter =?utf-8?Q?M=C3=BCnster?=) 4. [metafun

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Aditya Mahajan
On Sat, 28 May 2011, Jeong Dalyoung wrote: \startluacode if languages.current() == kr then context([[\def\lang{Korean}]]) %(\def\lang{Korean}) else context([[\def\lang{English}]]) %(\def\lang{Korean}) end \stopluacode currentlanguage: \lang is not working. (undifined control sequence error)

[NTG-context] \date problem with \mainlanguage[fr] in mkiv

2011-04-14 Thread Otared Kavian
Hi Hans, With the latest beta (ConTeXt version 2011.04.13 09:23) on the minimals I noticed a small bug with the command \date in mkiv: when the mainlanguage is st to [fr], the command \date gives: 14spaceavrilspace2011 that is the word « avril » is replaced with « spaceavrilspace

Re: [NTG-context] \date problem with \mainlanguage[fr] in mkiv

2011-04-14 Thread Wolfgang Schuster
Am 14.04.2011 um 13:33 schrieb Otared Kavian: Hi Hans, With the latest beta (ConTeXt version 2011.04.13 09:23) on the minimals I noticed a small bug with the command \date in mkiv: when the mainlanguage is st to [fr], the command \date gives: 14spaceavrilspace2011

Re: [NTG-context] \date problem with \mainlanguage[fr] in mkiv

2011-04-14 Thread Otared Kavian
2011.04.13 09:23) on the minimals I noticed a small bug with the command \date in mkiv: when the mainlanguage is st to [fr], the command \date gives: 14spaceavrilspace2011 that is the word « avril » is replaced with « spaceavrilspace ». With [it] or [es], there is no such problem. In mkii

Re: [NTG-context] MK II ( \mainlanguage[fr] \useencoding[ffr] )+ mpost

2009-12-03 Thread Hans Hagen
Renaud AUBIN wrote: OK, since I don't know the behavior of \setupcharacterspacing, the following question may seem stupid to you: How the following string will be processed « Did you notice that real NO-BREAK SPACE chars are already there? » why not just try it currently only intermediate

Re: [NTG-context] Is it possible to put references format depending of mainlanguage? and other things

2009-10-12 Thread Taco Hoekwater
Hi, Xan wrote: This is a BAD new. I think it's important. It could be marked the difference (in the bibliographyc world) about ConTeXt and other systems. Unfortonately I have not enough knowledge for doing that so I depend of you ;-) Please, reconsider it. I think it will be a day of work

Re: [NTG-context] MK II ( \mainlanguage[fr] \useencoding[ffr] )+ mpost

2009-10-11 Thread Hans Hagen
au...@nibua-r.org wrote: Hello, I'm trying to compile a product of a complex structure (env + project + product). - My useMPgraphics are included in a product using \input - My environment starts with : \enableregime[utf8] \useencoding[ffr] \mainlanguage[fr] just before

Re: [NTG-context] Is it possible to put references format depending of mainlanguage? and other things

2009-10-10 Thread Xan
. // // I refer to that. For not having apa-ca, apa-es, apa-fr, etc I think you // could rewrite bib module for having localization in automatic way. If // \mainlanguage = es, then number = número or something similar in TeX // way Sorry but I don't know TeX so much for doing that in my own. But I

Re: [NTG-context] Is it possible to put references format depending of mainlanguage? and other things

2009-10-06 Thread Taco Hoekwater
to that. For not having apa-ca, apa-es, apa-fr, etc I think you could rewrite bib module for having localization in automatic way. If \mainlanguage = es, then number = número or something similar in TeX way Sorry but I don't know TeX so much for doing that in my own. But I think it's simply

[NTG-context] MK II ( \mainlanguage[fr] \useencoding[ffr] )+ mpost

2009-10-06 Thread aubin
Hello, I'm trying to compile a product of a complex structure (env + project + product). - My useMPgraphics are included in a product using input - My environment starts with : enableregime[utf8] useencoding[ffr] mainlanguage[fr] just before startenvironment (else the horizontal

Re: [NTG-context] Is it possible to put references format depending of mainlanguage? and other things

2009-10-05 Thread Xan
Xan wrote: / Hi, // // I posted previously // [http://www.ntg.nl/pipermail/ntg-context/2009/043675.html] but no one // answer that. Is it possible to localizated bibliography module depending // on \mainlanguage? I think for example in @inproceedings or @article in // ams. It appears

Re: [NTG-context] Is it possible to put references format depending of mainlanguage? and other things

2009-10-03 Thread Taco Hoekwater
Xan wrote: Hi, I posted previously [http://www.ntg.nl/pipermail/ntg-context/2009/043675.html] but no one answer that. Is it possible to localizated bibliography module depending on \mainlanguage? I think for example in @inproceedings or @article in ams. It appears number for specifying

[NTG-context] references (mainlanguage)

2009-07-02 Thread Alan BRASLAU
First question: Should the reference labels follow \mainlanguage? (in the example below [fr], by chance, \in{figure} might seem OK, but not \in{chapter}!) Second question: How can one \Cap{\in{figure}}? Third question: Why is the chapter label text blank by default? Thanks. Alan Minimal

Re: [NTG-context] references (mainlanguage)

2009-07-02 Thread Willi Egger
Hi, On Jul 2, 2009, at 9:17 PM, Alan BRASLAU wrote: First question: Should the reference labels follow \mainlanguage? (in the example below [fr], by chance, \in{figure} might seem OK, but not \in{chapter}!) The text included in the braces must be in french \in{chaptre}[ref] Second

Re: [NTG-context] references (mainlanguage)

2009-07-02 Thread Hans Hagen
Alan BRASLAU wrote: First question: Should the reference labels follow \mainlanguage? (in the example below [fr], by chance, \in{figure} might seem OK, but not \in{chapter}!) Second question: How can one \Cap{\in{figure}}? Third question: Why is the chapter label text blank by default? Thanks

[NTG-context] \directdiscretionary \mainlanguage[fr]

2006-12-01 Thread Renaud Aubin
.66 ...s objections à l'expérimentation directe}} apparently due to \directdiscretionary-related (with \mainlanguage[fr]) problems... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Problem with \mainlanguage[fr] and javascript

2005-05-09 Thread Denis Pinsard
Le Sun, 08 May 2005 22:50:33 +0200, Hans Hagen [EMAIL PROTECTED] a écrit: Denis Pinsard wrote: Hello, The following code doesn't work with the fr option. It seems that there is interferences with javascript features. Any idea to solve this problem is welcome. Thank you in advance. \mainlanguage

Re: [NTG-context] Problem with \mainlanguage[fr] and javascript

2005-05-08 Thread Hans Hagen
Denis Pinsard wrote: Hello, The following code doesn't work with the fr option. It seems that there is interferences with javascript features. Any idea to solve this problem is welcome. Thank you in advance. \mainlanguage[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup

[NTG-context] Problem with \mainlanguage[fr] and javascript

2005-04-28 Thread Denis Pinsard
Hello, The following code doesn't work with the fr option. It seems that there is interferences with javascript features. Any idea to solve this problem is welcome. Thank you in advance. \mainlanguage[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo