[Gambas-user] How to print Greek

Doriano Blengino doriano.blengino at ...1909...
Sat Feb 13 11:13:28 CET 2010


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."





More information about the User mailing list