Jump to content

Photo

Printing from emulators


20 replies to this topic

#1 etownandy OFFLINE  

etownandy

    Chopper Commander

  • 190 posts

Posted Wed Jun 14, 2017 11:13 AM

Do any of the 4A emulators allow for actual printing?  I know MAME allows you to "print" to a file.  

 

Let's say I'm using Page Pro and want to get an actual hard copy of a page.  How might that be done with an emulator?



#2 mizapf OFFLINE  

mizapf

    River Patroller

  • 2,583 posts
  • Location:Germany

Posted Wed Jun 14, 2017 11:16 AM

Right, you can print to a file in MAME, but this file will be filled with printer control codes for the selected printer. I can imagine that printers could be emulated, but I actually don't know whether there is already work in progress. (If so, may I add some impact printer noise? ;) )



#3 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Wed Jun 14, 2017 11:26 AM

You can output text in Classic99 to the CLIP device.

 

...lee



#4 etownandy OFFLINE  

etownandy

    Chopper Commander

  • Topic Starter
  • 190 posts

Posted Wed Jun 14, 2017 11:45 AM

Only text, though?  I mean, it's pretty simple to "print" to PIO in MAME from something like TI-Writer or Funnelweb, take the resulting .txt file, and import it into a word processor on macOS/Windows/Linux/etc for actual printing.  But I'm more interested in graphics (as in my PagePro example).

 

I know Bruce Harrison did some work on printing to ink jet printers...not sure what encoding they used (PCL maybe?) although that was mostly for printing TI-Artist files and such.

 

It's not like I NEED to do this, of course...a modern word processor runs circles around something like PagePro (although I bet most of them won't let me type in any direction as easily).  But it would be nice to get some output as I'm playing around.



#5 Tursi OFFLINE  

Tursi

    River Patroller

  • 4,822 posts
  • HarmlessLion
  • Location:BUR

Posted Wed Jun 14, 2017 2:02 PM

I started an Epson emulator after failing to find much I could use on the net, but I got bogged down and it turned into a larger task than I planned. I've no idea if I will revisit it, but it doesn't do anything today.



#6 sparkdrummer ONLINE  

sparkdrummer

    Dragonstomper

  • 777 posts
  • Status? I don't need no stinkin' status!
  • Location:Phoenix,Arizona

Posted Wed Jun 14, 2017 2:10 PM

Tursi
If you revisit and build it, please let me know! I've looked for an emulator to take a ti-writer file and print to pc. Many doc files for software written back in the old days to be ran thru the formatter. It would be nice to put them to pdf for archival purposes.

#7 ChoccyHobNob OFFLINE  

ChoccyHobNob

    Space Invader

  • 33 posts
  • AtariArtist
  • Location:St. Louis, MO. USA

Posted Tue Aug 29, 2017 6:26 PM

Looks like this might be a thing

 

https://github.com/RWAP/PrinterToPDF

 



#8 RWAP OFFLINE  

RWAP

    Star Raider

  • 59 posts
  • Location:Stoke-on-Trent, UK

Posted Fri Sep 8, 2017 5:17 AM

Looks like this might be a thing

 

https://github.com/RWAP/PrinterToPDF

 

Well spotted - this is one of my projects and a spin off from my Retro-Printer project - www.retroprinter.com

The PrinterToPDF is the public domain version of the conversion code - it is written in C and tested running on a Raspberry Pi.

It handles most of the ESC/P2 control codes so is more versatile than many of the older projects you can find out there.



#9 schmitzi ONLINE  

schmitzi

    River Patroller

  • 3,870 posts
  • ToXiC
  • Location:Germany

Posted Mon Sep 11, 2017 5:12 AM

Well spotted - this is one of my projects and a spin off from my Retro-Printer project - www.retroprinter.com

The PrinterToPDF is the public domain version of the conversion code - it is written in C and tested running on a Raspberry Pi.

It handles most of the ESC/P2 control codes so is more versatile than many of the older projects you can find out there.

 

Cool. Nice to know you are here  ;-) :thumbsup: :thumbsup:



#10 etownandy OFFLINE  

etownandy

    Chopper Commander

  • Topic Starter
  • 190 posts

Posted Fri Sep 15, 2017 7:57 AM

Nice!  I'll have to play around with that.



#11 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Fri Sep 15, 2017 11:06 AM

Tursi
If you revisit and build it, please let me know! I've looked for an emulator to take a ti-writer file and print to pc. Many doc files for software written back in the old days to be ran thru the formatter. It would be nice to put them to pdf for archival purposes.

 

I have been thinking for quite a long time about writing a translator in Forth to take a TI-Writer-formatted document to something like PDF or TeX. Lately, I have been looking at RTF as an intermediate output because it looks easier than PDF (I have not looked at TeX for ages). An RTF file can be read and converted by MS Word or OOO Writer to PDF. I think this would be relatively easy to do for Classic99 because it can be configured to write Windows text files.

 

Some limitations I would probably impose:

  1. Ignore any transliterate commands that start with ‘27’, but maybe all transliterate commands
  2. Allow the user to specify fonts other than “Courier New”, but only for fill-formatted text
  3. Impose user-modifiable, but minimum, top and bottom margins of 1/4", managing font size to accommodate page-length format commands
  4. Maybe ignore page-length commands altogether
  5. Ignore mail-merge and alternate-input commands (should not affect any archive-worthy documents)

As you can see, I have not traversed far in this project—just SOC rambling at this juncture!

 

...lee



#12 sparkdrummer ONLINE  

sparkdrummer

    Dragonstomper

  • 777 posts
  • Status? I don't need no stinkin' status!
  • Location:Phoenix,Arizona

Posted Fri Sep 15, 2017 6:02 PM

Lee
I'd be happy to test if it ever comes to fruition!

#13 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Sun Sep 24, 2017 2:46 AM

For a TI Writer translator, perhaps I should include additional formatter codes for third-party-enhanced versions of TI Writer. TI Writer v5.0 by R. A. Green is the only one for which I have a manual. Any suggestions?

 

...lee



#14 sparkdrummer ONLINE  

sparkdrummer

    Dragonstomper

  • 777 posts
  • Status? I don't need no stinkin' status!
  • Location:Phoenix,Arizona

Posted Sun Sep 24, 2017 7:59 PM

I'd say that all of the codes should be shown in that documentation. I can scrounge around in my files and probably find some other stuff. Do you think TL commands will be included?

#15 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Sun Sep 24, 2017 9:48 PM

I'd say that all of the codes should be shown in that documentation. I can scrounge around in my files and probably find some other stuff. 

 

That would be great.

 

Do you think TL commands will be included?

 

That will be difficult because some of them may be printer control codes and I definitely do not want to support those.  For RAG TI Writer v5.0, it is simple.  “.PC” is used for printer control codes and are easy to ignore.  If I allow “.TL”, I will need to parse each command string to limit the transliteration to acceptable ASCII codes.  This would be all printable characters.  I may try to convert three-character combinations with a BS character in the middle to the single character likely intended, e.g., “.TL123:110,8,126” would convert ‘{’ to ‘ñ’.  But, I will probably not be able to anticipate all combinations and may simply choose the alphabetic character if there is only one, or the first, if there are two.  I could also emit a special character, like ‘█’, to signal a need to check the original.  TL definitely complicates things.

 

...lee



#16 sparkdrummer ONLINE  

sparkdrummer

    Dragonstomper

  • 777 posts
  • Status? I don't need no stinkin' status!
  • Location:Phoenix,Arizona

Posted Mon Sep 25, 2017 4:18 AM

Lee,

 

Hopefully these will help.

 

Attached File  TIW_Supplement.pdf   2.08MB   4 downloads

 

Attached File  TIW_Tips&Tricks.pdf   729.22KB   4 downloads

 

Attached File  using-the-ti-writer-word-processor.pdf   1.14MB   4 downloads

 

Attached File  the-writers.pdf   9.01MB   4 downloads

 

 


Edited by sparkdrummer, Mon Sep 25, 2017 4:20 AM.


#17 --- Ω --- OFFLINE  

--- Ω ---

    TI-Runner

  • 10,600 posts

Posted Mon Sep 25, 2017 5:31 AM

At least while printing to a modern system, documents containing .TL codes can make a mess of things, especially when you get to double strike or highlighted text, you'll end up with four lines of normal text instead of one darker section.  That kind output requires a lot of post editing.  While it would be nice to 'fix' that problem, for how little it would be used, it might not be worth the programming effort.

 

 I was never a person who used the Text Formatter much, as most of my documents were much smaller, besides I just hardcoded the control "U" codes directly into the document.  If that capability was to be supported, I'm fairly certain the Epson control codes would be the way to go.



#18 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Mon Sep 25, 2017 6:57 AM

Lee, Hopefully these will help. ...

 

Unfortunately, they did not show me any formatter codes beyond normal TI Writer codes.  They did, however, point up the need to handle embedded printer control codes in addition to transliteration.  The difficulty with embedded codes is that any codes that include printable characters will not be handled properly, because I am not writing an interpreter for printer control codes.  I daresay that most archive-worthy documents did not use embedded printer control codes.  If they did, the output will not likely be pretty and will need editing.

 

...lee



#19 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Mon Sep 25, 2017 7:19 AM

At least while printing to a modern system, documents containing .TL codes can make a mess of things, especially when you get to double strike or highlighted text, you'll end up with four lines of normal text instead of one darker section.  That kind output requires a lot of post editing.  While it would be nice to 'fix' that problem, for how little it would be used, it might not be worth the programming effort.

 

 I was never a person who used the Text Formatter much, as most of my documents were much smaller, besides I just hardcoded the control "U" codes directly into the document.  If that capability was to be supported, I'm fairly certain the Epson control codes would be the way to go.

 

As I indicated above, I have no intention of supporting printer control codes.  Non-printable characters are easy to ignore, but printable characters that are part of printer control codes are another story.

 

The formatter commands for “bold”, “underline” and “required space” have RTF equivalents that are easy to emit.

 

Transliteration, where not a simple one-to-one, printable-character replacement, though not easy, is not as difficult to handle as embedded printer control codes.

 

...lee



#20 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Mon Sep 25, 2017 6:46 PM

Does anybody know what happens in the TI Writer Formatter if ‘@’, ‘&’ and ‘^’ are transliterated?

 

...lee



#21 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • 3,386 posts
  • Location:Silver Run, Maryland

Posted Sun Oct 8, 2017 10:37 AM

Does anyone know what information is contained in the last record of a TI Writer file?  Here are the last records in hex of four D/V80 TI Writer files:

16 80 86 80 AD 86 8B 90 95 9F D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 80 86
17 80 86 80 B6 86 8B 90 95 9F D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 80 86 0D
17 80 86 80 B6 86 8B 90 95 9F D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 80 86 0D
17 80 86 80 AD 86 8B 90 95 9F D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 D5 80 86 0D 

The first byte is the character count of the record.

 

...lee






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users