From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Android port Date: Wed, 03 May 2023 08:37:15 +0800 Message-ID: <87a5ymcksk.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Mohsen Banan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 03 02:37:54 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pu0VF-0001JX-MA for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 May 2023 02:37:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pu0Us-0000tu-AQ; Tue, 02 May 2023 20:37:30 -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 1pu0Uq-0000th-8m for help-gnu-emacs@gnu.org; Tue, 02 May 2023 20:37:28 -0400 Original-Received: from sonic302-22.consmr.mail.ne1.yahoo.com ([66.163.186.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu0Uo-0001sv-1r for help-gnu-emacs@gnu.org; Tue, 02 May 2023 20:37:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683074242; bh=FlxTKwKZa/3gjd1hbGGXQW/E+2+aiJm3PHsHw13DX+o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=WFbonbKARwYo6i/Xe7+R9hm58hlgMpE5rJIWuPJ0tHf54ZnFsdsvpR/p8dUBo/iwX0iT+5y97lHf2R6qxX8PWIQQWZ5Yi8EFtfPgRM9DG4wRHQCclxq+HRxoQPt4nFhRS1mmZQfhSRV3qYddmFeukFxIJOuKsv2byT9J6TH6QyLf0AbOylSAVuVG2A4jX/h/TH4Jq9mRkOGe8NzmOPGhfPGlmwRT7VngJLXjjxzUWRUcrcwIR5poLimxUyZN4BfVif/8+rYKFXHU72JVjZQURU0xMzIJnZnJ3CFo6Dbbts9crLB5xwTwTa3M/FDZd7SQytj4XBWmk32jt7oZoUiJOA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683074242; bh=YoAolL3/pyUFD7haIVcvac9NhFxd/g/dwoqtcaI4Z1H=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=F9+km9D8WDaQhr593y+hYgcxxezU8KErmzN7Od4hOSCl6hWT7DrytxcXsHWAQyPIvGGMe7R6vql6SJBDTRQGyylxrIW52869QmR3cE/e8obGEyt2F7o1aCNuzkQNWEcQ34tBbcQsw8Gt6ASAkUMdePJmH+v5B565v8TVRhF2Orbd0xh+GiYpcSwH7LrZjukYguvrE/KYEl+hUvhQCLQxxb6K6Rgyo+Zy5NXwnaJjC4MzmSgbZe8vG2kyFlWEdTp/oFUkXlgbmu/P5ucchM0S87V5D4bZFkME8LYd89unltXbPGynuSqodpAgNqm7DGtab1ExH5LayJMoPH4UswhVbA== X-YMail-OSG: hevxYPUVM1nXgDrzrcztlO83lCCkgh8YmdZnAZiWpGfR4QzQkcr9y3XhR5Xtmi. 1BXD_I.IG.fdZ3UOwWhyJP2KqKF_Zn_AkUe3KLoRHBL_6I5tNTgmVLMA9FHm56tudc5pGMTAXe3K LOWS9wPqj045MorLreS7TMsUom.xus8ID3ft7NMmoDLt46v7xxklAiDnrlziRUI0NIYQf4yrJyfy fHUa3ZKWCc2397_nLcX.nfSSM5r_avYNFVwN.dDxquy3OngGNWXzhOrhoBs3aBB4xWe6PWDcHG0_ TH_RXEHlMjBMi_cYxDRgfrRDhrtPaFVhBfMa0idmh6vDL29_ASwPNbJOzuuzITT1rQVmwzR0pnEN jCqNbqTFPSfAxp4EAzHmbT7cCyc65SdqVUo91luQ5NhNxis5rhHIyH1HqibV_CZhoW..mpIB.iiY hb3LZIZA9ew45usnsm6mqWherGAUtg5SPxJv6r.ekxrmVz_7UED2sa0F3aGTZHj2RQVk8G.YHKET bXdhpVSHhKZxMpvv3X3fy1GNkN5xbIFxgVDDXTf02ST.WRzXxgoqa8avipTWeU11G7cJkkeDlQDJ 7N8qkN746ruhiCY3WYL7X1CY1hE4cNI4Fibvu6iSPrdcpzOoLyD66NRw_FVYyU92kzyaI4QFUEmE DHWfnSOEv1jK8PCS.f31oSq7Ou9GR7IXXc9geAv_tDDKKw44uzThvtsZVG5nuTeYIdu495N2E7kP DJAd1.TnXjTX7j1FVaBAYakZA2A4oV2wnSpuYO_qp9XXPlWQqMmM_3u10RA5_1E_MTkFNwNV98J7 eqU6J6wW8Nm345SpLFAvo.99YMRhT8x8c2vCk59xck X-Sonic-MF: X-Sonic-ID: e5388254-66e4-4095-a5b5-e7b486a23c54 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Wed, 3 May 2023 00:37:22 +0000 Original-Received: by hermes--production-sg3-6d6fb994f6-6wnb7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 76904c8aada8850d9035ff669aeb6193; Wed, 03 May 2023 00:37:19 +0000 (UTC) In-Reply-To: (Mohsen Banan's message of "Tue, 02 May 2023 17:22:00 -0700") X-Mailer: WebService/1.1.21417 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.148; envelope-from=luangruo@yahoo.com; helo=sonic302-22.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143497 Archived-At: Mohsen Banan writes: > Hello, > > First, thank you very much for your wonderful work. > > I have started experimenting with it and have some > questions that are likely too basic for the > emacs-devel mailing list. The appropriate list for these questions is help-gnu-emacs@gnu.org, which I've copied in. That list is archived and is also gatewayed into Usenet, so questions and answers sent there will benefit more people than those directed to me personally. > 1) --------- > Po> I believe the Android port of Emacs is now > Po> more or less feature complete. > > Indeed it is. But the enlarge/zoom gesture did not > work for me. I like that in termux. > Has that feature been implemented? Do you plan to > implement it? In the android environment, I think > that feature is very valuable. I've never found it necessary, so patches welcome, I guess. See lisp/touch-screen.el. > 2) ----------- > Po> Follow the instructions in INSTALL.android > Po> to build and install Emacs for your specific device. > > There is no INSTALL.android > in the clone that I got with: > git clone git://git.sv.gnu.org/emacs.git -b feature/android > > Has there been changes to that? That document has been moved to `java/INSTALL'. > 3) ---------- > I experimented with perso-arabic text (e.g., > persian tutorial) and the default fonts do not > support it. Any advice on what font to use and how > to select it in emacs and in android? > > I'll be happy to work with you on this as after > the font chalenge, there may also be problems with shaping > (harfbaz, ...) Font shaping via HarfBuzz has been implemented and is now included in all prebuilts for 64 bit architectures. However, Emacs only supports TrueType fonts, so I suggest installing the TrueType version Noto Sans Arabic. The procedure for installing fonts is described in (emacs)Android Fonts. > 4) ---------- > I want to combine the use of emacs and termux. > This is something that many would want to do. > I found: > https://marek-g.github.io/posts/tips_and_tricks/emacs_on_android/ > but the prebuilt emacs at > https://github.com/marek-g/emacs-config/releases > did not work for me. > > Would be great, if these two could be integrated > out of the box. Emacs is now capable of running subprocesses regardless of system restrictions, so you should be able to build https://github.com/termux/termux-packages/ with the prefix changed to `org.gnu.emacs', and to simply install the resulting archives in Emacs's home directory. > =========== > > I have not done any Android development in the > past but if you were willing to guide me a bit, I can > likely come to speed and I do want to contribute > towards an out of the box perso-arabic android > emacs. > > Thanks and regards, > > ...Mohsen Thanks for your interest in Emacs. Fortunately, very little Android specific knowledge is required to work on the Android port; a good understanding of C and font scaling should be enough.