From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uHbSHJv9cmNgCQEAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 03:46:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6EavHJv9cmPsdQEAauVa8A (envelope-from ) for ; Tue, 15 Nov 2022 03:46:51 +0100 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 257EA3DB43 for ; Tue, 15 Nov 2022 03:46:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouly3-0005Pf-PL; Mon, 14 Nov 2022 21:46:31 -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 1oulxn-0005JN-8k for emacs-orgmode@gnu.org; Mon, 14 Nov 2022 21:46:29 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oulxj-0006ij-QS for emacs-orgmode@gnu.org; Mon, 14 Nov 2022 21:46:15 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E5ED8240026 for ; Tue, 15 Nov 2022 03:46:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668480368; bh=HpXXiPZnH+ayJcSlIGj5n3P4mHzFl2x6wDEUneQiHzM=; h=From:To:Cc:Subject:Date:From; b=JpuvefYowDRy0soHS2MDq1aJMeYhR9yNxyt8b4vF6ZpyRosIItzmNbqZ/ovL0DRmw u/sHIKCP2bxTanGPFXyAKO+7hh2TbL79CBT6fE/BgvfkaVffCneARuVRE6ZFkfFyDB i91abPn8DV+hhAPtd9TkDsuyQwc/V2310lK3wnHhBUXTpbktVWrPoLbNssMvPUyb0M hoQFjftVz11CtJ7y7zN/tSA7lUQ8d+BAHkiSTYV7Og7Q82nozybhCnRE0DCQaFOTpO WYIuvVq6HmzsGujeeQAiYhfXIj5UXwFv9aaoBc2ospr8v23x0352WEoxgrRXAeBWpV 6FH8qTWlhl+zQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NB9Xt57Nvz6tmH; Tue, 15 Nov 2022 03:46:06 +0100 (CET) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] LaTeX export in non-English language [9.6-pre (release_9.5.5-1087-g620a96.dirty @ /home/yantar92/.emacs.d/straight/build/org/)] In-Reply-To: <87sfil897q.fsf@posteo.net> References: <87h6z7jq4o.fsf@localhost> <871qqbj848.fsf@posteo.net> <87v8nm9rgb.fsf@localhost> <875yflr0jr.fsf@posteo.net> <87r0y78pi2.fsf@localhost> <87bkpb6l38.fsf@posteo.net> <87y1sefefs.fsf@localhost> <87sfil897q.fsf@posteo.net> Date: Tue, 15 Nov 2022 02:46:47 +0000 Message-ID: <875yfhdje0.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.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668480411; 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=HpXXiPZnH+ayJcSlIGj5n3P4mHzFl2x6wDEUneQiHzM=; b=flZOdSGkPWW8WFWtVONcMkKm2aLR6TuUwDHEgdrUp4D4jKo22gt+U2J9LztDWx2g8XeMe+ 015SBIWvuUQ8m3vm6hl+YchNQhn6wY7MP3frjTu88ulaysggUmr9o3SZwTuQq8n6qJql2W ZIAg4R83CNf7+K2lWepphnvaD37IqLX/ZGWjGvFioCUqvrNQHAonrDUIxKlSlyaqrBrgvW N88KZ8M6x0opgYXN9s2qU/eG6oybM/GkLT644BiPWXQDegtYigN9SdJH5P9vL3FhstBIqF l58N58pD8W2x5i05X9eEXudQKTAoAt3ukmHRHmAeYY3qLVELWyydk5srqnx0VA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668480411; a=rsa-sha256; cv=none; b=cRmEabHnRFrJcvB9PRB46vhovQlPar6fALF6XAZqq2iT7v68yM6of2kJMwV0a2jelPjgCt 8apBTp6EXnYbR9ZG7P7m0EBGOMpxmOH+olP4YoR8rqvCNQPF88PdkQTHCucntWC6E41Nty GiVVg7x3m322D795+yzMzEXA/qd7+pLFcOEvpuDuqe8h5rsC33dCpBHy3Uk4JhIRWTCYjO DG7e4sfYL0xsl8iUEPiBaIOkC9I2kBESxDGEz4lPSxVTkQOR2RKmX0miuuYQhL4tevylVZ TUVL8XpdV5vW7PbJnypb0Di91jrh3ua1La9WLxhIQTxQ+lnG/9hGwTLvtJRCKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JpuvefYo; 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" X-Migadu-Spam-Score: -3.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JpuvefYo; 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" X-Migadu-Queue-Id: 257EA3DB43 X-Spam-Score: -3.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: xG2ipeam3LZW Juan Manuel Mac=C3=ADas writes: > Ihor Radchenko writes: > >> However, the PDF (see the attached) is erroneous: >> 1. Title "Temp" is written RTL >> 2. Year and date (numbers!) are written RTL >> 3. The python code is written RTL!! >> >> Just the equation is rendered LTR as expected and the ordinary Hebrew >> text is rendered RTL. > > I'd say that's expected behavior. Note that if you declare Hebrew as the > main language, the LaTeX classes (in this case article.cls) will put > whatever is necessary in Hebrew and use the Hebrew (and RTL) typographic > rules where necessary, and that includes the title, the date, and the > various literal strings as the table of contents, figure counters, > captions, etc. I agree about year, title, and date. However, not the code. I'd expect code snippets to use LTR by default. Maybe with an export flag to switch to RTL. > To use Hebrew in another context, it would have to be declared as a > secondary language. The latest versions of Babel allow you to associate > languages to scripts when it comes to non-Latin alphabets (Cyrillic, > Greek, Arabic, etc.), and also to associate fonts. In this way it would > not be necessary to indicate the language explicitly by means of a > \selectlanguage{} or \foreignlanguage{}{}. For example, suppose that my > document has Spanish as its main language, but I also add parts in > Hebrew, which would be automatically recognized by Babel, by putting > this: > > #+LaTeX_Header: \usepackage{fontspec} > #+LaTeX_Header: \setmainfont{FreeSerif} > #+LaTeX_Header: \usepackage[AUTO,bidi=3Dbasic]{babel} > #+LaTeX_Header: \babelprovide[onchar=3Dids,import]{hebrew} > #+language: es Should we allow #+language to have multiple values like #+language: es en ru uk with first value defining primary language and the rest being secondary? Also, what does bidi=3Dbasic do? Finally, may it be useful to provide a syntax (affiliated keyword) that will set a language for specific paragraph? > Perhaps a FONTS item could be added in "LaTeX specific export settings"? Do we have #+FONTS setting? I'd say that it is worth adding. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at