qdmr icon indicating copy to clipboard operation
qdmr copied to clipboard

Extend charset for Anytone

Open majkrzak opened this issue 2 years ago • 2 comments

Intro

While experimenting with APRS and AT878UVII+ I've accidentally find out that it supports much more than just ASCII characters. Further play with their CPS and scrolling through the font file, made me believe that it is the GBK encoding.

Details

GBK encodes ASCII characters on one byte, and non ASCI ones on two bytes. This could explain why some 16 characters fields are 32 bytes padded.

QT supports GBK through QTextCodec. I've made my implementation on top of it and it seem to work as expected.

TL:DR

This PR should give us possibility to use fancy characters like: "∮" or "№ " (see). It will also let something like naming "hotspot" as "ホットスポット" :blush: IMG_20230223_170734.jpg

TODO:

  • [x] Implement GBK encoding/decoding
  • [ ] Implement GBK RadioLimit
  • [x] Use GBK in channel name as POC
  • [ ] Use GBK where it is supposed to be used
  • [ ] Rewrite encoding/decoding (cleanup explicit for loop)
  • [x] Fix yaml saving issue (qdmr fails to save the utf characters)
  • [ ] Prepare graphic with Anytone font

majkrzak avatar Feb 23 '23 16:02 majkrzak