Vassilis K ha scritto:
> Dear Doriano,
>
> I remember from the last time that you where a kind of old printers
> expert !
>
> I printed all the characters from 33 to 255 and have found all the greek
> letters somewhere between 128-180 and 224-234.
>
> The greek letters are in order from 128 "Α" to 151 "Ω" . The capitals
> are 100% in order. The small letters are in order (from 152 "α" up to
> "σ" then they go to "ς" and then "τ", "υ", "φ", "χ", "ψ" and "ω" is 50
> chars further ! as well as the letters with tonos "ά", "έ", etc.
>
> Shall I make my-shelf a routine for greek printing out of these?
>
>   
You are lucky! I am happy for you.

As I said, may be that there is an already-made way to do the conversion 
- this implies that the characters in the printer are arranged in a 
standard way, and named something like CP-850, CP-851 or alike. You 
should check the manual, if you have it. By that way, if that CP-xxxx 
maps well to some ISO-8859-yyy, then there is some way to do the 
conversion; but I don't know how to do it from gambas - perhaps it has a 
function to make arbitrarily charset conversions, but this has also to 
do with the locales installed in your computer. I suppose your current 
locale, if not UTF-8, is ok, but it may differ from the charset of the 
printer.

Making an own routine to make the conversion is straightforward, even if 
a little boring... I would make a quick check for conversion, and then 
write an easy conversion routine.

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to