🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #260696

Re: [Dialog] Unicode capabilities

#260696
From: Michael Bäuerle
Date: Thu, 14 Jul 2016 09:42
83 lines
4948 bytes
tlvp wrote:
> On Wed, 13 Jul 2016 12:10:59 +0200 (CEST), Michael Bäuerle wrote:
> > tlvp wrote:
> > > 
> > > ... Anything as good as the
> > > 
> > > : User-Agent: flnews/0.14pre43 (for NetBSD)
> > > 
> > > that you're using, but for MS Windows instead? 
> > 
> > Mozilla Thunderbird has good standard compliance and good display
> > capabilities.
> > 
> > Many Unix (including X11) newsreaders can run on Windows with Cygwin:
> > <https://en.wikipedia.org/wiki/Cygwin>
> > I have read articles that people run slrn and tin this way.
> > Dennis Preiser has tested flnews on Cygwin some months ago:
> > <http://d--p.de/tmp/2016-01-07_flnews_cyg-2.png>
> > 
> > But they are all no Dialog replacements (I never used it, but the
> > Dialog users say so).
> 
> Thanks for that, especially your suggestion to run finenews on Windows with
> Cygwin. I may have to try that, if using the dejavu fonts (as David Sparks
> had suggested) doesn't pan out.

Notes for DejaVu:

The changelog [1] lists that a glyph for U+1E9E was added to version
2.28 in 2008, but only for Sans and Serif (not Mono that is normally
used for USENET article bodies):

My NetBSD system uses version 2.35:
| 
| # pkg_info | grep DejaVu
| dejavu-ttf-2.35     DejaVu family of TrueType fonts

and is (without glyph substitution) not able to display U+1E9E with
DejaVu Sans Mono.


=======================


Notes for flnews:

1)
Internally flnews supports Unicode in the sense that it can verify the
encoding and apply normalization (currently NFC according to Unicode
9.0). For incoming data UTF-8 and UTF-16BE (UTF-7 technically is Base64
encoded UTF-16BE) transformation formats are supported (failing to
correctly decode UTF-16 transformation format seems to be the reason why
Dialog can't post valid UTF-8 for codepoints beyond the BMP). Converting
ISO 8859 to Unicode is also implemented. This means it is possible to
quote such content correctly even it FLTK is not able to display it (see
below).

2)
To render text, flnews is using the FLTK toolkit. FLTK has different
backends for OSX, X11 and Windows with different capabilities. Glyph
substitution (rendering using mutliple fonts) is currently implemented
only for OSX and AFAIK for Windows too. Example screenshot from Dennis
(Tomato symbol U+1F345 rendered via FLTK's Cocoa backend on OSX):
<http://d--p.de/tmp/2016-07-08_flnews.png>
The official X11 backend of FLTK currently doesn't support glyph
substitution at all. There are patches for doing it internally (via Xft)
from Ian [2] and externally (via Pango) from Manolo [3]. I have used
the Pango patch to display the articles containing Fraktur characters on
NetBSD.

To get similar or better rendering as in Dialog on Windows, this means
that you should not use FLTK's unpatched X11 backend on top of Cygwin
(this is what Dennis has tested in the screenshot formerly quoted).
Instead FLTK should be configured to use the native Windows backend.
This constellation was AFAIK never tested and therefore I can't
guarantee that it will work. But if you nevertheless want to try,
I would be interested in the results.


_____________________
[1] <http://dejavu-fonts.org/wiki/Full_changelog>
[2] <http://www.fltk.org/str.php?L1903>
[3] <http://www.fltk.org/str.php?L3309>
Technical Details
Message-ID: <AABXh15wK74AABXd.A1.flnews@WStation5.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <nli1e8$hi6$1@news.mixmin.net> <AABXfqRQKo8AAEas.A1.flnews@WStation4.micha.freeshell.org> <nlmes8$oo3$2@news.albasani.net> <AABXf2MrD54AAAfO.A1.flnews@WStation5.stz-e.de> <nlobd6$eij$1@news.albasani.net> <AABXf8FmZmAAADMv.A1.flnews@WStation5.stz-e.de> <nlu497$e1t$1@justacineast.motzarella.org> <AABXg26LHmoAAA80.A1.flnews@WStation5.stz-e.de> <8rvhm2iwm3r5$.1rx0y710bzqpv$.dlg@40tude.net> <AABXhLSbLEAAABYb.A1.flnews@WStation5.stz-e.de> <1ldazkv3snk57.1esf7pd9mb399$.dlg@40tude.net> <AABXhhOzaT0AAAdg.A1.flnews@WStation5.stz-e.de> <159hdy6c7ud30.ayfl7s1oi3gc.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABXh15wK74AABXd.A1.flnews@WStation5.stz-e.de>
Subject: Re: [Dialog] Unicode capabilities
Date: Thu, 14 Jul 2016 11:42:08 +0200
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
References: <nli1e8$hi6$1@news.mixmin.net> <AABXfqRQKo8AAEas.A1.flnews@WStation4.micha.freeshell.org> <nlmes8$oo3$2@news.albasani.net> <AABXf2MrD54AAAfO.A1.flnews@WStation5.stz-e.de> <nlobd6$eij$1@news.albasani.net> <AABXf8FmZmAAADMv.A1.flnews@WStation5.stz-e.de> <nlu497$e1t$1@justacineast.motzarella.org> <AABXg26LHmoAAA80.A1.flnews@WStation5.stz-e.de> <8rvhm2iwm3r5$.1rx0y710bzqpv$.dlg@40tude.net> <AABXhLSbLEAAABYb.A1.flnews@WStation5.stz-e.de> <1ldazkv3snk57.1esf7pd9mb399$.dlg@40tude.net> <AABXhhOzaT0AAAdg.A1.flnews@WStation5.stz-e.de> <159hdy6c7ud30.ayfl7s1oi3gc.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Lines: 83
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net L7SFgJ1pwB23fr3HRqcqSQYh6JM8PPRU+jWaEpEHAgGRCrlkhf
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:nSB5x39iAdC/thVftBE3EOJIx2g= sha1:0l376LstOj2DSv8U6+TI/a4Fjrw=
Injection-Date: Thu, 14 Jul 2016 09:42:08 -0000
User-Agent: flnews/0.14pre44 (for NetBSD)
X-Received-Body-CRC: 508912453
X-Received-Bytes: 4803