From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55100 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: actualtext and encoding Date: Mon, 7 Dec 2009 10:29:10 +0100 Message-ID: <1C7EE4E6-FD92-4242-8014-84AC5BEB00D7@googlemail.com> References: <7D1033ED-9DA6-4D0D-ABBD-B4ECEEE11580@googlemail.com> <4B1CB442.4090804@elvenkind.com> <4B1CC0EA.3060102@wxs.nl> <10F4CE4E-4B3D-4A2B-B310-C2E537053459@googlemail.com> <4B1CC6B9.1070504@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260178196 13526 80.91.229.12 (7 Dec 2009 09:29:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 09:29:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 07 10:29:49 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHZue-00010f-UT for gctc-ntg-context-518@m.gmane.org; Mon, 07 Dec 2009 10:29:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D82AC9BE2; Mon, 7 Dec 2009 10:29:35 +0100 (CET) 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 o0SQlX4LTOaL; Mon, 7 Dec 2009 10:29:32 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C919C9BF1; Mon, 7 Dec 2009 10:29:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6F52C9BF1 for ; Mon, 7 Dec 2009 10:29:29 +0100 (CET) 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 M2JhNH2UHHRs for ; Mon, 7 Dec 2009 10:29:26 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by balder.ntg.nl (Postfix) with ESMTP id AF7D5C9BE2 for ; Mon, 7 Dec 2009 10:29:26 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so497306fga.2 for ; Mon, 07 Dec 2009 01:29:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=+lO15zjrMLuY+fDRwXQgkw+d7rhowNNzLtVhxNsU08U=; b=D5TR4nkW+DfyVRJuU1dxsIztr1xjKW++TDstxsJEKePNsj1g/n7d1a2xjT8Bl4MVlX 8ZO/H4ZnoA0VzztF12aNhH48C21aqW+gkUMHN1syOHxdizD4b52V8DBgLPMX8+5dGvTi 097rhTjg2/un1yFhPQKA+LDLPscFvS6Z+pkMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=wk/+zjG1gSFlFZ0LSYQZHM6ZmdLHqin4wJufJ16ZRE63EaT+bEqSjIoCE0lA0FR14q LFYQozpPPL7dIm9vJ0vEqM89RhRIJgBjpDHjuH98REx6VVa+qO3WnPEDaqIFu/alphrz rfVT/jsTsG2x8KDSQFU/dBnyXq5wChfL3M0Is= Original-Received: by 10.87.44.1 with SMTP id w1mr5474950fgj.33.1260178166297; Mon, 07 Dec 2009 01:29:26 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B2949DC.dip.t-dialin.net [91.41.73.220]) by mx.google.com with ESMTPS id e20sm16922115fga.17.2009.12.07.01.29.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 01:29:25 -0800 (PST) In-Reply-To: <4B1CC6B9.1070504@wxs.nl> X-Mailer: Apple Mail (2.1077) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55100 Archived-At: Am 07.12.2009 um 10:11 schrieb Hans Hagen: > hm, doesn't that kind of functionality demands a bit more 'thinking'? what exactly is needed? how does it relate to linebreaks? other content? etc .. actually, such a mechanism should be implemented a bit differently (maybe attributes and delayed processing) or maybe dictionary driven .. there is no linebreak in the text because it's a boxed content, a simple version of my macro is \def\pdfactualtext#1#2% {\pdfliteral direct{/Span <> BDC}#1\pdfliteral direct{EMC}} \def\ruby#1#2% {\dontleavehmode\bgroup \setbox\scratchboxone\hbox{#1}% \setbox\scratchboxtwo\hbox{#2}% \scratchdimen\wd\scratchboxone \setbox\scratchbox\vbox {\hbox to \scratchdimen{\hss\box\scratchboxtwo\hss} \hbox to \scratchdimen{\hss\box\scratchboxone\hss}}% \pdfactualtext{\box\scratchbox}{#1 (#2)}% \egroup} \starttext text \ruby{base text}{ruby text} text \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________