deconstructing LN03 files - DEC

This is a discussion on deconstructing LN03 files - DEC ; I have a few hundred "printable pages" worth of files that were once formatted to print on a DEC LN03. They seem to be binary, coded in some way that is not yet clear to me. Looking at the LN03 ...

+ Reply to Thread
Results 1 to 9 of 9

Thread: deconstructing LN03 files

  1. deconstructing LN03 files

    I have a few hundred "printable pages" worth of files that were once
    formatted to print on a DEC LN03. They seem to be binary, coded in
    some way that is not yet clear to me. Looking at the LN03 driver that
    is part of Ghostscript, I deduce that they might be sixel graphics.

    Is there any possibility of reversing this encoding to produce some
    other raster output that then could be printed on a current model
    of printer? I do find that there is ppmtosixel available as part of
    the Portable PixMap software, but that of course goes the wrong way.

    If I knew more about the specifications of the LN03 I would either become
    very discouraged, or set about writing a C program.

    carl


    --
    carl lowenstein marine physical lab u.c. san diego
    clowenst@ucsd.edu

  2. Re: deconstructing LN03 files

    In article ,
    cdl@deeptow.ucsd.edu (Carl Lowenstein) wrote:

    > If I knew more about the specifications of the LN03 I would either become
    > very discouraged, or set about writing a C program.


    Sixels aren't that tough. There should be plenty of LN03 docs out
    there, as it was a popular printer. Have you tried Google?

    --
    "It is very easy to be blinded to the essential uselessness of them by the
    sense of achievement you get from getting them to work at all." Hitchiker's
    Guide to the Galaxy on the Sirius Cybernetics Corporation. Does that seem
    familiar to anything on THIS planet at THIS time?

  3. Re: deconstructing LN03 files

    cdl@deeptow.ucsd.edu (Carl Lowenstein) writes:

    > I have a few hundred "printable pages" worth of files that were once
    > formatted to print on a DEC LN03. They seem to be binary, coded in
    > some way that is not yet clear to me. Looking at the LN03 driver
    > that is part of Ghostscript, I deduce that they might be sixel
    > graphics.


    > Is there any possibility of reversing this encoding to produce some
    > other raster output that then could be printed on a current model of
    > printer? I do find that there is ppmtosixel available as part of
    > the Portable PixMap software, but that of course goes the wrong way.


    > If I knew more about the specifications of the LN03 I would either
    > become very discouraged, or set about writing a C program.


    Have a look for an old Decus TeX kit, and read the LN03 driver in that.

    --
    Paul Repacholi 1 Crescent Rd.,
    +61 (08) 9257-1001 Kalamunda.
    West Australia 6076
    comp.os.vms,- The Older, Grumpier Slashdot
    Raw, Cooked or Well-done, it's all half baked.
    EPIC, The Architecture of the future, always has been, always will be.

  4. Re: deconstructing LN03 files

    Carl Lowenstein wrote:
    >...
    > Is there any possibility of reversing this encoding to produce some
    > other raster output that then could be printed on a current model
    > of printer? I do find that there is ppmtosixel available as part of
    > the Portable PixMap software, but that of course goes the wrong way.
    >...


    DCPS (http://h18000.www1.hp.com/info/SP4415/SP4415PF.PDF) can print
    sixel on PostScript printers. As long as you have a VMS license then you
    can use DCPS. I have never tried sixel on DCPS myself but we do print
    ReGIS graphics here and they work nicely. If you have WRQ Reflection for
    ReGIS Graphics around you can type the file and see what you get since
    it can do sixel too.

    But maybe you want to post a few lines of your document so someone can
    confirm it they are sixel or not, I can not imagine too many documents
    being 100% sixel.

    Sixel will look something like;
    P1q
    !16?!8_OO!4owwGG!4w{{CC{{}}]]pp!4~FFWW!4~rrMM!4~wwBB~~!20?{{!14C{{
    \

    --
    Peter Weaver
    Weaver Consulting Services Inc.
    Canadian VAR for CHARON-VAX
    www.weaverconsulting.ca



  5. Re: deconstructing LN03 files

    In article ,
    Howard Shubs wrote:
    >In article ,
    > cdl@deeptow.ucsd.edu (Carl Lowenstein) wrote:
    >
    >> If I knew more about the specifications of the LN03 I would either become
    >> very discouraged, or set about writing a C program.

    >
    >Sixels aren't that tough. There should be plenty of LN03 docs out
    >there, as it was a popular printer. Have you tried Google?


    So far, Google gives me voluminous references on how to convert almost
    anything else to SIXEL, as that was the most likely thing to do in the
    days of the LN03.

    carl
    --
    carl lowenstein marine physical lab u.c. san diego
    clowenst@ucsd.edu

  6. Re: deconstructing LN03 files

    In article <3a8gldF66f5lnU1@individual.net>,
    Peter Weaver wrote:
    >Carl Lowenstein wrote:
    >>...
    >> Is there any possibility of reversing this encoding to produce some
    >> other raster output that then could be printed on a current model
    >> of printer? I do find that there is ppmtosixel available as part of
    >> the Portable PixMap software, but that of course goes the wrong way.
    >>...

    >
    >DCPS (http://h18000.www1.hp.com/info/SP4415/SP4415PF.PDF) can print
    >sixel on PostScript printers. As long as you have a VMS license then you
    >can use DCPS. I have never tried sixel on DCPS myself but we do print
    >ReGIS graphics here and they work nicely. If you have WRQ Reflection for
    >ReGIS Graphics around you can type the file and see what you get since
    >it can do sixel too.


    I don't normally do VMS. I could drag out my VAX 4000 VLC and see if it
    still works, or put up VMS on the SimH emulator.

    >But maybe you want to post a few lines of your document so someone can
    >confirm it they are sixel or not, I can not imagine too many documents
    >being 100% sixel.
    >
    >Sixel will look something like;
    >P1q
    >!16?!8_OO!4owwGG!4w{{CC{{}}]]pp!4~FFWW!4~rrMM!4~wwBB~~!20?{{!14C{{
    >\


    What I know about these files is that their filename is xxxx.ln3.
    Here are the results of a hex dump of the first part of two of the files:
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    [cdl@delta manual]$ hexdump -C testpro.ln3 | head -12
    00000000 1f 00 1b 63 1b 5b 3f 32 37 68 1b 5b 31 31 68 1b |...c.[?27h.[11h.|
    00000010 5b 37 20 49 1b 5b 3f 35 32 68 1b 5b 33 33 30 30 |[7 I.[?52h.[3300|
    00000020 74 00 08 00 1b 50 30 3b 31 3b 30 79 80 00 67 41 |t....P0;1;0y..gA|
    00000030 77 3f 3f 43 58 4e 52 64 4f 40 3f 3f 3f 3f 46 6f |w??CXNRdO@????Fo|
    00000040 3f 3f 3f 40 4f 3f 3f 3f 40 54 4b 42 3f 6f 4b 42 |???@O???@TKB?oKB|
    00000050 3f 6f 4b 42 3f 71 53 73 6b 6f 4b 43 5c 46 4b 42 |?oKB?qSskoKC\FKB|
    00000060 3f 6f 4b 54 54 59 55 64 68 59 4b 42 48 45 4b 42 |?oKTTYUdhYKBHEKB|
    00000070 3f 6f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f |?o??????????????|
    00000080 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f |????????????????|
    *
    000000a0 3f 3f 3f 4a 53 46 41 4f 3f 4a 3f 3f 77 3f 80 00 |???JSFAO?J??w?..|
    000000b0 3f 3f 3f 3f 3f 45 5f 3f 3f 3f 42 7b 3f 3f 3f 3f |?????E_???B{????|
    [cdl@delta manual]$ hexdump -C testpro_contents.ln3 | head -12
    00000000 1f 00 1b 63 1b 5b 3f 32 37 68 1b 5b 31 31 68 1b |...c.[?27h.[11h.|
    00000010 5b 37 20 49 1b 5b 3f 35 32 68 1b 5b 33 33 30 30 |[7 I.[?52h.[3300|
    00000020 74 00 08 00 1b 50 30 3b 31 3b 30 79 80 00 65 41 |t....P0;1;0y..eA|
    00000030 6f 3f 3f 43 58 4e 52 64 4f 40 3f 3f 3f 3f 46 6f |o??CXNRdO@????Fo|
    00000040 3f 3f 3f 40 4f 3f 3f 3f 40 54 4b 42 3f 6f 4b 42 |???@O???@TKB?oKB|
    00000050 3f 6f 4b 42 3f 71 53 73 6b 6f 4b 43 5c 46 4b 42 |?oKB?qSskoKC\FKB|
    00000060 3f 6f 4b 54 54 59 55 64 68 59 4b 42 48 45 4b 42 |?oKTTYUdhYKBHEKB|
    00000070 3f 6f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f |?o??????????????|
    00000080 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f 3f |????????????????|
    *
    000000a0 3f 3f 3f 4a 53 46 41 4f 3f 4a 3f 3f 77 3f 80 00 |???JSFAO?J??w?..|
    000000b0 3f 3f 3f 3f 3f 45 5f 3f 3f 3f 42 7b 3f 3f 3f 3f |?????E_???B{????|
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    So if Sixel graphics is all printable characters, this is something
    else. Is "Plq" a magic key, to put the printer into the right
    mode? Similar to HP's PJL commands?

    carl
    --
    carl lowenstein marine physical lab u.c. san diego
    clowenst@ucsd.edu

  7. Re: deconstructing LN03 files

    On Mon, 21 Mar 2005 19:05:22 +0000, Carl Lowenstein wrote:

    >
    > What I know about these files is that their filename is xxxx.ln3.
    > Here are the results of a hex dump of the first part of two of the files:
    > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    > [cdl@delta manual]$ hexdump -C testpro.ln3 | head -12
    > 00000000 1f 00 1b 63 1b 5b 3f 32 37 68 1b 5b 31 31 68 1b |...c.[?27h.[11h.|
    > 00000010 5b 37 20 49 1b 5b 3f 35 32 68 1b 5b 33 33 30 30 |[7 I.[?52h.[3300|
    > 00000020 74 00 08 00 1b 50 30 3b 31 3b 30 79 80 00 67 41 |t....P0;1;0y..gA|
    > 00000030 77 3f 3f 43 58 4e 52 64 4f 40 3f 3f 3f 3f 46 6f |w??CXNRdO@????Fo|


    Those files both contain font definitions, which use sixel format, but
    you're not going to get a full page picture from them. Perhaps there is
    some usable text after the font definitions?

    --
    Paul


  8. Re: deconstructing LN03 files

    Carl Lowenstein wrote:
    >...
    > So if Sixel graphics is all printable characters, this is something
    > else. Is "Plq" a magic key, to put the printer into the right
    > mode? Similar to HP's PJL commands?
    >
    > carl


    Great, a CHARON-VAX VAR is helping and you answer by saying you'll use
    SimH.....

    Anyway, Paul is right, this is setting up a font definition. The
    [?27h is setting the spacing to Proportional. The [11h and
    [7 I are to do with spacing. P0;1;0y is the start of the font
    definition, the rest of the data until you get to a 9C will be the font
    data. You will probably find plain text after that. I think DCPS will
    convert all of this to PostScript for you too, but again I have never
    tried it on a file like this.

    You might want to check out the LN03 Programmer Reference Manual at
    http://vt100.net/docs/0ln03-rm/ if you want to figure out everything
    your file is doing.

    --
    Peter Weaver
    Weaver Consulting Services Inc.
    Canadian VAR for CHARON-VAX
    www.weaverconsulting.ca



  9. Re: deconstructing LN03 files

    In article ,
    cdl@deeptow.ucsd.edu (Carl Lowenstein) wrote:

    > So far, Google gives me voluminous references on how to convert almost
    > anything else to SIXEL, as that was the most likely thing to do in the
    > days of the LN03.


    So go thou and program in reverse!

    --
    "It is very easy to be blinded to the essential uselessness of them by the
    sense of achievement you get from getting them to work at all." Hitchiker's
    Guide to the Galaxy on the Sirius Cybernetics Corporation. Does that seem
    familiar to anything on THIS planet at THIS time?

+ Reply to Thread