From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +CXMLleCrmKGZwEAbAwnHQ (envelope-from ) for ; Sun, 19 Jun 2022 03:56:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WATPLleCrmI3gAAA9RJhRA (envelope-from ) for ; Sun, 19 Jun 2022 03:56:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 023AC96E2 for ; Sun, 19 Jun 2022 03:56:39 +0200 (CEST) Received: from localhost ([::1]:58730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2kB3-0001jR-PO for larch@yhetil.org; Sat, 18 Jun 2022 21:56:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2kAO-0001jE-Kc for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 21:55:56 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2kAM-0005d9-VA for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 21:55:56 -0400 Received: by mail-wr1-x431.google.com with SMTP id g4so10162941wrh.11 for ; Sat, 18 Jun 2022 18:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+Xc5zL6tF3aHvJtQD8JGrz6/Bhg6p8oqMVn5yUsyZUw=; b=Ow0wWX8celkYMYPL/O7/XqawzeEHoqdumXJ9bdv99NiaaTiLspzsYF2wmtwgzY0n/q QUch3wTBd1eCavSkjQ1rAjxHPmWUmu4JqQBP/KiPyjbtPmLN2T6zDLbJPCmh58aMMg49 TLzs1L71TX7FiX22mxoeygPCYufoDegkiOXdk/RngAYiowc5vcvBbhZruQr/OnOFKqYe Ix4B7Z4KBOUbq10Pp5Tr0IQitB+OMkFzxr+LREPbX0igPWDZbozA5Eso+ljC+ObYmiBH /RL+z+OUCtbD5SRr0vdyUyoCuaQnWuky2NwY8MkYq2sT5Y1KhtiexjsJf3QzhQBvZhd6 IoxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+Xc5zL6tF3aHvJtQD8JGrz6/Bhg6p8oqMVn5yUsyZUw=; b=feLeyUnPGuMh4WLbR5Ojg7woicNX9yw4W2/juSd23X6Kk+xM0H0AIno/c6SjBu1dCZ UBcu3k+kBQRNA5rOfpCWalRFh8ab9uaN1yOgaJyY6rPf6N2yKom72xozECE6kN69MlQ8 5kUiJcvUhpLsSAViWhDVFTXYZP6Dj3m0b0Lo0VSJEDxkYfDPywyehoVErM2U/8GiplWp C8FLD1xvf4T4eSt0el0Y8NQ4fjZszzacIpiV6bXKVqndR4A1WuoboAGp07KlvQG+hefL 9IBkh7dBCfp/d/EcyFb2jnqrUO839OmnxZN8SFbaIeYb5l1H0QfToVLHR30mdVc/8uTy LI7A== X-Gm-Message-State: AJIora+v/hcLp2xvr8jpt554BWibd/K7M8vb9WmGoyCviFt1bgS+rjyt brEBFiXQ3iOOk3QGDgvX1S/4nY5aVjTQpFMs6AU= X-Google-Smtp-Source: AGRyM1uCNk+Naw5jBUG3v1p0A7aBgPNBPUXaTmLUZ52tb4N6DkdwQkhsjzz8XQxlOzauYofwtCCrF/qYOkoOplaMQmQ= X-Received: by 2002:a5d:5984:0:b0:219:e396:d3d1 with SMTP id n4-20020a5d5984000000b00219e396d3d1mr16083836wri.701.1655603752318; Sat, 18 Jun 2022 18:55:52 -0700 (PDT) MIME-Version: 1.0 References: <87h74h4ecd.fsf@localhost> In-Reply-To: <87h74h4ecd.fsf@localhost> From: "Bruce D'Arcus" Date: Sat, 18 Jun 2022 21:55:41 -0400 Message-ID: Subject: Re: oc-basic: CSL-JSON year as number vs. string (nativecomp?) To: Ihor Radchenko Cc: =?UTF-8?B?RGF2aWQgTHVrZcWh?= , org-mode-email Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655603799; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+Xc5zL6tF3aHvJtQD8JGrz6/Bhg6p8oqMVn5yUsyZUw=; b=SHwZ5aEOMqGZ0EXP9ZYyUY/7kpvx9sptbx843Fhb00qkHRAPBgtiWbPYBh5Z5vOCtGOwDL 72kVzGcogT4Sh0R1InWsz9BiO9JtNOeYgGVzWTHxbDzoMO02ITWoXtYgasAfLV4uFhJ3xf HbftZMVYOI16sI1jwy1ItNiZmbQdFIsTTG7856j60tGpZ3/3FNpqZOHeYGAIME9CPvJHBa qOSVr3bbHEHq6kC2oYZtyjnZm3d9tdPeSFnJ+ma0EjZy5AijQmWtGIUJBE9plfzdvIlOd8 /MJkmaQvn5rUnvNCVKnH5hQ11UcK9BFtXCrYlEiUen8OP9/q6q0D8wwmuemOJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655603799; a=rsa-sha256; cv=none; b=XEp4T+VEm/PR85oRuIHp6JihGo4CXu+Fk8kSCyFpN+vfSJbkJ6zzM9JsZVmOxA+BWh0bQH R2PPS9X8AaZ+mpyDUZ2Otdc4ucDvbOnsYAlncRGr7L6+W2oKBMtrXBA/GZLFRJ3twA2Ehk wmc1a1iuD0eEraAa6TFrNaSaAbVzQwHFqSG0xemSNkmQNS0Ly0c7japWhX+GJVwTA5mMZS u4LfUoXI43GsfAVFhlFmkaexnsK9hkL3AKWXogyR4FYtUOelURHx6afpgZYCVb3GjfVpmg Qu3R9YgiK3/vcieyIaPDZ2HcvxtKh5GxdHMDU2LAXfXA4/MdwPE3BXkCaDVQnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ow0wWX8c; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ow0wWX8c; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 023AC96E2 X-Spam-Score: -7.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: 009A+1tU6R2N On Sat, Jun 18, 2022 at 9:43 PM Ihor Radchenko wrote: > > David Luke=C5=A1 writes: > > > I recently started to get errors like the following: > > > > Error during redisplay: (jit-lock-function 544) signaled > > (wrong-type-argument "Argument is not a string or a secondary string: > > 2007") > > > > This patch makes them go away: > > > > - (caar date)) > > + (number-to-string (caar date))= ) > > Can you provide an example json file demonstrating the problem? > I suspect that multiple json formats may be available in the wild. Some > parsed as a list of strings and some parsed as a list of numbers. The JSON schema allows either: https://github.com/citation-style-language/schema/blob/5b8bbc824e0269594177= 57d4ce4012a26b10e637/schemas/input/csl-data.json#L512 Bruce