ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean-Pierre Delange <adeimantos@free.fr>
To: ntg-context@ntg.nl
Subject: Question about \definefallback
Date: Sun, 24 Jul 2016 13:18:18 +0200	[thread overview]
Message-ID: <6f7a590a-4525-ca98-448a-28296e6fc021@free.fr> (raw)
In-Reply-To: <CACyK-erP_tOgoTNR1hG7qJZu6stAyd=3JXq59V8uONtZuwWnOg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1715 bytes --]

Dear List,

Working with ConTeXt MK IV version 2016.07.18, I need sometimes within a 
text in French I am working on, some Greek words or sentences, rarely 
Chinese and Arabic words, mainly names and a few words.

Then, I use this general preamble (thanks to Pablo Rodriguez):

\setuplanguage[fr][patterns={fr,agr}]

\mainlanguage[fr]

\setuplayout [backspace=40mm]

\setuppagenumbering[alternative=doublesided, location={header, inmargin}]

\setupmargindata[inmargin][location=inner, 
style={\ssx\setupinterlinespace[line=2.8ex]}]

\setupmarginframed[inmargin][align=right]

\setupbodyfontenvironment[default][em=italic]


% Hereafter the commands for Greek and Chinese

\definefallbackfamily[mainface][serif][Theano Didot][preset=range:greek, 
it={Old Standard Italic}, force=yes]

\definefallbackfamily [mainface] [rm] [ipaexmincho] 
[range=cjkunifiedideographs]

\definefontfamily [mainface] [serif] [GaramondNo8][sc=NewG8 Regular SC]

\definefontfamily [mainface] [sans] [FreeSans] [rscale=0.7]


All is working well, but if I add these lines below to the pramble:


\definefallbackfamily [mainface] [sans] [hussaininastaleeq] [range=arabic]

  \definefontfamily [mainface] [serif] [GFS Didot]
(where hussainiastaleeq and GFS Didot fonts are pre-installed, and load 
with a '|mtxrun --script fonts --reload' command), then Arabic words are 
not printed in the PDF file.

One more question : in the English translitteration, the name of the 
tenth century Arabic philosopher, Farabi, is |Abū Naṣr al-Fārābī (with 
diacritic signs on wovels and under the 's' of "Nasr"). Do someone knows 
how to deal with these diacritic signs ?
Thak you very much.
JP

[-- Attachment #1.2: Type: text/html, Size: 3770 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-07-24 11:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 10:32 Question about \setupitemgroup Fabrice Couvreur
2016-07-22 10:47 ` Wolfgang Schuster
2016-07-22 11:06   ` Fabrice Couvreur
2016-07-22 14:12     ` Fabrice Couvreur
2016-07-23  8:28       ` Fabrice Couvreur
2016-07-23 16:41         ` Wolfgang Schuster
2016-07-24 10:28           ` Fabrice Couvreur
2016-07-24 11:18             ` Jean-Pierre Delange [this message]
2016-07-25  9:00               ` Question about \definefallback Jean-Pierre Delange
2016-07-27 10:53             ` Question about \setupitemgroup Fabrice Couvreur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6f7a590a-4525-ca98-448a-28296e6fc021@free.fr \
    --to=adeimantos@free.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).