[NTG-context] Re: New user here!

2025-06-16 Thread Wolfgang Schuster
best solution is use a font which contains all characters needed for the document but it's possible to set fonts which are used as fallback for characters which are missing in the main font. begin example \definefallbackfamily [John] [serif] [Stix Two Text] [range=0x0292] \definefontf

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-24 Thread Wolfgang Schuster
Am 24.04.2025 um 19:40 schrieb Pablo Rodriguez via ntg-context: On 4/24/25 17:39, Wolfgang Schuster wrote: [...] Doesn't work for me because ConTeXt complains about the missing file. runtime error : input file './whatever.tex' is not found, quitting mtx-context | fatal error: return code: 1

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-24 Thread Pablo Rodriguez via ntg-context
On 4/24/25 17:39, Wolfgang Schuster wrote: > [...] > Doesn't work for me because ConTeXt complains about the missing file. > > runtime error : input file './whatever.tex' is not found, quitting > mtx-context | fatal error: return code: 1 Weird, I only get a warning: context --purgeall --env

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-24 Thread Wolfgang Schuster
Am 23.04.2025 um 19:07 schrieb Pablo Rodriguez via ntg-context: On 4/18/25 20:24, Wolfgang Schuster wrote: [...] The same result can be reproduced without \definefontfamily and is limited to compact fonts. \definefontfallback [FallbackRegular] [file:notoserifregular*default,slanted] [greekandco

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-24 Thread Pablo Rodriguez via ntg-context
On 4/23/25 20:33, Wolfgang Schuster wrote: > Am 23.04.2025 um 19:07 schrieb Pablo Rodriguez via ntg-context: > [...] > > What is the content of both files? The contents of "source.tex" read: \definefontfallback [FallbackRegular] [file:NotoSerif.ttf*default,slanted] [greekandcoptic]

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-23 Thread Wolfgang Schuster
Am 23.04.2025 um 19:07 schrieb Pablo Rodriguez via ntg-context: On 4/18/25 20:24, Wolfgang Schuster wrote: [...] The same result can be reproduced without \definefontfamily and is limited to compact fonts. \definefontfallback [FallbackRegular] [file:notoserifregular*default,slanted] [greekandco

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-23 Thread Pablo Rodriguez via ntg-context
On 4/18/25 20:24, Wolfgang Schuster wrote: > [...] > The same result can be reproduced without \definefontfamily and is > limited to compact fonts. > > \definefontfallback [FallbackRegular] > [file:notoserifregular*default,slanted] [greekandcoptic] > > \definefontsynonym [MainfaceRegular] [Seri

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-18 Thread Wolfgang Schuster
Am 18.04.2025 um 13:59 schrieb Sylvain Hubert: Hello, 1 bug report + 3 questions: ___ # Bug report: \definefallbackfamily ignoring font features ```tex \definefallbackfamily[mainface][rm][Noto Serif][preset=range:greek, sl={style:tf, features:slanted}] \definefontfamily[mainface][rm

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-18 Thread Hans Hagen via ntg-context
On 4/18/2025 1:59 PM, Sylvain Hubert wrote: Hello, 1 bug report + 3 questions: These are for Wolfgang but shouldn't you set the style to sl? \definefallbackfamily [mainface] [rm] [Noto Serif] [preset=range:greek,sl={style:sl,features:slanted}] I'm not sure if selectfon

[NTG-context] Re: Bug report about \definefallbackfamily and other questions

2025-04-18 Thread Hans Hagen via ntg-context
On 4/18/2025 1:59 PM, Sylvain Hubert wrote: # Question: ConTeXt LMTX version control Where can one find older releases of ConTeXt LMTX when encountering problems like the bug above? https://github.com/contextgarden/context looks promising, but it do

[NTG-context] Bug report about \definefallbackfamily and other questions

2025-04-18 Thread Sylvain Hubert
Hello, 1 bug report + 3 questions: ___ # Bug report: \definefallbackfamily ignoring font features ```tex \definefallbackfamily[mainface][rm][Noto Serif][preset=range:greek, sl={style:tf, features:slanted}] \definefontfamily[mainface][rm][latinmodernroman] \setupbodyfont[mainface] \starttext

[NTG-context] Re: Negative font slant broken with compact fonts

2025-03-20 Thread Pablo Rodriguez via ntg-context
PS: the final source for this testing reads (just to be clear, since this seems to be too tricky [at least, to me]) \definefallbackfamily [mainface][rm][DejaVu Sans] [sl={style:regular, features:slanted},preset=range:greek] \definefontfamily [mainface][rm][Latin Modern Sans] \setu

[NTG-context] Re: Negative font slant broken with compact fonts

2025-03-19 Thread Max Chernoff via ntg-context
3TMXS7MADXX7E66L). > > Either slanted is specified for \definefontfamily or it doesn’t work for > \definefallbackfamily: > > \enableexperiments[fonts.compact] > \definefallbackfamily [mainface][rm][Dejavu Sans] > [sl={style:regular, features:slanted},preset=ra

[NTG-context] Re: Negative font slant broken with compact fonts

2025-03-19 Thread Pablo Rodriguez via ntg-context
NPJQOHBNQX4BFSMYAQA54DFET/#PQU3535L5EG57OQM3TMXS7MADXX7E66L). Either slanted is specified for \definefontfamily or it doesn’t work for \definefallbackfamily: \enableexperiments[fonts.compact] \definefallbackfamily [mainface][rm][Dejavu Sans] [sl={style:regular, features:slanted},preset=ra

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-10 Thread Pablo Rodriguez via ntg-context
On 2/8/25 11:46, Wolfgang Schuster wrote: > Am 08.02.2025 um 11:35 schrieb Pablo Rodriguez via ntg-context: >> On 2/8/25 11:18, Wolfgang Schuster wrote: >>> >>> I can't reproduce the error and the following works as intended. Wolfgang and Hans, I was able to reproduce the issue in https://context

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-09 Thread Pablo Rodriguez via ntg-context
On 2/9/25 12:23, Pablo Rodriguez via ntg-context wrote: > On 2/8/25 11:46, Wolfgang Schuster wrote: >> [...] >> I tested your example with and without the fake slant, both work. > > I’m still having the issue on a different machine (Win64), even with a > clean installation there. Wolfgang, on ano

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-09 Thread Pablo Rodriguez via ntg-context
On 2/8/25 11:46, Wolfgang Schuster wrote: > [...] > I tested your example with and without the fake slant, both work. I’m still having the issue on a different machine (Win64), even with a clean installation there. Not sure what I may be doing wrong. Pablo ___

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Pablo Rodriguez via ntg-context
On 2/8/25 12:05, Hans Hagen wrote: > [...] > btw, we're going to make compact font mode the default and add a > >--nocompactfonts > > switch (at least for a while). Many thanks for the info, Hans. It makes sens to have compact fonts as default. Pablo _

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Pablo Rodriguez via ntg-context
On 2/8/25 11:46, Wolfgang Schuster wrote: > [...] > I tested your example with and without the fake slant, both work. Weird, I cannot get the fake slant even in a brand new installation (on the same linux64 machine). I even disabled $HOME/texmf/texmf-local/cont-loc.mkxl (by moving it to $HOME/.te

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Hans Hagen
On 2/8/2025 11:35 AM, Pablo Rodriguez via ntg-context wrote: On 2/8/25 11:18, Wolfgang Schuster wrote: I can't reproduce the error and the following works as intended. Many thanks for your fast reply, Wolfgang. Your sample doesn‘t use the faked slant (font feature defined by ConTeXt), but an

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Wolfgang Schuster
Am 08.02.2025 um 11:35 schrieb Pablo Rodriguez via ntg-context: On 2/8/25 11:18, Wolfgang Schuster wrote: I can't reproduce the error and the following works as intended. Many thanks for your fast reply, Wolfgang. Your sample doesn‘t use the faked slant (font feature defined by ConTeXt), but

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Pablo Rodriguez via ntg-context
On 2/8/25 11:18, Wolfgang Schuster wrote: > > I can't reproduce the error and the following works as intended. Many thanks for your fast reply, Wolfgang. Your sample doesn‘t use the faked slant (font feature defined by ConTeXt), but an oblique font. I don’t know why the error happens on my Linux

[NTG-context] Re: compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Wolfgang Schuster
Am 08.02.2025 um 10:52 schrieb Pablo Rodriguez via ntg-context: Dear list, I have the following sample: \enableexperiments[fonts.compact] \definefallbackfamily [mainface][rm][Dejavu Sans] [sl={style:regular, features:slanted},preset=range:greek] \definefontfamily [mainface

[NTG-context] compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2025-02-08 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \enableexperiments[fonts.compact] \definefallbackfamily [mainface][rm][Dejavu Sans] [sl={style:regular, features:slanted},preset=range:greek] \definefontfamily [mainface][rm][Latin Modern Sans] %[sl={style:regular, features:slanted

[NTG-context] Re: What is the current correct way to load fallback fonts?

2024-11-05 Thread Henning Hraban Ramm
Am 05.11.24 um 14:17 schrieb Joel via ntg-context: I am using EB Garamond for my font, but there's a few places I need some special characters, like a checkmark symbol, so I'm trying to set FreeSerif as a fallback. \definefallbackfamily[main] [serif] [file:/home/joel/.fonts/ Fre

[NTG-context] What is the current correct way to load fallback fonts?

2024-11-05 Thread Joel via ntg-context
I am using EB Garamond for my font, but there's a few places I need some special characters, like a checkmark symbol, so I'm trying to set FreeSerif as a fallback. \definefallbackfamily[main] [serif] [file:/home/joel/.fonts/FreeSerif.otf] [range=dingbats, force=yes] \definefallbackf

[NTG-context] compact fonts, fake slanted and \definefallbackfamily (LMTX only)

2024-11-04 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \enableexperiments[fonts.compact] \definefallbackfamily [mainface][rm][Dejavu Sans] [sl={style:regular, features:slanted},preset=range:greek] \definefontfamily [mainface][rm][Latin Modern Sans] %[sl={style:regular, features:slanted

[NTG-context] Re: fake slant for definefallbackfamily

2024-10-20 Thread Pablo Rodriguez via ntg-context
On 10/18/24 18:04, Sylvain Hubert wrote: > I can define fake slant for a font with > >     \definefontfamily[mainface][rm][My Fancy Font][sl=features:slanted] > > How can I do it with \definefallbackfamily? Sorry, Sylvain, since you provide no sample, mine wil

[NTG-context] Re: fake slant for definefallbackfamily

2024-10-18 Thread ai2472206007
There is no complete example. I created a new one. The following example is working on my computer. % Maybe you need to explicitly specify the font name through the “tf” parameter. % Just replace “adobesongstdlight” with your own font. %% \definefallbackfamily [mainface][rm][adobesongstd

[NTG-context] fake slant for definefallbackfamily

2024-10-18 Thread Sylvain Hubert
I can define fake slant for a font with \definefontfamily[mainface][rm][My Fancy Font][sl=features:slanted] How can I do it with \definefallbackfamily? According to https://wiki.contextgarden.net/index.php?title=Command/definefallbackfamily , the following should work, but it actually

[NTG-context] slanted fallback and compact fonts

2024-08-19 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: %~ \enableexperiments[fonts.compact] \definefallbackfamily[mainface] [rm][TeX Gyre Pagella] [range={0x0061}, force=yes, it={style:tf, features:{slanted}}] \definefontfamily[mainface] [rm][TeX Gyre Pagella] %[it={style:tf, features

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

2024-08-10 Thread Jürgen Hanneder via ntg-context
Does it work if you say {\language[sa]yoga} That's it!! Together with Wolfgang's patient corrections, I now have a version that works. Here again, for the record: - \definefallbackfamily [Roman] [rm] [Adishila] [range=devanagari,features=devanagari-one] \define

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

2024-08-10 Thread Wolfgang Schuster
in Nagari \language[en]{test}    % still no switching back to roman, it seems stuck with Nagari. \stoptext - \definefallbackfamily [Roman] [rm] [Adishila] [range=devanagari,features=devanagari-one] \definefontfamily [Roman] [rm] [Minion Pro] \setupbodyfont [Roman]

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

2024-08-08 Thread Pablo Rodriguez via ntg-context
nt[minion] the Nagari parts disappear. Default language is US English. I mean, this is already set. For other languages, \mainlanguage[de] (as an example). As for the fonts, you need a fallback typeface: \definefallbackfamily [nagari] [rm] [adishila] [range={devanagari, devanagariextendeda

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

2024-03-01 Thread Jean-Pierre Delange
=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=right] \setupbodyfontenvironment[default][em=italic] % Use Theano Didot as Ancient Greek font \definefallbackfamily[mainface][serif

[NTG-context] Re: Japanese

2024-02-29 Thread Jeong Dal via ntg-context
opefully we can achieve with joint efforts to > make ConTeXt Japanese ready. > > If I happen to have made false statements, please accept my apology. I tried > to be of help as far as I could. I grew up in Japan and know more or less how > typeset text should look like. > > Ema

[NTG-context] Re: Japanese

2024-02-28 Thread Emanuel Han via ntg-context
I grew up in Japan and know more or less how typeset text should look like. Emanuel On Feb. 28 2024, at 7:44 pm, Jean-Pierre Delange wrote: > Hi Hraban ! > > I also used to write this, if the main language is European : > \definefallbackfamily [mainface] [rm] [ipamincho] > [range=cj

[NTG-context] Re: Japanese

2024-02-28 Thread Jean-Pierre Delange
Hi Hraban ! I also used to write this, if the main language is European : \definefallbackfamily [mainface] [rm] [ipamincho] [range=cjkunifiedideographs] Hope this is useful anymore, JP Le 28/02/2024 à 18:34, Henning Hraban Ramm a écrit : Am 28.02.24 um 08:34 schrieb Otared Kavian: Dear

[NTG-context] Re: Issue with italics

2024-02-26 Thread Jean-Pierre Delange
=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=right] \setupbodyfontenvironment[default][em=italic] \definefallbackfamily[mainface][rm][Theano

[NTG-context] Re: Issue with italics

2024-02-26 Thread Thomas A. Schmitz
will have to add “force=yes” to your definition of the fallback family: \definefallbackfamily [mainface] [rm] [Theano Didot] [preset=range:greek,force=yes] Your text cannot have two main languages, so \mainlanguage[fr] If you want hyphenation for your Greek passages, you can

[NTG-context] Issue with italics

2024-02-26 Thread Jean-Pierre Delange
rrent version: 2024.01.24 22:39. Herewith are two MWE attachments (*.tex + *.pdf) with different fonts. What am I missing ? Thanks for your answers. JP \mainlanguage[fr,agr] \definefallbackfamily [mainface] [rm] [Theano Didot] [preset=range:greek] \definefontfamily [mainface]

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
t; If I use the UTF-8 characters then do not come out in text with > Modern font. You need to select a font containing the characters you need. Or set up a fallback for a certain range: https://wiki.contextgarden.net/Command/def

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

2023-08-05 Thread Gerben Wierda
ian, which could save some bytes in the >> distribution > > Yes, that solved the hyphenation issue. But now I am having trouble with > \phrasetext. When using uk as language code, \phrasetext does not work. > > So, use 'ua', \phrasetext works, but hyphenation

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

2023-08-05 Thread Gerben Wierda
, use 'ua', \phrasetext works, but hyphenation does not And use 'uk', hyphenation works, but \phrasetext does not %== \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi=st

[NTG-context] Re: Ukrainian hyphenation?

2023-07-18 Thread Hans Hagen
On 7/19/2023 12:36 AM, Gerben Wierda wrote: This file: \setupinteraction [state=start, color=blue, style=bold] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi

[NTG-context] Ukrainian hyphenation?

2023-07-18 Thread Gerben Wierda
This file: \setupinteraction [state=start, color=blue, style=bold] \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

[NTG-context] Re: What are these warnings/errors?

2023-07-18 Thread Gerben Wierda
gt;>> whitespace on top of the first page >>> >>> so, just grep for that orphaned text snippet in your style / document >> >> >> Hmm, it ('syle') is nowhere to be found in my documents. The 'syle' typo is >> found twice in Con

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
wrote: > > > > Gerben Wierda via ntg-context <mailto:ntg-context@ntg.nl>> 于2023年5月15日周一 16:43写道: > When I use flushright, my Japanese characters get widely spaced as if > flushing right doesn't work > > Minimal example: > > % =====

Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
Gerben Wierda via ntg-context 于2023年5月15日周一 16:43写道: > When I use flushright, my Japanese characters get widely spaced as if > flushing right doesn't work > > Minimal example: > > % === > \definefallbackfamily > [archimate] > [ss]

[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
When I use flushright, my Japanese characters get widely spaced as if flushing right doesn't work Minimal example: % === \definefallbackfamily [archimate] [ss] [Hiragino Sans] [preset=range:japanese, tf=style:W3, it=style:W3, bf=style:W5,

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

2023-04-24 Thread Sylvain Hubert via ntg-context
uld. > > Thomas > > On 4/22/23 20:33, Pablo Rodriguez via ntg-context wrote: > > Hi Thomas, > > > > I don’t know what check does (maybe just check?), but the standard > > behaviour with \definefallbackfamily is only to fall back when the > > character is

Re: [NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
with \definefallbackfamily is only to fall back when the character is missing from the main font. To force all characters from the range in the fallback font, "force=yes" is required. Here you have a minimal sample (which doesn‘t use "preset=range:greek"), adding "force=y

Re: [NTG-context] fallbacks

2023-04-22 Thread Pablo Rodriguez via ntg-context
hat check does (maybe just check?), but the standard behaviour with \definefallbackfamily is only to fall back when the character is missing from the main font. To force all characters from the range in the fallback font, "force=yes" is required. Here you have a minimal sample (which doesn‘t use &quo

[NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
Hi all, today, I was struggling with a fallback font I had defined, and I discovered that the key "check" doesn't work as I expected. Here's a small example: \definefallbackfamily [presentation] [serif] [TeXGyreTermes] [range=0x2329-0x232A,check=yes] \definefontfamily [

[NTG-context] Font substitution for extensible symbols

2023-02-01 Thread Yaroslav Beltukov via ntg-context
re is MWE: % 0x221A is the radical symbol \definefallbackfamily [MainFace] [mm] [TeX Gyre Pagella Math] [force=yes, range=0x221A] \definefontfamily [MainFace] [tf] [Cambria] % or [XITS] \definefontfamily [MainFace] [mm] [Cambria Math] % or [XITS Math] \setupbodyfont [MainFace] \star

Re: [NTG-context] issue with OT feature in LMTX

2022-12-04 Thread Hans Hagen via ntg-context
On 12/3/2022 2:04 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample (using current latest from 2022.12.01 13:05): \definefallbackfamily[mainface][rm][Noto Emoji] [range={0x1F004-0xFE837}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella

[NTG-context] issue with OT feature in LMTX

2022-12-03 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample (using current latest from 2022.12.01 13:05): \definefallbackfamily[mainface][rm][Noto Emoji] [range={0x1F004-0xFE837}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \definestructureconversionset

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
t; plus5pt\vtop{\setupinterlinespace[line=0.5em]\box1\box2}% under line > > } > > ``` > > usage as follows: > > > > ```lmtx > > \pinyin{寖備}{jìn bèi} > > ``` > > The ruby command has no problem with chinese but you need a font which > has support for i

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
\wd1>\wd2 \maxwd=\wd1 \else \maxwd=\wd2 \fi% > > \setbox1 = \hbox to \maxwd{\hfill \box1 \hfill}% > > \setbox2 = \hbox to \maxwd{\hfill \box2 \hfill}% > > \hskip0pt plus5pt\vbox{\setupinterlinespace[line=0.5em]\box2\box1}% > > above line > > %

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Hans Hagen via ntg-context
[NotoCJKvertical][NotoSanstc-Regular*default,vertical @ 24pt] \definefont[NotoCJKverticalBold][NotoSanstc-Bold*default,vertical @ 48pt] \definefallbackfamily [documentfont] [rm] [Noto Serif CJK SC] [preset=range:chinese,features={default,vertical}] \definefallbackfamily [documentfont] [ss

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Wolfgang Schuster via ntg-context
has support for it. As can be seen in my previous example you can use the style-key to switch to a different font for the annotation (e.g. \setupruby[style=\pinyinfont]). begin example \definefallbackfamily [documentfont] [rm] [Noto Serif CJK SC] [preset=range:chinese] \definefallbackfam

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

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

2022-07-08 Thread Gerben Wierda via ntg-context
] \setupphrasetext[en][sheettitle={EN Core}] \setupphrasetext[ru][sheettitle={RU Ядро}] \setupphrasetext[el][sheettitle={EL AΒασικό}] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi=style:oblique

Re: [NTG-context] Using alegreya typescript

2022-07-06 Thread Hans Hagen via ntg-context
ures=default] \stoptypescript \starttypescript [alegreya,alegreya-light,alegreya-medium] \definefallbackfamily[alegreya][serif][gentium][range={greekandcoptic,greekextended}] \definetypeface [\typescriptone] [rm] [serif] [\typescriptone-serif] [default] \definetypeface [\typescrip

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

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

2022-06-05 Thread Thangalin via ntg-context
Not sure, but have you tried: \definefallbackfamily [mainface] [serif] [Gentium Plus] [range=greekandcoptic] The wiki has a page on fallback fonts: https://wiki.contextgarden.net/Command/definefontfallback Searching for "greek" has numerous hits, including greekextended. Have you ver

[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] Custom type-imp file creating empty lines

2022-05-11 Thread Alexandre Christe via ntg-context
ent (if I use the default or another font this vanishes, so it > > really comes from that file). Could anyone enlighten me? > > Hi Alex, > > you added an extra option group here: > > \definefallbackfamily [alegreya] [math] [Alegreya] > [superscriptsandsubscripts] [forc

Re: [NTG-context] Custom type-imp file creating empty lines

2022-05-11 Thread Pablo Rodriguez via ntg-context
the file > I ended up with seems to create some empty lines at the beginning of the > document (if I use the default or another font this vanishes, so it > really comes from that file). Could anyone enlighten me? Hi Alex, you added an extra option group here: \definefallbac

Re: [NTG-context] upload

2022-03-28 Thread Otared Kavian via ntg-context
cal does not work anymore and one >> has to use \mathcal. >> However in almost all of my documents I use Lucida Bright OT, and in some >> occasions I replace its calligraphic letters by the slots from Asana Math >> with the following definitions: >> >> \def

Re: [NTG-context] upload

2022-03-28 Thread Mikael Sundqvist via ntg-context
mmand \cal does not work anymore and one > has to use \mathcal. > However in almost all of my documents I use Lucida Bright OT, and in some > occasions I replace its calligraphic letters by the slots from Asana Math > with the following definitions: > > \definefallbackfamily[

Re: [NTG-context] upload

2022-03-28 Thread Otared Kavian via ntg-context
documents I use Lucida Bright OT, and in some occasions I replace its calligraphic letters by the slots from Asana Math with the following definitions: \definefallbackfamily[myfont][math][Asana Math] [range={uppercasescript,lowercasescript}] % lucida font \definefontfamily[myfont][serif

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
ys \m{\frac{2}{3} A}, \m{\frac{1}{3} D}. \stoptext \definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes] \definefontfamily[story][serif][TeX Gyre Schola] \definefontfamily [story] [sans] [Latin Modern Sans] \definefontfamily [story] [mono] [Latin Modern

Re: [NTG-context] TeXGyre Heros on Firefox

2022-03-10 Thread Hans Hagen via ntg-context
][sans] [textgyreheros] \definefontfamily[mainfont][mono] [texgyrecursor][features=none] \definefontfamily[mainfont][math] [texgyrepagellamath] \definefallbackfamily [mainfont] [rm] [Latin Modern Math] [scale=0.925, range=0x22C0] \definefontfeature[smallcaps][script=latn, protrusion

[NTG-context] TeXGyre Heros on Firefox

2022-03-10 Thread juh via ntg-context
][features=none] \definefontfamily[mainfont][math] [texgyrepagellamath] \definefallbackfamily [mainfont] [rm] [Latin Modern Math] [scale=0.925, range=0x22C0] \definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes] \setupalign[hz,hanging

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-06 Thread Wolfgang Schuster via ntg-context
t, or am I doing something wrong? Fonts in ConTeXt are always perilous, alas. For me, anyway. \definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes] \definefontfamily[story][serif][TeX Gyre Schola] The following two font settings are wrong, you're passin

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread śrīrāma via ntg-context
ont[termes] See below a modified version of your MWE: \definefallbackfamily[story][serif][notoserif] [range={greekandcoptic,greekextended},force=yes] \definefontfamily[story][serif][TeX Gyre Schola] \definefontfamily[story][sans][modern] \definefontfamily[story][mono][modern] \definefontfamily[sto

[NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread Michael Urban via ntg-context
ed a newer version of ConTeXt, or am I doing something wrong? Fonts in ConTeXt are always perilous, alas. For me, anyway. \definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes] \definefontfamily[story][serif][TeX Gyre Schola] \definefontfamily[story][sa

Re: [NTG-context] context manuals -- absence of \definefontfamily

2022-01-04 Thread Jeong Dal via ntg-context
understanding about \definefontfamily. To: Youssef Cherem, Recently, Wolfgang helped me to define a font family as following, and I hope that it gives you some idea to use \definefontfamily. \definefallbackfamily [nanum] [rm] [Tex Gyre Pagella] [range={basiclatin,latinsupplement,latinextendeda,latinexten

Re: [NTG-context] context manuals -- absence of \definefontfamily

2022-01-03 Thread Aditya Mahajan via ntg-context
On Mon, 3 Jan 2022, Hans Hagen via ntg-context wrote: > On 1/3/2022 9:41 PM, Youssef Cherem via ntg-context wrote: > > Dear all, > > > > I've come back to using Context and I noticed the nice manuals around -- > > but one thing I miss is \definefontf

Re: [NTG-context] context manuals -- absence of \definefontfamily

2022-01-03 Thread Hans Hagen via ntg-context
On 1/3/2022 9:41 PM, Youssef Cherem via ntg-context wrote: Dear all, I've come back to using Context and I noticed the nice manuals around -- but one thing I miss is \definefontfamily (and \definefallbackfamily). There is info here: https://wiki.contextgarde

[NTG-context] context manuals -- absence of \definefontfamily

2022-01-03 Thread Youssef Cherem via ntg-context
Dear all, I've come back to using Context and I noticed the nice manuals around -- but one thing I miss is \definefontfamily (and \definefallbackfamily). There is info here: https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt and then checking out the specific page:

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Wolfgang Schuster via ntg-context
n use \definefontfamily and \definefallbackfamily also for monospaced fonts. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.n

Re: [NTG-context] Asking context to switch to a different font for a single character in many places

2022-01-01 Thread Wolfgang Schuster via ntg-context
Ajith R via ntg-context schrieb am 01.01.2022 um 11:06: On Sat, 01 Jan 2022 14:28:12 +0530 kauśika wrote: Try with the following: \definefallbackfamily [malayalam] [serif] [TeX Gyre Pagella][range=controlpictures,force=yes] \definefontfamily [malayalam] [serif] [RIT Rachana

Re: [NTG-context] Asking context to switch to a different font for a single character in many places

2022-01-01 Thread Ajith R via ntg-context
On Sat, 01 Jan 2022 14:28:12 +0530 kauśika wrote: > Try with the following: > > \definefallbackfamily > [malayalam] > [serif] > [TeX Gyre Pagella][range=controlpictures,force=yes] > \definefontfamily > [malayalam] > [serif] > [RIT R

Re: [NTG-context] Asking context to switch to a different font for a single character in many places

2022-01-01 Thread Ajith R via ntg-context
On Sat, 01 Jan 2022 14:28:12 +0530 kauśika wrote: > Try with the following: > > \definefallbackfamily > [malayalam] > [serif] > [TeX Gyre Pagella][range=controlpictures,force=yes] > \definefontfamily > [malayalam] > [serif] > [RIT R

Re: [NTG-context] Asking context to switch to a different font for a single character in many places

2022-01-01 Thread kauśika via ntg-context
On Saturday, January 1, 2022 1:37:49 PM IST Ajith R wrote: > This doesn't print the open box. If I remove the definefontfamily > command or define font family using only Latin Modern, open box is > printed, but not the title. > > What am I missing? Try with the following: \

Re: [NTG-context] Asking context to switch to a different font for a single character in many places

2022-01-01 Thread Ajith R via ntg-context
elsewhere that you have \definefontfamily[…] > you can set a fallback font family with \definefallbackfamily[…] and > choose a font which has the character you want: > > ⋮ > \definefallbackfamily[mainfont][rm][Latin Modern] > [range=controlpictures,force=yes] > \definefontfamily[mainfont

Re: [NTG-context] Asking context to switch to a different font for a single character in many places

2021-12-31 Thread kauśika via ntg-context
y with \definefallbackfamily[…] and choose a font which has the character you want: ⋮ \definefallbackfamily[mainfont][rm][Latin Modern] [range=controlpictures,force=yes] \definefontfamily[mainfont] […] ⋮ \setupbodyfont[mainfont] The 'controlpictures' Unicode block (≡ U+2400 – U+243F) contains the cha

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Hagen via ntg-context
found it readable in plain text to use the Unicode superscript and subscript parentheses. But when typeset, they should be superscripts and subscripts. — \definefallbackfamily [mainface][serif][stixtwotext][range={00B2-00B3,00B9,02070-0208F},force=yes] \definefallbackfamily [mainface][mono][stix

Re: [NTG-context] Unicode superscript and subscript parentheses as operators

2021-12-28 Thread Hans Åberg via ntg-context
I might use it for: A logic program, where I found it readable in plain text to use the Unicode superscript and subscript parentheses. But when typeset, they should be superscripts and subscripts. — \definefallbackfamily [mainface][serif][stixtwotext][range={00B2-00B3,00B9,02070-0208F},force=yes] \d

Re: [NTG-context] Math font tips and tricks

2021-11-11 Thread Marcus Vinicius Mesquita via ntg-context
Sometime ago I needed some basic math in Minion and I concocted something like follows below: % latin \definefallbackfamily [mainface] [math] [Minion Pro] [preset=math:mathematicalalphanumericsymbols,force=yes] \definefallbackfamily [mainface] [math] [Minion Pro] [preset

Re: [NTG-context] Math font tips and tricks

2021-11-07 Thread Wolfgang Schuster via ntg-context
o also for math typesetting. I've referred myself to this page of the Wiki https://wiki.contextgarden.net/Command/definefontfallback <https://wiki.contextgarden.net/Command/definefontfallback>. I have tried the following, but it fails for greek letters in math mode. \definefallbackfam

Re: [NTG-context] Math font tips and tricks

2021-11-07 Thread Hans Hagen via ntg-context
his page of the Wiki https://wiki.contextgarden.net/Command/definefontfallback <https://wiki.contextgarden.net/Command/definefontfallback>. I have tried the following, but it fails for greek letters in math mode. \definefallbackfamily      [mainface] [math] [Minion Pro]  [r

[NTG-context] Math font tips and tricks

2021-11-06 Thread Alexandre Christe via ntg-context
fontfallback. I have tried the following, but it fails for greek letters in math mode. \definefallbackfamily [mainface] [math] [Minion Pro] [range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes] \definefallbackfamily [mainface] [math] [M

Re: [NTG-context] features of fallback font

2021-09-07 Thread Wolfgang Schuster via ntg-context
text 人 foo \bf 人 bar % bar is bold, the second 人 is not \stoptext Does anyone know how to define features for fallback font? \definefallbackfamily [sylvain] [serif] [SimSun]   [range=cjkunifiedideographs,    bf={style:regular,features:boldened}] \definefontfamily [sylvain] [serif] [Latin Mo

  1   2   3   4   5   >