From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mMJfHW6Sy2X97QAAqHPOHw:P1 (envelope-from ) for ; Tue, 13 Feb 2024 17:01:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mMJfHW6Sy2X97QAAqHPOHw (envelope-from ) for ; Tue, 13 Feb 2024 17:01:50 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VlEpsiJZ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707840110; a=rsa-sha256; cv=none; b=bETcOhrrB+dvQetgka4jy+xSVhSwg3Q0zsqUhDgfbEylaLPTrnB6ogXtngeZwrAcybyG65 bAdAtBq4++/+cXnzKA1bCWmfOaHObfRfwa/ffcs4A/oMHH3L7Ah/pJDmFl+IDLacGlmbD0 B94/Jdt2phgFYnpnD1r2Ex2G9bkAjOeq9wnc2RDBU+Q1JzPi5t4Hyr/2yZDe/6+3LdWkMK V/JQwxEmEu6whqDturd/e3jsWwCH6wPQt118Nd2Ca7FXIxl+kN2i8M1SYjwQWabnF96kdl fdWWND1rVi+i/uq7cKuzv4GYBQFGf12rcPLsUmRG13Ev5rRAJOO83Qtzi7jzCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VlEpsiJZ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707840110; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CfsLmOR0nESFzkV5Oxl/0CsaWNpt1ea8z0FTwih8rUw=; b=HR69rVpQcX2NKsDgNZwK9MrrQM6qshGz4uXkr34vmSwQMvPwisOIhXdM3dEvdyycBl+7aB 5BPXUeFsqbNOBBpDmSWZY6pv44PWdjbcbdlulAvlBc/pmqa0UnnwdGBdAsqfrq2mSh4wAi 9J6Fb9mbPHltoFP++s+3CiuTO5NpXNHxrabC1jnjkkCRwiVkoh3BejS/W2RZpubGdKq2L5 cIpWI04ZGE1oOoO75UXeRsQLnalC4nEkUh5AAaR8vvj2Z1TX0CeasybD3XQJdulQqzzOzs c4co6l0u+SGMHHOFo7olvpOy8wxUQLE+dQVzrRxncd4wd/n8qsxa3VTqFfLR3A== 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 04879763C7 for ; Tue, 13 Feb 2024 17:01:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZvDo-0001bc-Ok; Tue, 13 Feb 2024 11:01:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZvDl-0001Yk-Nx for emacs-orgmode@gnu.org; Tue, 13 Feb 2024 11:01:21 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZvDb-0007cE-Dd for emacs-orgmode@gnu.org; Tue, 13 Feb 2024 11:01:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 17B5B240101 for ; Tue, 13 Feb 2024 17:01:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707840069; bh=TdRhIwZgEXMBXBuvmRsUtvMyOx2xXtwybhHaIn2qDmk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=VlEpsiJZsHd7po4WIT9rEZJ6opo7O/T45LLKLgV3PEe6q92QXIEnChKOsyLDAQpVT ztCaOnlMUZRo5Gu87/sc2NGCEsJ3rSOWaV+kz5tldY4VLmt/tChG8Z7HrvTmGv6qaf AzzDlI6EvNXAcZUIN4xJnZFpAdRglzgCDY520FsdwdLcb6nB0tV7Yf2fivfCPCLLFf jc0uxVfCoriaZQUC4jquiNmJQwdmZVw6k/oAOWt/LIktNwkT4xguMMpDCt1mL5U+Sx +TS3l5g75puptUXX1l8/JkqX/VjhfPtRNjqrYpZo2tXTK1Ka7LUssdz/aIge0olMF7 ZicthDKB3ahGw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TZ5fD428hz9rxW; Tue, 13 Feb 2024 17:01:08 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [patch] ox.latex.el: Add missing character warnings In-Reply-To: <87plx0l9oj.fsf@localhost> (Ihor Radchenko's message of "Tue, 13 Feb 2024 14:29:16 +0000") References: <87zfw5zowr.fsf@posteo.net> <87sf1xzh04.fsf@posteo.net> <874jedmtcj.fsf@localhost> <87mss5ze4i.fsf@posteo.net> <87cyt1fojc.fsf@localhost> <87wmr9v0pp.fsf@posteo.net> <87plx0l9oj.fsf@localhost> Date: Tue, 13 Feb 2024 16:01:05 +0000 Message-ID: <87plx09wvy.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -10.21 X-Migadu-Queue-Id: 04879763C7 X-Migadu-Spam-Score: -10.21 X-TUID: nW7ud29kCBbM --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > Probably something to do with my Texlive technically having Chinese > support. > > I am getting > > ! Package inputenc Error: Unicode character =E4=BD=A0 (U+4F60) > (inputenc) not set up for use with LaTeX. > > See the inputenc package documentation for explanation. > Type H for immediate help. > ...=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > l.28 Hello. =E4=BD=A0 > =E5=A5=BD. > > ! Package inputenc Error: Unicode character =E5=A5=BD (U+597D) > (inputenc) not set up for use with LaTeX. > > See the inputenc package documentation for explanation. > Type H for immediate help. > ...=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > l.28 Hello. =E4=BD=A0=E5=A5=BD I have fixed the org-latex-known-warnings regexp in the attached patch. I think it should work fine now... --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-ox-latex.el-Add-missing-character-warnings.patch >From 742d67f2e8d4f1896d89f7543948facd65687ffe Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Tue, 13 Feb 2024 16:56:23 +0100 Subject: [PATCH] lisp/ox-latex.el: Add missing character warnings * (org-latex-known-warnings): Two missing character warnings are added: one for LuaLaTeX/XelaTeX and another for pdfLaTeX. --- lisp/ox-latex.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index cfa2b8178..2fdc2afe8 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1511,6 +1511,8 @@ logfiles to remove, set `org-latex-logfiles-extensions'." ("Underfull \\hbox" . "[underfull hbox]") ("Overfull \\hbox" . "[overfull hbox]") ("Citation.*?undefined" . "[undefined citation]") + ("^!.+Unicode character" . "[unicode character(s) not set up for use with pdflatex. You can run lualatex or xelatex instead]") + ("Missing character: There is no" . "[Missing character(s): please load an appropriate font with the fontspec package]") ("Undefined control sequence" . "[undefined control sequence]")) "Alist of regular expressions and associated messages for the user. The regular expressions are used to find possible warnings in the @@ -4435,7 +4437,11 @@ encountered or nil if there was none." (save-excursion (goto-char (point-max)) (when (re-search-backward "^[ \t]*This is .*?TeX.*?Version" nil t) - (if (re-search-forward "^!" nil t) 'error + (if (and + (re-search-forward "^!\\(.+\\)" nil t) + ;; This error is passed as missing character warning + (not (string-match-p "Unicode character" (match-string 1)))) + 'error (let ((case-fold-search t) (warnings "")) (dolist (warning org-latex-known-warnings) -- 2.43.1 --=-=-=--