On 5/4/20 12:36 AM, Gerben Wierda wrote:
[...] It could help if I would understand ConTeXt better. The link gives me a grammar for a command, but doesn’t tell me what to put in.
I tried many, many different permutations, I tried everything I could find on ConTeXtgarden (but then, that also finds me stuff from 15 years ago that isn’t valid anymore), but no luck so far.
Sorry for not explaining it better, Gerben. Let me know if the following sample works for you: \setuplanguage[en][patterns={en, ru}] \definefallbackfamily [abc] [ss] [Helvetica] [preset=range:cyrillic, %~ tf=style:light, %~ it=style:lightoblique, %~ bf=style:regular, %~ bi=style:oblique, force=yes, rscale=0.9] \definefontfamily [abc] [ss] [Optima] \setupbodyfont[abc] \starttext \startTEXpage[offset=1em] \doloopoverlist{\tf, \it, \bf, \bi}{ \recursestring\hyphenatedword{Николаевич typography}\par} \stopTEXpage \stoptext It should hyphenate both English and Russian in all four fonts (regular, italic, bold and bold italic).
Which is weird because Optima.ttc is in the same directory and it is found.
Aren’t Optima.ttc and Helvetica.ttc installed as typefaces on your macOS? This is relevant, since ConTeXt may have problems finding them when not installed on the system (especially with the system I use). If the sample above doesn’t work, please provide the output of "locate Helvetica.ttc".
But anyway, even if I could understand it, I can’t find anything useful (that is: something that works or makes me try something that works) about font fallbacks. Spending hours of looking (losing a lot of sleep) and then having to bother the list again is very frustrating. Why isn’t this straightforward? I am sorry, everybody is very helpful, but the frustration mounts again.
If the sample above works, I think font management for your documents may be easier to handle (or at least, the font code will be simpler). Don’t loose sleep when code is not working, ask here instead. I must admit that not having access to a macOS computer (I needed the help of a friend to test) makes everything a bit harder. But it isn’t impossible. BTW, I use "preset=range:cyrillic" instead of "range=cyrillic", since it includes cyrillic, cyrillicextendeda, cyrillicextendedb and cyrillicsupplement. I hope the sample above helps now, Pablo -- http://www.ousia.tk