Problems to show russian words

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Problems to show russian words

Post by Juan Carlos »

I want show a russian word using a cirilic font, but the code only show me strange letters, but if I write the word in spanish or english it is showed properly and doing the same with a graphic design program, the word shows it well, I tryed to SetDefaultEnconding but hasn't to ISO8559-5 the russian codes, any ideas?

Code: Select all

@FONT 1, "Fonts/Cirilico.ttf", 54, {Engine=#FONTENGINE_INBUILT}

UseFont(1)
SetFontColor(#RED)
SetFontStyle(#EDGE, #YELLOW, 2)
SetFontStyle(#ANTIALIAS)
CreateTextObject(1, "неудачник")
CreateTextObject(2, "PERDEDOR")

DisplayTextObject(1, #CENTER, 100)
DisplayTextObject(2, #CENTER, 300)

EscapeQuit(False)
Repeat
  WaitEvent
Forever
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Problems to show russian words

Post by plouf »

In what os ? Amigaos has some limitations couldnt fully recall
But os3 is even more limited i think must be the os native languange to support it ( ime if you have english/spanish os moat peobably is very difficult..)

Win/linux/android is off ourse "better" as they are native fully utf oses
Christos
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Problems to show russian words

Post by Flinx »

Juan Carlos wrote: Sun Jul 09, 2023 9:59 am I want show a russian word using a cirilic font, but the code only show me strange letters
This is normal. Cirilico is not a real Cyrillic font, it has the Cyrillic characters in the positions of the Latin letters. Use a real Cyrillic font, then it will work.
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: Problems to show russian words

Post by Juan Carlos »

plouf wrote: Sun Jul 09, 2023 10:05 am In what os ? Amigaos has some limitations couldnt fully recall
But os3 is even more limited i think must be the os native languange to support it ( ime if you have english/spanish os moat peobably is very difficult..)

Win/linux/android is off ourse "better" as they are native fully utf oses
At moment only I have tested on Windows, before to test on AmigaOS3.9 and MorphOS.
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: Problems to show russian words

Post by Juan Carlos »

Flinx wrote: Sun Jul 09, 2023 10:25 am
Juan Carlos wrote: Sun Jul 09, 2023 9:59 am I want show a russian word using a cirilic font, but the code only show me strange letters
This is normal. Cirilico is not a real Cyrillic font, it has the Cyrillic characters in the positions of the Latin letters. Use a real Cyrillic font, then it will work.
It is a real font, because the graphic design program shows the word well, the name is because I changed it to use with Hollywood.
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Problems to show russian words

Post by Flinx »

Juan Carlos wrote: Sun Jul 09, 2023 10:59 am It is a real font, because the graphic design program shows the word well
No, it isn't. Look at the table here (scroll down). At the position of the character D there is a Д. Therefore, in your word PERDEDOR your script shows no D characters, but Д and the other Cyrillic characters.
Test your script with a font such as Open Sans, which contains the Cyrillic characters in the correct positions.
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: Problems to show russian words

Post by Juan Carlos »

Flinx wrote: Sun Jul 09, 2023 11:15 am
Juan Carlos wrote: Sun Jul 09, 2023 10:59 am It is a real font, because the graphic design program shows the word well
No, it isn't. Look at the table here (scroll down). At the position of the character D there is a Д. Therefore, in your word PERDEDOR your script shows no D characters, but Д and the other Cyrillic characters.
Test your script with a font such as Open Sans, which contains the Cyrillic characters in the correct positions.
Thank you for your help, I'll test with the Open Sans font.
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: Problems to show russian words

Post by Juan Carlos »

Flinx wrote: Sun Jul 09, 2023 11:15 am
Juan Carlos wrote: Sun Jul 09, 2023 10:59 am It is a real font, because the graphic design program shows the word well
No, it isn't. Look at the table here (scroll down). At the position of the character D there is a Д. Therefore, in your word PERDEDOR your script shows no D characters, but Д and the other Cyrillic characters.
Test your script with a font such as Open Sans, which contains the Cyrillic characters in the correct positions.
Thank you so much, I tested this Open Sans font and it is a great discover to resolve problems with other languages, now it shows the russian words perfectly, even is possible show Polish words too peferctly. Thank you.
Post Reply