schrodinger.application.matsci.typography module

Module to format text

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.application.matsci.typography.TYPO_TYPE(value)

Bases: enum.Enum

An enumeration.

unicode = 1
markup = 2
schrodinger.application.matsci.typography.subscript_digits(digits, typo_type=TYPO_TYPE.unicode)[source]

Convert a number to subscripted string

Parameters
  • digits (int) – The number that needs to be subscripted

  • typo_type (TYPO_TYPE) – The typography type

Returns

The integer converted to subscript string using html markup

Return type

str

Raises

ValueError – When the typography type does not have a way for creating subscript style