|
|||||||
| Announcements Official Show and Site Announcements |
![]() |
|
|
Thread Tools | Search this Thread |
|
#21
|
||||
|
||||
|
The way I would handle the above exceptions is to create an array full of the exceptions and at some point in the processing have the word after "a" compared to the list of exceptions. In Python this would be pretty easy to do by building a list of exceptions, throwing the word at it and it'd tell you if that word existed in the list, but I don't know if it'd be so easy in PHP.
|
|
#22
|
||||
|
||||
|
Probably would, but probably a different approach. I'd prefer to keep the structure of these word objects (arrays) the same as the others. In 6 months it would still be easy for me (the non-coder) to see what I'm doing with exception words, rather than handling things for pronunciation. I'd rather just see a mistake when it loads (if I didn't catch it when I populated it), and move it to the appropriate container. In some cases, this is really important, because it may be used in more than one place. There is some similar logic being used for plurals, since not only are many plurals not "s", but some just don't work well, and are not even allowed in the container. Like "Earth" for example.
|
|
#23
|
||||
|
||||
|
It all reminds me of when I created a translation program a long time ago in Java. Inspired by those programs that would convert your sentence to slang and such, I created a translation program with user-editable pluggable dictionaries so anyone could create any sort of translation system they wished and plug it in.
|
|
#24
|
||||
|
||||
|
I'm working on some other stuff to use this for. Most of it is just more fun SOS stuff.
|
|
#25
|
||||
|
||||
|
I do have a book on PHP I haven't read yet. Once I do, the first thing I'm going to try to create is a dice rolling web page. I know such things already exist, but I want to create one myself.
|
|
#26
|
||||
|
||||
|
Yeah, not hard. It will make sense to you, you just need to get in there and do it.
|
|
#27
|
||||
|
||||
|
And, you guys should have a working FF version of the page now. While having this discussion I bothered to look into the problem. It was the way I was performing the refresh function by ID... FF just didn't like the function. Now I'm identifying the frame ID better, and calling it by ID during the refresh in a manner more friendly with FF. I've got it working on Safari, FF, and Opera.
Let me know if it still doesn't work for anyone.
|
|
#28
|
||||
|
||||
|
It works great now
.I think the trickiest part of my project will be linking it to a MySQL database to save all the dice results. as aggressive as a Pillipino in a darkness factory |
|
#29
|
||||
|
||||
|
Nah, that will be easy too. Reading and writing to MySQL is the easy stuff. At least you have a project in mind, just get in there and do that shit, yo!
It'll be as dreamy as a swarm of foreign goal oriented accountants on an active volcano! |
|
#30
|
||||
|
||||
|
You're right. After all, it should be as oblivious as a tri-nippled shoeless door to door 18-inch rubber cock salesman at the end.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|