[NTG-context] Re: testing language tagging?

2025-07-30 Thread Mikael Sundqvist
t; > you need to load a goodie (for now) > > > > \setuplanguage[agr][goodies={lang-agr.llg}] > > Many thanks for your explanation, Hans. > > I attach the goodies for language codes with different chars (no case > variants). > > Just tested them (with https://ww

[NTG-context] Re: testing language tagging?

2025-07-30 Thread Hans Hagen via ntg-context
On 7/30/2025 4:35 PM, Pablo Rodriguez via ntg-context wrote: On 7/29/25 22:38, Hans Hagen via ntg-context wrote: On 7/29/2025 8:07 PM, Pablo Rodriguez via ntg-context wrote: [...] Is language tagging still to be finished? you need to load a goodie (for now) \setuplanguage[agr][goodies={lang

[NTG-context] Re: testing language tagging?

2025-07-30 Thread Pablo Rodriguez via ntg-context
On 7/29/25 22:38, Hans Hagen via ntg-context wrote: > On 7/29/2025 8:07 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Is language tagging still to be finished? > > you need to load a goodie (for now) > > \setuplanguage[agr][goodies={lang-agr.llg}] Many

[NTG-context] Re: testing language tagging?

2025-07-29 Thread Hans Hagen via ntg-context
r (probably the whole tex communities) control so the best we can do is try to keep up one problem is that basically in a tex situation anything can be within anything even when very structured Is language tagging still to be finished? you need to load a goodie (for now) \setuplanguage[a

[NTG-context] Issue with bibliographical items in footnotes

2025-07-26 Thread Jean-Pierre Delange via ntg-context
PDF output. current version: 2025.04.01 12:45 Thank you for your help! JP MWE : \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \definefontfamily[mainface][rm][Tex Gyre Pagella] \setupbodyfont[mainface,12pt] \usebtxdataset[philosophie][bibli

[NTG-context] Re: Opening quotation mark

2025-06-15 Thread John Was
e commercial font Baskerville MT Pro if I type the simple ' as usual > > in TeX; but opening quotation marks remain as ` or ``. > > Don’t do this. Use \quote{} for single quotes and \quotation{} for > double quotes. > Maybe use \

[NTG-context] Re: Opening quotation mark

2025-06-15 Thread Henning Hraban Ramm
s and \quotation{} for double quotes. Maybe use \setuplanguage to change the quotation marks. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@n

[NTG-context] Re: how to only switch fontclass ?

2025-02-26 Thread autumnus
#*[#2]#*% {\edef\currentuserlanguage{#1}% \ifarguments\or\or \setuplanguage[#1][#2]% \setupuserlanguage[#1][#2]\fi \sys_language[#1]% \ifhmode\else\par \edef\p_language_interlinespace{\userlanguageparameter\c!interlinespace}% \useindentingparameter\userlanguagepara

[NTG-context] Re: issue with agr loaded patterns

2025-02-25 Thread Pablo Rodriguez via ntg-context
re loaded. With that change, \registerhyphenationpattern and \registerhyphenationexception work for \agr, but not for secondary loaded patterns (such as in \setuplanguage[en][patterns={en, agr}]). It seems that cases such as \setuplanguage[en][patterns={en, agr}], exceptions to the main patterns

[NTG-context] Re: how to only switch fontclass ?

2025-02-23 Thread Wolfgang Schuster
fonts with the language. %% not work \starttext \appendtoks \usebodyfontparameter\languageparameter \languageparameter{bodyfont} \to \everylanguage \setuplanguage[cn][bodyfont={pagella,12pt}] A \the\font \textbar \cn A \the\font \stoptext %% You can use the setups mechanism. \s

[NTG-context] how to only switch fontclass ?

2025-02-22 Thread autumnus
command to switch fonts with the language. %% not work \starttext \appendtoks \usebodyfontparameter\languageparameter \languageparameter{bodyfont} \to \everylanguage \setuplanguage[cn][bodyfont={pagella,12pt}] A \the\font \textbar \cn A \the\font \stoptext %% thank for your help

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Arthur Rosendahl
elated pattern (2γ1μ). I can see that, but that’s a red herring. As you can see in the following example, there is already an issue with mixing patterns in one language: \setupbodyfont[dejavu] \setuphyphenation[method=traditional] \setuplanguage[es][patterns={es,agr}] \mainlanguage

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Pablo Rodriguez via ntg-context
α for \agr and ἄπα­­ν-τα for \es (with added agr patterns). Even registering hyphenation exceptions (to get πράγ-μα-τα and ἅπαν-τα) seems not to work as expected: \setupbodyfont[dejavu] \setuphyphenation[method=traditional] \registerhyphenationpattern[agr][2γ1μ] %~ \registerhyph

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Arthur Rosendahl
Hi Pablo, On Sun, Feb 16, 2025 at 11:54:18AM +0100, Pablo Rodriguez via ntg-context wrote: > \setupbodyfont[dejavu] > \mainlanguage[agr] > \setuplanguage[es][patterns={es, agr}] > \starttext > \startTEXpage[offset=1em] > \hyphenatedword{πρά

[NTG-context] issue with agr loaded patterns

2025-02-16 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupbodyfont[dejavu] \mainlanguage[agr] \setuplanguage[es][patterns={es, agr}] \starttext \startTEXpage[offset=1em] \hyphenatedword{πράγματα}\\ \es\hyphenatedword{πρᾶγματα}\\ \hyphenatedword{τέκνον}\\ \stopTEXpage

[NTG-context] Re: full-width Chinese comma (U+FF0C) and ordinary comma (U+002C) in Chinese texts

2024-11-14 Thread Wolfgang Schuster
because it can mess up spacing for puntuation for the other languages. You add the setting to the language switch with the following method: \startsetups [chinese]   \setscript[hanzi] \stopsetups \setuplanguage [cn] [setups=chinese] Wolfgang ___

[NTG-context] Some suggestions for the current lang-txt.lua file and some questions about setting the labeltext and date

2024-10-24 Thread ai2472206007
Please let me know if I'm missing anything to use correctly. I apologize for my carelessness % \chapter{Title} will show : 1 title % why not 第一章? % Do I have to set it up again via labeltext? \currentdate % show 2024 年 十月 24 日。 % This is confusing because

[NTG-context] Re: italian words with apostrophe - hyphenation and discretionary

2024-10-22 Thread mf
ticle) via exceptions or by another way. I'll send you both a file to play with % \enabletrackers[languages.goodies] % \enabletrackers[languages.applied] \setuplanguage[italian][goodies={lang-it-test.llg}] \mainlanguage[italian] \starttext     \start \hsize 10cm nella'opera \par \s

[NTG-context] Re: italian words with apostrophe - hyphenation and discretionary

2024-10-22 Thread Hans Hagen via ntg-context
you both a file to play with % \enabletrackers[languages.goodies] % \enabletrackers[languages.applied] \setuplanguage[italian][goodies={lang-it-test.llg}] \mainlanguage[italian] \starttext \start \hsize 10cm nella'opera \par \stop \start \hsize 01mm nella'opera

[NTG-context] Re: Nāgarī for Academics

2024-08-10 Thread Jürgen Hanneder via ntg-context
ont[nagari] \stopsetups \setuplanguage [sa] [setups=sanskrit] \starttext Example: आनन्द Example: {\language[sa]yoga} yoga, (in roman again) \stoptext -- --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel.

[NTG-context] Re: Nāgarī for Academics

2024-08-10 Thread Wolfgang Schuster
}] \startsetups [sanskrit] \settransliteration[MyDeva] \switchtobodyfont[nagari] \stopsetups \setuplanguage [sa] [setups=sanskrit] \starttext Example:   आनन्द। अपिच   % this comes out as it should, but since input is in Nagari there is no transliteration involved. test

[NTG-context] Re: Nāgarī for Academics

2024-08-10 Thread Henning Hraban Ramm
u say {\language[sa]yoga} test ? I know \language only as a switch, but Hans changed several macros so that they work both ways. And the next \language should still switch, but perhaps \setuplanguage[en][setups=latin] or similar is

[NTG-context] Re: Nāgarī for Academics

2024-08-10 Thread Jürgen Hanneder via ntg-context
[nagari] \usetransliteration[indic] \definetransliteration [MyDeva] [lang=sa,vector={iast to deva}] \startsetups [sanskrit] \settransliteration[MyDeva] \switchtobodyfont[nagari] \stopsetups \setuplanguage [sa] [setups=sanskrit] \starttext Example: आनन्द। अपिच % this comes out as it

[NTG-context] Re: Nāgarī for Academics

2024-08-08 Thread Wolfgang Schuster
] \definetransliteration   [MyDeva]   [lang=sa,    vector={iast to deva}] \startsetups [sanskrit]   \settransliteration[MyDeva]   \switchtobodyfont[nagari] \stopsetups \setuplanguage [sa] [setups=sanskrit] \starttext \subject{Some notes on Printing Sanskrit with lmtx} \language[sa]{योग} -- That is the

[NTG-context] Letter module broken?

2024-06-25 Thread Kip Warner
ding latin modern fonts (third stage) fonts > 'fallback modern rm 10pt' is loaded tex error > tex error on line 10 in file ./minimal.tex: Undefined control sequence \setupletteroptions 1 \mainlanguage[nl] 2 \usemodule[letter] 3 4 \setuplangua

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Wolfgang Schuster
context"1\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Peter Münster
else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Wolfgang Schuster
tfile[osx] \setupbodyfont [stfangsong] \unprotect \installlanguage[cnt] [default=cn,patterns=cn,factor=yes] \setuplanguage [cnt] [spacing=packed,default=cn,patterns=cn,factor=yes] \setuplabeltext [cnt] [appendix={附錄}] \protect \mainlanguage[cnt] \currentmainlanguage \labeltext{appendix} %%% stopex

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Jean-Pierre Delange
unprotect \installlanguage[cnt] [default=cn,patterns=cn,factor=yes] \setuplanguage [cnt] [spacing=packed,default=cn,patterns=cn,factor=yes] \setuplabeltext [cnt] [appendix={附錄}] \protect \mainlanguage[cnt] \currentmainlanguage \labeltext{appendix} %%% stopexample I think I'm going to get the two k

[NTG-context] How to Define a New Language

2024-05-24 Thread ai2472206007
otect \installlanguage[cnt] [default=cn,patterns=cn,factor=yes] \setuplanguage [cnt] [spacing=packed,default=cn,patterns=cn,factor=yes] \setuplabeltext [cnt] [appendix={附錄}] \protect \mainlanguage[cnt] \currentmainlanguage \labeltext{appendix} %%% stopexample I think I'm going to get the two kanji

[NTG-context] Re: ck hyphenation in old German orthography

2024-03-18 Thread Hraban Ramm
\mainlanguage[deo] \setuplanguage[deo][    hyphenmin=4,    lefthyphenmin=2,    righthyphenmin=2, ] \starttext \hyphenatedfile{aesop-de} \startcolumns Funktioniert die Trennung? Heckeneckenzecken \samplefile{aesop-de} \stopcolumns \stoptext Just as a start, the languages manual provides more

[NTG-context] Re: ck hyphenation in old German orthography

2024-03-17 Thread Wolfgang Schuster
Hraban Ramm schrieb am 17.03.2024 um 12:06: Hi, the sample file aesop-de is in old German orthography, there, ck should get hyphenated as k-k, this doesn’t work (e.g. Mücke isn’t hyphenated at all). Is there something I can configure? Hraban \mainlanguage[deo] \setuplanguage[deo

[NTG-context] ck hyphenation in old German orthography

2024-03-17 Thread Hraban Ramm
Hi, the sample file aesop-de is in old German orthography, there, ck should get hyphenated as k-k, this doesn’t work (e.g. Mücke isn’t hyphenated at all). Is there something I can configure? Hraban \mainlanguage[deo] \setuplanguage[deo][   hyphenmin=4,   lefthyphenmin=2,   righthyphenmin=2

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
course. %We are giving below an example of a text written in a Latin language, in which we want to print here and there some text in ancient Greek, Arabic and Chinese. \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setuplayout [backspace=40mm] \setuppagenumbering[alternative

[NTG-context] Re: Issue with italics

2024-02-26 Thread Jean-Pierre Delange
Thanks to Thomas and Denis, That's it: use GFS Didot for the French text and Theano Didot for the Greek. In my working text I have this preamble (and other things): \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setcharacterspacing[frenchpunctuation]] \setuplayout [backspace

[NTG-context] Re: Issue with italics

2024-02-26 Thread Thomas A. Schmitz
add \setuplanguage [fr] [patterns={fr,agr}] The line where you have polytonic Greek does not use precomposed characters, but combinations of greek characters and diacritics; this will probably not work in recent context versions that expect actual unicode input. I hope I have really understood

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Peter Münster
On Wed, Nov 29 2023, Hans Hagen wrote: > \setuplanguage[fr][date={day:++,\ ,month,\ ,year}] Unfortunately this does not work as I need. Only the "1" should be converted to 1er, not the other numbers. French is a bit special: You say "le premier novembre" but not "

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Hans Hagen
\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK

[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[d=1], \date[d=2] (not OK) \stoptext --8<

[NTG-context] Re: \phrasetext issue with language uk. Was: Ukrainian hyphenation?

2023-08-05 Thread Gerben Wierda
e, > bf=style:regular, > bi=style:oblique, > force=yes, > rscale=1.0] > \definefontfamily [archimate] [ss] [Helvetica] > \setupbodyfont[archimate] > > \definelabelclass[phrase] > \setupphrasetext[en][sheettitle={ArchiMate® 3.2 Metamodel -- Core}] > \setupphrasetext[ru][shee

[NTG-context] \phrasetext issue with language uk. Was: Ukrainian hyphenation?

2023-08-05 Thread Gerben Wierda
[sheettitle={Основні елементи метамоделі ArchiMate® 3.2}] \setupphrasetext[ua][sheettitle={Основні елементи метамоделі ArchiMate® 3.2}] \starttext \setuplanguage[uk][patterns={uk}]\mainlanguage[uk] \phrasetext{sheettitle} \setuplanguage[ru][patterns={ru}]\mainlanguage[ru] \phrasetext{sheettitle} \setu

[NTG-context] Re: Ukrainian hyphenation?

2023-07-18 Thread Hans Hagen
=style:oblique, force=yes, rscale=1.0] \definefontfamily [archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки

[NTG-context] Ukrainian hyphenation?

2023-07-18 Thread Gerben Wierda
[archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки). Наприклад `Металургійний комбінат'.}}\\ \setuplangua

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
;>> >>> \definefontfamily >>> [archimate] >>> [ss] >>> [Cabin] >>> [tf=style:Regular, >>> bf=style:Semibold, >>> it=style:Italic, >>> bi=style:Semibold Italic] >>> \setupbodyfont[archimate] &g

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Wolfgang Schuster via ntg-context
style:Semibold Italic] \setupbodyfont[archimate] \setuplanguage[en][patterns={en}]\mainlanguage[en] \starttext \setupindenting[none] \setupindenting[no] {\bf The quick brown fox jumped over the lazy dog} \input knuth \stoptext But when compiling I get no bold text I installed it in LMTX and it has be

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
e.com/specimen/Cabin > <https://fonts.google.com/specimen/Cabin>) like this: > > \definefontfamily > [archimate] > [ss] > [Cabin] > [tf=style:Regular, > bf=style:Semibold, > it=style:Italic, > bi=style:Semibold Italic] > \setupbodyf

[NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
le:Semibold Italic] \setupbodyfont[archimate] \setuplanguage[en][patterns={en}]\mainlanguage[en] \starttext \setupindenting[none] \setupindenting[no] {\bf The quick brown fox jumped over the lazy dog} \input knuth \stoptext But when compiling I get no bold text I installed it in LMTX and

Re: [NTG-context] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-03 Thread 李延瑞
Gerben Wierda via ntg-context 于2023年6月2日周五 19:37写道: > For Japanese I currently use > > \startsetups [japanese] > \setscript [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \definefallbackfamily > [archimate] > [ss] > [Hiragino Sans] >

[NTG-context] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-02 Thread Gerben Wierda via ntg-context
For Japanese I currently use \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \definefallbackfamily [archimate] [ss] [Hiragino Sans] [preset=range:japanese, tf=style:W3, it=style:W3, bf=style:W5, bi=style:W5, force=yes

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Gerben Wierda via ntg-context
setupbodyfont[archimate] > > \startsetups [japanese] > \setscript [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \mainlanguage [ja] > > \starttext > \setupindenting[none] > \setupindenting[no] > \framed[width=\textwidth,frame=off,align=flushleft]{作図

Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
> [Hiragino Sans] > [preset=range:japanese, >tf=style:W3, >it=style:W3, >bf=style:W5, >bi=style:W5, >force=yes] > > \definefontfamily [archimate] [ss] [Optima] > > \setupbodyfont[archimate] > > \startsetups [japanese] >

[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
bi=style:W5, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \mainlanguage [ja] \starttext \setupindenting[none] \setupindenting[no] \framed[width=\textwidth,fram

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
adapt the following setup (cyrillic and greek shown as the other languages with different character sets I use) \startmode[JA] \setuplanguage[ja][patterns={ja}]\mainlanguage[ja] \stopmode When your document prints only text in a single language change the setup above to     \startmo

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context
(cyrillic and greek shown as the other languages with different character sets I use) \startmode[JA] \setuplanguage[ja][patterns={ja}]\mainlanguage[ja] \stopmode \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context
o most of the > time TeX has no idea where to break. Is there something I can tell ConTeXt to > solve this for me or do I have to alk with the translator to put whitespace > in the correct places (kind of breaks the automatic linebreaking of TeX, > though)? I forgot to add. I use:

[NTG-context] \setuplanguage[explicitrighthyphenchar=-1] only works for English

2022-12-15 Thread Pablo Rodriguez via ntg-context
underscore }, } } end utilities.sequencers.appendaction("aftercopyingcharacters", "after","document.addfunnyhyphen") \stopluacode \definehyphenationfeatures [underscore] [righthyphenchar="FE000] \setuphyphenation[m

Re: [NTG-context] extra hyphen in underscore hyphenation

2022-12-10 Thread Pablo Rodriguez via ntg-context
On 12/8/22 13:14, Hans Hagen via ntg-context wrote: > [...] > \setuplanguage > [explicitrighthyphenchar=-1] Sorry for insisting, Hans, but many languages (excepting en and uk) seem nor to recogize this option: \startluacode function document.addfunnyhyphen(tfmdata) local u

Re: [NTG-context] extra hyphen in underscore hyphenation

2022-12-08 Thread Pablo Rodriguez via ntg-context
On 12/8/22 13:14, Hans Hagen via ntg-context wrote: > On 12/8/2022 12:33 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> What am I missing here? > > \setuplanguage > [explicitrighthyphenchar=-1] Many thanks for your fast reply, Hans. I’m afraid it doesn’t wor

Re: [NTG-context] extra hyphen in underscore hyphenation

2022-12-08 Thread Hans Hagen via ntg-context
he hyphen, such as: ity- -leg As far as I can remember, I would say this used to work before (no extra hyphen was added in the next line. What am I missing here? \setuplanguage [explicitrighthyphenchar=-1] --

Re: [NTG-context] Suboptimal German hyphenation

2022-10-31 Thread Denis Maier via ntg-context
> Hans added hyphenmin some time ago: > > \setuplanguage[de][lefthyphenmin=2, righthyphenmin=3, hyphenmin=6] > \setuplanguage[deo][lefthyphenmin=2, righthyphenmin=3, hyphenmin=5] > \mainlanguage[de] > \starttext > \startTEXpage[offset=1em] > \hyp

Re: [NTG-context] Suboptimal German hyphenation

2022-10-19 Thread Pablo Rodriguez via ntg-context
I found the recommendation in > Forssman, de Jong: Detailtypografie (4. Aufl, 2008, S. 124f.) to > use 2/3 for German justified texts, and 3/4 to 5/5 for ragged text. > They also recommend to never hyphenate words with 5 letters, not sure > that can be encoded. Hi Leah, Hans added hyp

Re: [NTG-context] Suboptimal German hyphenation

2022-09-28 Thread Henning Hraban Ramm via ntg-context
ch is correct, but you can get the same behaviour in ConTeXt with:     \mainlanguage[de]     \lefthyphenmin=2     \righthyphenmin=2 You can use \setuplanguage to change the values. \setuplanguage   [de]   [ lefthyphenmin=2,    righthyphenmin=2] Thank you, Leah, Max and Wolfgang! I changed

Re: [NTG-context] Suboptimal German hyphenation

2022-09-28 Thread Wolfgang Schuster via ntg-context
ghthyphenmin=2 You can use \setuplanguage to change the values. \setuplanguage   [de]   [ lefthyphenmin=2,    righthyphenmin=2] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! m

Re: [NTG-context] Getting started with Japanese

2022-07-09 Thread Gerben Wierda via ntg-context
Answering myself on Japanese, this actually works out of the box: \setuplanguage[ja][patterns={ja}]\mainlanguage[ja] \definefallbackfamily [archimate] [ss] [Hiragino Sans] [preset=range:japanese, tf=style:W3, it=style:W3, bf=style:W5, bi=style:W5, force=yes

Re: [NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 08.07.2022 um 12:21: On 8 Jul 2022, at 11:57, Taco Hoekwater wrote: On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context wrote: I have this minimal example: \startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el] That (‘el’) is a non

Re: [NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Gerben Wierda via ntg-context
> On 8 Jul 2022, at 11:57, Taco Hoekwater wrote: > > > >> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context >> wrote: >> >> I have this minimal example: >> >> \startmode[EL] >> \setuplanguage[el][patterns={el}]\mainlanguage[

Re: [NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Taco Hoekwater via ntg-context
> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context > wrote: > > I have this minimal example: > > \startmode[EL] > \setuplanguage[el][patterns={el}]\mainlanguage[el] That (‘el’) is a non-existent language, so it never becomes active. Best wishes, Taco — Taco Hoe

[NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Gerben Wierda via ntg-context
]} [default] {\enablemode[EN]} \stopmodeset \startmode[EN] \setuplanguage[en][patterns={en}]\mainlanguage[en] \stopmode \startmode[RU] \setuplanguage[ru][patterns={ru}]\mainlanguage[ru] \stopmode \startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el] \stopmode \definelabelclass[phrase

[NTG-context] Cyrillic UTF8 works, greek does not?

2022-06-22 Thread Gerben Wierda via ntg-context
What am I doing wrong? Minimum example: \setuplanguage[en][spacing=packed,patterns={en,el,ru,fr,pt}] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi=style:oblique, force=yes

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-07 Thread Denis Maier via ntg-context
Christian (UB) Cc: mailing list for ConTeXt users ; Bruce Horrocks Betreff: Re: [NTG-context] Contractions in ligature suppression word list Here's a short example (version 2022.05.11 11:36): \setuplanguage[en][goodies={lang-en.llg}] \starttext % Expected: no ligature; actual: as expected wo

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Thangalin via ntg-context
Here's a short example (version 2022.05.11 11:36): \setuplanguage[en][goodies={lang-en.llg}] \starttext % Expected: no ligature; actual: as expected wolfish % Expected: no ligatures; actual: ligature wolfing wolfin' wolfin’

Re: [NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Pablo Rodriguez via ntg-context
On 6/6/22 02:19, Gerben Wierda via ntg-context wrote: > For Russian I have: > > \setuplanguage[ru][patterns={ru}]\mainlanguage[ru] > \definefallbackfamily >   [archimate] >   [ss] >   [Helvetica] >   [preset=range:cyrillic, >    tf=style:light, >    it=style:light

[NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-05 Thread Gerben Wierda via ntg-context
For Russian I have: \setuplanguage[ru][patterns={ru}]\mainlanguage[ru] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi=style:oblique, force=yes, rscale=1.0] \definefontfamily [archimate

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-06-03 Thread Wolfgang Schuster via ntg-context
ays provide a minimal example (how much I would like to) as my TeX is produced in a pipeline from 5600 lines of lua and METAPOST code. But luckily, in this case I can, the one using \phrasetext is indented, the other one is not.: \setuplanguage[en][patterns={en}]\mainlanguage[en] \defin

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-06-02 Thread Gerben Wierda via ntg-context
oduced in a pipeline from 5600 lines of lua and METAPOST code. But luckily, in this case I can, the one using \phrasetext is indented, the other one is not.: \setuplanguage[en][patterns={en}]\mainlanguage[en] \definelabelclass[phrase] \setupphrasetext[en][metamodelexplanation= {Only direct

Re: [NTG-context] blockligatures removing characters

2022-05-13 Thread Denis Maier via ntg-context
}, words = [[ This That ]], }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies={oeps-fixes.llg}] \mainlanguage[en] \setupbodyfont[libertine] \starttext fiets fiots fiats fioot This That Then

Re: [NTG-context] blockligatures removing characters

2022-05-13 Thread Ben Moon via ntg-context
atterns = { > fio = "T|h", > }, > words = [[ This That ]], > }, > }, > } > table.save("oeps-fixes.llg",demo) > \stopluacode > > \setuplanguage[en][goodies={oeps-fixes.llg}] > > \setupbodyfont[ebgaramond]

Re: [NTG-context] blockligatures removing characters

2022-05-13 Thread Ben Moon via ntg-context
patterns = { fio = "T|h", }, words = [[ This That ]], }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies={oeps-fixes.llg}] \setupbodyfont[ebgaramond] \starttext

Re: [NTG-context] Does \startnotallmodes work?

2022-05-11 Thread Gerben Wierda via ntg-context
notallmodes[FR,RU]% english is the default >> \enablemode[EN] >> \stopnotallmodes >> >> \startmode[EN] >> % \BLURBTWO >> \setuplanguage[en][patterns={en}] >> \setupexternalfigure[directory=../LMTX-Output/without-ids/en/ArchiMate 3.1 >> Metamodel ESv4

Re: [NTG-context] Does \startnotallmodes work?

2022-05-10 Thread Rik Kabel via ntg-context
mode=EN is not turned on. %\startmode[FR] %  \BLURBONE %  \stopmode \startnotallmodes[FR,RU]% english is the default \enablemode[EN] \stopnotallmodes \startmode[EN] %  \BLURBTWO \setuplanguage[en][patterns={en}] \setupexternalfigure[directory=../LMTX-Output/without-ids/en/ArchiMate 3.1 Metamodel

Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-10 Thread Gerben Wierda via ntg-context
Fix > On 10 May 2022, at 22:41, Gerben Wierda via ntg-context > wrote: > > I currently have: > > \startnotallmodes[FR,RU]% english is the default > \enablemode[EN] > \stopnotallmodes > \startmode[EN] > \setuplanguage[en][patterns={en}] > \setupexternalfigure

[NTG-context] Does \startnotallmodes work?

2022-05-10 Thread Gerben Wierda via ntg-context
% \stopmode \startnotallmodes[FR,RU]% english is the default \enablemode[EN] \stopnotallmodes \startmode[EN] % \BLURBTWO \setuplanguage[en][patterns={en}] \setupexternalfigure[directory=../LMTX-Output/without-ids/en/ArchiMate 3.1 Metamodel ESv4] \stopmode \startmode[FR] \setuplanguage[fr][patterns

[NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-10 Thread Gerben Wierda via ntg-context
I currently have: \startnotallmodes[FR,RU]% english is the default \enablemode[EN] \stopmode \startmode[EN] \setuplanguage[en][patterns={en}] \setupexternalfigure[directory=../LMTX-Output/without-ids/en/ArchiMate 3.1 Metamodel ESv4] \stopmode \startmode[FR] \setuplanguage[fr][patterns={en,fr

Re: [NTG-context] blockligatures removing characters

2022-05-09 Thread Denis Maier via ntg-context
options = { { substitutions = { th = "t|h", Th = "T|h", }, }, }, } table.save("blockthlig.llg",blockthlig) \stopluacode \setuplanguage[

Re: [NTG-context] blockligatures removing characters

2022-05-09 Thread Hans Hagen via ntg-context
}, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies={oeps-fixes.llg}] \setupbodyfont[ebgaramond] \starttext fiets fiots fiats fioot this that \stoptext I just added (no upload) this \startluacode l

Re: [NTG-context] Contextual removal of some ligatures using fonts.handlers.otf.addfeature (LuaTeX 1.13.2)

2021-12-25 Thread Hans Hagen via ntg-context
lookups = { 1 } } } } } A better an dmore reliable approach is this: \startluacode local demo = { name= "demo", options = { { patterns = { fio = "f|io",

Re: [NTG-context] Harvard bibliography style

2021-08-10 Thread Thomas A. Schmitz via ntg-context
rticle] [\s!default:\s!list:title] [\c!style=, % journal is set in italics \c!command=\quotation] You can either replace command=\quotation with command=\quote or adapt the symbol for quotations for your language, e.g. \setuplanguage[en] [leftquotation=\upperleftsinglesixquote

ntg-context@ntg.nl

2021-06-15 Thread Wolfgang Schuster
r japanese \definefontfamily [source-han] [rm] [Source Han Serif] \startsetups [japanese] \switchtobodyfont [source-han] \setscript [hanzi] \stopsetups \setuplanguage [ja] [setups=japanese] \starttext English {\ja 日本語} \stoptext

Re: [NTG-context] \setcharacterspacing

2021-05-18 Thread Alan Bowen
spacing only when > • the environment file has the \startsetups...\stopsetups > • either \setup[test] or \setuplanguage[fr][setups=test] is in the > component file. > > Is this expected behavior? > > (Before I just \setcharacterspacing[test] in the env file but now it

Re: [NTG-context] \setcharacterspacing

2021-05-17 Thread Wolfgang Schuster
Alan Bowen schrieb am 17.05.2021 um 21:50: That is very good to know and it works in simple cases. But I am finding that in a product/component structure, I get the proper spacing only when • the environment file has the \startsetups...\stopsetups • either \setup[test] or \setuplanguage[fr

Re: [NTG-context] \setcharacterspacing

2021-05-17 Thread Alan Bowen
That is very good to know and it works in simple cases. But I am finding that in a product/component structure, I get the proper spacing only when • the environment file has the \startsetups...\stopsetups • either \setup[test] or \setuplanguage[fr][setups=test] is in the component file. Is this

Re: [NTG-context] \setcharacterspacing

2021-05-17 Thread Wolfgang Schuster
Alan Bowen schrieb am 17.05.2021 um 20:57: Wolfgang—Thank you. That works very nicely! You can also remove the \startsetups and \stopsetups commands to enable the spacing. When you want the spacing only for certain languages you can use \setuplanguage to load the setups-block for them

[NTG-context] Language goodies -- hard line break the algorithm?

2021-05-12 Thread denis.maier
Hi, testing the new language goodies feature for ligature prevention, I found that hard line breaks seem to interfere somehow with the ligature prevention mechanism: == \setuplanguage[de][ goodies={lang-de.llg}] \startlanguageoptions[de] auf|jubeln \stoplanguageoptions

[NTG-context] new upload

2021-03-31 Thread Hans Hagen
be done in pure lua (and i might add that at some point) this particular mechanism plugs into the hyphenator so that we get no real performance hit (I can proabbly improve it if really needed but let's first see if users complain.) Here is an exmaple (to be default or not?) \setuplanguag

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

Re: [NTG-context] inter-word spacing

2020-10-22 Thread Jano Kula
ions, be it \, \nospace, \thinspace > If one will finetune every space in the paragraph, this could be a way, but it's far from a nice solution. \setuplanguage[en][spacing=packed]. > > This latter especially because I want to avoid some rather ugly spaces > after a period.

Re: [NTG-context] inter-word spacing

2020-10-22 Thread jbf
,stretched], and \setuplanguage[en][spacing=packed]. This latter especially because I want to avoid some rather ugly spaces after a period. Then once I see how things look, I apply {\kerncharacters[-0.025] my text} in particular instances where things need to be tidied up. I have found that -0.025

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

2020-09-18 Thread Pablo Rodriguez
On 9/15/20 1:15 PM, Wolfgang Schuster wrote: > \setuplanguage [es] [patterns={es,gr}] Just a minor issue, ancient Greek is "agr" (instead of "gr"). That being said, Heraklit is a good match for Palatino (both by Hermann Zapf). The digitized version is available from h

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

2020-09-15 Thread Wolfgang Schuster
nface] [ss] [TeX Gyre Heros] [scale=0.75] \setuplanguage [es] [patterns={es,gr}] \setupbodyfont [mainface] \mainlanguage[es] \starttext \samplefile{cervantes-es} \samplefile{aristotle-grc} \stoptext Wolfgang ___ If

  1   2   3   4   >