From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wJNIMegQvWUO7AAAqHPOHw:P1 (envelope-from ) for ; Fri, 02 Feb 2024 16:57:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wJNIMegQvWUO7AAAqHPOHw (envelope-from ) for ; Fri, 02 Feb 2024 16:57:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=c5jZAqxz; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706889448; 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=tIprSvm8hl32UGHE6w2wOyyPcySMTjxXZzwtbmGrkgI=; b=MoRXO291KL5uatpy+toIOzFdigfc9QtVJC4kudkcVaD/QepWJVot5V3Ycanh3UycyB7XKb ntLfy1lumLY7PK0twQNQ1wOqBtMZqfDOkQsv7LmcKybm0c2kwGdI1uk2Bc5DG6jBHZCj5Z Uu/HXyTkWUjOP92i+y1WduyaCx5FzsDPrFxTry3TwS7U2ZS4NGbIxfDlham0MJGdSkCZqE I0l0hdLylVWnVufivZbxxbd0ilDAIZ3Mgd0MX/6b3jIQEmZI+CyxeCl8jLbP5Iw8aNJ8N1 mGiB4btzFppsywT4S6fJWyfNK8h47oC3pxydNznVCfkt2E9XLDKeCI61EcqFVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=c5jZAqxz; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706889448; a=rsa-sha256; cv=none; b=aw3k1Z1YS9+3e1Ef2kVy6qfaCd65AioUx6RF+RgC3wUqRcpxBcFtCscnDxXAyQ1b0sspPd cwQllFzrKcQuew87YAnKbu/YTMNqcmQqHYJwoK9HzV6pO5N3E3qURAcOprSlRk+sMMVVcz Ety5bo3Hb2r9mk62naF14QNfU2SqeueVLsv11pC9RRIxNDQyTdD/v00ZLvoV/cZ/HsHno7 AcvOmdhX5Pa3sJV6cI0Klzty2aJ86cZg/3Z5gkutIXWnEzpNQ5ilNnGWmRwgllNp+Hug8h vIyvnumwgWZ6xo7G8FE2l2X8PtCO0H/BtYTywerwNBAT2xJ3Lw/aaPLnEEcxtA== 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 9778A17AE9 for ; Fri, 2 Feb 2024 16:57:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVvuF-0003yl-DP; Fri, 02 Feb 2024 10:56:43 -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 1rVvuD-0003yH-BB for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 10:56:41 -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 1rVvu9-0000R2-2Q for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 10:56:41 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B5703240103 for ; Fri, 2 Feb 2024 16:56:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706889394; bh=tIprSvm8hl32UGHE6w2wOyyPcySMTjxXZzwtbmGrkgI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=c5jZAqxzlVD6W5MOoAIEGskuu9e/gUztaD18R83Fadv5QH9xpkP6FLgeat1vT2rBr R9OGmpnuk/gj7POX8qe2AFK7NjZgaFa2jKJf7RzzkYSB2AHAHCU26e0iTfvEE4vqbu ooUYn6ZnEU4VOXRx8n7GdqQoo8/Y+Tqkq7m5oO+HY2C43r4+JQqmlelZVrTEevvZ6c J7RxNS4uu3/MpPD/J0Bnshpw2jCSBC+lf1yRAmx7YJTNFQkAeLZ0PS1L90+O2dWAfO bRgGp96z/5vrJXkA5gQz0HC/W92pFLzE7CQFidDTE8o+B8v6gal9+6Bnjmh/U6OvHh IM7WYRbQVqgMQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TRL402QcVz9rxF; Fri, 2 Feb 2024 16:56:32 +0100 (CET) From: Ihor Radchenko To: Pedro Andres Aranda Gutierrez Cc: Org Mode List Subject: [RFC] LaTeX - automatically configure encoding when exporting non-Latin languages In-Reply-To: References: Date: Fri, 02 Feb 2024 16:00:01 +0000 Message-ID: <87il36yhz2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@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-Spam-Score: -7.71 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -7.71 X-Migadu-Queue-Id: 9778A17AE9 X-TUID: UdxXKjwnZZh7 Pedro Andres Aranda Gutierrez writes: > some days ago I sent a proof-of-concept for customising the coding for the > fontenc package. Before continuing with this, I'd like to know what other > people think and/or need. > > The simplest approach was in the PoC: a custom variable you can set in yo= ur > document/workspace/emacs configuration. AN alternative approach would be = to > derive it from language. > > What would be the best way to go forward? Let me provide some context for this. Org mode export to PDF should ideally work for any document language, once it is specified: #+title: =DA=86=D9=88=D9=86 =D8=B9=D9=87=D8=AF=D9=87 =D9=86=D9=85=DB=8C=E2= =80=8C=D8=B4=D9=88=D8=AF =DA=A9=D8=B3=DB=8C =D9=81=D8=B1=D8=AF=D8=A7 =D8=B1= =D8=A7 #+LATEX_COMPILER: lualatex #+LANGUAGE: fa However, it is not entirely the case yet. We do load correct punctuation rules, but the output pdf encoding and fonts have to be configured manually, as discussed in https://list.orgmode.org/orgmode/87h6z7jq4o.fsf@localhost/ Pedro is proposing a step towards full automatic language configuration - selecting the correct pdf output encoding: https://list.orgmode.org/orgmode/CAO48Bk9Eo9zrgU7i7jMDcEAY120VZSHF70PdXOXKF= CuKZGKGcg@mail.gmail.com/ The following should be enough to (1) load punctuation rules; (2) set the correct pdf encoding. #+title: =DA=86=D9=88=D9=86 =D8=B9=D9=87=D8=AF=D9=87 =D9=86=D9=85=DB=8C=E2= =80=8C=D8=B4=D9=88=D8=AF =DA=A9=D8=B3=DB=8C =D9=81=D8=B1=D8=AF=D8=A7 =D8=B1= =D8=A7 #+LATEX_COMPILER: lualatex #+LANGUAGE: fa #+LaTeX_Header: \usepackage[AUTO]{polyglossia} #+latex_header: \usepackage[AUTO]{fontspec} (setting the correct font is still not done - it is tricky since we don't easily know which fonts are installed locally) Pedro, correct me if I misunderstood something. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at