From owner-freebsd-doc@FreeBSD.ORG Wed Jun 18 12:31:04 2008 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D97861065678; Wed, 18 Jun 2008 12:31:04 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 504CA8FC18; Wed, 18 Jun 2008 12:31:04 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl156-194.kln.forthnet.gr [62.1.247.194]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-4) with ESMTP id m5ICUnUS013025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Jun 2008 15:30:56 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m5ICUj5k003848; Wed, 18 Jun 2008 15:30:45 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m5ICUj0X003847; Wed, 18 Jun 2008 15:30:45 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Hiroki Sato References: <87wskptbb2.fsf@kobe.laptop> <20080618.144751.42861091.hrs@allbsd.org> <873anb0wjh.fsf@kobe.laptop> Date: Wed, 18 Jun 2008 15:30:45 +0300 In-Reply-To: <873anb0wjh.fsf@kobe.laptop> (Giorgos Keramidas's message of "Wed, 18 Jun 2008 15:14:58 +0300") Message-ID: <87y753x6ve.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: m5ICUnUS013025 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.879, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL -0.48, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-doc@freebsd.org Subject: Re: Language support in jadetex? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 12:31:04 -0000 > A good way to start making changes to support Greek would be to: > > * Make sure that jadetex adds the two preamble commands shown above: > > \usepackage[english,greek]{babel} > \usepackage[iso-8859-7]{inputenc} > > * Find a way to 'filter' the text and replace non-command sequences of > English text with `\selectlanguage{english} ... \selectlanguage{greek= }'. An alternative, would be to preprocess the ISO 8859-7 text at build time, replacing ISO 8859-7 Greek text with latin characters, and avoid using the {inputenc} package with the [iso-8859-7] option. This way, if we can find a way to filter text, replacing Greek like this: =EA=E1=EB=E7=EC=DD=F1=E1 -> kalhm'era Then it may be easier to do the filtering, because it's far easier to detect ISO 8859-7 Greek bytes in a stream of text, instead of trying to understand what is English text vs. TeX command input. This may actually work better, now that I think a little more about it :)