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 11:58

YGOAUYR

Name: Anonymous 2009-04-06 12:04

>>2
CORRECT zipWith MEME USAGE

Name: Anonymous 2009-04-06 12:15

YHOAUSR ADIADDS

Name: Anonymous 2009-04-06 12:25

>>1
UNRO AS RFSALGY

Name: Anonymous 2009-04-06 12:32

Marking up incorrect as incorrect is incorrect.

Name: Anonymous 2009-04-06 13:00

Is that you RedCream?

Name: Anonymous 2009-04-06 13:25

>>6
I don't think ``incorrect'' means what you think it means!

Name: Anonymous 2009-04-06 14:06

RFEAQGUGIORTE SQ ULOETSESS

Name: Anonymous 2009-04-06 14:14

>>9
RFEAQGUGIORTE SQ ULOETSESS

Version 2.0, released under the Creative Commons License.

Name: CREATIVE COMMONS MEME FAN 2009-04-06 14:22

>>10
Awesome

Name: Anonymous 2009-04-06 14:31

>>10
Here's how a REAL man does it:
R E Q U I R E S   L E S S
 F A G G O T   Q U O T E S

Name: Anonymous 2009-04-06 14:35

Fewer faggot quotes.

Name: Anonymous 2009-04-06 14:43

>>13
real men don't english!!!!!!!11

Name: Anonymous 2009-04-06 14:48

>>9,10,12
REQUIRES FEWER FAGGOT QUOTES

Name: Anonymous 2009-04-06 15:06

Larry Wall himself saw to it that every single instance of quotes in the perl documentation are faggot quotes.  http://www.perl.com/doc/manual/html/pod/perlop.html

Name: Anonymous 2009-04-06 15:11

>>16
I wish he had hung himself instead.

Name: Anonymous 2009-04-06 15:23

Why do so many people hate ``faggot quotes''?

Name: Anonymous 2009-04-06 15:32

>>18
They're not quotes at all. ` is grave. Not apostrophe. ` goes above letters as in è. It isn't punctuation at all and duplicating it doesn't make it punctuation either. Also, it's asymmetric, which makes it naturally aesthetically unpleasing to those with a functioning concept of balance. On most non-monospace fonts, it also puts an abnormally large gap between letters.

There are countless other reasons too, but that's essentially why.

eyehibbit

Name: Anonymous 2009-04-06 15:54

>>19
Your TeX parser must be broken.

Name: Anonymous 2009-04-06 16:07

>>19
While I agree with you on some points, I still use ``faggot quotes'', because TeX uses them. It's easier to use one convention everywhere.

Name: Anonymous 2009-04-06 16:09

>>16
Binary ``<<``
He missed one.

Name: Anonymous 2009-04-06 16:10

>>19
I only use them to annoy people like you.

Name: Anonymous 2009-04-06 16:25

www.4chan.pt.vu <- It is the best website in the world

Name: Anonymous 2009-04-06 16:55

zipTextInfrastructure test run:

blaoswiecrZTiepxTteTxetsFtrSatmreiwnogrkUpperTextTestString

Current known limitations:
-2 strings of different length will not! be spaced correctly
-zipTextInfrastructure API does not yet allow usage of non-standard (other than hard-coded) modifier tags
The Dev Team is aware of those limitations, and will release a patch in near future.

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]))

Name: Anonymous 2009-04-06 17:48

Yaorue, gsriera,t.

Name: Anonymous 2009-04-06 17:52

>>26
Ugly code

Name: Anonymous 2009-04-06 18:04

>>28
Indeed. Especially the use of the ( gaping , anus ) bracket spacing. A (tight, anus) is the standard.

Name: Anonymous 2009-04-06 18:11

IY OLUOVE

Name: Anonymous 2009-04-06 18:14

[sup]I[/sup][sub]u[/sub][sup] [/sup][sub]g[/sub][sup]h[/sup][sub]l[/sub][sup]a[/sup][sub]y[/sub][sup]t[/sup][sub] [/sub][sup]e[/sup][sub]c[/sub][sup] [/sup][sub]o[/sub][sup]y[/sup][sub]d[/sub][sup]o[/sup][sub]e[/sub][sup]u[/sup][sub] [/sub][sup]r[/sup][sub]![/sub]

Name: Anonymous 2009-04-06 18:18

>>26
ghci> let top = ["sup", "i"]
ghci> let bottom = ["sub", "b"]
ghci> let open = concat . map (("[" ++) . (++ "]"))
ghci> let close = concat . map (("[/" ++) . (++ "]")) . reverse
ghci> let f = zipWith (\a b -> open top ++ a : close top ++ open bottom ++ b : close bottom)
ghci> putStrLn $ concat $ f "fictional" "language"

fliacntgiuoangae

Name: >>32 2009-04-06 18:21

motherfuck I have to pad one of those fucking strings don't I?

this would be a good time to learn arrows + curry.

Name: Anonymous 2009-04-07 10:09

zipTextFramework 0.0002 version test:
u p p e r s t r i n g l-o wleorn gsetrr itnhga n l o w e r o n e

ulpopweerr ssttrriinngg - l o n g e r t h a n l o w e r o n e

New features:
-strings of unequal length will be parsed better
-option to center the shorter string

Name: Anonymous 2009-04-07 10:16

Current incarnation of zipTextFramework (version 0.0002) code:


centerText=1
stringsToZipText = ["upper string", "lower string - longer"]
textModifier = [["[sup][i]" , "[/i][/sup]"] , ["[sub][b]" , "[/b][/sub]"]]

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

def correctString(processedString, requiredLength):
    outputString = processedString
    if(processedString.__len__() < requiredLength):
        outputString += " " * (requiredLength - processedString.__len__())
    return outputString

def parseInputText(lowerText="", upperText="", center=1):
    inputString=["",""]
    outputString=""
    higherSize=max(len(lowerText), len(upperText))
    if(center==1):
        inputString[0] = lowerText.center(higherSize)
        inputString[1] = upperText.center(higherSize)
    else:
        inputString[0] = correctString(lowerText, higherSize)
        inputString[1] = correctString(upperText, higherSize)
    for iterator in range (higherSize):
        for currentString in [0,1]:
                outputString += printTextCharacter(inputString[currentString][iterator], currentString)
    return outputString

print (parseInputText(stringsToZipText[0], stringsToZipText[1], centerText))


Known limitations:
-spaces on the longer string will not be rendered if the corresponding character on the shorter string is also a space (this is a BBCODE limitation - it may be possible to overcome it though)
-the BBCODE generated is too long

Name: Anonymous 2009-04-07 18:08

.

Name: Anonymous 2011-02-04 16:47

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