From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55105 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 11:40:44 +0100 Message-ID: <61553F0D-67BE-429B-8862-E01CAEB4D327@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> <1C7EE4E6-FD92-4242-8014-84AC5BEB00D7@googlemail.com> <4B1CD70C.3090909@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 1260182474 26781 80.91.229.12 (7 Dec 2009 10:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 10:41:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 07 11:41:07 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 1NHb1d-0005d6-T9 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Dec 2009 11:41:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1CDC1C9C40; Mon, 7 Dec 2009 11:41:05 +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 6QDFgBXsvV+a; Mon, 7 Dec 2009 11:41:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B335C9C24; Mon, 7 Dec 2009 11:41:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90C58C9C24 for ; Mon, 7 Dec 2009 11:41:00 +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 XAhnxPogjHGE for ; Mon, 7 Dec 2009 11:40:48 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 0AAC3C9C15 for ; Mon, 7 Dec 2009 11:40:47 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so3292005bwz.34 for ; Mon, 07 Dec 2009 02:40:47 -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=1LswZx72OhnIUwJhslIhKL6r8jokWXCEpUiXA/X3mMM=; b=oaqDqnMdp7o6rQHSjnMCYQApeiH0cpRjaZH/2jDpqHVCL+PhYGcjU8aGzPALSxOc3C oUlGI28vWldF//TQzxLSs6gCPQ16lXzld3NIAXrsXsRWsdUaf9kHdIW5SPIqghAvgpC+ R/w9LkKzPhUwbhpimKQbMNc/5vZcBC+gNbRN0= 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=rcFMZjsI/9Nd9yhOGEuLgAQ8j0Sx97qv8FQZSX1A8jwr79D54AWpdMomduCRwbNWPa cp0/vhYzvLYcg+dxH/uLChMXTp7wQAfy66Amb7zJGYRvWav35cWQKjdZAVslrnUmNr0+ BExhn2ytbz0pl9CB0fuiiPY86dc41siJcWzEQ= Original-Received: by 10.204.32.215 with SMTP id e23mr1944030bkd.36.1260182447177; Mon, 07 Dec 2009 02:40:47 -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 35sm4115884fkt.10.2009.12.07.02.40.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 02:40:46 -0800 (PST) In-Reply-To: <4B1CD70C.3090909@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:55105 Archived-At: Am 07.12.2009 um 11:21 schrieb Hans Hagen: > detail ... > > \def\ruby#1#2% > {\dontleavehmode\bgroup > \setbox\scratchboxone\hbox{#1}% > \setbox\scratchboxtwo\hbox{#2}% > \scratchdimen\wd\ifdim\wd\scratchboxone>\wd\scratchboxtwo\scratchboxone\else\scratchboxtwo\fi > \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{lua text}{ruby or perl text which is more blabla} text > \stoptext this was just a simplified example, the real implementation is more complex by default ruby text overlaps the surrounding text (like in my example) and what you suggested can be activated but it's not so nice because you get unwanted whitespace in the text 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 ___________________________________________________________________________________