05-27-2013, 04:44 PM | #16 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
It's an open source project, and the conversion from ISO-8859-1 to utf-8 is trivial.
The first 7-bits of code points are identical For high bit set, clear that bit and precede that byte with a 0x01 byte If memory serves - that is all it takes. |
05-28-2013, 01:19 PM | #17 |
Connoisseur
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
|
In fact it's so trivial I can do it by eye . No kidding, charset conversion errors are so frequent that you get used to interpret that numerical codes inside a square (or gibberish characters in the opposite direction).
So maybe I'll learn how to cross-compile, dig into the sources and try to fix it. Or maybe I'll just resort to the eye method. I don't have so much time for IRC these days, let alone IRC on a Kindle. Anyway, I thought these matters were handled by locale now. 'locale -a' only shows utf locales on my KT and there's is not locale-gen, but I wonder if generating the proper locale and setting the corresponding LANG environment variable would suffice. (this is now the topic of the thread ) |
Advert | |
|
05-30-2013, 03:43 PM | #18 | |
Guru
Posts: 919
Karma: 13928438
Join Date: Jan 2013
Location: Ely, Cambridgeshire, UK
Device: Kindle Oasis 3, Kindle Oasis 1
|
Quote:
localedef -i en_GB -f ISO-8859-1 en_GB.ISO-8859-1 |
|
05-30-2013, 05:19 PM | #19 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The "right place" will take a bit of research - - but there is a standard file tree for that information under glibc. |
|
06-02-2013, 01:47 PM | #20 |
Connoisseur
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
|
Thanks both for the hints. I managed to copy some source files from my Linux desktop to /usr/share/i18n but localedef can't write to its destination:
cannot open locale archive "/usr/lib/locale/locale-archive": Read-only file system The tricky part is that /usr/lib/locale is mounted: Code:
/dev/loop/6 on /usr/lib/locale type cramfs (ro,noatime,nodiratime) |
Advert | |
|
06-02-2013, 03:03 PM | #21 |
Junior Member
Posts: 9
Karma: 27860
Join Date: May 2013
Device: kindle keyboard 3g
|
version 0.3 beta snapshot
Hey guys, hate to be relevant to the topic since you're all having such fun, but here is a build snapshot that includes some requested features (such as /alias and /time_format). New binary attached, new man page embedded.
This is not a final release; it should be considered a "beta"; after some additional testing/tweaking I'll release a stable version later this year. One last note: whatever build chain twobob used didn't require libtinfo, but the version of ncurses I linked against here does. Also, I only tested this on my kindle (keyboard 3g); your mileage may vary. MAN: Spoiler:
|
06-07-2013, 07:11 AM | #22 |
Connoisseur
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
|
Thanks neutrak, that was fast. Unfortunately on the Touch there are some unresolved dependencies:
Code:
./accirc-0.3: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory |
06-07-2013, 06:47 PM | #23 |
Junior Member
Posts: 9
Karma: 27860
Join Date: May 2013
Device: kindle keyboard 3g
|
I attempted to build it statically-linked initially but was unsuccessful. I'll ask twobob what he did to compile it, since he did the initial kindle build (he hasn't been on IRC for like two weeks according to whowas). In the mean time, the libtinfo I used to link can be found in the ncurses package here https://www.mobileread.com/forums/att...7&d=1312879802
I've also attached the source code and the script I used to compile to this forum post. If anyone else wants to try compiling it or telling me some options to statically link post it here. |
06-08-2013, 09:10 AM | #24 |
Enthusiast
Posts: 44
Karma: 6550
Join Date: May 2013
Location: Bosnia & Herzegovina
Device: Kindle Paperwhite 1 WiFi
|
Another thing I would find useful personally are clickable http(s) links. One could open them in a browser such as skipstone, for instance, which overlays accirc/kterm just fine.
|
06-08-2013, 08:50 PM | #25 |
Junior Member
Posts: 9
Karma: 27860
Join Date: May 2013
Device: kindle keyboard 3g
|
Unfornately to my knowledge ncurses has no concept of "links"; that is up to your terminal (in this case kterm). It is impossible to make links "clickable" from within ncurses; ncurses is made on the assumption you're not using a mouse. I know that gnome-terminal does have this ability on desktop computers, so I'm sure it could be added to kterm, but I don't develop that so I'm not sure how easy it would be.
accirc could be given a concept of links, but it could not under any circumstances make them clickable; they'd have to be opened via a command (which is not planned at the moment). |
06-10-2013, 11:13 AM | #26 | |
Connoisseur
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
|
Quote:
The alias command makes it much more usable for me, you know, it's difficult to change some inveterate customs. |
|
06-10-2013, 03:38 PM | #27 |
Enthusiast
Posts: 44
Karma: 6550
Join Date: May 2013
Location: Bosnia & Herzegovina
Device: Kindle Paperwhite 1 WiFi
|
I was wondering how does the nano editor implement mouse support. I didnt run nano inside kterm though, but on a remote Linux server that I SSH'd into.
|
06-10-2013, 04:26 PM | #28 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
09-21-2013, 08:56 PM | #29 |
Junior Member
Posts: 9
Karma: 27860
Join Date: May 2013
Device: kindle keyboard 3g
|
accirc v0.4
version 0.4, everyone
Notable changes since 0.2 alias command time_format command hi and bye commands for PMs in a faux channel context ssl support via the sconnect command stability improvments / internal cleanup that you probably won't notice some other things I'm probably forgetting binaries are attached (thanks to NiLuJe for that). For some reason the forums won't let me upload a man page or html-converted man page, so that can be found in the tarball here: http://neutrak.kaycare.co.uk/code/ac...irc-0.4.tar.gz |
09-21-2013, 09:05 PM | #30 |
BLAM!
Posts: 13,494
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
To clarify the three sets of binaries:
-k3: Targets the CPU used by the K2/DX/3, will work on FW 2.x/3.x. (+ 4.x, although I'd recommend the -k5 one for a K4). -k5: Targets the CPU used by the K4/K5/PW, will work on FW 4.x/5.x Those are built the exact same way I build my usual stuff. The -all is a compromise built with my K3 toolchain, it targets the 'older' family of CPU (armv6), but with OpenSSL linked statically (since there's a switch from 0.9.8 to 1.0.0 somewhere in FW 5.0.x) in an attempt to make it run on everything we care about (FW 2.x/3.x/4.x/5.x) . Last edited by NiLuJe; 09-21-2013 at 09:48 PM. |
Tags |
irc, native |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
#kindle-dev THE IRC channel for Kindle development. JOIN US. (IRC ≈ CHAT CLIENT) | twobob | Kindle Developer's Corner | 56 | 01-17-2022 05:11 PM |
IRC chat on irc.freenode.net | Jaapjan | Lounge | 1 | 02-09-2018 02:05 PM |
IRC broke? | knc1 | Kindle Developer's Corner | 8 | 02-01-2013 05:11 PM |
IRC from the kindle | qlob | Kindle Developer's Corner | 17 | 12-24-2012 09:55 PM |