Re: [Freedos-devel] Codepages and printers

2007-10-09 Thread Ladislav Lacina
Ufff, I forgot important thing - the second line in KBT file specifies which
unicode table will be used for conversion in unicode mode. For most
westeuropian countries it will be CP850UNI.TBL for easteuropian CP852UNI.TBL
for cyrilic CP866UNI.TBL and so on...

- Original Message -
From: "Ladislav Lacina" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, October 09, 2007 9:00 PM
Subject: Re: [Freedos-devel] Codepages and printers


> >Meanwhile, I'm curious about one thing: it seems that you provide
> >keyboard layouts internally on your Blocek program, is it? How does it
> work?
>
> No, the keyboard layouts are defined in external files in \KEY_TBL\
> subdirectory. If you want to create f.e. portugal layout, you should draw
> some nice portugal flag and save it into GIF or PNG image. Then copy some
> existing .KBT file (like deutsch.ktb) into PORTUGAL.KTB
> Then change the first line - replace the deutsch.gif for portugal.gif and
> change Deutsch to Portugal
> Next few lines is table of case mappings: big form-small form
>
> Rest of the file is assignment of scan codes on keyboard to ASCII codes.
> Values increased by 1000 means key with pressed shift.
>
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-09 Thread Ladislav Lacina
>Meanwhile, I'm curious about one thing: it seems that you provide
>keyboard layouts internally on your Blocek program, is it? How does it
work?

No, the keyboard layouts are defined in external files in \KEY_TBL\
subdirectory. If you want to create f.e. portugal layout, you should draw
some nice portugal flag and save it into GIF or PNG image. Then copy some
existing .KBT file (like deutsch.ktb) into PORTUGAL.KTB
Then change the first line - replace the deutsch.gif for portugal.gif and
change Deutsch to Portugal
Next few lines is table of case mappings: big form-small form

Rest of the file is assignment of scan codes on keyboard to ASCII codes.
Values increased by 1000 means key with pressed shift.



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-09 Thread lyricalnanoha



On Tue, 9 Oct 2007, Aitor Santamaría wrote:


Hi,

2007/10/9, lyricalnanoha <[EMAIL PROTECTED]>:



I used to (prolly still do) have a tool that could, using raw CGA fonts,
output any codepage to an Epson-compatible printer using its graphics
mode...

... that's not very useful for printer.sys though :(


Source (and license compatibility) would be ok. We could have then

DEVICE=PRINTER.SYS PRN=(Epson,,1)

Aitor


Certainly.  Though the program would need to be rewritten anyway, it's in 
very sluggish and unoptimized QuickBasic (I didn't know C back then) ...


-uso.-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-08 Thread Aitor Santamaría
Hi,

2007/10/9, lyricalnanoha <[EMAIL PROTECTED]>:
>
>
> On Tue, 9 Oct 2007, Aitor Santamaría wrote:
>
> > Unfortunately, all the codepages (CPI/CPX files) that you have created
> > have an indicator inside them that they are for DISPLAY only (and not
> > for PRINTER). And that is because the way in which you insert a
> > codepage into a printer is different from the way you insert it into a
> > graphic adapter. For printers, you may have to embedd certain
> > commands, and the CPI/CPX files that you've created are most likely
> > not valid for printers (even if we had some printer-specific code).
> > Perhaps you can use program similar to yours to create
> > PRINTER-SPECIFIC (and not DISPLAY specific) CPI/CPX files.
> >
> > ANd whoever tries this, I would please ask to contribute it for the
> > FD-DISPLAY project, so that we have a FD-PRINTER.SYS too.
> >
> > Aitor
>
> I used to (prolly still do) have a tool that could, using raw CGA fonts,
> output any codepage to an Epson-compatible printer using its graphics
> mode...
>
> ... that's not very useful for printer.sys though :(
>
Source (and license compatibility) would be ok. We could have then

DEVICE=PRINTER.SYS PRN=(Epson,,1)

Aitor

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-08 Thread lyricalnanoha



On Tue, 9 Oct 2007, Aitor Santamaría wrote:


Unfortunately, all the codepages (CPI/CPX files) that you have created
have an indicator inside them that they are for DISPLAY only (and not
for PRINTER). And that is because the way in which you insert a
codepage into a printer is different from the way you insert it into a
graphic adapter. For printers, you may have to embedd certain
commands, and the CPI/CPX files that you've created are most likely
not valid for printers (even if we had some printer-specific code).
Perhaps you can use program similar to yours to create
PRINTER-SPECIFIC (and not DISPLAY specific) CPI/CPX files.

ANd whoever tries this, I would please ask to contribute it for the
FD-DISPLAY project, so that we have a FD-PRINTER.SYS too.

Aitor


I used to (prolly still do) have a tool that could, using raw CGA fonts, 
output any codepage to an Epson-compatible printer using its graphics 
mode...


... that's not very useful for printer.sys though :(

-uso.-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-08 Thread Aitor Santamaría
Hello Henrique,

2007/10/8, Henrique Peron <[EMAIL PROTECTED]>:
> Hi Bruce,
>
> today, on FreeDOS, we rely on codepages already encoded into printer's
> firmware.

The equivalent to the "BIOS codepages" for DISPLAY (the 437 in

DISPLAY CON=(EGA,437,1)

> For instance, if I happen to be russian and type a text in russian then
> there's no problem since I most likely have a russian printer which is
> able to select russian codepages.
>
> However, what happens if I'm brazilian and I want to print a russian
> text in my brazilian printer? There's no cp866 on its firmware.
>
> There are programs which are able to somehow "upload" a codepage into a
> printer's RAM. There are ESC/P commands for that. I've tested a

e.g. MS-PRINTER.SYS

> shareware program (for Windows) called DOSPRN which does exactly that.

The thing is that the program must be able to keep the codepage within
the printer, exactly what PRINTER.SYS does (it's not just a question
of uploading the codepage within the printer).

> It has several codepages in its library. All I have to do is to type a
> russian text under DOS, run DOSprn, select codepage 866 on it and send
> the text to the printer. It works perfectly.

When you SELECT, then the "driver" must just be noticed of that, and
change the codepage on demand. E.g. PRINTER.SYS.

> A solution like this under FreeDOS would be perfect because it would
> override printer firmware limitations which are generally based on
> geography. My Epson Stylus Color 740 inkjet printer certainly does not
> have eastern european codepages in its firmware; on the other hand, most
> likely the very same printer sold on the russian market does not have,
> let's say, maltese codepage 853 or baltic codepage 775.

The problem is that this involves two things:
- The code to be sent to the printer to perform the change. For
whoever wants to do this, please contact me, as can be easily
contributed to DISPLAY, and compile it into a FD-PRINTER.SYS
- The codepages themselves (CPI/CPX files) with the data.

> Another important point for this need is that I devised several
> codepages for FreeDOS to assist several languages never previously
> assisted by any DOS-like OS which, being my creation, are therefore
> available on no printer's firmware. The idea is to be able to "send"
> these codepages to a printer as well.

Unfortunately, all the codepages (CPI/CPX files) that you have created
have an indicator inside them that they are for DISPLAY only (and not
for PRINTER). And that is because the way in which you insert a
codepage into a printer is different from the way you insert it into a
graphic adapter. For printers, you may have to embedd certain
commands, and the CPI/CPX files that you've created are most likely
not valid for printers (even if we had some printer-specific code).
Perhaps you can use program similar to yours to create
PRINTER-SPECIFIC (and not DISPLAY specific) CPI/CPX files.

> I've read a lot about ESC/P and ESC/P2 commands to know that this could
> be accomplished on several printers; I know that there are some printers
> who doesn't apply to that but many FreeDOS users would already be assisted.

ANd whoever tries this, I would please ask to contribute it for the
FD-DISPLAY project, so that we have a FD-PRINTER.SYS too.

Aitor

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-08 Thread Henrique Peron
Hi Ladislav,

I don't know if you remember me but I helped Mateusz Viste with his 
Foxtype program, particularly on the creation of the characters. 
(There's been a long time a I don't speak with him; I guess his 
character database is much more comprehensive by now.)

Multilanguage printing, in your case, refers to unicode characters; that 
would also be great! :-)

Eric Auer is also interested on that; perhaps you two could coordinate a 
joint effort, what do you say?

Meanwhile, I'm curious about one thing: it seems that you provide 
keyboard layouts internally on your Blocek program, is it? How does it work?

We could continue on Blocek in private because it's off-topic in what 
concerns the original subject of this message. In case you want to, 
naturally.

Regards,
Henrique


Ladislav Lacina escreveu:
> I am very interrestes in it too. I looked into some docs about Hewlett
> packard printers and about their PCL language but I don't understant it very
> much. I think that such multilanguage printing is would be extremely useful
> for my text editor Blocek.
>
> - Original Message -
> From: "Henrique Peron" <[EMAIL PROTECTED]>
> To: "fd-dev" 
> Sent: Monday, October 08, 2007 4:03 AM
> Subject: [Freedos-devel] Codepages and printers
>
>
>   
>> Hello all,
>>
>> would anyone volunteer to develop support for printing codepages?
>>
>> Thanks in advance for your attention,
>> Henrique
>>
>>
>>
>> -
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> ___
>> Freedos-devel mailing list
>> Freedos-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>> 
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: McAfee VirusScan / Atualizado em 05/10/2007 / Versão: 5.1.00/5135
> Proteja o seu e-mail Terra: http://mail.terra.com.br/
>
>
>
>   




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-08 Thread Ladislav Lacina
I am very interrestes in it too. I looked into some docs about Hewlett
packard printers and about their PCL language but I don't understant it very
much. I think that such multilanguage printing is would be extremely useful
for my text editor Blocek.

- Original Message -
From: "Henrique Peron" <[EMAIL PROTECTED]>
To: "fd-dev" 
Sent: Monday, October 08, 2007 4:03 AM
Subject: [Freedos-devel] Codepages and printers


> Hello all,
>
> would anyone volunteer to develop support for printing codepages?
>
> Thanks in advance for your attention,
> Henrique
>
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-07 Thread Henrique Peron
Hi Bruce,

today, on FreeDOS, we rely on codepages already encoded into printer's 
firmware.

For instance, if I happen to be russian and type a text in russian then 
there's no problem since I most likely have a russian printer which is 
able to select russian codepages.

However, what happens if I'm brazilian and I want to print a russian 
text in my brazilian printer? There's no cp866 on its firmware.

There are programs which are able to somehow "upload" a codepage into a 
printer's RAM. There are ESC/P commands for that. I've tested a 
shareware program (for Windows) called DOSPRN which does exactly that. 
It has several codepages in its library. All I have to do is to type a 
russian text under DOS, run DOSprn, select codepage 866 on it and send 
the text to the printer. It works perfectly.

A solution like this under FreeDOS would be perfect because it would 
override printer firmware limitations which are generally based on 
geography. My Epson Stylus Color 740 inkjet printer certainly does not 
have eastern european codepages in its firmware; on the other hand, most 
likely the very same printer sold on the russian market does not have, 
let's say, maltese codepage 853 or baltic codepage 775.

Another important point for this need is that I devised several 
codepages for FreeDOS to assist several languages never previously 
assisted by any DOS-like OS which, being my creation, are therefore 
available on no printer's firmware. The idea is to be able to "send" 
these codepages to a printer as well.

I've read a lot about ESC/P and ESC/P2 commands to know that this could 
be accomplished on several printers; I know that there are some printers 
who doesn't apply to that but many FreeDOS users would already be assisted.

It would be interesting if there was some program which could somehow 
read the 8x16 font files encoded into FreeDOS CPI files so that it could 
build printer codepages out of the display codepages; if this happens to 
be too difficult or a big-time-consuming effort, I could provide the 
shape of all characters of all codepages on a TXT file with, let's say, 
matrixes of "0"s and "1"s representing the dots the compose them. As a 
matter of fact, I already prepared such file a long time ago. It has 
many latin, cyrillic, greek, georgian, armenian and many other 
characters which would already help us very much for a start.

If you want me to enter even more into details, please send me a 
message: hperon @ terra.com.br .

Thanks,
Henrique

Bruce M. Axtens escreveu:
> Henrique
>
> Could you unpack that request a little. I don't think I quite understand
> what you're after.
>
> Bruce.
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Henrique
> Peron
> Sent: Monday, 8 October 2007 10:03 AM
> To: fd-dev
> Subject: [Freedos-devel] Codepages and printers
>
> Hello all,
>
> would anyone volunteer to develop support for printing codepages?
>
> Thanks in advance for your attention,
> Henrique
>
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: McAfee VirusScan / Atualizado em 05/10/2007 / Versão: 5.1.00/5135
> Proteja o seu e-mail Terra: http://mail.terra.com.br/
>
>
>
>   




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Codepages and printers

2007-10-07 Thread Bruce M. Axtens
Henrique

Could you unpack that request a little. I don't think I quite understand
what you're after.

Bruce.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henrique
Peron
Sent: Monday, 8 October 2007 10:03 AM
To: fd-dev
Subject: [Freedos-devel] Codepages and printers

Hello all,

would anyone volunteer to develop support for printing codepages?

Thanks in advance for your attention,
Henrique



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Codepages and printers

2007-10-07 Thread Henrique Peron
Hello all,

would anyone volunteer to develop support for printing codepages?

Thanks in advance for your attention,
Henrique



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel