Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

zipWith meme issues

Name: Anonymous 2009-04-06 11:55

When using zipWith to join multiple words, please note that it is improper to use only a [sup] tag and not also a [sub] tag. Without the [sub], the ``bottom'' word is sized disproportionately to the ``top'' word.

Compare:
SCUURMPSRHIOSTE
SCUURMPSRHIOSTE

Note how, in the former (incorrect) example, the two words are different sizes, and the baseline of the ``top'' word undesirably overlaps the cap height of the ``bottom'' word. In the second (correct) example, the two words are visually separated, of consistent sizes, and are overall more aesthetically appealing.

Name: Anonymous 2009-04-06 16:57

Current state of zipTextInfrastructure source code:


textModifierVariable = [["[sup][i]" , "[/i][/sup]"] , ["[sub][b]" , "[/b][/sub]"]]

def printTextCharacter (characterToPrint, characterVerticalPlacement):
    return str(textModifierVariable[characterVerticalPlacement][0] + characterToPrint + textModifierVariable[characterVerticalPlacement][1])

def parseInputText(lowerText, upperText):
    outputString=""
    for iterator in range ( max ( lowerText.__len__() , upperText.__len__() ) ):
        if ( iterator < lowerText.__len__() ):
            outputString += printTextCharacter(lowerText[iterator], 0)
        if ( iterator < upperText.__len__() ):
            outputString += printTextCharacter(upperText[iterator], 1)
    return outputString

testString= ["basicZipTextFrameworkUpperTextTestString", "lowerTextTestString"]
print (parseInputText(testString[0], testString[1]))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List