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

2016-08-01 Thread Mohammad Hossein Bateni
of the document or something like that. —MHB On Thu, Jul 7, 2016 at 7:32 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 7. Juli 2016 um 16:31 > Thanks, Wolfgang! > > BTW why doesn't the following work? it gives the 'missi

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 t

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 th

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

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 belo

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 4

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 < schus

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 i

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 d

[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 MkI

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 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 by a) ConTeXt and b) Lua? Somethin

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

[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 Wolfgang Schuster
sh 4,nl=Dutch 4] \mainlanguage[nl] \LangOne:\LangTwo:\labeltext{langthree}:\translate[en=English 4,nl=Dutch 4] \mainlanguage[fr] \LangOne:\LangTwo:\labeltext{langthree}:\translate[en=English 4,nl=Dutch 4] \stoptext Wolfgang

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

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

Re: [NTG-context] checking mainlanguage setup

2011-06-01 Thread Jeong Dalyoung
I summerize it as a test file. The first 5 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 la

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 mes

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

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 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 meant jus

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-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Sat, 28 May 2011 14:26:47 +0200, Jeong Dalyoung 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 context([[\def\lang{English}]]) Lukas

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

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-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 err

Re: [NTG-context] checking mainlanguage setup

2011-05-27 Thread Jeong Dalyoung
qu...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Re: check

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

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

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 mo

[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

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

2011-04-14 Thread Otared Kavian
th 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 « sp

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: > 14spaceavrils

[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] 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 ker

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

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 b

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

2009-10-10 Thread Xan
ions[alternative=apa-ca] % for example. />>/ />/ 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 />

[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 horiz

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

2009-10-05 Thread Taco Hoekwater
ernative=apa-ca] % for example. >> > 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 bu

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 @artic

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

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

2009-10-02 Thread Xan
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 the

Re: [NTG-context] references (mainlanguage)

2009-07-03 Thread Alan BRASLAU
Thanks for the hints. On Thursday 02 July 2009 23:07:43 Willi Egger wrote: > > Second question: > > How can one \Cap{\in{figure}}? > > Hm, do not know, my test do not reveal the expected result \in{Figure}? (perhaps this should be a suggestion for a new feature) > If I understand you correc

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

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

[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

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

2006-12-01 Thread Renaud Aubin
ctions à 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
in advance. \mainlanguage[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo] \setupfields[reset] \setupfield[HelpSetup][option={readonly,hidden}] \definesymbol [helpinfo] [SomeHelpText] \starttext \fitfield[Help] \goto {Help} [JS(Toggle_Hide{Help})]. \stoptext th

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] [Help

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

2005-04-27 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] [hel