From nobody@digitalkingdom.org Thu Jun 09 18:20:42 2005 Received: with ECARTIS (v1.0.0; list lojban-list); Thu, 09 Jun 2005 18:20:43 -0700 (PDT) Received: from nobody by chain.digitalkingdom.org with local (Exim 4.50) id 1DgYCH-0002aU-E0 for lojban-list-real@lojban.org; Thu, 09 Jun 2005 18:20:33 -0700 Received: from n28.bulk.scd.yahoo.com ([66.94.237.57]) by chain.digitalkingdom.org with smtp (Exim 4.50) id 1DgYCE-0002a0-09 for lojban-in@lojban.org; Thu, 09 Jun 2005 18:20:33 -0700 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lima; d=yahoogroups.com; b=WB80vosdnrQ7Vn6NK6JeU2tW1rjT/yds3rw8TpLZfV5VrO6nlu08lYQY6W9TVbLI5hT69zoC7MaQIFyaGjiX6EwQhNzDN6i70jKvMmpZdzvp1XDvfVwDvtrZKoAApZIK; Received: from [66.218.69.3] by n28.bulk.scd.yahoo.com with NNFMP; 10 Jun 2005 01:20:24 -0000 Received: from [66.218.66.30] by mailer3.bulk.scd.yahoo.com with NNFMP; 10 Jun 2005 01:20:24 -0000 X-Yahoo-Newman-Property: groups-email X-Sender: xah@xahlee.org X-Apparently-To: lojban@yahoogroups.com Received: (qmail 50467 invoked from network); 10 Jun 2005 01:20:22 -0000 Received: from unknown (66.218.66.218) by m24.grp.scd.yahoo.com with QMQP; 10 Jun 2005 01:20:22 -0000 Received: from unknown (HELO xahlee.org) (206.130.99.40) by mta3.grp.scd.yahoo.com with SMTP; 10 Jun 2005 01:20:21 -0000 Received: (from root@localhost) by xahlee.org (8.11.6/8.11.6) id j5A1KFh27382; Thu, 9 Jun 2005 19:20:15 -0600 Message-Id: <200506100120.j5A1KFh27382@xahlee.org> To: lojban@yahoogroups.com X-Mailer: NeoMail 1.25 X-IPAddress: 69.236.76.61 X-Originating-IP: 206.130.99.40 X-eGroups-Msg-Info: 1:12:0 From: "Xah Lee" X-Yahoo-Profile: p0lyglut MIME-Version: 1.0 Mailing-List: list lojban@yahoogroups.com; contact lojban-owner@yahoogroups.com Delivered-To: mailing list lojban@yahoogroups.com Precedence: bulk Date: Thu, 9 Jun 2005 19:20:15 -0600 Subject: [lojban] Re: lojban grammer html errors Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-archive-position: 10123 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: xah@xahlee.org Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list This python script fixes it, except chapter 1 and 14. But, there are more problems. For example, in chapter 14, many paragraphes don't have

tages. Xah xah@xahlee.org ∑ http://xahlee.org/ # -*- coding: utf-8 -*- # Python import os,sys,shutil mydir= '/Users/t/web/lojban/hrefgram' findreplace = [ ('',''), (u''' ''', '<title>'), (''' ''', ''), ] def replaceStringInFile(filePath): "replaces all findStr by repStr in file filePath" print filePath tempName=filePath+'~x~' backupName=filePath+'~~' inF = open(filePath,'rb') s=unicode(inF.read(),'utf-8') inF.close() for couple in findreplace: outtext=s.replace(couple[0],couple[1]) s=outtext outF = open(tempName,'wb') outF.write(outtext.encode('utf-8')) outF.close() shutil.copy2(filePath,backupName) os.remove(filePath) os.rename(tempName,filePath) def myfun(dummy, dirr, filess): for child in filess: if '.html' == os.path.splitext(child)[1] and os.path.isfile(dirr+'/'+child): replaceStringInFile(dirr+'/'+child) print child os.path.walk(mydir, myfun, 'dummy') -------------------------------------------------- On Jun 9, 2005, at 5:33 PM, Xah Lee wrote: the lojban ref grammar HTML seems to have some errors. example: http://lojban.org/publications/reference_grammar/chapter8.html CSS Error (24/5): Invalid class selector. http://lojban.org/publications/reference_grammar/chapter8.html HTML error (256/62): The end tag is missing. HTML error (403/64): The end tag is missing. HTML error (508/53): The end tag is missing. HTML error (755/72): The end tag is missing. HTML error (843/76): The end tag is missing. HTML error (894/69): The end tag is missing. HTML error (1092/53): The end tag is missing. HTML error (1201/81): The end tag is missing. HTML error (1338/73): The end tag is missing. HTML error (1413/80): The end tag is missing. HTML error (1457/70): The end tag is missing. HTML error (1508/7): The end tag is missing. HTML error (1509/7): The end tag is missing. (validation report by iCab browser) replacing every by seems to fix one type of problem.... Xah xah@xahlee.org ∑ http://xahlee.org/ ☄ ------------------------ Yahoo! Groups Sponsor --------------------~--> In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide! http://us.click.yahoo.com/EA3HyD/3MnJAA/79vVAA/GSaulB/TM --------------------------------------------------------------------~-> To unsubscribe, send mail to lojban-unsubscribe@onelist.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/lojban/ <*> To unsubscribe from this group, send an email to: lojban-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/