From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mohsen BANAN Newsgroups: gmane.emacs.devel Subject: Re: Farsi/Persian Translation of Emacs Tutorial -- Ready for Inclusion in the Next Emacs Date: Tue, 25 Apr 2023 15:05:41 -0700 Organization: ByStar Federation of Autonomous Libre Services -- http://www.by-star.net Message-ID: References: <83v8hmxb64.fsf@gnu.org> <837cu0wbr8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7486"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 26 07:37:10 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prXq2-0001m1-1Z for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Apr 2023 07:37:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prXp9-0007yn-OQ; Wed, 26 Apr 2023 01:36:15 -0400 Original-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 1prQnI-0004kS-Pl for emacs-devel@gnu.org; Tue, 25 Apr 2023 18:05:52 -0400 Original-Received: from 0030.bacs.by-star.net ([198.62.92.180] helo=0027.bacs.by-star.net) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1prQnG-0004D8-UZ for emacs-devel@gnu.org; Tue, 25 Apr 2023 18:05:52 -0400 Original-Received: (qmail 9558 invoked from network); 25 Apr 2023 22:05:42 -0000 Original-Received: from 192.168.0.90 ([192.168.0.90]) by 0030.bacs.by-star.net ([198.62.92.180]) with ESMTP via TCP; 25 Apr 2023 22:05:42 -0000 In-Reply-To: <837cu0wbr8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 25 Apr 2023 12:29:31 +0300") Received-SPF: none client-ip=198.62.92.180; envelope-from=emacs@mohsen.1.banan.byname.net; helo=0027.bacs.by-star.net X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.4, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 26 Apr 2023 01:36:12 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305671 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Mohsen BANAN >> Cc: emacs-devel@gnu.org >> Date: Sun, 23 Apr 2023 21:58:09 -0700 >> >> Attached are three files: >> >> 1) TUTORIAL.fa --- NEW FILE >> which goes in etc/tutorials/TUTORIAL.fa >> >> 2) persian.el --- NEW FILE >> which goes in lisp/language/persian.el >> >> 3) 0001-Added-persian.el-to-loadup.el-and-minor-fixes-in-lis.patch >> patches to lisp/loadup.el >> which adds language/persian.el >> patches to language/misc-lang.el >> which are purely comment oriented. >> >> This is how I did it for myself. >> >> If you want to follow the same pattern, it is best >> to take the persian part out of misc-lang.el and >> perhaps create a separate file for arabic. >> >> I leave the arrangement in your capable hands ... > > Thanks. I added the tutorial to the emacs-29 branch, and updated the > existing Persian language environment with the tutorial information > (and made also other minor relevant changes due to this addition). Thank you very much Eli. I rebuilt and noticed a couple of problems. If you enter the Help Persian tutorial and then try to immediately exit emacs, you get an error. Here is my *Messages* buffer after that: ------ Preparing tutorial ... help-with-tutorial: Search failed: " <<" run-hook-with-args-until-failure: Symbol=E2=80=99s value as variable is voi= d: tutorial--starting-point ------- I looked into it and the problem turns out to be in my TUTORIAL.fa file which then triggers the void tutorial--starting-point in tutorial.el. I had missed the invisible <> line, as I had translated from the Help command and not the TUTORIAL file. I have added the translation of that line and have tested it. Please apply the attached file, thanks. As for the void: tutorial--starting-point: you may want to look into that and make it more robust. And perhaps issue an error saying the <> is missing. But, if no other translator had made that mistake, then it is just me and we can leave it as is. My apologies for that sloppiness and thanks again. ...Mohsen --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-Missing-inserted-by-help-with-tutorial-line.patch Content-Transfer-Encoding: base64 RnJvbSAxOWI3N2NmMTFkMmQ3MDU0ZGQyY2E3NTQ3NzliZGFiOTA3MDgwM2E1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQ0KRnJvbTogTW9oc2VuIEJhbmFuIDxmb3JtQG1vaHNlbi5iYW5hbi4xLmJ5 bmFtZS5uZXQ+DQpEYXRlOiBUdWUsIDI1IEFwciAyMDIzIDE0OjQ5OjI4IC0wNzAwDQpTdWJqZWN0 OiBbUEFUQ0hdIE1pc3NpbmcgPDxpbnNlcnRlZCBieSBoZWxwLXdpdGgtdHV0b3JpYWw+PiBsaW5l Lg0KDQotLS0NCiBldGMvdHV0b3JpYWxzL1RVVE9SSUFMLmZhIHwgMyArLS0NCiAxIGZpbGUgY2hh bmdlZCwgMSBpbnNlcnRpb24oKyksIDIgZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1na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