Superscribe and subscribe

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Superscribe and subscribe

 
0
  #1
Oct 30th, 2008
Well my question is obvious.
I want to ask is it possible to write superscribe or subscribes in python ?
thanks!
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 45
Reputation: tyincali is an unknown quantity at this point 
Solved Threads: 6
tyincali tyincali is offline Offline
Light Poster

Re: Superscribe and subscribe

 
0
  #2
Oct 30th, 2008
Look here and see if it helps:

http://www.daniweb.com/forums/thread133360.html

if that isn't what you are looking for, maybe you can clarify what you are trying to do? is this going to be CLI or are you wanting to put something on a GUI?
Last edited by tyincali; Oct 30th, 2008 at 3:54 pm.
I wish I had something cool to put here...
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Superscribe and subscribe

 
0
  #3
Oct 30th, 2008
Hey thanks but in fact that wasn't what i wanted but very near
in fact i want to write a power for a number and as i know it must be superscript and no other choice.
again thanks!
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Superscribe and subscribe

 
0
  #4
Oct 31st, 2008
Hey i tried "\xb" but it printed a black circle with a white question mark in it
and i'm using the python that is installed in ubuntu by default(i forgot to say)
thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 947
Reputation: Gribouillis is a jewel in the rough Gribouillis is a jewel in the rough Gribouillis is a jewel in the rough 
Solved Threads: 217
Gribouillis's Avatar
Gribouillis Gribouillis is offline Offline
Posting Shark

Re: Superscribe and subscribe

 
0
  #5
Oct 31st, 2008
Your question is not at all obvious. Where are you trying to write a superscript ? in a terminal ? a Tkinter canvas ? a printer ? a pdf document ? This is the main problem.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Superscribe and subscribe

 
0
  #6
Oct 31st, 2008
In a terminal but if any of them is easier i will be happy to try
thanks
Last edited by pywriter; Oct 31st, 2008 at 11:36 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 45
Reputation: tyincali is an unknown quantity at this point 
Solved Threads: 6
tyincali tyincali is offline Offline
Light Poster

Re: Superscribe and subscribe

 
0
  #7
Oct 31st, 2008
The thing about outputting super/subscript in term is that it will vary from system to system. Experiment with the '\x##' replacing ## with any hex number from 01 to FF. Eventually you will find the characters you want to use.

this will print a list of every character for you:

  1. nums = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']
  2.  
  3. for a in nums:
  4. for b in nums:
  5. exec("print '\\\\x"+a+b+": \\x"+a+b+"'")
Last edited by tyincali; Oct 31st, 2008 at 12:30 pm.
I wish I had something cool to put here...
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Superscribe and subscribe

 
0
  #8
Oct 31st, 2008
Hey tyincali i tried yours(including code tage containings),too.
but again no answer.
hey don't you think my problem is from my python or maybe linux?
i have problem in packages,too.
Last edited by pywriter; Oct 31st, 2008 at 6:30 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC