From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87401 Path: news.gmane.org!not-for-mail From: Michail Vidiassov Newsgroups: gmane.comp.tex.context Subject: scientific notation in PDF file Date: Sun, 18 May 2014 15:25:40 +0400 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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1400412363 22047 80.91.229.3 (18 May 2014 11:26:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2014 11:26:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 18 13:25:59 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 1WlzE5-0006ub-P2 for gctc-ntg-context-518@m.gmane.org; Sun, 18 May 2014 13:25:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 334A41023D for ; Sun, 18 May 2014 13:25:57 +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 0L5uBlrLr+Uw for ; Sun, 18 May 2014 13:25:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B6D2F101EC for ; Sun, 18 May 2014 13:25:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FCDC101E6 for ; Sun, 18 May 2014 13:25:49 +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 jFULnYq+Kf37 for ; Sun, 18 May 2014 13:25:47 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id E8B0E101E2 for ; Sun, 18 May 2014 13:25:42 +0200 (CEST) Original-Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4IBPf1W016291 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 18 May 2014 13:25:41 +0200 Original-Received: by mail-lb0-f171.google.com with SMTP id 10so3213901lbg.30 for ; Sun, 18 May 2014 04:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iaas.msu.ru; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=i/T6rxi6FfgZcU1WseFCerWEqNdsmK1k/6fhBClFTWE=; b=NEwfzNStX8QPaUpKrJw+ATvggfp2dGkBVBVUkdaWS8zOo6KVs5QJubB3E53ByPu2BP qKCRNU/yJfLYMdcChv6mxT6JxaOpz3+cgTIMjq5boT7pWdd+KFnD60oqAt7yXyPCvSQx iZYGTlAXiGw4FBLEHB7kXPy3HY8w4B+bfDQcQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=i/T6rxi6FfgZcU1WseFCerWEqNdsmK1k/6fhBClFTWE=; b=I3zvFf6jUQwfkyas26r8dQocSSJ8GYvhY9ixATCWQrKL4SRk17BI7rHaLKYmFdZeto 5b2MEeBaMOIRC5GQ+8/jlrVPnZXT8WsVBLFsZuwwrfvmP+kmROy1Vaw7nNdAktw+OBRQ qeOMOoDfD8Goajm0u/liPGxFlaaQg669nI5++ju2M5A7/xRuWcwhg2GCXLSPmv8Ujmww 5LztgLP+9kc6sKZZqD3Iu/i2DTqgEFpxrWBokMnnoicxBg9d+HLgRI5qBTVQW2o4XCDH oaWjzCzltrMs4Sa8OTKy4EAncOfm8YCxGwWrXlWfW+nAZ1eiWNHPoBChj5rEqK9FvunI 7Z9A== X-Gm-Message-State: ALoCoQmNHz8/pwwrnU4xwseToaWitEePipCoDs+qkzWOPqtcVwMnnXgu6PmNkvdJthXzs09iR8TT X-Received: by 10.152.5.135 with SMTP id s7mr1083283las.55.1400412340540; Sun, 18 May 2014 04:25:40 -0700 (PDT) Original-Received: by 10.112.126.135 with HTTP; Sun, 18 May 2014 04:25:40 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03M3npFgV - 3cb0e60910d4 - 20140518 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:87401 Archived-At: Dear Developers and All, when I create a PDF dictionary with a small number local mydict = lpdf.dictionary { TT = 0.000000000000000001 } lpdf.flushobject(mydict) I get in PDF << /TT 1e-18 >> that confuses the Adobe Reader (if dictionary is used). As far as I can investigate, lpdf.flushobject(mydict) calls pdf.immediateobj(tostring(mydict)) and tostring does the actual damage by introducing scientific notation. What is the correct way to deal with the problem? Converting the dictionary to string with my own code looks like a possible workaround, not a solution. Michail PS. Minimal example (it produces unused dictionary, so viewer does not complain) \nopdfcompression \starttext \startluacode local mydict = lpdf.dictionary { TT = 0.000000000000000001 } lpdf.flushobject(mydict) -- or, to the same result -- pdf.immediateobj(tostring(mydict)) logs.reporter("","")("mydict %s",tostring(mydict)) \stopluacode Test. \stoptext Context is current version: 2014.05.13 00:04 ___________________________________________________________________________________ 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 ___________________________________________________________________________________