BBC BASIC for Windows
Programming >> BBC BASIC language >> Printer Turkish Character Problem
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1310971442

Printer Turkish Character Problem
Post by ae34tr on Jul 18th, 2011, 06:44am

I post my problem display Turkish characters as the printer does not Turkish

structured and there is no problem in other programs set up the printer with only the BBC Basic program, this error is
I'll be glad to help if you

Ahmet Eksioglu
ae34tr@hotmail.com
Re: Printer Turkish Character Problem
Post by admin on Jul 18th, 2011, 08:42am

on Jul 18th, 2011, 06:44am, ae34tr wrote:
I post my problem display Turkish characters as the printer does not Turkish

Check out the supplied example program UNICODEP.BBC (in the EXAMPLES\GENERAL folder). That shows how to print Unicode text to your printer using BBC BASIC.

Also note the supplied add-in utility Paste Unicode which is handy for pasting foreign-language characters into your program. For example, you could try replacing the Greek or Russian text with some Turkish text.

Richard.
Re: Printer Turkish Character Problem
Post by admin on Jul 18th, 2011, 2:52pm

Here's an example of printing Turkish text (copy-and-paste it into BB4W):

Code:
      VDU 23,22,720;480;8,16,16,128+8 : REM Select UTF-8 mode
      
      *PRINTERFONT Times New Roman,24
      *MARGINS 10,10,10,10
      
      VDU 2,21 : REM Enable printer, disable screen
      
      turkish$ = "Başlılara baş eğdirmiş, dizlilere diz çöktürmüş."
      
      PRINT turkish$
      
      VDU 12,6,3 : REM Eject sheet, enable screen, disable printer 

Richard.