Hi,

Le 2015-05-30 18:42, gi1...@gmail.com a écrit :
> On Sat, May 30, 2015 at 10:32:23AM -0400, David Morris wrote:
> 
>> Does anyone have an overview of the changes needed to complete utf8
>> support?  I've been considering a new software project and I might be
>> interested finishing it up, or perhaps even taking over all active
>> development.  If I do either, I'd also migrate the code to a different
>> source control platform.
> 
> Jehan's the guy who wrote an alpha UTF-8 branch! I've tried it -- it
> works, but crashes often. (And sometimes the display is borked.)

I don't know what you plan to do, if it is either write the UTF-8 
support from scratch or from my branch, but if it is from my branch, 
indeed it globally works, but has bugs. When I stopped working on it 
(because I was doing other things and couldn't make the time for it), 
basically I was debugging why it crashed. And this could be the first 
thing to do.

Also just to be clear, even though the branch would be called "utf8" for 
simplification, this is of course not a "UTF-8-only" branch but a 
"any-locale" branch. This is meant to be locale-agnostic.

> I don't know the specifics about displaying UTF-8 though. Hopefully
> Jehan will write back soon with a good clear outline that will sell you
> on it. I'd love it if you finished the UTF-8 support and or took over
> development.

I can't really write down details because I don't really remember them. 
But specifics about displaying UTF-8 (or any encoding) is quite easy: 
you check the current user locale and you consider that whatever output 
comes from your shell uses the locale-set encoding (this is of course 
not necessarily true because some program would not take locales into 
account, but you can't do anything for these anyway so…). So you display 
the right character from the user-chosen fonts after decoding the output 
accordingly.
Of course there is the problem of fonts which don't have all the Unicode 
characters. So for this, you may mix characters of various fonts on the 
screen when necessary (especially if you mix languages).

The basics are simple. What is difficult is when you come to details, as 
always. I know I was spending a lot of time researching the web for 
documentation about fonts, terminal emulators, unicode and encoding in a 
general way… Of course nowadays it would likely be easier (a lot more 
documentation about everything everywhere! Also font management has 
improved a lot on Linux, and I guess many things that we used to do more 
or less manually could be done more automatically nowadays).

I'm sorry I can't be more accurate than this. This has been years and I 
really don't remember all the details. I only remember that I used to 
have a notebook filled with hand-written information about all what I 
was finding on the web, and trying to decide the best architecture, code 
logics, and such.
No idea where this notebook is now, though! :-D

Jehan

> Best,
> 
> Gautam

-- 
Que la Sainte Marmotte soit avec moi!
Pour me contacter:
IM: je...@zemarmot.net
email: je...@zemarmot.net
http://girinstud.io

------------------------------------------------------------------------------
_______________________________________________
Materm-devel mailing list
Materm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/materm-devel
mrxvt home page: http://materm.sourceforge.net

Reply via email to