ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Conflict between fr and cyrillic
@ 2011-08-06 18:28 Jean-Philippe Rey
  2011-08-09 15:37 ` Conflict between fr and font definitions Jean-Philippe Rey
  2011-08-09 15:53 ` Conflict between fr and cyrillic Wolfgang Schuster
  0 siblings, 2 replies; 12+ messages in thread
From: Jean-Philippe Rey @ 2011-08-06 18:28 UTC (permalink / raw)
  To: ntg-context

Hi everybody,

I have an almost finished report inside which I need to typeset some russian words. I am using ConTeXt Standalone current (2011.05.18 18:04 MKII). Reading the wiki, it seems that there are no more fonts with cyrillic glyphs in this distribution. So I switched to XeTeX in order to use my system fonts. Unfortunately I stumbled into a problem when combining my fr settings with a font switching command.

Here is a minimal example. 

\mainlanguage[fr]
\useencoding[ffr]

\definefontsynonym[CyrF][name:Lucida Grande]
\definefont[Russian][CyrF sa 1]

\starttext
Quelques caractères cyrilliques
{\Russian Мама и Папа} et on
continue tranquillement.
\stoptext


If I delete either line \mainlanguage[fr] or \useencoding[ffr] everything works fine (for the font switching, but obviously not for the other part of my report :-).

Below is the output when I try to compile the above example with "texexec --xtx". Could someone tell me if I am doing something wrong.

Thanks.


TeXExec | processing document 'fr-ffr-cyr'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file fr-ffr-cyr.top
TeXExec | using randomseed 1093
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en.mkii
This is XeTeX, Version 3.1415926-2.2-0.999.7 (Web2C 7.5.6)
 \write18 enabled.
entering extended mode
(./fr-ffr-cyr.tex

ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.7.31  int: english/english

system          : cont-new.mkii loaded

(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/cont-new.mk
ii
systems         : beware: some patches loaded from cont-new.mkii
)
system          : cont-sys.rme loaded

(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/user/cont-sys.rm
e
(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/type-siz.mk
ii)
(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/type-otf.mk
ii)
(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/type-xtx.mk
ii))
system          : fr-ffr-cyr.top loaded
(./fr-ffr-cyr.top)
bodyfont        : 12pt rm is loaded
language        : patterns nl->default:default->1->2:2 us->default:default->2->
2:3 de->default:default->3->3:3 da->default:default->4->2:2 sv->default:default
->5->2:2 af->default:default->6->2:2 gb->default:default->7->2:2 fr->default:de
fault->8->2:2 es->default:default->9->2:2 ca->default:default->10->2:2 it->defa
ult:default->11->2:2 la->default:default->12->2:2 pt->default:default->13->2:2 
ro->default:default->14->2:2 pl->default:default->15->2:2 cs->default:default->
16->2:2 sk->default:default->17->2:2 hr->default:default->18->2:2 sl->default:d
efault->19->2:2 tr->default:default->20->2:2 tk->default:default->21->1:2 lt->d
efault:default->22->2:2 agr->default:default->24->2:2 fi->default:default->25->
2:2 hu->default:default->26->2:2 ru->default:default->28->2:2 uk->default:defau
lt->29->3:3  loaded
specials        : dvips loaded
language        : language en is active
specials        : loading definition file dpx

(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/spec-dpx.mk
ii
specials        : loading definition file fdf

(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/spec-fdf.mk
ii))
specials        : loading definition file xet

(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/spec-xet.mk
ii)
encoding        : coding ffr is loaded

(/Users/jprey/ConTeXt-2011.05.18/tex/texmf-context/tex/context/base/enco-ffr.mk
ii
system          : module tryout not found
language        : language specific options [default-fr] seamless appended
language        : language specific options [default-fr] seamless appended
) (./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo)
(./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo)
(./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo) (./fr-ffr-cyr.tuo)
publications    : file fr-ffr-cyr.bbl not found, waiting for bibtex
(./fr-ffr-cyr.tuo)
systems         : begin file fr-ffr-cyr at line 7
! Missing \endcsname inserted.
<to be read again> 
                   \edef 
\dodirectdiscretionary #1->\edef 
                                 \discretionarytoken {\detokenize {#1}}\let ...
<argument> ...text {:}{\dodirectdiscretionary {:}}
                                                  Lucida Grande
\dotruefontname ...->\ifcsname \??ff \fontclass #1
                                                  \endcsname \ifx #2\empty \...

\dotruefontname ... \??ff \fontclass #1\endcsname 
                                                  \else \@EA \redotruefontna...

\donoparsefontspec ...\truefontname \somefontname 
                                                  }\ifx \fontfile \s!unknown...
...
l.9 {\Russian
              Мама и Папа} et on
? x
No pages of output.
Transcript written on fr-ffr-cyr.log.
TeXUtil | parsing file fr-ffr-cyr.tui
TeXUtil | check loading of file 'fr-ffr-cyr', begin/end problem
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 2
TeXUtil | programs: 0
TeXUtil | tuo file saved


-- 
Jean-Philippe Rey                 Professeur - École Centrale Paris
jean-philippe.rey@ecp.fr          92295 Châtenay-Malabry Cedex - France



___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-08-10 15:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-06 18:28 Conflict between fr and cyrillic Jean-Philippe Rey
2011-08-09 15:37 ` Conflict between fr and font definitions Jean-Philippe Rey
2011-08-09 15:53 ` Conflict between fr and cyrillic Wolfgang Schuster
2011-08-09 18:10   ` Jean-Philippe Rey
2011-08-09 18:20     ` Wolfgang Schuster
2011-08-10  9:25       ` simplefonts and cjk Jean-Philippe Rey
2011-08-10 12:09         ` Li Yanrui (李延瑞)
2011-08-10 12:51           ` Wolfgang Schuster
2011-08-10 13:01           ` Jean-Philippe Rey
2011-08-10 13:24             ` Wolfgang Schuster
2011-08-10 15:33               ` Jean-Philippe Rey
2011-08-10 15:46                 ` Wolfgang Schuster

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).