From nobody@digitalkingdom.org Sun Aug 12 11:59:08 2007 Received: with ECARTIS (v1.0.0; list lojban-list); Sun, 12 Aug 2007 11:59:09 -0700 (PDT) Received: from nobody by chain.digitalkingdom.org with local (Exim 4.67) (envelope-from ) id 1IKIeF-0003Xk-3P for lojban-list-real@lojban.org; Sun, 12 Aug 2007 11:58:47 -0700 Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.67) (envelope-from ) id 1IKIeE-0003Xd-ED for lojban-list@lojban.org; Sun, 12 Aug 2007 11:58:46 -0700 Date: Sun, 12 Aug 2007 11:58:46 -0700 To: Lojban List Subject: [lojban] Re: Online jbofi'e broken? Message-ID: <20070812185846.GY26253@digitalkingdom.org> Mail-Followup-To: Lojban List References: <3ccac5f10708120311t52313c36uee5820763f0fc010@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3ccac5f10708120311t52313c36uee5820763f0fc010@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Robin Lee Powell X-archive-position: 13809 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Aug 12, 2007 at 02:11:22PM +0400, Cyril Slobin wrote: > coi rodo > > It seems like online jbofi'e at http://www.lojban.org/jboski/ is > partially broken. When I enter a gendra sentence, it is parsed > well, by on broken sentences it just kept silent. No error > messages, no "Last successfully parsed tokens", no nothing. Anyone > to fix? Source code attached. Be my guest. -Robin -- http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ Reason #237 To Learn Lojban: "Homonyms: Their Grate!" Proud Supporter of the Singularity Institute - http://singinst.org/ --AhhlLboLdkugWU4S Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="index.php.en" Content-Transfer-Encoding: 8bit Lojbanic Translator

Lojban Logo Lojban: The Logical Language Lojban Logo

If you are new to Lojban or this site, please read the help page first.

Finding Lojbanic Information: [ Help | Resources | Popular Pages | Site Map | Search ]
Basic Information About Lojban: [ FAQ | About Lojban | General LLG Information | News ]
Helping The Lojban Community: [ Projects | LLG Committees | How You Can Help | Give Feedback ]
Languages:  [Lojban] |  [Esperanto] |  [Français] |  [Deutsch] |  [Ivrit] |  [Norsk] |  [Español] |  [Swedish] |  [English]

Lojban-To-English Translation

Enter Lojban text here:

Simplified Markup: Number of columns:

jbofi'e says:

"; /*** Create some temporary files ***/ $iname = tempnam("/tmp", "jboski_in"); $hname = tempnam("/tmp", "jboski_out"); $ename = tempnam("/tmp", "jboski_err"); /*** Transform CR to LF and write the text to translate to a file ***/ $jbocku = StripSlashes(strtr($jbocku, "\r", "\n")); if ($fp = fopen("$iname", "w")) { fputs($fp, $jbocku); fclose($fp); } /*** Do the translation **/ if ($lunbe) { /*** terminal-like formatting ***/ echo "
";
    passthru("/usr/bin/jbofihe -b -x -w $nilcla <$iname 2>&1");
    echo "
"; } else { /*** HTML formatting ***/ /* retrieve the translation */ $ret = 0; system("(jbofihe -H <$iname 2>&1 || kill -9 \$\$) | tee $ename | tail -n +5 >$hname", $ret); /* in case something failed */ echo "
"; passthru("cat $ename"); echo "
"; /* retrieve the result and do the necessary substitutions */ $content = join('', file($hname)); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace("", "", $content); $content = str_replace(">>", "»", $content); $content = str_replace("<<", "«", $content); $content = str_replace("

", "
", $content); echo $content; } /*** Delete the temporary files ***/ unlink($iname); unlink($hname); unlink($ename); } ?>


la jbofi'e was created by Richard Curnow
This program was created by Raphaël Poss


Last modified: Mon Jun 27 23:11:56 PDT 2005

Please contact us with any comments, suggestions or concerns.

--AhhlLboLdkugWU4S-- To unsubscribe from this list, send mail to lojban-list-request@lojban.org with the subject unsubscribe, or go to http://www.lojban.org/lsg2/, or if you're really stuck, send mail to secretary@lojban.org for help.