-2

I'm using Python for my GUI Application(using PyQt4), and I want to use 'Latin subscript capital letters' in my GUI tableWidget. PyQt4 supports Unicode, so I succeeded in displaying the Unicode characters in the GUI, such as: 'Latin subscript small letters' - U+2090.., 'Subscript Digits' - U+2080.., 'Superscript Digits' - U+2070.., etc.

But I cannot find 'Latin subscript capital letters' in the Unicode character set.

The exact character I need is 'K with Latin subscript capital letter S and E'.

MS Word displays this character successfully using a numerical expression. How can I display this character in Python?

Rizamong
  • 1
  • 2

1 Answers1

2

Word probably defines markup to display subscripts, similar to the HTML code K<sub>SE</sub>KSE. Unless your QT widget accepts some markup language for the displayed text I think you're out of luck here.

U+01D6A8 is actually MATHEMATICAL BOLD CAPITAL ALPHA, not subscript.

roeland
  • 5,349
  • 2
  • 14
  • 28
  • Oh, yes. U+1D6A8 is not subscript, it is my mistake. i edit this now! Thanks. – Rizamong Oct 29 '15 at 04:51
  • 1
    @Rizamong Anyway, programs normally don't use Unicode characters to display subscripts and superscripts in mathematical expressions, they use markup. – roeland Oct 29 '15 at 05:18
  • There are several Qt widgets that will render a [limited subset of HTML](http://doc.qt.io/qt-4.8/richtext-html-subset.html) - for instance, `QLabel`. So `` tags is definitely the way to go on this. – ekhumoro Oct 29 '15 at 05:38
  • @roeland Thank you i use QLabel widget to express HTML with `KSE`. – Rizamong Nov 09 '15 at 07:34
  • @ekhumoro Thanks! i use QLabel widget into Qtablewidget cell with `setCellWidget` method. it display correctly `KSE`. – Rizamong Nov 09 '15 at 07:38