comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » non-English language
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
non-English language [message #83435] Thu, 07 March 2013 03:44 Go to next message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
Hello everyone!

I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.

Thank you,
Katya
Re: non-English language [message #83480 is a reply to message #83435] Fri, 08 March 2013 02:27 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Friday, March 8, 2013 11:39:37 AM UTC+2, Mats Löfdahl wrote:
> Den fredagen den 8:e mars 2013 kl. 08:54:50 UTC+1 skrev Katya:
>
>> On Thursday, March 7, 2013 11:30:26 PM UTC+2, Mats Löfdahl wrote:
>
>>
>
>>> Maybe latexify would be useful for what you are trying to do. The following link is to a tutorial where they demonstrate making IDL plots with latex math expressions. I have not tried this myself so I don't know if you could produce Cyrillic text with it but then again maybe you can.
>
>>
>
>>> http://slugidl.pbworks.com/w/page/37657460/latexify%20tutori al
>
>>
>
>> Guys, I'm happy to share with you good news -- the problem is solved! The latexify advice works. I modified slightly the latexify(again had problems with cyrillic in LaTeX :D) and now I can eventually print Russian text. Mats, you saved me from writing boring translator code and more importanltly I can use device font which I usually prefer. I love this group!
>
>
>
> Excellent! Thanks for the feedback, now I might actually try latexify myself at some point. :o)

I find it very useful (not only for the language issue), you just will need to make few chnges to define nice appearance on a page, possibility to add text and so on.

Best,
Katya
Re: non-English language [message #83481 is a reply to message #83435] Fri, 08 March 2013 01:39 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den fredagen den 8:e mars 2013 kl. 08:54:50 UTC+1 skrev Katya:
> On Thursday, March 7, 2013 11:30:26 PM UTC+2, Mats Löfdahl wrote:
>
>> Maybe latexify would be useful for what you are trying to do. The following link is to a tutorial where they demonstrate making IDL plots with latex math expressions. I have not tried this myself so I don't know if you could produce Cyrillic text with it but then again maybe you can.
>
>> http://slugidl.pbworks.com/w/page/37657460/latexify%20tutori al
>
> Guys, I'm happy to share with you good news -- the problem is solved! The latexify advice works. I modified slightly the latexify(again had problems with cyrillic in LaTeX :D) and now I can eventually print Russian text. Mats, you saved me from writing boring translator code and more importanltly I can use device font which I usually prefer. I love this group!

Excellent! Thanks for the feedback, now I might actually try latexify myself at some point. :o)
Re: non-English language [message #83482 is a reply to message #83435] Thu, 07 March 2013 23:54 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Thursday, March 7, 2013 11:30:26 PM UTC+2, Mats Löfdahl wrote:
> Den torsdagen den 7:e mars 2013 kl. 20:59:35 UTC+1 skrev Katya:
>
>> On Thursday, March 7, 2013 1:44:08 PM UTC+2, Katya wrote:
>
>>
>
>>> Hello everyone!
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Thank you,
>
>>
>
>>>
>
>>
>
>>> Katya
>
>>
>
>>
>
>>
>
>> Nothing helps... i'm in despair. I wish I knew is it possible at all.
>
>
>
> Maybe latexify would be useful for what you are trying to do. The following link is to a tutorial where they demonstrate making IDL plots with latex math expressions. I have not tried this myself so I don't know if you could produce Cyrillic text with it but then again maybe you can.
>
>
>
> http://slugidl.pbworks.com/w/page/37657460/latexify%20tutori al

Guys, I'm happy to share with you good news -- the problem is solved! The latexify advice works. I modified slightly the latexify(again had problems with cyrillic in LaTeX :D) and now I can eventually print Russian text. Mats, you saved me from writing boring translator code and more importanltly I can use device font which I usually prefer. I love this group!

-Katya.
Re: non-English language [message #83498 is a reply to message #83435] Thu, 07 March 2013 14:59 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Friday, March 8, 2013 12:52:23 AM UTC+2, Katya wrote:
> On Friday, March 8, 2013 12:24:02 AM UTC+2, Coyote wrote:
>
>> On Thursday, March 7, 2013 3:10:43 PM UTC-7, Katya wrote:
>
>>
>
>>> Hi Chris, "showfont, 16, 'Russian'" shows me a table with Russian letters and when I'm trying to use this font for postscript output it does print Russian letters but in some chaotic meaningless way... =( David posted a link above about Cyrillic encoudings, maybe this is the case. Also, I've noticed that Russian symbols are two-bytes, for exapmle,
>
>>
>
>>>
>
>>
>
>>> print, byte('щ')
>
>>
>
>>>
>
>>
>
>>> 209 137
>
>>
>
>>>
>
>>
>
>>> so, it seems that IDL looks for a symbol in ASCII table according to the first byte. But I don't really inderstand what this means :D. I've just noticed that syboles with the same first byte are printed as the same unreadable symbol a-la 'Ñ'.
>
>>
>
>>
>
>>
>
>> I think the UNICODE method could actually work, although it seems enormously labor intensive. If you had a font with UNICODE Cyrillic letters (and I think it is fairly easy to find one), you could probably write a "translator function" that could convert your letters to the proper Unicode values, which *ought* to work in PostScript in both direct graphics and object graphics.
>
>>
>
>>
>
>>
>
>> Maybe this is not so hard. A table of letters and a table of values, wrapped in the appropriate way so IDL will understand it is UNICODE.
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>
>
> David, I've begun to do the following: I can find out codes of different Russial symbols when use the "16" font and then change input sequence of letters to the correct codes. Perhaps this is what you are talking about:-) However, it is going to be vector fonts and I can't say I'm happy about this. Of course I'm not happy even more about writing "translation function", but it looks like I don't have another choice.
>
> Thanks to all for trying to help!!
>
>
>
> -Katya

I feel like a pervert doing this.
Re: non-English language [message #83499 is a reply to message #83435] Thu, 07 March 2013 14:52 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Friday, March 8, 2013 12:24:02 AM UTC+2, Coyote wrote:
> On Thursday, March 7, 2013 3:10:43 PM UTC-7, Katya wrote:
>
>> Hi Chris, "showfont, 16, 'Russian'" shows me a table with Russian letters and when I'm trying to use this font for postscript output it does print Russian letters but in some chaotic meaningless way... =( David posted a link above about Cyrillic encoudings, maybe this is the case. Also, I've noticed that Russian symbols are two-bytes, for exapmle,
>
>>
>
>> print, byte('щ')
>
>>
>
>> 209 137
>
>>
>
>> so, it seems that IDL looks for a symbol in ASCII table according to the first byte. But I don't really inderstand what this means :D. I've just noticed that syboles with the same first byte are printed as the same unreadable symbol a-la 'Ñ'.
>
>
>
> I think the UNICODE method could actually work, although it seems enormously labor intensive. If you had a font with UNICODE Cyrillic letters (and I think it is fairly easy to find one), you could probably write a "translator function" that could convert your letters to the proper Unicode values, which *ought* to work in PostScript in both direct graphics and object graphics.
>
>
>
> Maybe this is not so hard. A table of letters and a table of values, wrapped in the appropriate way so IDL will understand it is UNICODE.
>
>
>
> Cheers,
>
>
>
> David

David, I've begun to do the following: I can find out codes of different Russial symbols when use the "16" font and then change input sequence of letters to the correct codes. Perhaps this is what you are talking about:-) However, it is going to be vector fonts and I can't say I'm happy about this. Of course I'm not happy even more about writing "translation function", but it looks like I don't have another choice.
Thanks to all for trying to help!!

-Katya
Re: non-English language [message #83503 is a reply to message #83435] Thu, 07 March 2013 14:24 Go to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
On Thursday, March 7, 2013 3:10:43 PM UTC-7, Katya wrote:
> Hi Chris, "showfont, 16, 'Russian'" shows me a table with Russian letters and when I'm trying to use this font for postscript output it does print Russian letters but in some chaotic meaningless way... =( David posted a link above about Cyrillic encoudings, maybe this is the case. Also, I've noticed that Russian symbols are two-bytes, for exapmle,
>
> print, byte('щ')
>
> 209 137
>
> so, it seems that IDL looks for a symbol in ASCII table according to the first byte. But I don't really inderstand what this means :D. I've just noticed that syboles with the same first byte are printed as the same unreadable symbol a-la 'Ñ'.

I think the UNICODE method could actually work, although it seems enormously labor intensive. If you had a font with UNICODE Cyrillic letters (and I think it is fairly easy to find one), you could probably write a "translator function" that could convert your letters to the proper Unicode values, which *ought* to work in PostScript in both direct graphics and object graphics.

Maybe this is not so hard. A table of letters and a table of values, wrapped in the appropriate way so IDL will understand it is UNICODE.

Cheers,

David
Re: non-English language [message #83505 is a reply to message #83435] Thu, 07 March 2013 14:10 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Thursday, March 7, 2013 11:26:11 PM UTC+2, Chris Torrence wrote:
> On Thursday, March 7, 2013 12:59:35 PM UTC-7, Katya wrote:
>
>> On Thursday, March 7, 2013 1:44:08 PM UTC+2, Katya wrote:
>
>>
>
>>> Hello everyone!
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Thank you,
>
>>
>
>>>
>
>>
>
>>> Katya
>
>>
>
>>
>
>>
>
>> Nothing helps... i'm in despair. I wish I knew is it possible at all.
>
>
>
> Hi Katya,
>
> What exactly happens when you try the following command?
>
> showfont, 16, 'Russian'
>
> -Chris

Hi Chris, "showfont, 16, 'Russian'" shows me a table with Russian letters and when I'm trying to use this font for postscript output it does print Russian letters but in some chaotic meaningless way... =( David posted a link above about Cyrillic encoudings, maybe this is the case. Also, I've noticed that Russian symbols are two-bytes, for exapmle,
print, byte('щ')
209 137
so, it seems that IDL looks for a symbol in ASCII table according to the first byte. But I don't really inderstand what this means :D. I've just noticed that syboles with the same first byte are printed as the same unreadable symbol a-la 'Ñ'.
Re: non-English language [message #83506 is a reply to message #83435] Thu, 07 March 2013 14:03 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
This works for me:

IDL> x=dindgen(100)/10.0d
IDL> y=x^2
IDL> plot, x, y, title='!16 This is the title',charsize=3.0

The title of the above is definitely in Cyrillic characters. The mapping
of character->meaning is undoubtedly wrong, but at least you have access
to the character set.

cheers,

paulv

p.s. I'm amazed it worked, actually. I would've thought IDL would have
switched to Hershey font #1.

On 03/07/13 14:59, Katya wrote:
> On Thursday, March 7, 2013 1:44:08 PM UTC+2, Katya wrote:
>> Hello everyone!
>>
>>
>>
>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>>
>>
>>
>> Thank you,
>>
>> Katya
>
> Nothing helps... i'm in despair. I wish I knew is it possible at all.
Re: non-English language [message #83508 is a reply to message #83435] Thu, 07 March 2013 13:30 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den torsdagen den 7:e mars 2013 kl. 20:59:35 UTC+1 skrev Katya:
> On Thursday, March 7, 2013 1:44:08 PM UTC+2, Katya wrote:
>
>> Hello everyone!
>
>>
>
>>
>
>>
>
>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>
>
>>
>
>> Thank you,
>
>>
>
>> Katya
>
>
>
> Nothing helps... i'm in despair. I wish I knew is it possible at all.

Maybe latexify would be useful for what you are trying to do. The following link is to a tutorial where they demonstrate making IDL plots with latex math expressions. I have not tried this myself so I don't know if you could produce Cyrillic text with it but then again maybe you can.

http://slugidl.pbworks.com/w/page/37657460/latexify%20tutori al
Re: non-English language [message #83509 is a reply to message #83435] Thu, 07 March 2013 13:26 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, March 7, 2013 12:59:35 PM UTC-7, Katya wrote:
> On Thursday, March 7, 2013 1:44:08 PM UTC+2, Katya wrote:
>
>> Hello everyone!
>
>>
>
>>
>
>>
>
>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>
>
>>
>
>> Thank you,
>
>>
>
>> Katya
>
>
>
> Nothing helps... i'm in despair. I wish I knew is it possible at all.

Hi Katya,
What exactly happens when you try the following command?
showfont, 16, 'Russian'
-Chris
Re: non-English language [message #83511 is a reply to message #83435] Thu, 07 March 2013 11:59 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Thursday, March 7, 2013 1:44:08 PM UTC+2, Katya wrote:
> Hello everyone!
>
>
>
> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>
>
> Thank you,
>
> Katya

Nothing helps... i'm in despair. I wish I knew is it possible at all.
Re: non-English language [message #83513 is a reply to message #83435] Thu, 07 March 2013 09:51 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Thursday, March 7, 2013 7:50:26 PM UTC+2, Katya wrote:
> On Thursday, March 7, 2013 7:33:09 PM UTC+2, fawltyl...@gmail.com wrote:
>
>> On Thursday, March 7, 2013 12:44:08 PM UTC+1, Katya wrote:
>
>>
>
>>> Hello everyone!
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Thank you,
>
>>
>
>>>
>
>>
>
>>> Katya
>
>>
>
>>
>
>>
>
>> Have you tried font 16?
>
>>
>
>>
>
>>
>
>> xyouts, 50,300, /dev, '!16abcdefghijklmnopqrstuvwxyz', size=3
>
>>
>
>>
>
>>
>
>> showfont, 16, 'Russian'
>
>>
>
>>
>
>>
>
>> regards,
>
>>
>
>> Lajos
>
>
>
> Yes, I tried, it doesn't work either :-( Still, thank you! I'm proceeding to work on this issue.

this was for Lajos =)
Re: non-English language [message #83515 is a reply to message #83435] Thu, 07 March 2013 09:50 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Thursday, March 7, 2013 7:33:09 PM UTC+2, fawltyl...@gmail.com wrote:
> On Thursday, March 7, 2013 12:44:08 PM UTC+1, Katya wrote:
>
>> Hello everyone!
>
>>
>
>>
>
>>
>
>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>
>
>>
>
>> Thank you,
>
>>
>
>> Katya
>
>
>
> Have you tried font 16?
>
>
>
> xyouts, 50,300, /dev, '!16abcdefghijklmnopqrstuvwxyz', size=3
>
>
>
> showfont, 16, 'Russian'
>
>
>
> regards,
>
> Lajos

Yes, I tried, it doesn't work either :-( Still, thank you! I'm proceeding to work on this issue.
Re: non-English language [message #83516 is a reply to message #83435] Thu, 07 March 2013 09:39 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris Torrence writes:

> Or, if you have a font which contains the Cyrillic characters in their ASCII locations, then you can just use ASCII characters and change the font, like this:
>
> p=PLOT(y, TITLE='ABCDEFG', FONT_NAME='Cyrillic')
>
> (You will need to determine the correct font name.)

Humm. I hope it is that easy. This page suggests maybe it's not:

http://winrus.com/fonts_e.htm

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: non-English language [message #83517 is a reply to message #83435] Thu, 07 March 2013 09:33 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Thursday, March 7, 2013 12:44:08 PM UTC+1, Katya wrote:
> Hello everyone!
>
>
>
> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>
>
> Thank you,
>
> Katya

Have you tried font 16?

xyouts, 50,300, /dev, '!16abcdefghijklmnopqrstuvwxyz', size=3

showfont, 16, 'Russian'

regards,
Lajos
Re: non-English language [message #83518 is a reply to message #83435] Thu, 07 March 2013 09:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris Torrence writes:

> If you are using new graphics, you can just use Unicode characters directly in your text, like this:
>
> y = RANDOMU(seed,100)
> p=PLOT(y, TITLE='$\U(0410,0411,0412)$')
> t=TEXT(0.1,0.95, '$\U(0413,0414,0415,0416)$')

Yeah, but God only knows where you can find a Cyrillic to Unicode
dictionary!

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: non-English language [message #83519 is a reply to message #83435] Thu, 07 March 2013 08:59 Go to previous message
Katerina Yakimenko is currently offline  Katerina Yakimenko
Messages: 15
Registered: February 2013
Junior Member
On Thursday, March 7, 2013 6:27:15 PM UTC+2, Chris Torrence wrote:
> On Thursday, March 7, 2013 4:44:08 AM UTC-7, Katya wrote:
>
>> Hello everyone!
>
>>
>
>>
>
>>
>
>> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>>
>
>>
>
>>
>
>> Thank you,
>
>>
>
>> Katya
>
>
>
> Hi Katya,
>
>
>
> If you are using new graphics, you can just use Unicode characters directly in your text, like this:
>
>
>
> y = RANDOMU(seed,100)
>
> p=PLOT(y, TITLE='$\U(0410,0411,0412)$')
>
> t=TEXT(0.1,0.95, '$\U(0413,0414,0415,0416)$')
>
>
>
> Or, if you have a font which contains the Cyrillic characters in their ASCII locations, then you can just use ASCII characters and change the font, like this:
>
>
>
> p=PLOT(y, TITLE='ABCDEFG', FONT_NAME='Cyrillic')
>
>
>
> (You will need to determine the correct font name.)
>
>
>
> Good luck!
>
>
>
> -Chris
>
> ExelisVIS

Hello, Chris!

Thank you for your reply. However, I use old direct graphics and probably when I will be able to affod new IDL, I won't need Russian language.

-Katya.
Re: non-English language [message #83520 is a reply to message #83435] Thu, 07 March 2013 08:27 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, March 7, 2013 4:44:08 AM UTC-7, Katya wrote:
> Hello everyone!
>
>
>
> I need to annotate plots in my Russian language but I can't figure out how to make it properly. I would appreciate any advice or suggestion.
>
>
>
> Thank you,
>
> Katya

Hi Katya,

If you are using new graphics, you can just use Unicode characters directly in your text, like this:

y = RANDOMU(seed,100)
p=PLOT(y, TITLE='$\U(0410,0411,0412)$')
t=TEXT(0.1,0.95, '$\U(0413,0414,0415,0416)$')

Or, if you have a font which contains the Cyrillic characters in their ASCII locations, then you can just use ASCII characters and change the font, like this:

p=PLOT(y, TITLE='ABCDEFG', FONT_NAME='Cyrillic')

(You will need to determine the correct font name.)

Good luck!

-Chris
ExelisVIS
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: image-convolution
Next Topic: Re: image-convolution

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:12:22 PDT 2025

Total time taken to generate the page: 0.00515 seconds