Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Palindromes 2

Status
Not open for further replies.

ESquared

Programmer
Dec 23, 2003
6,129
US
Would anyone like to collaborate with me on inventing a palindromic phrase generator?

In the meantime, this thread is for telling us about palindromic phrases you personally have invented. (Use of software is permitted.) To relate palindromes you've heard elsewhere or find on the web, start a new thread in Making An Impression.

The best palindromic phrases, of course, are grammatically correct and have some sort of sense.

-------------------------------------
• Every joy is beyond all others. The fruit we are eating is always the best fruit of all.
• It is waking that understands sleep and not sleep that understands waking. There is an ignorance of evil that comes from being young: there is a darker ignorance that comes from doing it, as men by sleeping lose the k
 
diary raid

-------------------------------------
• Every joy is beyond all others. The fruit we are eating is always the best fruit of all.
• It is waking that understands sleep and not sleep that understands waking. There is an ignorance of evil that comes from being young: there is a darker ignorance that comes from doing it, as men by sleeping lose the k
 
I suppose, if one is talking about a yam harvested in May, it would be fine. Are there definite growing seasons for yams?

-------------------------------------
• Every joy is beyond all others. The fruit we are eating is always the best fruit of all.
• It is waking that understands sleep and not sleep that understands waking. There is an ignorance of evil that comes from being young: there is a darker ignorance that comes from doing it, as men by sleeping lose the k
 
I wrote a little code to help me come up with a good one, but the code is all I've come up with - you might have better luck
Code:
<script>
	function palindrome(){
		txtVal = document.getElementById("e").value
		txtSt = ""
		txtEnd = ""
		for (x=0; x<txtVal.length; x++){
			ltr = txtVal.substr(x,1)
			txtSt += ltr
			if (x+1 == txtVal.length){
				if (!document.getElementById("odd").checked) txtEnd = ltr + txtEnd
			}
			else{
				txtEnd = ltr + txtEnd
			}
		}
		document.getElementById("results").value = txtSt + "|" + txtEnd
	}
</script>

<input type=checkbox id="odd" onClick="palindrome()">Check to use middle letter only once.<br>
<input id="e" onkeyup="palindrome()" width=100><br>
<textarea id="results"></textarea>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
On salad nap and alas no

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Won panda, alas salad nap now

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
instead of bug juice try "gnat tang" - yummy!!!

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
mwolf00,

Nice work, but I think you're missing part of the challenge:
ESquared said:
The best palindromic phrases, of course, are grammatically correct and [make] some sort of sense
"Won panda, alas salad nap now" doesn't make any sense!

[tt]-John[/tt]
________________________
To get the best answers fast, please read faq181-2886
 
This thread is for telling us about palindromic phrases you personally have invented.

Palindromes are fun, no argument there. But the challenge is to invent new ones! As language lovers we enjoy reading common palindromes. But as wordplay lovers we enjoy making them up.

-------------------------------------
• Every joy is beyond all others. The fruit we are eating is always the best fruit of all.
• It is waking that understands sleep and not sleep that understands waking. There is an ignorance of evil that comes from being young: there is a darker ignorance that comes from doing it, as men by sleeping lose the k
 
Palindromes are fun, no argument there. But the challenge is to invent new ones!"
Like I did, didn't I?
I am still looking for Yam Harvest Season though. It seems to be August but then people can say that May Yam is not yammy...lol
 
Yes, like you did! A star for ZoomerZ for following the game well.

-------------------------------------
• Every joy is beyond all others. The fruit we are eating is always the best fruit of all.
• It is waking that understands sleep and not sleep that understands waking. There is an ignorance of evil that comes from being young: there is a darker ignorance that comes from doing it, as men by sleeping lose the k
 
I don't think it would be much of a palindrome if it could only be reversed a word at a time, instead of a letter at a time. Unless I'm misunderstanding your meaning.

-------------------------------------
• Every joy is beyond all others. The fruit we are eating is always the best fruit of all.
• It is waking that understands sleep and not sleep that understands waking. There is an ignorance of evil that comes from being young: there is a darker ignorance that comes from doing it, as men by sleeping lose the k
 
A Toyota

Meddle not in the affairs of dragons,
for you are crunchy, and good with mustard.
 
Does this count? tnuocsihtseod.

Try and pronounce this: sihtecuonorpdnayrt!

Sorry.

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top