[NTG-context] Weekdays and others as numbers

2021-01-08 Thread Jairo A. del Rio
ConTeXt has some inbuilt functions for dates. I see that the following \mainlanguage[spanish] \starttext \dayoftheweek{4}{5}{1992} \stoptext gives "lunes" (Monday). How to get a weekday number (2 in this case) instead? Sincere

Re: [NTG-context] Some ligatures don't work in latest LMTX

2021-01-07 Thread Jairo A. del Rio
;> Hi everyone. The following example works fine with MkIV, but fails with >> latest LMTX. >> >> To be specific, the lam-alif ligature isn't working. Compile with both to >> see differences. >> >> Majalla is a Windows font, so I guess it's available fo

Re: [NTG-context] Some ligatures don't work in latest LMTX

2021-01-07 Thread Jairo A. del Rio
fic, the lam-alif ligature isn't working. Compile with both to see > differences. > > Majalla is a Windows font, so I guess it's available for testing: > > > \mainlanguage[arabic] > > \definefontfeature > > [arabic] > > [mode=node,language=dflt,script=arab, > >

Re: [NTG-context] Some ligatures don't work in latest LMTX

2021-01-06 Thread denis.maier
with latest LMTX. To be specific, the lam-alif ligature isn't working. Compile with both to see differences. Majalla is a Windows font, so I guess it's available for testing: \mainlanguage[arabic] \definefontfeature [arabic] [mode=node,language=dflt,script=arab, init=yes,medi=yes

Re: [NTG-context] Bib support broken in lmtx

2021-01-03 Thread Philipp A.
ey in your bibfile. >> >> Von: ntg-context im Auftrag von Philipp A. < >> flying-sh...@web.de> >> Gesendet: Freitag, 25. Dezember 2020 18:36:33 >> An: ConTeXt Mailing List >> Betreff: [NTG-context] Bib support broken in

Re: [NTG-context] Bib support broken in lmtx

2020-12-26 Thread Philipp A.
xt im Auftrag von Philipp A. < > flying-sh...@web.de> > Gesendet: Freitag, 25. Dezember 2020 18:36:33 > An: ConTeXt Mailing List > Betreff: [NTG-context] Bib support broken in lmtx > > Hi! A pretty minimal document using a bibliography is broken for me: > > test.lmtx

Re: [NTG-context] Bib support broken in lmtx

2020-12-25 Thread denis.maier
broken in lmtx Hi! A pretty minimal document using a bibliography is broken for me: test.lmtx: \enableregime[utf-8] \mainlanguage[en] \usebtxdataset[default][test.bib] \setupbtx[dataset=default] \usebtxdefinitions[apa] \starttext \cite[authoryear][angerer2016] %\placelistofpublications[default

[NTG-context] Bib support broken in lmtx

2020-12-25 Thread Philipp A.
Hi! A pretty minimal document using a bibliography is broken for me: test.lmtx: \enableregime[utf-8] \mainlanguage[en] \usebtxdataset[default][test.bib] \setupbtx[dataset=default] \usebtxdefinitions[apa] \starttext \cite[authoryear][angerer2016] %\placelistofpublications[default][method

Re: [NTG-context] Some ligatures don't work in latest LMTX

2020-11-25 Thread Jairo A. del Rio
h MkIV, but fails >> with >> > latest LMTX. >> > | >> > >> > |To be specific, the lam-alif ligature isn't working. Compile with both >> > to see differences. >> > | >> > >> > |Majalla is a Windows font, so I guess it's avai

[NTG-context] Fwd: Some ligatures don't work in latest LMTX

2020-11-24 Thread Jairo A. del Rio
owing example works fine with MkIV, but fails with > > latest LMTX. > > | > > > > |To be specific, the lam-alif ligature isn't working. Compile with both > > to see differences. > > | > > > > |Majalla is a Windows font, so I guess it's available for te

[NTG-context] Some ligatures don't work in latest LMTX

2020-11-23 Thread Jairo A. del Rio
Hi everyone. The following example works fine with MkIV, but fails with latest LMTX. To be specific, the lam-alif ligature isn't working. Compile with both to see differences. Majalla is a Windows font, so I guess it's available for testing: \mainlanguage[arabic]\definefontfeature [arabic

[NTG-context] Font protrusion and expansion

2020-11-07 Thread Tommaso Gordini
Tommaso The code: \mainlanguage[it] \definefontfeature [default] [default] [expansion=quality,protrusion=quality] \usetypescript[modern-base] \setupalign[hz,hanging] \setupbodyfont[modern] \starttext ... \stoptext

[NTG-context] French spacing in ConTeXt

2020-11-04 Thread Tomas Hala
Hi all, the following code works for the default roman family but not for tt-family. \setuplayout[width=30cc,height=70cc,topspace=0cc] \def\sample{\input knuth \par\thinrule\par} \starttext \setuplanguage[en][spacing=packed] \mainlanguage[en] \sample \setuplanguage[en][spacing=broad

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Hans Hagen
ieve we can come up with something nicer. Maybe something along the lines of the following? \mainlanguage[serbian][script=latn] or \mainlanguage[serbian-latin] \mainlanguage[serbian-cyrillic] No clue, really. Thank you, Mojca (PS: I would say that adding support for tra

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Ivan Pešić
th something > nicer. > Maybe something along the lines of the following? > \mainlanguage[serbian][script=latn] > or >\mainlanguage[serbian-latin] >\mainlanguage[serbian-cyrillic] > No clue, really. > > Thank you, > Mojca > > (PS: I would s

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Mojca Miklavec
e more freedom. LaTeX uses "serbianl" and "serbianc", I think, but I believe we can come up with something nicer. Maybe something along the lines of the following? \mainlanguage[serbian][script=latn] or \mainlanguage[serbian-latin] \mainlanguage[serbian-cyrillic] No clue, real

Re: [NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-28 Thread Aditya Mahajan
On Wed, 28 Oct 2020, Pablo Rodriguez wrote: > On 10/27/20 9:40 PM, Pablo Rodriguez wrote: > > Dear list, > > > > I have the following sample: > > > > \mainlanguage[es] > > \setupbodyfont[dejavu] > > \starttext > > > > %~ \startmod

Re: [NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-28 Thread Pablo Rodriguez
On 10/27/20 9:40 PM, Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \mainlanguage[es] > \setupbodyfont[dejavu] > \starttext > > %~ \startmode[*last] > \startluacode > io.write("¿Cuál es el mensaje? ") > d

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Xenos Athenaios
\setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \setuplayout [backspace=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex

[NTG-context] invoking ConTeXt from .bat file in Win7

2020-10-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \mainlanguage[es] \setupbodyfont[dejavu] \starttext %~ \startmode[*last] \startluacode io.write("¿Cuál es el mensaje? ") document.message = io.read() \stopluacode %~ \stopmode El mensaje es: \cldcontext{docume

Re: [NTG-context] Consequences of \zwnj for hyphenation

2020-10-14 Thread Hans Hagen
On 10/14/2020 2:09 PM, Denis Maier wrote: Hi, has \zwnj (or the equivalent unicode character) bad consequences for hyphenation? Like, when you'd preprocess your files and add \zwnj in appropriate places, will that break hyphenation for these words? So, this: \mainlanguage[nl

[NTG-context] Hyphenation again

2020-10-09 Thread Denis Maier
Hi, another weird thing: In this example I use  \startexceptions to set hyphenation exceptions: ``` \mainlanguage[en] \startexceptions[en] appli-ca​ble obli-gated \stopexceptions \setuplayout[width=1cm] \starttext \currentmainlanguage \currentlanguage \hyphenatedword{applicable

[NTG-context] Protusion and spurios empty line

2020-10-01 Thread Denis Maier
the effect! %\setupdirections[bidi=global,method=unicode] \mainlanguage[de] \setupitaliccorrection[global, always] \setupbodyfontenvironment[default][em=italic] \setupfontprotrusion [quality] [left=0] \definefontfeature[default][default][ script=latn, protrusion=quality

Re: [NTG-context] Arabic support

2020-09-23 Thread Mohammad Hossein Bateni
.) as well as dates, etc. Some of these are already handled via the \mainlanguage[ar] command. Regards, MHB On Mon, Sep 21, 2020 at 2:46 AM Denis Maier wrote: > Hi > > Just wondering what the current support for Arabic is. Does anyone know? > My document works fine for Hebrew and I'v

Re: [NTG-context] Problem with fonts in Lua

2020-09-18 Thread Pablo Rodriguez
Gyre Heros] [scale=0.75] \setuplanguage [es] [patterns={es,gr}] \setupbodyfont [mainface, 15pt] \mainlanguage[es] \starttext \samplefile{cervantes-es} \samplefile{aristotle-grc}} \stoptext Just in case it helps, Pablo

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 15.09.2020 um 04:38: Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter: \mainlanguage[es] \definehead[footnotetitle][title] \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax      \else

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Henning Hraban Ramm
> Am 15.09.2020 um 04:38 schrieb Jairo A. del Rio : > > Hi, list. I've adapted the following example from the mailing list. My aim is > to use endnotes for each chapter: > > \mainlanguage[es] > \definehead[footnotetitle][title] > \startsetups[chapter:after] > \ifca

Re: [NTG-context] Problem with fonts in Lua

2020-09-15 Thread Wolfgang Schuster
MANUEL GONZALEZ SUAREZ schrieb am 15.09.2020 um 12:00: Hi all: I have this minimal example (thanks to Pablo and Charles): \mainlanguage [es] \definefallbackfamily [mainface] [rm] [New Athena Unicode] [preset = range: greek, force = yes] % \definefallbackfamily [mainface] [rm] [Old Standard

[NTG-context] Problem with fonts in Lua

2020-09-15 Thread MANUEL GONZALEZ SUAREZ
Hi all: I have this minimal example (thanks to Pablo and Charles): \mainlanguage [es] \definefallbackfamily [mainface] [rm] [New Athena Unicode] [preset = range: greek, force = yes] % \definefallbackfamily [mainface] [rm] [Old Standard] % [preset = range: greek, force = yes] \definefontfamily

[NTG-context] Footnote font size equal to main text font size

2020-09-14 Thread Jairo A. del Rio
Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter: \mainlanguage[es] \definehead[footnotetitle][title] \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax \else \startfootnotetitle[title={Notas

[NTG-context] Chapter number with Luametafun

2020-08-18 Thread Fabrice Couvreur
Hello, How to get the number of the current chapter ? How to get the label "Chapitre" ? Thanks for your help. Fabrice %%% Begin example \mainlanguage[fr] \setcharacterspacing [frenchpunctuation] \setuplabeltext[fr][chapter=Chapitre~] \startuseMPgraphic{fun} definecolor[name=&q

[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
the expected result. MWE: % Context file \mainlanguage[en] \usetypescript[termes] \setupbodyfont[termes,9pt] \setuppapersize [A5][A5] \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts [text] [] [\userpagenumber] [\userpagenumber

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Pablo Rodriguez
hind it. The default is "indentnext=no" for \setupheads and \setupfloats. The pattern is clear: see what comes before the unindented paragraph. BTW, I don’t understand this: \langueprincipale[fr] \langue[fr] Is \mainlanguage not enough? (This would also set \language.) \mainlanguage[f

Re: [NTG-context] Vertical space between label and title

2020-07-09 Thread Fabrice Couvreur
l.com>: > > > > Hello, > > I want a vertical space between the label and the chapter title: is this > the right way to proceed ? > > Why not? It seems to work. What’s your problem? > > BTW I’d set \mainlanguage[fr] > > Hraban > > __

Re: [NTG-context] Vertical space between label and title

2020-07-07 Thread Henning Hraban Ramm
> Am 07.07.2020 um 19:27 schrieb Fabrice Couvreur : > > Hello, > I want a vertical space between the label and the chapter title: is this the > right way to proceed ? Why not? It seems to work. What’s your problem? BTW I’d set \mainlangu

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
\LDistanceX=0mm 9 \LDistanceY=0mm 10 11 \define[1]\Name{{\switchtobodyfont[14pt]#1}} And the code was as following \newdimen\LWidth \newdimen\LHeight \newdimen\LDistanceX \newdimen\LDistanceY \LWidth=75mm \LHeight=30mm \LDistanceX=0mm \LDistanceY=0mm \define[1]\Name{{\swi

Re: [NTG-context] error running wiki example with labels

2020-06-24 Thread Jan-Erik Hägglöf
tex/context/base/mkiv/node-syn.lua:435: attempt to index a nil value (upvalue 'filehandle’)But when I take a sample code like this it went success, strange.\mainlanguage[sv]\starttext\input tufte\page\input tufte\stoptextIs the difference when I’m running mtxrun … inside macviminstead of just cont

Re: [NTG-context] using modeset

2020-06-12 Thread Jan Willem Flamma
trainings in both English and Dutch in the same file. Instead of modes, I use blocks. Like this: \defineblock[ENblok]\defineblock[NLblok] \setupblock[NLblok][before={\mainlanguage[nl]},after=]\setupblock[ENblok][before={\mainlanguage[en]},after=] Then, determine which blocks you want to use in your file

Re: [NTG-context] using modeset

2020-06-11 Thread r . ermers
={\mainlanguage[nl]},after=] \setupblock[ENblok][before={\mainlanguage[en]},after=] Then, determine which blocks you want to use in your file: \hideblocks[NLblok] %\hideblocks[ENblok] For the titles I use another method: %\def\NL#1{#1} \def\NL#1{{}} %\def\EN#1{} \def\EN#1{#1} You have

Re: [NTG-context] Two issues with respect to sections in ConTeXt

2020-06-06 Thread Wolfgang Schuster
language of a document which is set with the \mainlanguage command. Local changes of a language (which is used to apply local hyphenation patterns) don't change the label. \starttext \setuplabeltext [en] [language=English] \setuplabeltext [nl] [language=Dutch] \labeltext{language} \language[nl

[NTG-context] Two questions concerning numerals in ConTeXt

2020-06-01 Thread Jairo A. del Rio
Hi, everybody. I expect you to be safe. I found the following issues. *First. *The following gives wrong results for Spanish numbers \mainlanguage[es] \starttext \convertnumber{words}{100} %Prints "ciento" instead of "cien" \convertnumber{words}{200} %Prints "do

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Vladimir Lomov
Hello, ** Gerben Wierda [2020-05-04 00:36:11 +0200]: > On 3 May 2020, at 15:55, Pablo Rodriguez wrote: >> >> On 5/3/20 2:56 PM, Gerben Wierda wrote: >>> ConTeXtgarden had theanswer when I searched again: >>> >>> \setupbodyfont[dejavu] >>>

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Gerben Wierda
On 3 May 2020, at 15:55, Pablo Rodriguez wrote: > > On 5/3/20 2:56 PM, Gerben Wierda wrote: >> ConTeXtgarden had theanswer when I searched again: >> >> \setupbodyfont[dejavu] >> \mainlanguage[russian] > > Hi Gerben, > > I’m afraid they may be differ

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Pablo Rodriguez
On 5/3/20 2:56 PM, Gerben Wierda wrote: > ConTeXtgarden had theanswer when I searched again: > > \setupbodyfont[dejavu] > \mainlanguage[russian] Hi Gerben, I’m afraid they may be different issues: setting a language and getting the glyphs required for that language. See the foll

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-03 Thread Gerben Wierda
ConTeXtgarden had theanswer when I searched again: \setupbodyfont[dejavu] \mainlanguage[russian] G > On 3 May 2020, at 13:34, Gerben Wierda wrote: > > I am looking for a way to amend a typescript for the additional use of > cyrillic characters. > > I currently use: >

Re: [NTG-context] \registerhyphenationexception not working

2020-03-07 Thread Pablo Rodriguez
ght hyphenation: \setuplanguage[cs][righthyphenmin=2] \mainlanguage[cs] \setuphyphenation[method=traditional] \registerhyphenationexception[cs][cíl-em]% \starttext \startTEXpage[offset=1ex] \hyphenatedword{cílem} \stopTEXpage \stoptext The value for righthyphenmi

[NTG-context] \registerhyphenationexception not working

2020-03-07 Thread Jano Kula
Hello Hans, \registerhyphenationexception as described in latest languages-mkiv.pdf and i-context.pdf does nothing, contrary to \startexceptions, which behaves as expected. Here is the minimal example: \mainlanguage[cs] \showmakeup[discretionary] \registerhyphenationexception[cs][cíl-em

Re: [NTG-context] Left hanging hyphen

2020-03-05 Thread Tomas Hala
,hanging] \showframe [text] [text] \starttext \hsize=1pt \mainlanguage [uk] {\bf uk} modro-zelený \hyphenatedpar{Stratford Stratford-upon-Avon} \mainlanguage [cz] {\bf cz} modro-zelený \hyphenatedpar{Stratford Stratford-upon-Avon} \mainlanguage [uk] {\bf uk

Re: [NTG-context] Left hanging hyphen

2020-03-04 Thread Wolfgang Schuster
or for > which it has not been set). > > How can I assign the definition only to the selected language? > (I discovered only to put {\mainlanguage[cz]text} into a group...) > > %% only a note: > I tried: > \def\mylanguage{cs} \appendtoks \ifx\mylanguage\currentlanguage

Re: [NTG-context] Left hanging hyphen

2020-03-04 Thread Tomas Hala
gin. Thanks, it works for Czech language. But what has happened is that the repeated hyphen appears also with languages which do not use it (or for which it has not been set). How can I assign the definition only to the selected language? (I discovered only to put {\mainlanguage[cz]text} into a group.

Re: [NTG-context] bidi + protrusion issue in LMTX

2020-03-03 Thread Hans Hagen
] \mainlanguage[fr] \definefontfamily[mainfont][serif][EBGaramond][features={protrusion=quality, expansion=quality}] you best can do this if you also want kerns: \definefontfeature[mydefault][default][protrusion=quality,expansion=quality] \definefontfamily[mainfont][serif][EBGaramond][features=mydefault

[NTG-context] bidi + protrusion issue in LMTX

2020-03-02 Thread Joseph
Hi, I found that in some cases bidi text seems to inhibit protrusion feature in text typesetting in LMTX (works fine with luatex 1.10).MWE below (difference is in first paragraph, second is for comparison and is same in both): \language[fr]\mainlanguage[fr] \definefontfamily[mainfont][serif

Re: [NTG-context] Left hanging hyphen

2020-03-02 Thread Wolfgang Schuster
efinebreakpoint [czcompound] [-] [nleft=3,nright=3,type=4] \startsetups [czech] \setbreakpoints [czcompound] \stopsetups \setuplanguage [cz] [setups=czech] \definefontfeature [default] [default] [protrusion=tomas_hala] \setupalign [hanging] \mainlanguage [cz] \showframe [text] [text] \st

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
to print chapter titles. Thank you in advance for your help. JP See below the MWE : % \showframe %\showgrid \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupbodyfontenvironment[default][em=italic

Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Henning Hraban Ramm
> Am 2020-01-17 um 15:36 schrieb Arthur Reutenauer > : > > On Fri, Jan 17, 2020 at 01:51:42PM +0100, Henning Hraban Ramm wrote: >> Just \mainlanguage[es] and \language[agr] (= \agr) where you need it should >> be enough. > > As Thomas said, that shouldn’t be nec

Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Arthur Reutenauer
On Fri, Jan 17, 2020 at 01:51:42PM +0100, Henning Hraban Ramm wrote: > Just \mainlanguage[es] and \language[agr] (= \agr) where you need it should > be enough. As Thomas said, that shouldn’t be necessary. > You can’t expect ConTeXt to auto-detect your language, even if that maybe

Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Thomas A. Schmitz
ht pattern without that setup. No, since the patterns for Spanish and Greek are utf8, they can co-exist, there's no need to mark the Greek passages. The module simplefonts is obsolete since 2013. Yes, that's right. I get both Spanish and Greek hyphenation in a test file: \mainl

Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Henning Hraban Ramm
’t do anything anymore anyway). Just \mainlanguage[es] and \language[agr] (= \agr) where you need it should be enough. You can’t expect ConTeXt to auto-detect your language, even if that maybe would work for Greek. (My texts are usually in German, thus I have \mainlanguage[de] and use \en or \fr to

Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Henning Hraban Ramm
> Am 2020-01-17 um 12:05 schrieb MANUEL GONZALEZ SUAREZ > : > > Hi: > When I compile a document with the following preamble: > > \mainlanguage[es] > %\setuphyphenation[method=traditional] > \usemodule[simplefonts] > \setuplanguage[es][patterns={es,agr}] >

[NTG-context] Hyphenation LuaTeX

2020-01-17 Thread MANUEL GONZALEZ SUAREZ
Hi: When I compile a document with the following preamble: \mainlanguage[es] %\setuphyphenation[method=traditional] \usemodule[simplefonts] \setuplanguage[es][patterns={es,agr}] \definefallbackfamily [mainface] [serif] [Old Standard] [range={greekandcoptic, greekextended}, force=yes, rscale

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range

Re: [NTG-context] Creating one's own style

2019-05-18 Thread Alan Braslau
range effect (full MWE in attachment): Corrected MWE attached. -- Alan Context_bib.pdf Description: Adobe PDF document %\enabletrackers[publications.setups] \setuplanguage[ru] \setupbodyfont[dejavu] \mainlanguage[russian] \setupindenting[big,yes] \setbreakpoints[compound] \startbuffer[bib] @

Re: [NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
> Am 22.04.2019 um 11:40 schrieb Pablo Rodriguez : > > I have some questions about your source file: > > \startxmlsetups xml:prozess > \mainlanguage[de] > > If this is hardcoded (I mean, you don’t read it from any XML code), I > would avoid setting the \main

Re: [NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Pablo Rodriguez
On 4/22/19 7:57 AM, Axel Kielhorn wrote: > [...] > Some questions remain: Hi Axel, I have some questions about your source file: \startxmlsetups xml:prozess \mainlanguage[de] If this is hardcoded (I mean, you don’t read it from any XML code), I would avoid setting the \mainlanguag

[NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
headers based on information I get from the XML: \startxmlsetups xml:prozess \mainlanguage[de] \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date] {\bTABLE \setupTABLE[frame=off] \setupTABLE[offset=1mm] \setupTABLE[c][1][align=right, width=14cm] \setupTABLE[c

Re: [NTG-context] Unwanted uppercase letter in \high{} within bibliography

2019-04-12 Thread Huseyin Özoguz
Hello @list, I have an unwanted output that might be a bug in my bibliographies. Consider this MWE : \setuppapersize[S4] \mainlanguage[fr] \language[fr] \startbuffer[bib] @book{Manuel5, editor = {Martin Ivernel and Benjamin Villemagne and Jean Hubac}, title = {Histoire Géographie

[NTG-context] Unwanted uppercase letter in \high{} within bibliography

2019-04-11 Thread Damien Thiriet
Hello @list, I have an unwanted output that might be a bug in my bibliographies. Consider this MWE : \setuppapersize[S4] \mainlanguage[fr] \language[fr] \startbuffer[bib] @book{Manuel5, editor = {Martin Ivernel and Benjamin Villemagne and Jean Hubac}, title = {Histoire Géographie EMC

Re: [NTG-context] How to repeat the hyphen?

2019-03-25 Thread Sam May
> \let\oldlanguage=\language # > \def\language[#1]{\oldlanguage[#1] # > \ifx\mylanguage\currentlanguage \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] \setbreakpoints[czcompound] # >\else \definebreakpoint[czcompound][-][nleft=3,nright=3,type=1]

Re: [NTG-context] optional hyphenation patterns in ancient Greek

2019-03-25 Thread Arthur Reutenauer
ached file puts everything together. Best, Arthur \mainlanguage[agr] \definefont[linuxlibertine][name:linlibertineo] \starttext \hsize=1pt \linuxlibertine πρᾶγμα πράγματος \setuphyphenation[method=traditional] \registerhyphenationpattern[agr][2γ1μ γ2μ’] πρᾶγμα πράγματ

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
e\currentlanguage \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] \setbreakpoints[czcompound] # >\else \definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] \setbreakpoints[czcompound] # > \fi} and the same for \mainlanguage # >

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater
t; \def\language[#1]{\oldlanguage[#1] > \ifx\mylanguage\currentlanguage > \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] > \setbreakpoints[czcompound] >\else > \definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] > \setbrea

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
] \setbreakpoints[czcompound] \fi} and the same for \mainlanguage \def\mylanguage{cs} \language[en] \mybox{modro-zelený} \language[cz] \mybox{modro-zelený} \language[en] \mybox{modro-zelený} \stoptext Fri, Mar 22, 2019 ve 01:56:40PM +0100 Taco Hoekwater napsal(a): # Hi

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater
d (see \def\= > below) > # > but it means that all appearances of "-" must be replaced (manually) in > the source > # > text. I tried all options of \setuphyphenation but no one gives the > correct > # > result. > # > > # > Is there an

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
y in ConTeXt how to set it by default? # > # > Best wishes, # > # > Tomáš # > # > %% MWE: # > # > \starttext\mainlanguage[cz] # > \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par} # >

Re: [NTG-context] How to repeat the hyphen?

2019-03-21 Thread Taco Hoekwater
t by default? > > Best wishes, > > Tomáš > > %% MWE: > > \starttext\mainlanguage[cz] > \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par} > \def\mybox#1{\myboxik{traditional}{#1}\m

[NTG-context] How to repeat the hyphen?

2019-03-21 Thread Tomas Hala
\def\= below) but it means that all appearances of "-" must be replaced (manually) in the source text. I tried all options of \setuphyphenation but no one gives the correct result. Is there any way in ConTeXt how to set it by default? Best wishes, Tomáš %% MWE: \starttext\mainl

[NTG-context] How to define a new language?

2019-02-27 Thread Paul Hoffman
, date={month,\ ,day,{,\ },year}, state=stop, ] \mainlanguage[foo] \setuppapersize[A6] \setupalign[hyphenated,morehyphenation,flushleft] \starttext umleoeoikaoukkoiiaaiewuewniimoaralkokolwwuiuirmlkipetnoaeteuntoilamm uuuauemepokawpoieoomtkeaipeailloaukoiwaeuaewurawiueanwtaoaoemmuuonwleaue

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
Hi Jan, Your example works fine here on my machine… Which version of ConTeXt are you using? Best regards: OK > On 19 Feb 2019, at 13:49, Jan U. Hasecke wrote: > > Am 19.02.19 um 12:55 schrieb Otared Kavian: >> Hi Fabrice, >> >> After adding >> >>

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Jan U. Hasecke
Am 19.02.19 um 12:55 schrieb Otared Kavian: > Hi Fabrice, > > After adding > > \mainlanguage[fr] > > to your file I obtain the attached output (Context version 2019.02.14 16:57). > I have a similar problem with a lua snippet, where mainlanguage do

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
Hi Fabrice, After adding \mainlanguage[fr] to your file I obtain the attached output (Context version 2019.02.14 16:57). Best regards: OK macros-header-date.pdf Description: Adobe PDF document > On 19 Feb 2019, at 11:37, Fabrice Couvreur > wrote: > &g

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
usual French format? In > that case you should add > > \mainlanguage[fr] > > to the beginning of your file. > > Best regards: OK > > > On 18 Feb 2019, at 12:04, Fabrice Couvreur > wrote: > > > > Hi, > > Aditya offered me this macro some time ago for

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
Hi Fabrice, Do you mean the fact that the date is not in the usual French format? In that case you should add \mainlanguage[fr] to the beginning of your file. Best regards: OK > On 18 Feb 2019, at 12:04, Fabrice Couvreur > wrote: > > Hi, > Aditya offered me this

Re: [NTG-context] Minion Pro confuses italic correction

2019-02-12 Thread Henri Menke
rection. The MWE below will fail with >> >> luatex warning > node filter: error: >> ...ext/tex/texmf-context/tex/context/base/mkiv/typo-itc.lua:130: attempt >> to compare nil with number >> >> It's probably the font that is faulty but I guess ConTeXt shouldn't >

Re: [NTG-context] Minion Pro confuses italic correction

2019-02-12 Thread Henri Menke
t/base/mkiv/typo-itc.lua:130: attempt > to compare nil with number > > It's probably the font that is faulty but I guess ConTeXt shouldn't > crash in that case. > > Cheers, Henri > > --- > > \mainlanguage[de] > \definefontfeature[default][d

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
Hi, I added the patch but the output is not that expected because I get d = 4m = 02 y = 2019 instead of "4 février 2019" Thank you Fabrice \mainlanguage[fr] \setupbackgrounds [header] [text] [frame=off, topframe=off, bottomframe=on, framecolor=, rul

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
ample I sent, and Fabrice's example with \mainlanguage[fr], as well as with \mainlanguage[nl], gives an incorrect result (even though the result is correct with \mainlanguage[en]). Best regards: OK___ If your question is of in

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
eter\c!m}\scratchcountertwo > \ifx\temp\empty\normalmonth\else\temp\fi > \edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear > \else\temp\fi} Hi Hans, Thanks for your attention. Unfortunately this does not seem to solve the problem after remaking the formats.

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
  \mainlanguage[fr]   \setupbackgrounds     [header]     [text]     [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt]   \defineframed    [headerframed]    [frame=off,     height=fit,     width=fit]    \startsetups [headertext

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
Hi Hans, I can confirm that with version 2019.01.25 20:06, when the main language is set to fr, the \date command does not work correctly. However setting \mainlanguage[en] gives the correct behavior of \date, in english, in the example file sent by Fabrice. Also this minimal example gives

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
Hi, I just updated context standalone and if I compile the following file, the date does not appear anymore. Thank you Fabrice \mainlanguage[fr] \setupbackgrounds [header] [text] [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt

[NTG-context] Minion Pro confuses italic correction

2019-01-20 Thread Henri Menke
bly the font that is faulty but I guess ConTeXt shouldn't crash in that case. Cheers, Henri --- \mainlanguage[de] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[global, always] \setupbodyfontenvironment[default][em=italic] \setupbodyfont[minion,11pt] \starttext {\em rif

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Thomas A. Schmitz
case, if you merely want to get rid of all distinctions between upper- and lowercase, accents, etc., you could use Lua (slightly modified example): \mainlanguage[pt] \defineregister [nome] \setupregister [nome] [ language=pt, n=1, ] \startluacode userdata = userda

Re: [NTG-context] two different outputs.

2019-01-01 Thread Jeong Dal
%\stopluacode \setuplanguage[kr][patterns=us] \mainlanguage[kr] \setscript[hangul] %\usetypescriptfile[type-hcrlvt] %\usetypescript[HcrFont] % As set in your typescript file %\definefontfamily [Myface] [mm][Neo Euler] \definefont[fancy][Zapfino at 24pt] \definefont[GreekA][MinionPro-MediumIt

[NTG-context] fallback family not working for \setinitial

2018-12-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \mainlanguage[agr] \setuppapersize[A5] \definefallbackfamily [mainface] [rm] [GFS Didot] [preset=range:greek, force=yes] \definefontfamily [mainface] [rm] [TeX Gyre Pagella

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread Rik Kabel
[extrakerning] [factor=0.125,features=whatever] \starttext     \setcharacterkerning[extrakerning]     effe fietsen \stoptext Nice! It recognizes the difference between ccmp and liga, so now we have (almost perfect) support for Sperrdruck! There is a ZWNJ in the following example (between t and z inZeitzone) that

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Marco Patzer
ks if the token lists exists > > \starttokenlist [english] >   \setupitemgroup [itemize] [i] > \stoptokenlist > > \starttokenlist [swedish] >   \setupitemgroup [itemize] [a] > \stoptokenlist > > \startsetups [document:start] > > \doifdocumentva

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Wolfgang Schuster
] \stoptokenlist \starttokenlist [swedish]   \setupitemgroup [itemize] [a] \stoptokenlist \startsetups [document:start] \doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}   \startmodeset     [*en] {\gettokenlist[english]}     [*sv] {\gettokenlist[swedish]}   \stopmodeset

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Marco Patzer
On Wed, 28 Nov 2018 09:20:49 +0100 Hans Hagen wrote: > An alternative is to use system modes: > > \mainlanguage[nl] > > % \startmode[*en] > % \setupitemize[n] > % \stopmode > > % \startmode[*nl] > % \setupitemize[a] > % \stopmode > > %

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Hans Hagen
On 11/27/2018 10:05 PM, Wolfgang Schuster wrote: Marco Patzer schrieb am 27.11.18 um 21:56: On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: A nudge in the right direction appreciated. \appendtoks     \mainlanguage[\documentvariable{language}]% %\doifdocumentvariable{language

  1   2   3   4   5   6   7   8   9   10   >