GNU logs - #71436, boring messages


Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: preview in LuaTeX with RTL as main language does not work
Resent-From: Udicoudco <udifoglle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Sat, 08 Jun 2024 15:58:02 +0000
Resent-Message-ID: <handler.71436.B.17178622316319 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: 71436 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-auctex@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17178622316319
          (code B ref -1); Sat, 08 Jun 2024 15:58:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Jun 2024 15:57:11 +0000
Received: from localhost ([127.0.0.1]:39264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sFyRH-0001do-4L
	for submit <at> debbugs.gnu.org; Sat, 08 Jun 2024 11:57:10 -0400
Received: from lists.gnu.org ([209.51.188.17]:46294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <udifoglle@HIDDEN>) id 1sFtBh-0002cM-8P
 for submit <at> debbugs.gnu.org; Sat, 08 Jun 2024 06:20:41 -0400
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 <udifoglle@HIDDEN>)
 id 1sFtBR-0006rS-2K
 for bug-auctex@HIDDEN; Sat, 08 Jun 2024 06:20:25 -0400
Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <udifoglle@HIDDEN>)
 id 1sFtBP-0000dW-Ck
 for bug-auctex@HIDDEN; Sat, 08 Jun 2024 06:20:24 -0400
Received: by mail-lf1-x131.google.com with SMTP id
 2adb3069b0e04-52bc27cfb14so1432412e87.0
 for <bug-auctex@HIDDEN>; Sat, 08 Jun 2024 03:20:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717842021; x=1718446821; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=ndL6XxfLix8bcLnACxV9if17mgA4PgAQBR/OKTsovyI=;
 b=nkQqaUzx94uUgJUnV0OLgeCgIZQNESVEKjyDrDILhPDfaWKvkQNucd0JujKTwnuWoL
 sPKh80ELb4YqtBbGd7YG1JfrCjyTWo28vCr+z0SZ62XX7Ddgjz9imBZO6kiajn5chxah
 e1Xf+b68yF9P7TJHHO/FFFtMSkq91HwMo5JXt3rSFSbDb/EH3FpoX9+5O6DqwMI5XjUN
 bNvfa0eWXGTT3mROAI05PB1bDlxdmkKEdqFfhfDG8ktpWMbM0z1cOfqlUllzx3Pu448m
 9JZRKs1RGFSCHITh96kmKwXF115RcWlRX3cas3jrHkLhlfNRpw+WHlA9L1z+5eyjInG+
 HDLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717842021; x=1718446821;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=ndL6XxfLix8bcLnACxV9if17mgA4PgAQBR/OKTsovyI=;
 b=jblTonh2elJp2RnctPytzmTX/3ypgnxU016oowWYEvHW/hSUt2UGN8M0pkoElNRtgJ
 GJhvhdA99v16z027Zv0WmKc81CuueUOot7MJOSOyfjdz3UnR9xzz9RkbAVPeQ2X1Bdoh
 +3fUV6AZR2gnNJlesYVm5K9ch7dn1OEMVCTBBPM5J1JAXJZVRz+kSHSkbgh0i6A2vkO8
 tCrDReP+enXYbsVvM3PFCAhm/wd5ixpS/xbPs1Q/daXI68YqTZHuWMDLmb2jAC9fAhab
 otfzoIQxw+cbRViDArph+5cS0aKq67sVIxpLqr9uWbBzMg1+P+5PqiBXsgPMiXxsY2q2
 4zUg==
X-Gm-Message-State: AOJu0Yxq5Kcxu2iZE9JI82ZyQQUTdViqycWp0Q/pt4xXYLa+I/jTBH4o
 ik0PoKZV1mhevZVSC+m9jIsCHBONwFBIWZl9PCEOIuOF+yNnNw9u5HhtSWm+9ptdJVBak7dFxjK
 BAZdHm5sYYxlPhsYjeF7hKFXLJ4clNg==
X-Google-Smtp-Source: AGHT+IFeJD8PNG/SG1+bDSbDCuRF3pnWdt0ozFMZNqjxc6GSR5Sqz+86mk3tHZzhh86CIDl/jEyaP2XbG0cXunofZ3Y=
X-Received: by 2002:a05:6512:2245:b0:52b:923e:5e46 with SMTP id
 2adb3069b0e04-52bb9fc64efmr4968754e87.45.1717842020885; Sat, 08 Jun 2024
 03:20:20 -0700 (PDT)
MIME-Version: 1.0
From: Udicoudco <udifoglle@HIDDEN>
Date: Sat, 8 Jun 2024 13:20:09 +0300
Message-ID: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000700f15061a5e4328"
Received-SPF: pass client-ip=2a00:1450:4864:20::131;
 envelope-from=udifoglle@HIDDEN; helo=mail-lf1-x131.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-Spam-Score: -1.3 (-)
X-Mailman-Approved-At: Sat, 08 Jun 2024 11:57:05 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000700f15061a5e4328
Content-Type: text/plain; charset="UTF-8"

In LuaTeX, when \pagedirection is right to left then \pagerightoffset is
used instead of \hoffset to position the page. I attached a patch and an example
that demonstrates the problem.

Udi

--000000000000700f15061a5e4328
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-consider-pagerightoffset-in-luatex-with-rtl-language.patch"
Content-Disposition: attachment; 
	filename="0001-consider-pagerightoffset-in-luatex-with-rtl-language.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lx5ylv200>
X-Attachment-Id: f_lx5ylv200

RnJvbSBkYzJlZDdjZTBlMGFjNWYxYzkwMWQ2ODc0Mzc4ZDY3NmY4M2Y1Yzk3IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBVZGktRm9naWVsIDx1ZGlmb2dsbGVAZ21haWwuY29tPgpEYXRl
OiBTYXQsIDggSnVuIDIwMjQgMTM6MDk6MTggKzAzMDAKU3ViamVjdDogW1BBVENIXSBjb25zaWRl
ciBwYWdlcmlnaHRvZmZzZXQgaW4gbHVhdGV4IHdpdGggcnRsIGxhbmd1YWdlcwoKVGhpcyBwYXRj
aCB3aWxsIGNhbGN1bGF0ZSBccGFnZXJpZ2h0b2Zmc2V0IHdoZW4gTHVhVGVYIGlzIHVzZWQKYW5k
IHRoZSBwYWdlIGRpcmVjdGlvbiBpcyByaWdodCB0byBsZWZ0LiBJdCBpcyBpbXBvcnRhbnQgYXMg
aW4KdGhpcyBjYXNlIEx1YVRlWCB3aWxsIHVzZSB0aGlzIHJlZ2lzdGVyLCBhbmQgbm90IFxob2Zm
c2V0IHRvCnBvc2l0aW9uIHRoZSBwYWdlLgotLS0KIGxhdGV4L3ByZXZpZXcuZHR4IHwgMTcgKysr
KysrKysrKysrKysrKysKIDEgZmlsZSBjaGFuZ2VkLCAxNyBpbnNlcnRpb25zKCspCgpkaWZmIC0t
Z2l0IGEvbGF0ZXgvcHJldmlldy5kdHggYi9sYXRleC9wcmV2aWV3LmR0eAppbmRleCAyM2Y1YjJk
YS4uOTUwM2U0MWYgMTAwNjQ0Ci0tLSBhL2xhdGV4L3ByZXZpZXcuZHR4CisrKyBiL2xhdGV4L3By
ZXZpZXcuZHR4CkBAIC03NTIsNiArNzUyLDcgQEAKICAgIFxpZnhccHJAb2Zmc2V0QG92ZXJyaWRl
XEB1bmRlZmluZWQKICAgICAgXHZvZmZzZXQ9LVxodFxwckBib3gKICAgICAgXGhvZmZzZXQ9XHpA
CisgICAgIFxwckBzZXRAcGFnZXJpZ2h0b2Zmc2V0CiAgICBcZmkKICAgIFxjQHBhZ2U9XHByQHNu
aXBwZXQKICAgIFxwckBzaGlwb3V0CkBAIC03NjksNiArNzcwLDIyIEBACiAlICAgIFxlbmR7bWFj
cm9jb2RlfQogJSBcZW5ke21hY3JvfQogJSBcZW5ke21hY3JvfQorJSBcYmVnbnttYWNyb317XHBy
QHNldEBwYWdlcmlnaHRvZmZzZXR9CislICAgSW4gfGx1YXRleHwgd2hlbiBwYWdlIGRpcmVjdGlv
biBpcyByaWdodCB0byBsZWZ0LCB8XHBhZ2VyaWdodG9mZnNldHwKKyUgICBpcyB1c2VkIGluc3Rl
YWQgb2YgfFxob2Zmc2V0fCwgc28gd2UgbmVlZCB0byBjYWxjdWxhdGUgdGhhdCBhcyB3ZWxsLgor
JSAgICBcYmVnaW57bWFjcm9jb2RlfQorXGxldFxwckBzZXRAcGFnZXJpZ2h0b2Zmc2V0XEBlbnB0
eQorXGlmeFxwYWdlcmlnaHRvZmZzZXRcQHVuZGVmaW5lZFxlbHNlCisgIFxkZWZccHJAc2V0QHBh
Z2VyaWdodG9mZnNldHslCisgICAgXGlmbnVtXHBhZ2VkaXJlY3Rpb249MQorICAgICAgXHBhZ2Vy
aWdodG9mZnNldD0tMWluCisgICAgICBcYWR2YW5jZVxwYWdlcmlnaHRvZmZzZXQtXHByQGJiQGkK
KyAgICAgIFxhZHZhbmNlXHBhZ2VyaWdodG9mZnNldFxwckBiYkBpaWkKKyAgICBcZmkKKyAgfQor
XGZpCislICAgIFxlbmR7bWFjcm9jb2RlfQorJSBcZW5ke21hY3JvfQogJSBPaCwgYW5kIHdlIGtp
bGwgb2ZmIHRoZSB1c3VhbCBtZWFuaW5nIG9mIFxjbWR7XHNoaXBvdXR9IGluIGNhc2UKICUgc29t
ZWJvZHkgbWFrZXMgYSBzcGVjaWFsIG91dHB1dCByb3V0aW5lLiAgVGhlIGZvbGxvd2luZyB0ZXN0
IGlzCiAlIHByZXR0eSBtdWNoIHRoZSBzYW1lIGFzIGluIHxldmVyeXNoaS5zdHl8LiAgT25lIG9m
IGl0cyBpbXBsaWNhdGlvbnMKLS0gCjIuNDQuMAoK
--000000000000700f15061a5e4328
Content-Type: text/x-tex; charset="US-ASCII"; name="test.tex"
Content-Disposition: attachment; filename="test.tex"
Content-Transfer-Encoding: base64
Content-ID: <f_lx5yrnmo1>
X-Attachment-Id: f_lx5yrnmo1

XGRvY3VtZW50Y2xhc3N7YXJ0aWNsZX0KXHVzZXBhY2thZ2VbaGVicmV3LGJpZGk9YmFzaWMscHJv
dmlkZSo9Kl17YmFiZWx9Clx1c2VwYWNrYWdlW3RpZ2h0cGFnZSxhY3RpdmVde3ByZXZpZXd9Clxi
ZWdpbntkb2N1bWVudH0KXGJlZ2lue3ByZXZpZXd9ClRlc3QgClxlbmR7cHJldmlld30KXGVuZHtk
b2N1bWVudH0K
--000000000000700f15061a5e4328--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Udicoudco <udifoglle@HIDDEN>
Subject: bug#71436: Acknowledgement (preview in LuaTeX with RTL as main
 language does not work)
Message-ID: <handler.71436.B.17178622316319.ack <at> debbugs.gnu.org>
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
X-Gnu-PR-Message: ack 71436
X-Gnu-PR-Package: auctex
Reply-To: 71436 <at> debbugs.gnu.org
Date: Sat, 08 Jun 2024 15:58:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-auctex@HIDDEN

If you wish to submit further information on this problem, please
send it to 71436 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
71436: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71436
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Udicoudco <udifoglle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Sun, 09 Jun 2024 05:41:02 +0000
Resent-Message-ID: <handler.71436.B71436.17179116245416 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: 71436 <at> debbugs.gnu.org
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.17179116245416
          (code B ref 71436); Sun, 09 Jun 2024 05:41:02 +0000
Received: (at 71436) by debbugs.gnu.org; 9 Jun 2024 05:40:24 +0000
Received: from localhost ([127.0.0.1]:41639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGBI0-0001PB-5j
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 01:40:24 -0400
Received: from mail-ed1-f46.google.com ([209.85.208.46]:59851)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <udifoglle@HIDDEN>) id 1sG718-0004YX-Ov
 for 71436 <at> debbugs.gnu.org; Sat, 08 Jun 2024 21:06:43 -0400
Received: by mail-ed1-f46.google.com with SMTP id
 4fb4d7f45d1cf-579fa270e53so4895658a12.3
 for <71436 <at> debbugs.gnu.org>; Sat, 08 Jun 2024 18:06:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717895120; x=1718499920; darn=debbugs.gnu.org;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :from:to:cc:subject:date:message-id:reply-to;
 bh=1ecLCwypUP0kkyNCu8UBxkNkOBucKSYe9JMPCLlPTPc=;
 b=BriVCAtpA6VQnFRiA8wUU4opJbGY6PKaI1AK2PonC+bTdyc/eP9SLgwJroGXVZFptE
 WVTdxlyFIN3ceqhQOkUyhbTfCOEXu3EgULr7xAvSE3wEu+VI7CxDj6nf/+IoISRcoYoU
 xomqUjH2s9CGO9gc2UGe6HN0A/czbUQaF5DCs0R5W/OGpYhK10ZWUxeqVQMHanYTtjAG
 iN8HAu4z+A1lMiqI1tRdyUFV66Lbr1aK2jZrxnzl4KMXQIbJDkJjow5Y+FfpRWpcgl5Q
 1J8kPQcG0Hh1geM8UCDpeCBVpYSTvJKuZfbpSKC4F5OLg2x9LIW9/fbNi3E0+c9UFOko
 tIsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717895120; x=1718499920;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=1ecLCwypUP0kkyNCu8UBxkNkOBucKSYe9JMPCLlPTPc=;
 b=M+lnyem7RvApHET13cE4/SiVZrKMDKyujrim7Ay4gIA8wx6AuQSpFxc5AFecyDEP3G
 /bNSmAsJ8jYWAK2lW7Qx6tQgaBqroM6Uko9W2d9d25t8ErcQudx6OKjcYI/2XWzIkbq4
 h2qDoDdpYQXUw1ZnL5ElKjVnsat4a91CigwoiCLryNj9+NXWrrjRovY4kWSGJUJPb7zs
 pkuGChtqdC7/KX0Vt7ED7gemzRmVqxSRFUu6cfRGr+mRscBWBSPmP6D/pgL97U3LBpIE
 Rq0ZXFiFjzoOUFiyCcFUUGs6HAal1I5n5FTLedEdS0er3TLOdC8kKFM9oUOmzJLgZ6pG
 +nRw==
X-Gm-Message-State: AOJu0YwfJb5DzZ+CRJ0l5Jg0YqFcfyzIfaanmHml2/l4gw9Gn7Nht5PD
 wYA1C77366XPRCIFH0cOVmaZ8XEbiUoDReg0FTY6d3MIYDah975mZqz8iOybrx0ive3wlYQEMTu
 LanMCDthnmb257Fh+Clpvd5tvbxmgJw==
X-Google-Smtp-Source: AGHT+IE0QKC+pbDgN8NABvZY4IoeL/HowGD2TOudkG7ecpUQWZjNjBdG3JR5zMs5QWfERiKmyjrOujqspVIOJWFLtQU=
X-Received: by 2002:a17:906:7c8:b0:a69:134f:53fe with SMTP id
 a640c23a62f3a-a6cd60a1878mr427264966b.24.1717895120443; Sat, 08 Jun 2024
 18:05:20 -0700 (PDT)
MIME-Version: 1.0
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
In-Reply-To: <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
From: Udicoudco <udifoglle@HIDDEN>
Date: Sun, 9 Jun 2024 04:05:09 +0300
Message-ID: <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
Content-Type: multipart/mixed; boundary="0000000000006a86c1061a6aa0ae"
X-Spam-Score: -0.0 (/)
X-Mailman-Approved-At: Sun, 09 Jun 2024 01:33:45 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000006a86c1061a6aa0ae
Content-Type: multipart/alternative; boundary="0000000000006a86bf061a6aa0ac"

--0000000000006a86bf061a6aa0ac
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, Jun 8, 2024 at 1:20=E2=80=AFPM Udicoudco <udifoglle@HIDDEN> wrot=
e:

> In LuaTeX, when \pagedirection is right to left then \pagerightoffset is
> used instead of \hoffset to position the page. I attached a patch and an
> example
> that demonstrates the problem.
>
>
There is a typo in the patch, so I attached a new one.

Udi

--0000000000006a86bf061a6aa0ac
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Sat, Jun 8, 2024 at 1:20=E2=80=AFPM Udicoudco &lt;<a hr=
ef=3D"mailto:udifoglle@HIDDEN" target=3D"_blank">udifoglle@HIDDEN</a>=
&gt; wrote:<div class=3D"gmail_quote"><div dir=3D"ltr"><div class=3D"gmail_=
quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">In LuaTeX, when \p=
agedirection is right to left then \pagerightoffset is<br>
used instead of \hoffset to position the page. I attached a patch and an ex=
ample<br>
that demonstrates the problem.<br>
<br></blockquote><div><br></div><div>There is a typo in the patch, so I att=
ached a new one.=C2=A0</div><div><br></div><div>Udi <br></div></div></div>
</div></div>

--0000000000006a86bf061a6aa0ac--

--0000000000006a86c1061a6aa0ae
Content-Type: application/x-patch; 
	name="0001-consider-pagerightoffset-in-luatex-with-rtl-language.patch"
Content-Disposition: attachment; 
	filename="0001-consider-pagerightoffset-in-luatex-with-rtl-language.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lx6saqo90>
X-Attachment-Id: f_lx6saqo90

RnJvbSA2MDNmYjg3YzNlOWNiZWFlYzEzM2NkZGNkYzA5Mzc5NTkxZGJiNjQ1IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBVZGktRm9naWVsIDx1ZGlmb2dsbGVAZ21haWwuY29tPgpEYXRl
OiBTdW4sIDkgSnVuIDIwMjQgMDM6MDQ6NTYgKzAzMDAKU3ViamVjdDogW1BBVENIXSBjb25zaWRl
ciBwYWdlcmlnaHRvZmZzZXQgaW4gbHVhdGV4IHdpdGggcnRsIGxhbmd1YWdlcwoKVGhpcyBwYXRj
aCB3aWxsIGNhbGN1bGF0ZSBccGFnZXJpZ2h0b2Zmc2V0IHdoZW4gTHVhVGVYIGlzIHVzZWQKYW5k
IHRoZSBwYWdlIGRpcmVjdGlvbiBpcyByaWdodCB0byBsZWZ0LiBJdCBpcyBpbXBvcnRhbnQgYXMg
aW4KdGhpcyBjYXNlIEx1YVRlWCB3aWxsIHVzZSB0aGlzIHJlZ2lzdGVyLCBhbmQgbm90IFxob2Zm
c2V0IHRvCnBvc2l0aW9uIHRoZSBwYWdlLgotLS0KIGxhdGV4L3ByZXZpZXcuZHR4IHwgMTcgKysr
KysrKysrKysrKysrKysKIDEgZmlsZSBjaGFuZ2VkLCAxNyBpbnNlcnRpb25zKCspCgpkaWZmIC0t
Z2l0IGEvbGF0ZXgvcHJldmlldy5kdHggYi9sYXRleC9wcmV2aWV3LmR0eAppbmRleCAyM2Y1YjJk
YS4uY2Y1NTMwZTQgMTAwNjQ0Ci0tLSBhL2xhdGV4L3ByZXZpZXcuZHR4CisrKyBiL2xhdGV4L3By
ZXZpZXcuZHR4CkBAIC03NTIsNiArNzUyLDcgQEAKICAgIFxpZnhccHJAb2Zmc2V0QG92ZXJyaWRl
XEB1bmRlZmluZWQKICAgICAgXHZvZmZzZXQ9LVxodFxwckBib3gKICAgICAgXGhvZmZzZXQ9XHpA
CisgICAgIFxwckBzZXRAcGFnZXJpZ2h0b2Zmc2V0CiAgICBcZmkKICAgIFxjQHBhZ2U9XHByQHNu
aXBwZXQKICAgIFxwckBzaGlwb3V0CkBAIC03NjksNiArNzcwLDIyIEBACiAlICAgIFxlbmR7bWFj
cm9jb2RlfQogJSBcZW5ke21hY3JvfQogJSBcZW5ke21hY3JvfQorJSBcYmVnbnttYWNyb317XHBy
QHNldEBwYWdlcmlnaHRvZmZzZXR9CislICAgSW4gfGx1YXRleHwgd2hlbiBwYWdlIGRpcmVjdGlv
biBpcyByaWdodCB0byBsZWZ0LCB8XHBhZ2VyaWdodG9mZnNldHwKKyUgICBpcyB1c2VkIGluc3Rl
YWQgb2YgfFxob2Zmc2V0fCwgc28gd2UgbmVlZCB0byBjYWxjdWxhdGUgdGhhdCBhcyB3ZWxsLgor
JSAgICBcYmVnaW57bWFjcm9jb2RlfQorXGxldFxwckBzZXRAcGFnZXJpZ2h0b2Zmc2V0XEBlbXB0
eQorXGlmeFxwYWdlcmlnaHRvZmZzZXRcQHVuZGVmaW5lZFxlbHNlCisgIFxkZWZccHJAc2V0QHBh
Z2VyaWdodG9mZnNldHslCisgICAgXGlmbnVtXHBhZ2VkaXJlY3Rpb249MQorICAgICAgXHBhZ2Vy
aWdodG9mZnNldD0tMWluCisgICAgICBcYWR2YW5jZVxwYWdlcmlnaHRvZmZzZXQtXHByQGJiQGkK
KyAgICAgIFxhZHZhbmNlXHBhZ2VyaWdodG9mZnNldFxwckBiYkBpaWkKKyAgICBcZmkKKyAgfQor
XGZpCislICAgIFxlbmR7bWFjcm9jb2RlfQorJSBcZW5ke21hY3JvfQogJSBPaCwgYW5kIHdlIGtp
bGwgb2ZmIHRoZSB1c3VhbCBtZWFuaW5nIG9mIFxjbWR7XHNoaXBvdXR9IGluIGNhc2UKICUgc29t
ZWJvZHkgbWFrZXMgYSBzcGVjaWFsIG91dHB1dCByb3V0aW5lLiAgVGhlIGZvbGxvd2luZyB0ZXN0
IGlzCiAlIHByZXR0eSBtdWNoIHRoZSBzYW1lIGFzIGluIHxldmVyeXNoaS5zdHl8LiAgT25lIG9m
IGl0cyBpbXBsaWNhdGlvbnMKLS0gCjIuNDQuMAoK
--0000000000006a86c1061a6aa0ae--




Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Ikumi Keita <ikumi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Tue, 11 Jun 2024 16:23:02 +0000
Resent-Message-ID: <handler.71436.B71436.17181229696326 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Udicoudco <udifoglle@HIDDEN>
Cc: 71436 <at> debbugs.gnu.org
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.17181229696326
          (code B ref 71436); Tue, 11 Jun 2024 16:23:02 +0000
Received: (at 71436) by debbugs.gnu.org; 11 Jun 2024 16:22:49 +0000
Received: from localhost ([127.0.0.1]:35976 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sH4Gn-0001dy-1V
	for submit <at> debbugs.gnu.org; Tue, 11 Jun 2024 12:22:49 -0400
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:36168)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1sH4Gl-0001dn-Ny
 for 71436 <at> debbugs.gnu.org; Tue, 11 Jun 2024 12:22:48 -0400
Received: from localhost (42-144-18-247.rev.home.ne.jp [42.144.18.247])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPSA id A072D60;
 Tue, 11 Jun 2024 14:45:54 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
In-reply-to: <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
 <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
Comments: In-reply-to Udicoudco <udifoglle@HIDDEN>
 message dated "Sun, 09 Jun 2024 04:05:09 +0300."
X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.3
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Date: Tue, 11 Jun 2024 14:45:54 +0900
Message-ID: <2622.1718084754@localhost>
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hi Udicoudco, >>>>> Udicoudco <udifoglle@HIDDEN> writes:
    > On Sat, Jun 8, 2024 at =?UTF-8?Q?1:20=E2=80=AFPM?= Udicoudco <udifoglle@HIDDEN> wrote:
    >> In LuaTeX, when \pagedirection is right to left then \pagerightoffset
   is >> u [...] 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.1 DATE_IN_PAST_06_12     Date: is 6 to 12 hours before Received: date
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.1 (/)

Hi Udicoudco,

>>>>> Udicoudco <udifoglle@HIDDEN> writes:
> On Sat, Jun 8, 2024 at 1:20=E2=80=AFPM Udicoudco <udifoglle@HIDDEN> wr=
ote:
>> In LuaTeX, when \pagedirection is right to left then \pagerightoffset is
>> used instead of \hoffset to position the page. I attached a patch and an
>> example
>> that demonstrates the problem.
>>=20
>>=20
> There is a typo in the patch, so I attached a new one.

Thanks for your proposal, but "make" doesn't run with this patch:
,----
| gmake[1]: *** [Makefile:91: preview.pdf] Error 1
| gmake[1]: Leaving directory '/usr/home/keita/repo/auctex/auctex/latex'
| gmake: *** [Makefile:247: texmf] Error 2
`----

By the way, I suppose we need copyright assignment if this contribution
is to be incorporated into AUCTeX. Have you signed FSF copyright
assignment form before? If not, please have a look at
https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request-ass=
ign.future

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Udicoudco <udifoglle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Tue, 11 Jun 2024 16:51:01 +0000
Resent-Message-ID: <handler.71436.B71436.171812462220511 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Ikumi Keita <ikumi@HIDDEN>
Cc: 71436 <at> debbugs.gnu.org
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.171812462220511
          (code B ref 71436); Tue, 11 Jun 2024 16:51:01 +0000
Received: (at 71436) by debbugs.gnu.org; 11 Jun 2024 16:50:22 +0000
Received: from localhost ([127.0.0.1]:36143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sH4hS-0005Kl-5D
	for submit <at> debbugs.gnu.org; Tue, 11 Jun 2024 12:50:22 -0400
Received: from mail-wr1-f44.google.com ([209.85.221.44]:53728)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <udifoglle@HIDDEN>) id 1sH4hQ-0005KT-Az
 for 71436 <at> debbugs.gnu.org; Tue, 11 Jun 2024 12:50:21 -0400
Received: by mail-wr1-f44.google.com with SMTP id
 ffacd0b85a97d-35f1c490c13so3353369f8f.3
 for <71436 <at> debbugs.gnu.org>; Tue, 11 Jun 2024 09:50:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718124556; x=1718729356; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=tfwFQGq7hpyn4ELIa60ihr5JUdJ9Q9YO5XH3k5NCmTY=;
 b=HDeWp/FH/Xk/7q5KIcn8Fyg48+lvoxIeTB9Ema8zOi5fN8BZBaRyqLdwu1ADhI4kO0
 pWjzKsxpzA6hI7JCE9bqxW/pSfdtEjFJjNnajPeHpWEMyJ4yPC1d2lIEBUwb6/P15bKU
 z9bYalmnf9i2P6bHL9MpN+Lg7UlY5Nkjwk8tLM//HnyoHjX/91CLvo3a04JnhObBaY6R
 wNhxtFtfhsFHcXTrWcSWnI+0gQDNqgCROvlnzWNz1ZMuWVIIvsLx48cF6YBkkWtxXRv4
 t59ItoKbqlTJds9tq+VPhgpw71NZZuphXaPQ064ME31J47RdoQwkJfMrQqFawbTuJzRx
 S2Ag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718124556; x=1718729356;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=tfwFQGq7hpyn4ELIa60ihr5JUdJ9Q9YO5XH3k5NCmTY=;
 b=qP+uJGVUSyE4YG2EiIvY9ePejtn6nY/XdZjNfC+cAetThfYlHG0LMvDbjKBR33iO7s
 Ccv6j1wva+QWQ9KGo+raHIlv94YpA4dQRW84/LJv2SppAx63sBlvpvHHf1Kxxost5mN7
 t9QmhH2b/zyTr9hIpH2xI4YWDQX9uW+XZVw0nSvnYscxNTtSMSQMsuRxBjOl0EVaDZaV
 fgHWhotgzPrj3aO11GpS0pmZCNEbyAr6Taikwgi/lRajSEcvW/6CF+24+rnd61fxTItX
 j6ivJ8xRLO1lFzxtEq8YZROcVTQAvcxxV2/jGoQo8fLPxLMNiY66+Q6nSRvQ2e0NLCZO
 q4uw==
X-Gm-Message-State: AOJu0Ywx5JK0Dh4xikc0adZojSvFMVOv7F4Vw7CPfiQV0oE0etLDjkNx
 eicO+c+8K2j/1e90gWvvHQPXB2G4pZE+ncl+UgOVOS2go/NI/GIwnwmduCDlNkU2Tm2VQ175Uin
 qJYsjjjv9J7Q5pJQv3TSVQMZoqTVQXw==
X-Google-Smtp-Source: AGHT+IH1+QbpQe4VafkTEVyahH3zD/36ofKGpOTu0jHzLiPe1xQunIrHlA0MdzzduaJ2TzrdS3sIXx7HIkp3im94zzA=
X-Received: by 2002:a05:6512:370f:b0:52c:81fc:eba4 with SMTP id
 2adb3069b0e04-52c81fcede0mr4635022e87.52.1718097197887; Tue, 11 Jun 2024
 02:13:17 -0700 (PDT)
MIME-Version: 1.0
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
 <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
 <2622.1718084754@localhost>
In-Reply-To: <2622.1718084754@localhost>
From: Udicoudco <udifoglle@HIDDEN>
Date: Tue, 11 Jun 2024 12:13:06 +0300
Message-ID: <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
Content-Type: multipart/mixed; boundary="0000000000002c27be061a99ad89"
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hello Ikumi Keita, Thank you for the reply. On Tue, Jun 11,
    2024 at =?UTF-8?Q?8:45=E2=80=AFAM?= Ikumi Keita wrote: > >>>>> Udicoudco writes: > > On Sat,
    Jun 8, 2024 at =?UTF-8?Q?1:20=E2=80=AFPM?= Udicoudco wrote: > >> In LuaTeX, when \pagedirection
    is right to left then \pa [...] 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (udifoglle[at]gmail.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [209.85.221.44 listed in list.dnswl.org]
  1.1 DATE_IN_PAST_06_12     Date: is 6 to 12 hours before Received: date
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [209.85.221.44 listed in wl.mailspike.net]
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.1 (/)

--0000000000002c27be061a99ad89
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Ikumi Keita,
Thank you for the reply.

On Tue, Jun 11, 2024 at 8:45=E2=80=AFAM Ikumi Keita <ikumi@HIDDEN> wr=
ote:
> >>>>> Udicoudco <udifoglle@HIDDEN> writes:
> > On Sat, Jun 8, 2024 at 1:20=E2=80=AFPM Udicoudco <udifoglle@HIDDEN> =
wrote:
> >> In LuaTeX, when \pagedirection is right to left then \pagerightoffset =
is
> >> used instead of \hoffset to position the page. I attached a patch and =
an
> >> example
> >> that demonstrates the problem.
> >>
> >>
> > There is a typo in the patch, so I attached a new one.
>
> Thanks for your proposal, but "make" doesn't run with this patch:

Oh, there was another typo. I did not test that the documentation
is typesetting properly, and there was a "\begn{macro}" instead
of `\begin{macro}`. I also updated the checksum of preview.dtx.
Tested now with the various engines and things seems to be working
(but please test thoroughly :)

> By the way, I suppose we need copyright assignment if this contribution
> is to be incorporated into AUCTeX. Have you signed FSF copyright
> assignment form before? If not, please have a look at
> https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request-a=
ssign.future

Just sent an email, but in case it is suffice, when I'll get an answer
I'll attach the assignment. BTW, it is not that important, but
why is my postal address needed?

Regards,
Udi

--0000000000002c27be061a99ad89
Content-Type: application/x-patch; 
	name="0001-consider-pagerightoffset-in-luatex-with-rtl-language.patch"
Content-Disposition: attachment; 
	filename="0001-consider-pagerightoffset-in-luatex-with-rtl-language.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lxa5mv990>
X-Attachment-Id: f_lxa5mv990

RnJvbSAwZmU0ZDYxYWYyZDk0OTQ1MzllNzlmZmQzNTQ2MjNkZjllZmRlM2UxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBVZGkgRm9naWVsIDx1ZGlmb2dsbGVAZ21haWwuY29tPgpEYXRl
OiBUdWUsIDExIEp1biAyMDI0IDExOjMzOjM1ICswMzAwClN1YmplY3Q6IFtQQVRDSF0gY29uc2lk
ZXIgcGFnZXJpZ2h0b2Zmc2V0IGluIGx1YXRleCB3aXRoIHJ0bCBsYW5ndWFnZXMKClRoaXMgcGF0
Y2ggd2lsbCBjYWxjdWxhdGUgXHBhZ2VyaWdodG9mZnNldCB3aGVuIEx1YVRlWCBpcyB1c2VkCmFu
ZCB0aGUgcGFnZSBkaXJlY3Rpb24gaXMgcmlnaHQgdG8gbGVmdC4gSXQgaXMgaW1wb3J0YW50IGFz
IGluCnRoaXMgY2FzZSBMdWFUZVggd2lsbCB1c2UgdGhpcyByZWdpc3RlciwgYW5kIG5vdCBcaG9m
ZnNldCB0bwpwb3NpdGlvbiB0aGUgcGFnZS4KLS0tCiBsYXRleC9wcmV2aWV3LmR0eCB8IDE5ICsr
KysrKysrKysrKysrKysrKy0KIDEgZmlsZSBjaGFuZ2VkLCAxOCBpbnNlcnRpb25zKCspLCAxIGRl
bGV0aW9uKC0pCgpkaWZmIC0tZ2l0IGEvbGF0ZXgvcHJldmlldy5kdHggYi9sYXRleC9wcmV2aWV3
LmR0eAppbmRleCAyM2Y1YjJkYS4uNDgzZTZmODIgMTAwNjQ0Ci0tLSBhL2xhdGV4L3ByZXZpZXcu
ZHR4CisrKyBiL2xhdGV4L3ByZXZpZXcuZHR4CkBAIC0yMCw3ICsyMCw3IEBACiAlICAgICBGcmVl
IFNvZnR3YXJlIEZvdW5kYXRpb24sIEluYy4sIDUxIEZyYW5rbGluIFN0LCBGaWZ0aCBGbG9vciwK
ICUgICAgIEJvc3RvbiwgTUEgMDIxMTAtMTMwMSAgVVNBCiAlIFxmaQotJSBcQ2hlY2tTdW17MTc1
OH0KKyUgXENoZWNrU3VtezE3Nzl9CiAlIFxHZXRGaWxlSW5mb3twcmV2aWV3LnN0eX0KICUgXGRh
dGV7XGZpbGVkYXRlfQogJSBcYXV0aG9ye0RhdmlkIEthc3RydXBcdGhhbmtze1x0ZXh0dHR7YnVn
LWF1Y3RleEBnbnUub3JnfX19CkBAIC03NTIsNiArNzUyLDcgQEAKICAgIFxpZnhccHJAb2Zmc2V0
QG92ZXJyaWRlXEB1bmRlZmluZWQKICAgICAgXHZvZmZzZXQ9LVxodFxwckBib3gKICAgICAgXGhv
ZmZzZXQ9XHpACisgICAgIFxwckBzZXRAcGFnZXJpZ2h0b2Zmc2V0CiAgICBcZmkKICAgIFxjQHBh
Z2U9XHByQHNuaXBwZXQKICAgIFxwckBzaGlwb3V0CkBAIC03NjksNiArNzcwLDIyIEBACiAlICAg
IFxlbmR7bWFjcm9jb2RlfQogJSBcZW5ke21hY3JvfQogJSBcZW5ke21hY3JvfQorJSBcYmVnaW57
bWFjcm99e1xwckBzZXRAcGFnZXJpZ2h0b2Zmc2V0fQorJSAgIEluIHxsdWF0ZXh8IHdoZW4gcGFn
ZSBkaXJlY3Rpb24gaXMgcmlnaHQgdG8gbGVmdCwgfFxwYWdlcmlnaHRvZmZzZXR8CislICAgaXMg
dXNlZCBpbnN0ZWFkIG9mIHxcaG9mZnNldHwsIHNvIHdlIG5lZWQgdG8gY2FsY3VsYXRlIHRoYXQg
YXMgd2VsbC4KKyUgICAgXGJlZ2lue21hY3JvY29kZX0KK1xsZXRccHJAc2V0QHBhZ2VyaWdodG9m
ZnNldFxAZW1wdHkKK1xpZnhccGFnZXJpZ2h0b2Zmc2V0XEB1bmRlZmluZWRcZWxzZQorICBcZGVm
XHByQHNldEBwYWdlcmlnaHRvZmZzZXR7JQorICAgIFxpZm51bVxwYWdlZGlyZWN0aW9uPTEKKyAg
ICAgIFxwYWdlcmlnaHRvZmZzZXQ9LTFpbgorICAgICAgXGFkdmFuY2VccGFnZXJpZ2h0b2Zmc2V0
LVxwckBiYkBpCisgICAgICBcYWR2YW5jZVxwYWdlcmlnaHRvZmZzZXRccHJAYmJAaWlpCisgICAg
XGZpCisgIH0KK1xmaQorJSAgICBcZW5ke21hY3JvY29kZX0KKyUgXGVuZHttYWNyb30KICUgT2gs
IGFuZCB3ZSBraWxsIG9mZiB0aGUgdXN1YWwgbWVhbmluZyBvZiBcY21ke1xzaGlwb3V0fSBpbiBj
YXNlCiAlIHNvbWVib2R5IG1ha2VzIGEgc3BlY2lhbCBvdXRwdXQgcm91dGluZS4gIFRoZSBmb2xs
b3dpbmcgdGVzdCBpcwogJSBwcmV0dHkgbXVjaCB0aGUgc2FtZSBhcyBpbiB8ZXZlcnlzaGkuc3R5
fC4gIE9uZSBvZiBpdHMgaW1wbGljYXRpb25zCi0tIAoyLjQ0LjAKCg==
--0000000000002c27be061a99ad89--




Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Ikumi Keita <ikumi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Wed, 12 Jun 2024 08:33:02 +0000
Resent-Message-ID: <handler.71436.B71436.171818115322124 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Udicoudco <udifoglle@HIDDEN>
Cc: 71436 <at> debbugs.gnu.org
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.171818115322124
          (code B ref 71436); Wed, 12 Jun 2024 08:33:02 +0000
Received: (at 71436) by debbugs.gnu.org; 12 Jun 2024 08:32:33 +0000
Received: from localhost ([127.0.0.1]:37501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sHJPE-0005kl-LR
	for submit <at> debbugs.gnu.org; Wed, 12 Jun 2024 04:32:33 -0400
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:38366)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1sHJPC-0005kY-BI
 for 71436 <at> debbugs.gnu.org; Wed, 12 Jun 2024 04:32:31 -0400
Received: from localhost (42-144-18-247.rev.home.ne.jp [42.144.18.247])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPSA id 5DA5C5F;
 Wed, 12 Jun 2024 17:32:29 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
In-reply-to: <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
 <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
 <2622.1718084754@localhost>
 <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
Comments: In-reply-to Udicoudco <udifoglle@HIDDEN>
 message dated "Tue, 11 Jun 2024 12:13:06 +0300."
X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.3
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <1948.1718181148.1@localhost>
Content-Transfer-Encoding: quoted-printable
Date: Wed, 12 Jun 2024 17:32:28 +0900
Message-ID: <1949.1718181148@localhost>
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Udicoudco,

>>>>> Udicoudco <udifoglle@HIDDEN> writes:
> Oh, there was another typo. I did not test that the documentation
> is typesetting properly, and there was a "\begn{macro}" instead
> of `\begin{macro}`. I also updated the checksum of preview.dtx.
> Tested now with the various engines and things seems to be working
> (but please test thoroughly :)

Thanks, it works well with my brief test.

>> By the way, I suppose we need copyright assignment if this contribution
>> is to be incorporated into AUCTeX. Have you signed FSF copyright
>> assignment form before? If not, please have a look at
>> https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request=
-assign.future

> Just sent an email, but in case it is suffice, when I'll get an answer
> I'll attach the assignment.

I see. After the paperwork is done, I'll install your proposal.

> BTW, it is not that important, but why is my postal address needed?

I'm not sure :-) Probably some US legal matter is concerned.

Best regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Arash Esbati <arash@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Wed, 12 Jun 2024 11:27:02 +0000
Resent-Message-ID: <handler.71436.B71436.171819156718314 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Udicoudco <udifoglle@HIDDEN>
Cc: 71436 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.171819156718314
          (code B ref 71436); Wed, 12 Jun 2024 11:27:02 +0000
Received: (at 71436) by debbugs.gnu.org; 12 Jun 2024 11:26:07 +0000
Received: from localhost ([127.0.0.1]:37769 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sHM7C-0004lK-PJ
	for submit <at> debbugs.gnu.org; Wed, 12 Jun 2024 07:26:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:49128)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1sHM77-0004kk-CS
 for 71436 <at> debbugs.gnu.org; Wed, 12 Jun 2024 07:26:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1sHM71-0007Fs-5A; Wed, 12 Jun 2024 07:25:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=BHp1Hanrr/82863/hH7cGwCSDtRw7jONLI0hvh+ZJVo=; b=d3TSxztrbjRlFGkfOACr
 jDCPFuBVq61BjTlQhtqoBsUwafqJqvtl+4Vrwf0YLw+0xMreINUB4bpty4OmVcXQUD3EjUn/gL4fr
 eBytxGs2Y0LvYqvCPQNq2s9BXOQvRyxaUNdWwQVT+2JrNG52tLrvs+ASudKI+XA1kFxShrCzNNOMx
 RFrwE0s+xduaD+WsgAXF2SM5amibDoUsi3bHTDLoRCMlu/WwhnLPnUEBl4Ii+dbl7evgcKsyWvgFH
 SgRYTKJ91v0G0xPJgqFcnhI8EUrY1vnHa3MyUkaNQa2xtsDULUG8GZNDht21H1rqoRAmQZJMfDZ+E
 GWEGFqeSqEE72w==;
From: Arash Esbati <arash@HIDDEN>
In-Reply-To: <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
 (Udicoudco's message of "Tue, 11 Jun 2024 12:13:06 +0300")
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
 <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
 <2622.1718084754@localhost>
 <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
Date: Wed, 12 Jun 2024 13:25:51 +0200
Message-ID: <m2cyom5rnk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Udicoudco <udifoglle@HIDDEN> writes:

> Oh, there was another typo. I did not test that the documentation
> is typesetting properly, and there was a "\begn{macro}" instead
> of `\begin{macro}`. I also updated the checksum of preview.dtx.
> Tested now with the various engines and things seems to be working
> (but please test thoroughly :)

Thanks for the patch.  I have some minor comments (and I'm not good at
writing TeX-code):

> From 0fe4d61af2d9494539e79ffd354623df9efde3e1 Mon Sep 17 00:00:00 2001
> From: Udi Fogiel <udifoglle@HIDDEN>
> Date: Tue, 11 Jun 2024 11:33:35 +0300
> Subject: [PATCH] consider pagerightoffset in luatex with rtl languages
                   ^ Consider

> This patch will calculate \pagerightoffset when LuaTeX is used
> and the page direction is right to left. It is important as in
                                          ^ 2 spaces please

> this case LuaTeX will use this register, and not \hoffset to
> position the page.
> ---
>  latex/preview.dtx | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/latex/preview.dtx b/latex/preview.dtx
> index 23f5b2da..483e6f82 100644
> --- a/latex/preview.dtx
> +++ b/latex/preview.dtx
> @@ -20,7 +20,7 @@
>  %     Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
>  %     Boston, MA 02110-1301  USA
>  % \fi
> -% \CheckSum{1758}
> +% \CheckSum{1779}
>  % \GetFileInfo{preview.sty}
>  % \date{\filedate}
>  % \author{David Kastrup\thanks{\texttt{bug-auctex@HIDDEN}}}
> @@ -752,6 +752,7 @@
>     \ifx\pr@offset@override\@undefined
>       \voffset=-\ht\pr@box
>       \hoffset=\z@
> +     \pr@set@pagerightoffset
>     \fi
>     \c@page=\pr@snippet
>     \pr@shipout
> @@ -769,6 +770,22 @@
>  %    \end{macrocode}
>  % \end{macro}
>  % \end{macro}
> +% \begin{macro}{\pr@set@pagerightoffset}
> +%   In |luatex| when page direction is right to left, |\pagerightoffset|
> +%   is used instead of |\hoffset|, so we need to calculate that as well.
> +%    \begin{macrocode}
> +\let\pr@set@pagerightoffset\@empty

Why not defining the macro properly instead of \let-ing?

\newcommand*\pr@set@pagerightoffset{}

> +\ifx\pagerightoffset\@undefined\else
> +  \def\pr@set@pagerightoffset{%
> +    \ifnum\pagedirection=1

I don't think this relevant here, but

\ifnum\pagedirection=1 %

is the safe version?

> +      \pagerightoffset=-1in
> +      \advance\pagerightoffset-\pr@bb@i
> +      \advance\pagerightoffset\pr@bb@iii
> +    \fi
> +  }
> +\fi
> +%    \end{macrocode}
> +% \end{macro}

Best, Arash




Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Udicoudco <udifoglle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Wed, 12 Jun 2024 16:32:01 +0000
Resent-Message-ID: <handler.71436.B71436.17182098973059 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Arash Esbati <arash@HIDDEN>
Cc: 71436 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.17182098973059
          (code B ref 71436); Wed, 12 Jun 2024 16:32:01 +0000
Received: (at 71436) by debbugs.gnu.org; 12 Jun 2024 16:31:37 +0000
Received: from localhost ([127.0.0.1]:40024 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sHQsr-0000nG-4N
	for submit <at> debbugs.gnu.org; Wed, 12 Jun 2024 12:31:37 -0400
Received: from mail-ej1-f46.google.com ([209.85.218.46]:56492)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <udifoglle@HIDDEN>) id 1sHQsp-0000mz-Eb
 for 71436 <at> debbugs.gnu.org; Wed, 12 Jun 2024 12:31:36 -0400
Received: by mail-ej1-f46.google.com with SMTP id
 a640c23a62f3a-a6265d48ec3so14827266b.0
 for <71436 <at> debbugs.gnu.org>; Wed, 12 Jun 2024 09:31:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718209830; x=1718814630; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=OvI5hRUATCFibxE/oOesov6gQ7TeYjS3J673Yi1xw54=;
 b=EZIk66Q3ueRXzXjrJfOgEex+maUb1cgIlfR7vw/14fzvZv7bQppe+9/4HFtm40Ypdi
 eSqARlEJ7jOB5M4snapEPSeU2JCEYtW7IvAtyf0vTRSH7k5QQJfHkPANem79Z+MDIAEd
 nsh0hHQD2DoJQ5YA6bQcFuQOQK0tFKuaNy0fdKGpeUIv3bRjEPChTIhmu2TlCimC3wWz
 29ComvokJ1yRccgklIKPJIggVXnMIdh75I0vSkaDY6+OJrAg7ChkcxALzzrLPHyjtPXu
 IxBoc+Dn1Ajq5KiytBLMal908keGvwAY7hcQHw0zasMFIQg0v1yxWHGclZV/Yu6isW2G
 OgYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718209830; x=1718814630;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=OvI5hRUATCFibxE/oOesov6gQ7TeYjS3J673Yi1xw54=;
 b=cMhQoAGlodbvI6gtANF8nyOqv3wlIM82opNDuziSXpNpkNqxmq3MN0DIxMAc3sDz0f
 ibLp/t/LhttTVMXqdQP8nklDBVJoG+A92y59mOpwTJ0E364E/rAQDI92iBvraXVov3gY
 et6/ezWw2dJzl8XaWXYI9wqER00JczOaACEizaktpBffo2vIBpUQw5DnmBEHPlqjsUR3
 tTyLK7C6/yWsu/31+uD64rObhkfvMbr+UtlL/MU0SMvcBQemyZFvYcoNMfkhLZsHZrCS
 AQvUDFnxSqpOhDgYSGJ8olQGFLxdUrIBJzEcKRhuuuLaxfpHunYXAZwIqDKJvydxH1tM
 Lqng==
X-Forwarded-Encrypted: i=1;
 AJvYcCV2pL1w9TyjUcpx8SSjku9qBPi7yDsxzbmQbuzDZ2lka9GwIv/63Q0DB/kmReZsy7YeLonRdVg1qQs4yIdcOglyEdr6bFU=
X-Gm-Message-State: AOJu0YyuUJoDkwJbJ3G6xeAapzsJccb1E0tlb2lsW9YyWb66hpxf7ETE
 9ArnkYyYfHt7fnOVf8f9pVVJ5Oaak6eNRpmrVzjIpsEB71YxS42+QlKU9va/gDvYz4tHny2XaMo
 4jAyE8xj4BY/NTAViskDPNF0NPD6lXFvY
X-Google-Smtp-Source: AGHT+IFm1f3m/30/lFHP9WGlm5FiQ7O8Scg2/KY+qMer4XJbz8PtA1fXH6JzAd6vQai+13AAe18OV2J/MyJqH7eQGgw=
X-Received: by 2002:a17:907:72c5:b0:a69:13a2:4f6e with SMTP id
 a640c23a62f3a-a6f47d61fe0mr187530666b.74.1718209830130; Wed, 12 Jun 2024
 09:30:30 -0700 (PDT)
MIME-Version: 1.0
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
 <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
 <2622.1718084754@localhost>
 <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
 <m2cyom5rnk.fsf@HIDDEN>
In-Reply-To: <m2cyom5rnk.fsf@HIDDEN>
From: Udicoudco <udifoglle@HIDDEN>
Date: Wed, 12 Jun 2024 19:30:18 +0300
Message-ID: <CAMq1jy+Mz2SfUppGV6bc+D7SW0RzgYqojMXezpFcc6TX=bngAw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wed, Jun 12, 2024 at 2:25=E2=80=AFPM Arash Esbati <arash@HIDDEN> wrote:
> Thanks for the patch.  I have some minor comments (and I'm not good at
> writing TeX-code):
>
> > +\let\pr@set@pagerightoffset\@empty
>
> Why not defining the macro properly instead of \let-ing?
>
> \newcommand*\pr@set@pagerightoffset{}

no real reason, I've tried to write the code
in the same style of the package. I was reading
the lines

\let\pr@ship@start\@empty
\let\pr@ship@end\@empty

just before writing this one. If you prefer to use
\newcommand, that's fine (althogh personally
I don't really like to use \newcommand for internal
commands).

> > +\ifx\pagerightoffset\@undefined\else
> > +  \def\pr@set@pagerightoffset{%
> > +    \ifnum\pagedirection=3D1
>
> I don't think this relevant here, but
>
> \ifnum\pagedirection=3D1 %
>
> is the safe version?

Define "safe". The version in my patch
can theoretically break if \endlinechar is -1
at the time of the definition of  \def\pr@set@pagerightoffset
for example, as the end of line after \ifnum\pagedirection=3D1
will be removed and no space will be created after TeX tokenize
the macro definition, so if there are more digits (of something that
expands to digits) after  =3D1 we can be in trouble, but in this case
what appears after it is \pagerightoffset which is not expandable,
so it is safe.

For example with

\documentclass{article}
\begin{document}
\newcount\foo\foo=3D20
\endlinechar=3D-1
\def\bar{%
    \ifnum 1 =3D 1
    \the\foo Yes\else No\fi
  }
\show\bar\bar
\endlinechar=3D13
\end{document}

You will get no, as the definition of \ab does
not  have a space between 1 and \the (which
would be there if \endlinecahe wasn't -1), and
\the\foo expands to 20 and so the test actually
check \ifnum 1=3D120 (after \the\foo \ifnum encounter the 'Y'
which is not a digit so it stops).

With the following (which is similar to the code in the patch)

\documentclass{article}
\begin{document}
\newcount\foo\foo=3D20
\endlinechar=3D-1
\def\bar{%
    \ifnum 1 =3D 1
    \foo=3D1 Yes\else No\fi
  }
\show\bar\bar
\endlinechar=3D13
\end{document}

you get 'Yes' because \foo is unexpandable
and is not a digit nor is equivalent in some sense to a digit,
so \ifnum does not include him in the comparison.

Using \ifnum\pagedirection=3D1 % assume that '%'
has category code 14 (which is usually the case).

In any case, probably the safest way to go
is to use \ifnum\pagedirection=3D\@ne as it does not
rely on what appears next (\@ne is an unexpandable
token, to \ifnum stop looking after him, and it is equivalent to 1).

I don't really mind doing these changes,
it is really your call. Should I prepare
a new patch using \newcommand and
\ifnum\pagedirection=3D\@ne?

Regards,
Udi




Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71436: Fwd: preview in LuaTeX with RTL as main language does not work
Resent-From: Arash Esbati <arash@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Sun, 16 Jun 2024 11:24:02 +0000
Resent-Message-ID: <handler.71436.B71436.171853701326050 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71436
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Udicoudco <udifoglle@HIDDEN>
Cc: 71436 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>
Received: via spool by 71436-submit <at> debbugs.gnu.org id=B71436.171853701326050
          (code B ref 71436); Sun, 16 Jun 2024 11:24:02 +0000
Received: (at 71436) by debbugs.gnu.org; 16 Jun 2024 11:23:33 +0000
Received: from localhost ([127.0.0.1]:48101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sInyu-0006m3-H9
	for submit <at> debbugs.gnu.org; Sun, 16 Jun 2024 07:23:32 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52938)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1sInyt-0006lg-0E
 for 71436 <at> debbugs.gnu.org; Sun, 16 Jun 2024 07:23:31 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1sInwd-0003NB-MB; Sun, 16 Jun 2024 07:21:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Aszr6CiSSCibt4BA0K0m4vFwcgqv+3tPkv8x0C6doeQ=; b=aBCp13eMgokucGgaY1Zv
 vylTisvQwzUOjBJ+7dl2CJ/tYFPzADZmykBUxoeNR2beChi2+cu3YIylfitumlYiDpr6auahQbhQd
 MYb8ZZYim7nFRdj1sD2Qs+e8X47cbye4hPerlqK3kMmOOSKTpiuxB4kzAxrz6fnj+ybx4Z98eDj5p
 +ZdnL0kJOYVL7sW3bl3LqvSg42/XL3GqRx9Dw0gCI2MhcQAEslnqIQ6QqXcX9usSvTAEQOZJaxlzE
 eQnifCz2Jpl9kPQFJTd5IXaJ0aTXGUaHD1VQAMDyNIE6nkJBtzxeee4yB+UGoyqflVMMTpVYgywEt
 6S2yxM1Raz+B4w==;
From: Arash Esbati <arash@HIDDEN>
In-Reply-To: <CAMq1jy+Mz2SfUppGV6bc+D7SW0RzgYqojMXezpFcc6TX=bngAw@HIDDEN>
 (Udicoudco's message of "Wed, 12 Jun 2024 19:30:18 +0300")
References: <CAMq1jy+WqvyuBCGWh8HHYcAR2V1O4cxhiSdN-u2_hPd-X7AAAw@HIDDEN>
 <CAMq1jyLfyfmWs32eOWwS8Gse1sgkLGEFToRjZFBMbVfut3dV+g@HIDDEN>
 <CAMq1jyK5B9CegFXOefW9Htbp9AiFa+DwFHH-BdQxYVAVWQWnTw@HIDDEN>
 <2622.1718084754@localhost>
 <CAMq1jyLmwr625ffC-3r9uL3gC4jaYfKu_SDm6rQZ+czwvUeXKA@HIDDEN>
 <m2cyom5rnk.fsf@HIDDEN>
 <CAMq1jy+Mz2SfUppGV6bc+D7SW0RzgYqojMXezpFcc6TX=bngAw@HIDDEN>
Date: Sun, 16 Jun 2024 13:21:08 +0200
Message-ID: <m27ceprv4r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Udicoudco <udifoglle@HIDDEN> writes:

> I don't really mind doing these changes,
> it is really your call. Should I prepare
> a new patch using \newcommand and
> \ifnum\pagedirection=\@ne?

Thanks for your response.  I'd really appreciate if you would prepare a
new patch adding the points above.  TIA.

Best, Arash





Last modified: Sun, 16 Jun 2024 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.