<div dir="ltr">You are correct , it didn't work but at least I have a better starting point.<br>iconv failes to parse the text using the provided encodings : <br><br>@WN@V9.00.0062<br>@J,�iconv: illegal input sequence at position 22<br>
<br>the first few lines I get are (hd) so I'm not sure it is the dos encoding : <br><br>00000000 40 57 4e 40 56 39 2e 30 30 2e 30 30 36 32 0a 40 |@WN@V9.00.0062.@|<br>00000010 01 4a 2c 00 00 aa c0 ff ff 40 02 01 00 00 00 32 |.J,......@.....2|<br>
00000020 19 00 00 40 06 01 00 00 00 01 40 05 06 01 00 00 |...@......@.....|<br>00000030 00 05 01 aa 00 00 00 8c 0a 00 00 00 00 00 00 54 |...............T|<br>00000040 69 6d 65 73 20 4e 65 77 20 52 6f 6d 61 6e 00 00 |imes New Roman..|<br>
00000050 02 00 00 02 da 2a 00 00 c9 de ff ff a0 2b 00 00 |.....*.......+..|<br>00000060 80 d1 ff ff 00 ee f2 f8 eb fa 20 ee e9 eb f4 ec |.......... .....|<br>00000070 20 32 30 30 30 20 ec e7 e9 f9 e5 e1 20 f9 eb f8 | 2000 ...... ...|<br>
00000080 2c 20 e8 ec 27 20 30 33 2d 35 36 31 39 34 37 35 |, ..' 03-5619475|<br><br>But I'm still searching for a workaround<br><br><div class="gmail_quote">On Thu, Jul 14, 2011 at 11:53, Aviram Jenik <span dir="ltr"><<a href="mailto:aviram@jenik.com">aviram@jenik.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">With a lot of help and assistance from Herouth Maoz, I got this script<br>
to generate printable .ps files from the michpal files that show<br>
multiple paystubs:<br>
<br>
<br>
#!/bin/sh<br>
<br>
iconv -f CSPC862LATINHEBREW -t iso-8859-8 $1 | sed<br>
"s/\x1B\x31\x30\x0D/\x0C/g" | a2ps --lines-per-page=55 --columns=1<br>
--no-header --landscape -o $2<br>
<br>
<br>
The key is 'iconv', and you may have to play with the encoding.<br>
<br>
I'll be shocked if this will actually work for you 'out of the box'<br>
since they seem to change format between versions. But it should give<br>
you a good start.<br>
<br>
I wish I had my email thread with Herouth handy - she gave me the exact<br>
steps how to find out the encoding and transform it to something sensible.<br>
<br>
Good luck!<br>
<br>
- Aviram<br>
<div><div></div><div class="h5"><br>
<br>
On 07/14/2011 05:40 PM, Boris shtrasman wrote:<br>
> Hi,<br>
><br>
> I need to render and print "Michpal" paychecks (תלושי שכר),I've tried<br>
> using wine + michpal but it just crashed (the michpal soft).<br>
><br>
> How can I render and print the data so it could be counted as a paycheck ?<br>
><br>
> p.s.<br>
><br>
> I figured out part of the file format (but I can't find what each<br>
> letter represents) using<br>
> <a href="http://mirror.hamakor.org.il/archives/linux-il/10-2004/12057.html" target="_blank">http://mirror.hamakor.org.il/archives/linux-il/10-2004/12057.html</a> but<br>
> the data does not look valid (i.e incorrect field names , can't figure<br>
> out what are the sick days etc).<br>
><br>
> I've got that the font should be Times New Roman.<br>
><br>
</div></div>> _______________________________________________<br>
> Linux-il mailing list<br>
> <a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
> <a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div><br></div>