From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17960 Path: main.gmane.org!not-for-mail From: Mikael Persson Newsgroups: gmane.comp.tex.context Subject: Re: Russia (cyrillic letters) Date: Tue, 25 Jan 2005 08:13:29 +0100 Message-ID: References: <41F41B8D.20908@wxs.nl> Reply-To: Mikael Persson , mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106637227 3332 80.91.229.6 (25 Jan 2005 07:13:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jan 2005 07:13:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 25 08:13:37 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CtKtN-0005V5-00 for ; Tue, 25 Jan 2005 08:13:37 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 590BC12792; Tue, 25 Jan 2005 08:13:36 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28610-01; Tue, 25 Jan 2005 08:13:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C3DCD12795; Tue, 25 Jan 2005 08:13:34 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C719112795 for ; Tue, 25 Jan 2005 08:13:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28532-03 for ; Tue, 25 Jan 2005 08:13:31 +0100 (CET) Original-Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by ronja.ntg.nl (Postfix) with ESMTP id 6EDFE12792 for ; Tue, 25 Jan 2005 08:13:31 +0100 (CET) Original-Received: by wproxy.gmail.com with SMTP id 71so28150wri for ; Mon, 24 Jan 2005 23:13:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=E6Um9FO3c0Kklqx5U37Nf78uT4vUwbbKJDFRQpYHusZBkeYDWTkjEcAi7a+k4OPIzFgWTJRuiF3vpYxHx4QT/UeXPrWLEediK/NYQ1YWBcGDzaVobszSsOt2WVa+rh1wUYjUMIqy30gwO/oxuHYqBVT4Fm2WRg/soRAEIu0jql4= Original-Received: by 10.54.36.22 with SMTP id j22mr160411wrj; Mon, 24 Jan 2005 23:13:30 -0800 (PST) Original-Received: by 10.54.40.40 with HTTP; Mon, 24 Jan 2005 23:13:29 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: <41F41B8D.20908@wxs.nl> X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17960 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17960 On Sun, 23 Jan 2005 22:47:57 +0100, h h extern wrote: > Mikael Persson wrote: > > > I am looking for a way of writing some home exercises in my Russian > > course in ConTeXt. However, so far I have not succeed with it. Should > > it work out of the box without installing any new fonts (I am having > > the fonts from a full install of TeXLive2003 now)? I have looked a bit > > in the source files for context, but with no luck. > > well, i just took a look in the latest tex tree, and i cannot find a trace of > the russian fonts that are defined in abundance in context's type-enc.tex; one > problem with russian is that nobody seems to be responsible to get all the right > stuff on tex live; > > Based on the definitions, the following should work (and is reported to work): > > \starttext > > \definetypeface [latin] > [rm] [serif] [latin-modern] [default] [encoding=texnansi] > > \definetypeface [russian] > [rm] [serif] [computer-modern] [default] [encoding=cyr] % t2a > > \latin \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf > \russian \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf > > \stoptext Hello, and thank you for your answer. However this small test file does not work here. Not in TeXLive2003 or with a fresh install of TeXLive2004. If I run it as it is, I get the bluesky cmr12 and cmr10. If cyr is changed to t2a, then it does not run anymore. It complains about larm1000 not found. I guess this is the cm-super files. In type-enc.tex there is a line \definefontsynonym [cmr10] [larm1000] [encoding=t2a] and I have the cm-super fonts installed, however no file called larm1000.tfm. In cm-super-t2a.map I see: larm1000 SFRM1000 "T2AEncoding ReEncodeFont" In order to get it working i suggest those using russian to do the following: > > - determine what encodings are *really* in use This, I shall ask one russian guy I know. > - collect the tfm/vf/pfb files that are needed to get that done > - build me the right map files > > (i probably involves some fonts from cmsuper; so ... what is the reasonable > subset that we need; if needed we can stick to a few reasonable sized (as we do > with greek); it's mostly the math that is sensitive to design sizes) > > we can then make a proper subset for (1) tex live and (2) the minimal context > distribution; even better would be to have those glyohs needed to be added to > the latin modern fonts [i can look into that later] That sounds great! > > I guess there are different ways to achieve this, however, since I > > also want some swedish text in the same documents, the best would > > probably be if one of the following options worked: > > the simpliest is to switch font and language at the same time (but i cannot test > anything if i have no fonts running on my sytstem] > > > 1) Typing everything in utf8, and get the different languages > > automatically when compiling. > > currently the utf handler does not change fonts, but since language switches are > to be given anyway, it can be hooked into the language handler if needed > > > 2) Typing everything with western letters, having some kind of > > \startrussia Boris \stoprussia and get Boris typeset with Cyrillic > > letters. > > Just language+font switches using the typeface macros. > > Hans > OK, thank you for clarifying this. Best Regards, Micke P