Dotan Cohen wrote:
> When printing an HTML document via lpr I am getting that the HTML code
> is being printed, not the rendered page. How can I get the rendered
> page to be printed? The file is in fact named with an .html extension.
> Thanks.
Use a2ps.
Matthew Flaschen
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-23-2008, 07:05 PM
"Dotan Cohen"
Printing HTML file via lpr: page, not code!
2008/12/23 Matthew Flaschen <matthew.flaschen@gatech.edu>:
> Dotan Cohen wrote:
>> When printing an HTML document via lpr I am getting that the HTML code
>> is being printed, not the rendered page. How can I get the rendered
>> page to be printed? The file is in fact named with an .html extension.
>> Thanks.
>
> Use a2ps.
>
Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
handle the unicode in the document. That is, unless I am doing it
wrong:
$ html2ps calendar.html > calendar.ps
Returns a page with the incorrect encoding (UTF-8 as iso-8859-1).
I have also tried utf-8 UTF8 and UTF-8 but they all return blank pages.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-23-2008, 08:23 PM
Matthew Flaschen
Printing HTML file via lpr: page, not code!
Dotan Cohen wrote:
> Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
> handle the unicode in the document. That is, unless I am doing it
> wrong:
Yeah, you seem to be right. That's even documented in the man page
("Currently recognized values are ISO-8859-1, EUC-JP, SHIFT-JIS, and
ISO-2022-JP (other EUC-xx encodings may also work).") If it actually
uses characters outside of ISO-8859-1, I don't have a solution. Take a
look at iconv, though.
> $ html2ps calendar.html > calendar.ps
> Returns a page with the incorrect encoding (UTF-8 as iso-8859-1).
What exactly do you mean? It misinterprets UTF-8 input as ISO-8859-1 input?
Matt Flaschen
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-23-2008, 08:28 PM
Bruce Marshall
Printing HTML file via lpr: page, not code!
On Tuesday 23 December 2008, Dotan Cohen wrote:
> Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
> handle the unicode in the document. That is, unless I am doing it
> wrong:
What's wrong with printing it from a browser??
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-23-2008, 08:28 PM
"Dotan Cohen"
Printing HTML file via lpr: page, not code!
2008/12/23 Matthew Flaschen <matthew.flaschen@gatech.edu>:
> Dotan Cohen wrote:
>> Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
>> handle the unicode in the document. That is, unless I am doing it
>> wrong:
>
> Yeah, you seem to be right. That's even documented in the man page
> ("Currently recognized values are ISO-8859-1, EUC-JP, SHIFT-JIS, and
> ISO-2022-JP (other EUC-xx encodings may also work).") If it actually
> uses characters outside of ISO-8859-1, I don't have a solution. Take a
> look at iconv, though.
>
>> $ html2ps calendar.html > calendar.ps
>> Returns a page with the incorrect encoding (UTF-8 as iso-8859-1).
>
> What exactly do you mean? It misinterprets UTF-8 input as ISO-8859-1 input?
>
I get gibberish like the eighth example on this page:
http://gibberish.co.il/encoding.html
(warning: not English!)
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-23-2008, 08:32 PM
Matthew Flaschen
Printing HTML file via lpr: page, not code!
Bruce Marshall wrote:
> On Tuesday 23 December 2008, Dotan Cohen wrote:
>> Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
>> handle the unicode in the document. That is, unless I am doing it
>> wrong:
>
> What's wrong with printing it from a browser??
My guess he is generating the HTML file from a script.
Matthew Flaschen
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-23-2008, 08:42 PM
"Dotan Cohen"
Printing HTML file via lpr: page, not code!
2008/12/23 Matthew Flaschen <matthew.flaschen@gatech.edu>:
>> What's wrong with printing it from a browser??
>
> My guess he is generating the HTML file from a script.
>
Correct, from konsolekalendar and then mutilated for my own needs.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-25-2008, 11:28 AM
Donn
Printing HTML file via lpr: page, not code!
On Tuesday, 23 December 2008 23:42:40 Dotan Cohen wrote:
> Correct, from konsolekalendar and then mutilated for my own needs.
>
I found a potential way via Firefox...
http://torisugari.googlepages.com/commandlineprint2
Perhaps konqueror has some tricks too?
d
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
12-25-2008, 11:45 AM
"Dotan Cohen"
Printing HTML file via lpr: page, not code!
2008/12/25 Donn <donn.ingle@gmail.com>:
> On Tuesday, 23 December 2008 23:42:40 Dotan Cohen wrote:
>> Correct, from konsolekalendar and then mutilated for my own needs.
>>
> I found a potential way via Firefox...
> http://torisugari.googlepages.com/commandlineprint2
>
> Perhaps konqueror has some tricks too?
> d
>
Thanks, that's great! I installed it in a spare Firefox profile and it
works nicely. I had just discovered gnome-web-print which also does a
good job. Thanks!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-*-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-*-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه*-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-*-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-*-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users