print('\N{flag: Mauritius}') not supported in py3.9
dn
PythonList at DancesWithMice.info
Mon Nov 29 16:59:30 EST 2021
On 30/11/2021 10.19, Cameron Simpson wrote:
> On 29Nov2021 22:25, DL Neil <PythonList at DancesWithMice.info> wrote:
>>>> Probably a font issue. Not many fonts support the flags.
>>>
>>> Agree about the font support. Some terminal emulators make an effort to
>>> have fallback fonts for when your preferred font lacks a glyph. IIRC
>>> urxvt is such a terminal on Linux.
>>
>> Not sure about this. Most other applications on this PC will display the
>> two countries' flags, as desired, eg Writer, web-browser, even xed
>> (basic text editor).
>
> Seem Stefan Ram's advice, which points out that you can tell if this is
> a font problem (no flag glyph) or a combining problem (2 glyphs
> presented instead of one). I had not considered that.
@Stefan's advice preceded by report that two glyphs were printed (not
one): "the two letters "N" and "Z" are shown with dotted-outlines"
(I think, the UTF-16 decoding)
>> rxvt: won't compile, gave-up fighting unfamiliar requirements
>
> See if there's a package for urxvt, which was the "unicode" flavour of
> rxvt (long ago - rxvt if probably supposed to be unicode capable these
> days, surely).
Fedora names it as rxvt-unicode.
Installed v9.26
Text is too small for these old eyes.
No menu bar and no context menus.
Unable to copy-paste (the flag codes) into that window.
Removed.
>> Kitty: works!
>
> Yay!
>
>> Kitty is not something I've come-across before. Its write-up says
>> «
>> Kitty is a free, open-source, and fast, feature-rich, GPU accelerated
>> terminal emulator for Linux, that supports all present-day terminal
>> features, such as Unicode, true color, text formatting, bold/italic
>> fonts, tiling of multiple windows and tabs, etc.
>
> A tiling terminal emulator can be a great thing. I'm on a Mac with
> iTerm, which:
> - has tabs
> - has panes (split the view into multiple panels, each running a
> terminal)
>
> My personal dev desktop tends to use a full screen iTerm split
> vertically into 2 panes: an editor on the left (vim, itself split
> vertically into 2 vim windows) and a shell on the right; sometimes
> several shells (right hand pane further split horizontally).
>
> Then, since I tend to keep per-branch checkouts around, tabs for the
> things I'm working on, each configured as above. Then I just switch tabs
> for the different areas.
Yes, a good way to work. Neatly explained.
I choose not to even try to remember the difficulties of working with
small screens over-laying one another and 'getting lost' in the pile!
My desktop/dev.svr features two screens: one in 'portrait mode' and the
other 'landscape'. The former is very good for code-listings. The latter
for execution-display, pytest reports, etc. As you describe, each can be
sub-divided when needs-arise. A neat feature is that "Tool Windows" can
be tucked-away, and only 'pulled-out' when required, eg am not looking
at Sourcery's assessments right now (unless it highlights the commission
of some 'crime' as I type) but will check prior to (or as part of) git
commit. The Tool Window's name/label in the 'dock' also forms a reminder
that I shouldn't (totally) neglect my responsibilities!
These are managed within the IDE - sadly, PyCharm's terminal/console
fails the 'flag test', as reported yesterday. (am not sure if one might
be able to select which terminal emulator to use ...)
I'm a lazy toad. Thus the idea that the IDE will allow me to 'press a
(single) button' to repeat the last-run test/execute the code, without
me having to commit a Save and to jump between panels/windows/screens,
is seductive.
Don't tell my trainees! Every course sees three or four who 'cry for
help' because making some change in their choice of editor/IDE does not
result in similar within the web-browser. Did you forget to save the
source, Luke? That's not to say there won't be considerably more who
manage to diagnose the problem without admitting such to 'the outside
world'!
There are times when there is no need to (wait quite a while to) boot-up
a whole IDE, eg running a utility program. I've nominated Kitty as
Fedora's default terminal. We'll see how it goes with work-loads beyond
raising the flag...
Salute!
--
Regards,
=dn
More information about the Python-list
mailing list