Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'insert': 0.05; 'environments': 0.07; "(i'd": 0.09; 'agree,': 0.09; 'locale': 0.09; 'sequences.': 0.09; 'typed': 0.09; 'cc:addr:python-list': 0.11; '"d"': 0.16; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'modifier': 0.16; 'multiples': 0.16; 'subject:virtual': 0.16; 'symbols': 0.16; 'followed': 0.16; 'wrote:': 0.18; '(in': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'choices': 0.24; 'documented': 0.24; 'instance,': 0.24; 'keyboard': 0.24; 'skip': 0.24; 'file.': 0.24; "haven't": 0.24; '(or': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'character': 0.29; 'generally': 0.29; 'characters': 0.30; "i'm": 0.30; '(on': 0.31; 'keys': 0.31; 'loads': 0.31; 'supposed': 0.32; 'text': 0.33; 'guess': 0.33; 'mac': 0.33; "can't": 0.35; 'common': 0.35; 'convert': 0.35; 'one,': 0.35; 'but': 0.35; 'there': 0.35; 'subject:?': 0.36; 'should': 0.36; 'changing': 0.37; 'received:10': 0.37; 'little': 0.38; 'sure': 0.39; 'either': 0.39; 'how': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'easy': 0.60; 'most': 0.60; 'lower': 0.61; 'first': 0.61; 'kind': 0.63; 'myself': 0.63; 'to:addr:gmail.com': 0.65; 'limit': 0.70; 'press': 0.70; 'touch': 0.74; 'compose': 0.84; 'guessed': 0.84; 'right).': 0.84; '\xe2\x82\xac': 0.84; 'mistake': 0.91; 'opt': 0.97 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1423603650970:4111429788 X-MC-Ingress-Time: 1423603650969 Date: Tue, 10 Feb 2015 15:29:00 -0600 From: Tim Chase To: Skip Montanaro Subject: Re: Wildly OT: pop-up virtual keyboard for Mac or Linux? In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AuthUser: tim@thechases.com Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1423604785 news.xs4all.nl 2863 [2001:888:2000:d::a6]:55910 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85474 On 2015-02-10 15:05, Skip Montanaro wrote: > For instance, If I press and hold the "d" key, I see these choices > (ignore the capitalization of the first letter - my mistake sending > a text message to myself from my phone, and I can't seem to convert > it to lower case): =C4=90|=C2=A6&d=C3=B0=C4=8F >=20 > I haven't the slightest idea how to type any accented characters or > common symbols using the many modifier keys on my keyboard >=20 > Is there an X11 or Mac extension/program/app/magic thing which I can > install in either environment to get this kind of functionality? While it's not exactly a hold-down-get-a-menu, I opt for changing my (otherwise-useless) caps-lock key to an X compose key: $ setxkbmap -option compose:caps I can then hit caps-lock followed by what are generally intuitive sequences. For your first one, that would be "capital-D minus". I'm not sure what the other characters are supposed to be, so I'm not sure how to find them. But =C3=A9 is "compose, e, apostrophe", =C3=B1 is "compose, n, tilde", the degree sign is "compose, o, o", the =E2=82=AC is "compose, E, equals", etc. There are loads of these documented in (on my machine, where my locale is en_US.UTF-8) /usr/share/X11/locale/en_US.UTF-8/Compose Some of them are a little less intuitive, though the majority of the time I can just guess them (I'd never typed "=C4=90" before, but guessed and was right). Otherwise I search that above file. This also has the advantage that it should work in every X application, including Unicode-aware terminal applications (in Unicode-aware terminals). Adding some sort of press-and-hold UI would limit it to those applications that chose to support it (or even *could* support it). > While I'm a touch typist, I almost never use auto-repeat, which is > the "binding" of held keys in most environments I agree, as vi/vim makes it easy to insert multiples of the same character (or characters) akin to what you describe in Emacs. -tkc