From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88445 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrQ==?= =?utf-8?B?2KfZhdiv?= Newsgroups: gmane.comp.tex.context Subject: Selecting character by glyph index Date: Sun, 17 Aug 2014 23:48:45 -0600 Organization: csu Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408340967 21405 80.91.229.3 (18 Aug 2014 05:49:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 05:49:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 18 07:49:21 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XJFom-0000QB-SM for gctc-ntg-context-518@m.gmane.org; Mon, 18 Aug 2014 07:49:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5AA8B102B9 for ; Mon, 18 Aug 2014 07:49:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id z+wsD68BbyKI for ; Mon, 18 Aug 2014 07:49:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8623210222 for ; Mon, 18 Aug 2014 07:49:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A87E3101E6 for ; Mon, 18 Aug 2014 07:49:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nEp8pweCImbl for ; Mon, 18 Aug 2014 07:49:07 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id EF876101E2 for ; Mon, 18 Aug 2014 07:49:06 +0200 (CEST) Original-Received: from pace.ColoState.EDU (pace.colostate.edu [129.82.103.168]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7I5n4WP001528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 18 Aug 2014 07:49:06 +0200 Original-Received: from jansen.ColoState.EDU (jansen.colostate.edu [129.82.103.132]) by pace.ColoState.EDU (8.13.8/8.12.11) with ESMTP id s7I5n2mO013104 for ; Sun, 17 Aug 2014 23:49:02 -0600 Original-Received: from ishamid-pc (ns-2.cwx.net [64.58.13.124]) (authenticated bits=0) by jansen.ColoState.EDU (8.13.1/8.13.1) with ESMTP id s7I5n0ON006501 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 17 Aug 2014 23:49:02 -0600 User-Agent: Opera Mail/12.17 (Win32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.27, 0.0.0000 definitions=2014-08-17_03:2014-08-15,2014-08-17,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1408180079 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=129.82.103.168; country=US; region=Colorado; city=Fort Collins; latitude=40.6736; longitude=-104.9434; http://maps.google.com/maps?q=40.6736,-104.9434&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QME5N5ms - bea5fbb64bbc - 20140818 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88445 Archived-At: Dear consortium, Is there a command analogous to \char or \fontchar which allows me to select a glyph by its index in the font? In most font editors you can choose "Index Mode" which shows the "physical" ordering of the glyphs independent of encoding etc. I thought that \charNN (where 'NN' is a decimal integer) did this, but it does not seem to select the correct indexed glyph for a \definefont, making me wonder in MkIV has changed its behavior. For example, choosing \char35 gives me glyph index 223, not glyph 35. In any case, for the current (already tedious) project this is a feature that is sorely needed; if there is a way to hack a quick lua-based command to do it, I would appreciate any help I can get. Perhaps a future version of \fontchar can add this as an option... Thanks in advance and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ 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 ___________________________________________________________________________________