unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Easy things for Android port
       [not found] <87mt6pfpy5.fsf.ref@yahoo.com>
@ 2023-01-11  8:14 ` Po Lu
  2023-01-11 15:27   ` T.V Raman
  0 siblings, 1 reply; 8+ messages in thread
From: Po Lu @ 2023-01-11  8:14 UTC (permalink / raw)
  To: emacs-devel

The Android port, found in feature/android, is now useful for editing,
given that you have a mouse and keyboard.

If someone wants to do easy things for the Android port, they would be:

  - make dired.c understand the `/assets' special directory.

  - make drawing faster by avoiding the extra canvas save and restore on
    each graphics op, only doing that if clip rectangles really change.

  - add support for touch screen events, like in xterm.c, and the
    on-screen keyboard.

  - add support for the TrueType Container format to sfnt.c and
    sfntfont.c.  This is easy because TTC files are just TrueType files
    with multiple table directories, each representing a single font.

  - add support for window restacking and geometry operations
    (i.e. raise-frame, android_reparent_window, et cetera.)




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Easy things for Android port
  2023-01-11  8:14 ` Easy things for Android port Po Lu
@ 2023-01-11 15:27   ` T.V Raman
  2023-01-12  6:04     ` Po Lu
  0 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2023-01-11 15:27 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1367 bytes --]

Po Lu <luangruo@yahoo.com> writes:

This is awesome progress.

One question re on-screen keyboard:

Given Emacs' heavy usage of modifier keys, simply adding on-screen
keyboard support may not deliver something very useful.

perhaps we should step back and ask "How Can Emacs Leverage Touch Input"
in a broader sense, and use that as the motivation to do some real UI
innovation  > The Android port, found in feature/android, is now useful for editing,
> given that you have a mouse and keyboard.
>
> If someone wants to do easy things for the Android port, they would be:
>
>   - make dired.c understand the `/assets' special directory.
>
>   - make drawing faster by avoiding the extra canvas save and restore on
>     each graphics op, only doing that if clip rectangles really change.
>
>   - add support for touch screen events, like in xterm.c, and the
>     on-screen keyboard.
>
>   - add support for the TrueType Container format to sfnt.c and
>     sfntfont.c.  This is easy because TTC files are just TrueType files
>     with multiple table directories, each representing a single font.
>
>   - add support for window restacking and geometry operations
>     (i.e. raise-frame, android_reparent_window, et cetera.)
>
>

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Easy things for Android port
  2023-01-11 15:27   ` T.V Raman
@ 2023-01-12  6:04     ` Po Lu
  2023-01-12 12:50       ` Jean Louis
                         ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Po Lu @ 2023-01-12  6:04 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

> One question re on-screen keyboard:
>
> Given Emacs' heavy usage of modifier keys, simply adding on-screen
> keyboard support may not deliver something very useful.

There is a free input method for Android which does have modifier keys.
I think it's called ``Any Soft Keyboard'' or some such.

> perhaps we should step back and ask "How Can Emacs Leverage Touch Input"
> in a broader sense, and use that as the motivation to do some real UI
> innovation

We already have touch screen support for the X builds, but the events
are not bound to anything at the moment.

Touchscreen support for Android is being worked on, but I think it will
also require a lot of Lisp for gesture recognition, et cetera.  Does
anyone want to write that?

Thanks.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Easy things for Android port
  2023-01-12  6:04     ` Po Lu
@ 2023-01-12 12:50       ` Jean Louis
  2023-01-12 14:46       ` T.V Raman
  2023-01-13 23:20       ` Easy things for Android port Björn Bidar
  2 siblings, 0 replies; 8+ messages in thread
From: Jean Louis @ 2023-01-12 12:50 UTC (permalink / raw)
  To: Po Lu; +Cc: T.V Raman, emacs-devel

* Po Lu <luangruo@yahoo.com> [2023-01-12 09:07]:
> "T.V Raman" <raman@google.com> writes:
> 
> > One question re on-screen keyboard:
> >
> > Given Emacs' heavy usage of modifier keys, simply adding on-screen
> > keyboard support may not deliver something very useful.

Please review how Termux does it, install Termux, and you will see
CTRL, ALT, keys and few others displayed above any kind of the
key. That way user can use any type of the key.

> There is a free input method for Android which does have modifier keys.
> I think it's called ``Any Soft Keyboard'' or some such.

Not only that one, there is Hacker's Keyboard and SSH keyboard, and
others.

I assume that Emacs will be offered through free software repository
for Replicant, and Android and other akin systems on
https://f-droid.org/

There are many keyboards:
https://search.f-droid.org/?q=keyboard&lang=en

But main way to have special keys can be implemented in the sense how
Termux does it. Try it out to understand. Then any key can be used
with ALT, CTRL, ESC, arrows, just as Termux displays them as buttons
above any type of keyboard.

I don't even use Hacker's Keyboard:
https://f-droid.org/en/packages/org.pocketworkstation.pckeyboard/

because Termus has those special keys, when I use Emacs on Android.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Easy things for Android port
  2023-01-12  6:04     ` Po Lu
  2023-01-12 12:50       ` Jean Louis
@ 2023-01-12 14:46       ` T.V Raman
  2023-01-14  6:07         ` Emacs is not a research project Richard Stallman
  2023-01-13 23:20       ` Easy things for Android port Björn Bidar
  2 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2023-01-12 14:46 UTC (permalink / raw)
  To: luangruo; +Cc: raman, emacs-devel


All sounds good; but I'd still like to ask the higher-level -- perhaps
somewhat research-oriented question:

Emacs from 40 years ago created a lot of innovations  that still shine
in today's world. Given that those innovations happened in a world
that distinctly lacked the  hardware ans the associated UI affordances
 that we have today; how might Emacs create the next round of
 innovation that will shine for the next 40 years?

Po Lu writes:
 > "T.V Raman" <raman@google.com> writes:
 > 
 > > One question re on-screen keyboard:
 > >
 > > Given Emacs' heavy usage of modifier keys, simply adding on-screen
 > > keyboard support may not deliver something very useful.
 > 
 > There is a free input method for Android which does have modifier keys.
 > I think it's called ``Any Soft Keyboard'' or some such.
 > 
 > > perhaps we should step back and ask "How Can Emacs Leverage Touch Input"
 > > in a broader sense, and use that as the motivation to do some real UI
 > > innovation
 > 
 > We already have touch screen support for the X builds, but the events
 > are not bound to anything at the moment.
 > 
 > Touchscreen support for Android is being worked on, but I think it will
 > also require a lot of Lisp for gesture recognition, et cetera.  Does
 > anyone want to write that?
 > 
 > Thanks.

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Easy things for Android port
  2023-01-12  6:04     ` Po Lu
  2023-01-12 12:50       ` Jean Louis
  2023-01-12 14:46       ` T.V Raman
@ 2023-01-13 23:20       ` Björn Bidar
  2023-01-13 23:22         ` Björn Bidar
  2 siblings, 1 reply; 8+ messages in thread
From: Björn Bidar @ 2023-01-13 23:20 UTC (permalink / raw)
  To: Po Lu; +Cc: T.V Raman, emacs-devel

Po Lu <luangruo@yahoo.com> writes:

>> perhaps we should step back and ask "How Can Emacs Leverage Touch Input"
>> in a broader sense, and use that as the motivation to do some real UI
>> innovation
>
> We already have touch screen support for the X builds, but the events
> are not bound to anything at the moment.
>
> Touchscreen support for Android is being worked on, but I think it will
> also require a lot of Lisp for gesture recognition, et cetera.  Does
> anyone want to write that?

I hope I don't write out of line however: In many projects the mobile
support was done platform  specific (e.g. Chrome or Firefox).

Would it be possible to write it so the touch screen support is done
platform independent e.g. through GTK? I don't like GTK but for Qt app I
would leverage Qt to get multi platform.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Easy things for Android port
  2023-01-13 23:20       ` Easy things for Android port Björn Bidar
@ 2023-01-13 23:22         ` Björn Bidar
  0 siblings, 0 replies; 8+ messages in thread
From: Björn Bidar @ 2023-01-13 23:22 UTC (permalink / raw)
  To: Po Lu; +Cc: T.V Raman, emacs-devel

Björn Bidar <bjorn.bidar@thaodan.de> writes:

> Would it be possible to write it so the touch screen support is done
> platform independent e.g. through GTK? I don't like GTK but for Qt app I
> would leverage Qt to get multi platform.

Sorry send this email without finished typing. It should be:

 I don't like GTK but for Qt app I would leverage Qt to get multi
 platform support.
 



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Emacs is not a research project
  2023-01-12 14:46       ` T.V Raman
@ 2023-01-14  6:07         ` Richard Stallman
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2023-01-14  6:07 UTC (permalink / raw)
  To: T.V Raman; +Cc: luangruo, raman, emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Emacs from 40 years ago created a lot of innovations  that still shine
  > in today's world. Given that those innovations happened in a world
  > that distinctly lacked the  hardware ans the associated UI affordances
  >  that we have today; how might Emacs create the next round of
  >  innovation that will shine for the next 40 years?

Beyond simply being good to use, the overarching goal of the GNU
system, including GNU Emacs, is to give users freedom to control their
own computing.

Compared with freedom, innovation is a side issue.  Our society
generally overemphasizes innovation as a goal, often as a way of
distracting users from questions of their own freedom.

If in working on Emacs you think of a useful new feature and you
implement it in GNU Emacs, we will appreciate that innovation.  But we
won't measure the success of our work by how much the
user-disrespecting nonfree programs of 30 years from now are
influenced by our work.  We aim to replace them with free software,
not to enhance them.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-14  6:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87mt6pfpy5.fsf.ref@yahoo.com>
2023-01-11  8:14 ` Easy things for Android port Po Lu
2023-01-11 15:27   ` T.V Raman
2023-01-12  6:04     ` Po Lu
2023-01-12 12:50       ` Jean Louis
2023-01-12 14:46       ` T.V Raman
2023-01-14  6:07         ` Emacs is not a research project Richard Stallman
2023-01-13 23:20       ` Easy things for Android port Björn Bidar
2023-01-13 23:22         ` Björn Bidar

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).