Re: [gutvol-d] book of james -- 016

james said:
The URLs ending with .py are not Python programs.
well, technically, a python program lives at that address, but what _you+ will see, in your browser-window, will be the output which that python program is sending to you.
The "dummy" file does seem to be doing the "compose+'+S" correctly
ok, that's interesting, on some level... but you'll still need to fix the 777 file.
and I do have to change the browser to UTF-8 to see it.
i suspect that, since it's labeled as a .txt file, it's being sent out as ascii, rather than utf8... probably some switch i can toggle at my i.s.p.
If you want me to "think like a programmer" then at a minimum I'd want to have:
i want you to think like a d.i.y. programmer who cannot require things "at a minimum"... :+)
1). The file containing diacritics that you used to extract the words.
there is no such file. i read in your text-file, and extracted any word containing a diacritic. for the record, there's under a dozen diacritics.
2). The Python program(s) you used to extract them and make this list.
i wrote that program in basic, not python, so you'll need to settle for english pseudo-code, which is what i just told you, back at point 1).
3). The Python program you wrote to make the word substitutions and put the diacritics back in.
that wasn't a python program, not originally, just a macro of global changes in a text-editor. easy enough to do it in basic, though, or python, which is what i did to make "waxon" and "waxoff". off the top, so untested and maybe even wrong:
s=thebookfile swi=switchfile.split("\n") for x in range (0,len(swi)): dan=swi[x].split(" -- ") dia=dan[0].strip() non=dan[1].strip() s=re.sub(non,dia,s)
c'mon, james, that's a 7-line routine. you can d.i.y.
I do have your file with misspelled words by page.
that list is now outdated.
Many of the words in the diacritical file are familiar enough to me that I won't need to look them up.
but some are not, i take it. won't hurt to check _all_ of 'em against a scan, especially if you just check a few occurrences... that routine might run about 25 lines, james. do you want me to write that one for you too?
My only concern is the "Compose+'+s" characters.
all you need to do is enter it correctly in the file you edit.
I just wonder how they got that way to begin with
well, we know it happened in my hands. so who knows? it could have happened any number of ways, all of which are now immaterial. don't get hung up on the irrelevant. just take the "777" .html file, edit it appropriately, and then re-mount it somewhere only where i can get to it... -bowerbird

Hi Boys, technically, you are both wrong and right in certain senses! It depends on your perspective. Conventionally, files having the *.py ending are expected to contain a python script. Yes, I know there are some other formats that use the *.py ending. Now, depending how a user agents requests the file it will be sent verbatim or the server will have the file processed and send that output to the user agent. How the file is processed by the server depends on how the server is set up. Hope this helps Keith. Am 20.01.2012 um 04:02 schrieb Bowerbird@aol.com:
james said:
The URLs ending with .py are not Python programs.
well, technically, a python program lives at that address, but what _you+ will see, in your browser-window, will be the output which that python program is sending to you.

Bowerbird, OK, I'll work on the file Saturday and possibly Sunday. When I'm done I'll put the file in Dropbox and send the URL to the list. As for my demands, I only asked for stuff that I assumed you had already created. I was trying to figure out why your program was splitting my "Compose+'+s" into two characters. I guess it is because UTF-8 probably stores them as two bytes and your logic splits them up. I probably could have written a program that didn't do that, but no matter. Creating a list with correctly accented characters first and the originals after that should be no problem. James Simmons On Thu, Jan 19, 2012 at 9:02 PM, <Bowerbird@aol.com> wrote:
james said:
The URLs ending with .py are not Python programs.
well, technically, a python program lives at that address, but what _you+ will see, in your browser-window, will be the output which that python program is sending to you.
The "dummy" file does seem to be doing the "compose+'+S" correctly
ok, that's interesting, on some level...
but you'll still need to fix the 777 file.
and I do have to change the browser to UTF-8 to see it.
i suspect that, since it's labeled as a .txt file, it's being sent out as ascii, rather than utf8...
probably some switch i can toggle at my i.s.p.
If you want me to "think like a programmer" then at a minimum I'd want to have:
i want you to think like a d.i.y. programmer who cannot require things "at a minimum"... :+)
1). The file containing diacritics that you used to extract the words.
there is no such file. i read in your text-file, and extracted any word containing a diacritic.
for the record, there's under a dozen diacritics.
2). The Python program(s) you used to extract them and make this list.
i wrote that program in basic, not python, so you'll need to settle for english pseudo-code, which is what i just told you, back at point 1).
3). The Python program you wrote to make the word substitutions and put the diacritics back in.
that wasn't a python program, not originally, just a macro of global changes in a text-editor.
easy enough to do it in basic, though, or python, which is what i did to make "waxon" and "waxoff".
off the top, so untested and maybe even wrong:
s=thebookfile swi=switchfile.split("\n") for x in range (0,len(swi)): dan=swi[x].split(" -- ") dia=dan[0].strip() non=dan[1].strip() s=re.sub(non,dia,s)
c'mon, james, that's a 7-line routine. you can d.i.y.
I do have your file with misspelled words by page.
that list is now outdated.
Many of the words in the diacritical file are familiar enough to me that I won't need to look them up.
but some are not, i take it.
won't hurt to check _all_ of 'em against a scan, especially if you just check a few occurrences...
that routine might run about 25 lines, james. do you want me to write that one for you too?
My only concern is the "Compose+'+s" characters.
all you need to do is enter it correctly in the file you edit.
I just wonder how they got that way to begin with
well, we know it happened in my hands. so who knows?
it could have happened any number of ways, all of which are now immaterial. don't get hung up on the irrelevant.
just take the "777" .html file, edit it appropriately, and then re-mount it somewhere only where i can get to it...
-bowerbird
_______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/mailman/listinfo/gutvol-d
participants (3)
-
Bowerbird@aol.com
-
James Simmons
-
Keith J. Schultz