LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RHEL 5 - CUPS Printing (https://www.linuxquestions.org/questions/linux-newbie-8/rhel-5-cups-printing-924095/)

lynwen 01-16-2012 04:03 PM

RHEL 5 - CUPS Printing
 
Is there a way to convert the '#' hash symbol to a '' 'sterling' symbol when sending output to a printer via CUPS. Printing a '' symbol works fine from text file via CUPS using lp however we have a 'Revenues' application that although creates a '' when a document is viewed but is unable to produce '' to print.

Any ideas please?

rhamel 01-16-2012 08:28 PM

God, I hate this. I used to do this all the time under UNIX, but I am so lost with CUPS.

This link might help. Warning: It's dense.

You need to replace the '#' with the octal codes for the pound sign.

It's weird. The number 3 shifted on the US keyboard is '#' and on the UK keyboard it's the pound sign.

It's almost as if you've loaded a different keyboard driver and the printer is interpreting the key as US instead of UK. Hmm.

Is there a UK version of the printer driver available? Just grasping at straws here really.

lynwen 01-17-2012 01:14 PM

rhamel

Thanks for that, I had already atempted to set the mime.types but did not solve my problem. I can print a from the CLI thru CUPS however it is the application (Revenues) that is creating a sign using some wierd character combinations, not what you would normally expect from a Financial system!!

thanks for your time anyway

Lynwen

rhamel 01-18-2012 06:14 AM

Back in the day (on simpler UNIX systems), I'd introduce a filter into the pipe. Something like

Revenues-program | tr '\ugly-pound-sign-sequence-of-characters' '\sequence-that-works-from-CLI' | lp -d myprinter

I am not sure how to do that with CUPS, but if the Revenues-program has a shell script which does the outputting, perhaps you may be able to stick a filter in there before it gets to CUPS.

That way, CUPS would never see the \ugly-pound-sign-sequence-of-characters coming through.

Straws grasping here.


All times are GMT -5. The time now is 05:53 AM.