LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2012, 04:03 PM   #1
lynwen
LQ Newbie
 
Registered: Mar 2011
Location: Caernarfon
Posts: 2

Rep: Reputation: 0
Post 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?
 
Old 01-16-2012, 08:28 PM   #2
rhamel
LQ Newbie
 
Registered: Sep 2009
Posts: 15

Rep: Reputation: 2
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.
 
Old 01-17-2012, 01:14 PM   #3
lynwen
LQ Newbie
 
Registered: Mar 2011
Location: Caernarfon
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 01-18-2012, 06:14 AM   #4
rhamel
LQ Newbie
 
Registered: Sep 2009
Posts: 15

Rep: Reputation: 2
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 01:12 PM
Whats the difference between CUPS printing and Samba shared printing? depam Linux - Software 1 03-17-2006 02:56 PM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 09:01 AM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 09:31 AM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 04:27 PM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration