Will supported Cyrillic ?

Post your requests and ideas on the future development of mikroC PRO for AVR.
Post Reply
Author
Message
RomanT
Posts: 185
Joined: 15 Aug 2012 04:37
Location: Russia, Perm
Contact:

Will supported Cyrillic ?

#1 Post by RomanT » 30 Aug 2012 12:05

Will supported Cyrillic mikroC PRO for AVR ?
or so and will be tormented by a graphic representation of Cyrillic letters?

Code: Select all

  TLabel                 Label5;
char Label5_Caption[12] = "Калькулятор";
log Build:
warning: Illegal multi-byte character sequence "ор"" in quotation
0 304 char Label5_Caption[12] = "Калькул
sic, this is won - understands only big Cyrillic letters

Code: Select all

TLabel                 Label5;
char Label5_Caption[12] = "КАЛЬКУЛЯТОР";
but after flashing does not display ...

may need a place to switch to encoding?
type - directive #pragma rl+
HW: µM Plus for STM32, µM for ATMEGA, µM for XMEGA, MINI-AT, µProgSTM32, ConnectEVE.
SW: mikroC AVR, ARM, VisualTFT.
Clicks: WiFi+, GSM, GSM2, Bluetooth, ADC, DAC, RTC, IrThermo,
FM, OSD, GPS-L10, GYRO, Altitude, Compass, nRF C, USB adapter, SpeakUp.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Will supported Cyrillic ?

#2 Post by filip » 31 Aug 2012 14:14

Hi,

Please, see this post :
http://www.mikroe.com/forum/viewtopic.p ... 43#p182947

Regards,
Filip.

RomanT
Posts: 185
Joined: 15 Aug 2012 04:37
Location: Russia, Perm
Contact:

Re: Will supported Cyrillic ?

#3 Post by RomanT » 03 Sep 2012 11:08

I use TFT library with mikroMedia for ATmega, type:

Code: Select all

TFT_16bit_Write_Text("Привет", 30, 80);
I also write as ?

Code: Select all

"ц\xF6"
the words to write something? so?

Code: Select all

TFT_16bit_Write_Text("\xCF\xF0\xE8\xE2\xE5\xF2", 30, 80);
in this way does not work - empty field
HW: µM Plus for STM32, µM for ATMEGA, µM for XMEGA, MINI-AT, µProgSTM32, ConnectEVE.
SW: mikroC AVR, ARM, VisualTFT.
Clicks: WiFi+, GSM, GSM2, Bluetooth, ADC, DAC, RTC, IrThermo,
FM, OSD, GPS-L10, GYRO, Altitude, Compass, nRF C, USB adapter, SpeakUp.

RomanT
Posts: 185
Joined: 15 Aug 2012 04:37
Location: Russia, Perm
Contact:

Re: Will supported Cyrillic ?

#4 Post by RomanT » 04 Sep 2012 18:36

problem solved

video: http://youtu.be/sehxhps7cEw
Attachments
P8310071s.JPG
P8310071s.JPG (47.97 KiB) Viewed 5713 times
HW: µM Plus for STM32, µM for ATMEGA, µM for XMEGA, MINI-AT, µProgSTM32, ConnectEVE.
SW: mikroC AVR, ARM, VisualTFT.
Clicks: WiFi+, GSM, GSM2, Bluetooth, ADC, DAC, RTC, IrThermo,
FM, OSD, GPS-L10, GYRO, Altitude, Compass, nRF C, USB adapter, SpeakUp.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Will supported Cyrillic ?

#5 Post by filip » 05 Sep 2012 08:34

Hi,

Congratulations on this nice project. :)
Please, could you share it on the LibStock also ?

Regards,
Filip.

RomanT
Posts: 185
Joined: 15 Aug 2012 04:37
Location: Russia, Perm
Contact:

Re: Will supported Cyrillic ?

#6 Post by RomanT » 05 Sep 2012 09:00

I took this project "MP3" of from the attached DVD drive ...
and slightly upgraded
1. in "Visual TFT" chose the font "Lucida Console KOI8", with the 32 (20) to end of the code 255 (FF), for the internal memory
2. copied the array of font in this project mikroC
3. The project used the code:

Code: Select all

 TFT_16bit_Set_Font(&Lucida_Console_KOI89x14_Bold, CL_RED_16bit, FO_HORIZONTAL_16bit);
  TFT_16bit_Write_Text("\xCF\xF0\xE8\xE2\xE5\xF2", 19, 25);
code conversion: http://en.wikipedia.org/wiki/KOI8-R

array of font (sizes: 8 to 16, type: Regular and Bold):
Attachments
resources-cyrillic.zip
(41.91 KiB) Downloaded 224 times
HW: µM Plus for STM32, µM for ATMEGA, µM for XMEGA, MINI-AT, µProgSTM32, ConnectEVE.
SW: mikroC AVR, ARM, VisualTFT.
Clicks: WiFi+, GSM, GSM2, Bluetooth, ADC, DAC, RTC, IrThermo,
FM, OSD, GPS-L10, GYRO, Altitude, Compass, nRF C, USB adapter, SpeakUp.

RomanT
Posts: 185
Joined: 15 Aug 2012 04:37
Location: Russia, Perm
Contact:

Re: Will supported Cyrillic ?

#7 Post by RomanT » 12 Sep 2012 12:28

if I may, please
1. mikromedia_for_ATMega
2. mikromedia_for_XMEGA

picture (.RES-file) and music (.mp3-file) from SD-card, Cyrillic fonts locally (in file resources )
HW: µM Plus for STM32, µM for ATMEGA, µM for XMEGA, MINI-AT, µProgSTM32, ConnectEVE.
SW: mikroC AVR, ARM, VisualTFT.
Clicks: WiFi+, GSM, GSM2, Bluetooth, ADC, DAC, RTC, IrThermo,
FM, OSD, GPS-L10, GYRO, Altitude, Compass, nRF C, USB adapter, SpeakUp.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Will supported Cyrillic ?

#8 Post by filip » 13 Sep 2012 08:22

Hi,

Thank you for your contribution, I'm sure many of our users will find it useful. :)

Regards,
Filip.

RomanT
Posts: 185
Joined: 15 Aug 2012 04:37
Location: Russia, Perm
Contact:

Re: Will supported Cyrillic ?

#9 Post by RomanT » 14 Sep 2012 07:09

I actually did and did not the make ...
Generate a visualTFT image and fonts, and in the compiler insert source code from the sample MP3 ...
HW: µM Plus for STM32, µM for ATMEGA, µM for XMEGA, MINI-AT, µProgSTM32, ConnectEVE.
SW: mikroC AVR, ARM, VisualTFT.
Clicks: WiFi+, GSM, GSM2, Bluetooth, ADC, DAC, RTC, IrThermo,
FM, OSD, GPS-L10, GYRO, Altitude, Compass, nRF C, USB adapter, SpeakUp.

Post Reply

Return to “mikroC PRO for AVR Wish List”