I was able to add the controls mentioned in the last post. But I was also able to add functionality so that poem readings created using the custom function can be emailed to an inputted address. I initially tested this using my Gmail account and everything worked; however, when Martin tested this using the Thunderbird application the subject line did not correctly display the "é" character.
At first we thought that if we used escape characters it would work but that failed as well. Martin advised me to look into the php version being used, so I changed it, using a htaccess file, from php4 to php5; however, this still did not work. I attempted to use a method to force the encoding of the subject line to utf8 but that did not work either. Today Stewart was able to instruct me on how to set up a php.ini configuration file where I could set UTF in the php5 environment. It was only after these three fixes were in place that I was able to resolve the subject line problem.
//in the php file
$subject = "YOUR Un Coup de Dés";
$subject= mb_encode_mimeheader($subject,"UTF-8", "Q", "\n");
//in the php.ini
mbstring.internal_encoding = UTF-8 ; Set internal encoding to UTF-8
//in the .htaccess
SetEnv UVPHP_VERSION 5
suPHP_ConfigPath /u/lang02/www/fall_07/coupde/penultima2/
All that I wanted to work on for the coup de des project has been completed. The project is located at: http://web.uvic.ca/~lang02/fall_07/coupde/penultima2/web_pages/viewer.php
in the footer of that page user documentation can be found.
Took off early.
Continued hacking through the bios, and in the process, normalized all instances of <hi rend="vesselName"> to <name type="vessel"> throughout the notes as well. The <hi> tag made no sense; can't remember why I started using it.
Met with JL, CP and SM to plan SM's work over the next few weeks. He'll start next Wednesday, and he'll focus on getting the 1858 bios, then the footnotes, finished.
We also talked about deadlines. We aim to have the 1858 material all completed and integrated by the end of April, and there may be more grant money available to have someone proof it all, despatches included, and write some abstracts/summaries for that year, giving readers a window into the material. At least two people on CP's grant money will begin work in the summer.
A user reported a bug in an exercise on OSX, which caused me to look at the exercises in detail. The bug remains unreproduced, whatever it is -- I'm still getting details from the user -- but I realized that the exercises have not been rebuilt since 2005, so there were lots of updates to HotPot code which had not been incorporated into them.
I updated all the Masher batch files (they were still pointing at paths from my last computer), then rebuilt all the exercises with a couple of tweaks to configuration and appearance. Then I synced the updates onto the site (http://web.uvic.ca/hrd/greek/index.htm.
I'm now about half way through implementing the search/replace. I found some things that needed improving in the code already written. For instance, I was failing to check for well-formedness when writing nodes back to the document which had changed due to string replacements. Then I realized I wasn't tracking successful replacement instances (as opposed to find hits); where replacement would cause a broken doc, the replacements are not done, so find hits are not equal to replacements. That's all fixed now.
Finally, I've mapped out the function for doing a Find Next, which is complicated because it can be upwards or downwards, and has to iterate through the many different document components appropriately. I've not yet added the MatchCase and WholeWordOnly booleans to the function signature -- mustn't forget that. I should be able to call SearchContainer to do the actual search, so that there's the potential for rudimentary regexp functionality in the future.
Another few hours should get me to the working-GUI point, where I can really start hammering it for bugs. It's way more complicated than you would think, especially if you're going to protect the user from destroying their document structure (which I am).
Updated the screenshot and all associated references in the documentation to explain the id editing feature. This also acted as a check to ensure that none of my changes have affected the app's ability to import/export docbook files, or the help file compilation system that exports the docbook to HTML.