summaryrefslogtreecommitdiffstats
path: root/modules/lxxm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lxxm')
-rw-r--r--modules/lxxm/convert.sh3
-rw-r--r--modules/lxxm/lib/greekconverter-wont-compile-src.jarbin0 -> 98761 bytes
-rw-r--r--modules/lxxm/lib/greekconverter.jarbin0 -> 100503 bytes
-rw-r--r--modules/lxxm/lxxm.html33
-rw-r--r--modules/lxxm/lxxm.imp0
-rw-r--r--modules/lxxm/lxxm.jarbin0 -> 26328 bytes
-rw-r--r--modules/lxxm/lxxm.jpx70
-rw-r--r--modules/lxxm/lxxm.jpx.local20
-rw-r--r--modules/lxxm/src/lxxm/LXXMConv.java93
9 files changed, 219 insertions, 0 deletions
diff --git a/modules/lxxm/convert.sh b/modules/lxxm/convert.sh
new file mode 100644
index 0000000..20a7ac7
--- /dev/null
+++ b/modules/lxxm/convert.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+java -jar lxxm.jar [0-9][0-9]\.* > lxxm-decomp.imp
+uconv -x Any-NFC lxxm-decomp.imp > lxxm.imp
diff --git a/modules/lxxm/lib/greekconverter-wont-compile-src.jar b/modules/lxxm/lib/greekconverter-wont-compile-src.jar
new file mode 100644
index 0000000..30ac69f
--- /dev/null
+++ b/modules/lxxm/lib/greekconverter-wont-compile-src.jar
Binary files differ
diff --git a/modules/lxxm/lib/greekconverter.jar b/modules/lxxm/lib/greekconverter.jar
new file mode 100644
index 0000000..4e540e5
--- /dev/null
+++ b/modules/lxxm/lib/greekconverter.jar
Binary files differ
diff --git a/modules/lxxm/lxxm.html b/modules/lxxm/lxxm.html
new file mode 100644
index 0000000..17c81d5
--- /dev/null
+++ b/modules/lxxm/lxxm.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>JBuilder Project lxxm.jpx</title>
+</head>
+<body>
+<h1>Project lxxm Notes</h1>
+<hr><table border="0">
+<tr><th align="left" valign="top">Title:</th><td align="left" valign="top">
+<!-- Type Title below -->
+
+</td></tr>
+<tr><th align="left" valign="top">Author:</th><td align="left" valign="top">
+<!-- Type Author below -->
+
+</td></tr>
+<tr><th align="left" valign="top">Company:</th><td align="left" valign="top">
+<!-- Type Company below -->
+
+</td></tr>
+<tr><th align="left" valign="top">Description:</th><td align="left" valign="top">
+<!-- Type Description below -->
+
+</td></tr>
+</table><hr>
+<h2>Things to do... </h2>
+<ol>
+<!-- Edit this section to keep track of your to do items -->
+<li>First
+<li>Second
+</ol>
+</body>
+</html>
diff --git a/modules/lxxm/lxxm.imp b/modules/lxxm/lxxm.imp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/modules/lxxm/lxxm.imp
diff --git a/modules/lxxm/lxxm.jar b/modules/lxxm/lxxm.jar
new file mode 100644
index 0000000..ebbad2b
--- /dev/null
+++ b/modules/lxxm/lxxm.jar
Binary files differ
diff --git a/modules/lxxm/lxxm.jpx b/modules/lxxm/lxxm.jpx
new file mode 100644
index 0000000..8fa87a8
--- /dev/null
+++ b/modules/lxxm/lxxm.jpx
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--JBuilder XML Project-->
+<project>
+ <property category="generalFormatting" name="baseCodeStyle" value="java/Java Standard.codestyle"/>
+ <property category="generalFormatting2" name="blockIndent" value="4"/>
+ <property category="generalFormatting2" name="continuationIndent" value="8"/>
+ <property category="generalFormatting2" name="overrideBasicFormatting" value="1"/>
+ <property category="javaFormatting" name="alignMultilineAssign" value="1"/>
+ <property category="javaFormatting" name="arrayInitDataOnNewLine" value="0"/>
+ <property category="javaFormatting" name="blankLinesAfterClass" value="2"/>
+ <property category="javaFormatting" name="catchOnNewLine" value="0"/>
+ <property category="javaFormatting" name="elseOnNewLine" value="0"/>
+ <property category="javaFormatting" name="extendsOnNewLine" value="0"/>
+ <property category="javaFormatting" name="finallyOnNewLine" value="0"/>
+ <property category="javaFormatting" name="implementsOnNewLine" value="0"/>
+ <property category="javaFormatting" name="indentCase" value="0"/>
+ <property category="javaFormatting" name="packagePrefixGroups" value="java;BLANK_LINE;javax;BLANK_LINE;(*)"/>
+ <property category="javaFormatting" name="preservedBlankLinesInDecl" value="2"/>
+ <property category="javaFormatting" name="spaceBeforeLparen" value="0"/>
+ <property category="javaFormatting" name="whileOnNewLine" value="0"/>
+ <property category="javadoc" name="custom.tags.1" value="todo;a;To Do:"/>
+ <property category="runtime" name="DefaultConfiguration" value="-1"/>
+ <property category="runtime.0" name="BuildTargetOnRun" value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
+ <property category="runtime.0" name="ConfigurationName" value="Untitled Runtime Configuration"/>
+ <property category="runtime.0" name="RunnableType" value="com.borland.jbuilder.runtime.ApplicationRunner"/>
+ <property category="runtime.0" name="application.class" value="lxxm.LXXMConv"/>
+ <property category="runtime.0" name="application.parameters" value="/home/scribe/x.txt"/>
+ <property category="serverservices" name="disabled.services" value="jdatastore"/>
+ <property category="serverservices" name="single.server.name" value=""/>
+ <property category="sys" name="AuthorLabel" value="@author"/>
+ <property category="sys" name="BackupPath" value="bak"/>
+ <property category="sys" name="CheckStable" value="1"/>
+ <property category="sys" name="Company" value=""/>
+ <property category="sys" name="CompanyLabel" value="Company:"/>
+ <property category="sys" name="Copyright" value="Copyright (c) 2005"/>
+ <property category="sys" name="CopyrightLabel" value="Copyright:"/>
+ <property category="sys" name="DefaultPath" value="src"/>
+ <property category="sys" name="Description" value=""/>
+ <property category="sys" name="DescriptionLabel" value="Description:"/>
+ <property category="sys" name="DocPath" value="doc"/>
+ <property category="sys" name="Encoding" value="Cp1252"/>
+ <property category="sys" name="ExcludeClassEnabled" value="0"/>
+ <property category="sys" name="IncludeTestPath" value="1"/>
+ <property category="sys" name="InstanceVisibility" value="2"/>
+ <property category="sys" name="JDK" value="java version 1.5.0_04-b05"/>
+ <property category="sys" name="JvmVersion" value="1.2"/>
+ <property category="sys" name="LastTag" value="0"/>
+ <property category="sys" name="Libraries" value="lib/greekconverter.jar"/>
+ <property category="sys" name="MakeStable" value="0"/>
+ <property category="sys" name="OutPath" value="classes"/>
+ <property category="sys" name="SourcePath" value="src;test"/>
+ <property category="sys" name="TestPath" value="test"/>
+ <property category="sys" name="Title" value=""/>
+ <property category="sys" name="TitleLabel" value="Title:"/>
+ <property category="sys" name="Version" value="1.0"/>
+ <property category="sys" name="VersionLabel" value="@version"/>
+ <property category="sys" name="WorkingDirectory" value="."/>
+ <node name="LXXMConv" type="Archive">
+ <property category="archiving" name="archiverClass" value="com.borland.jbuilder.wizard.archive.ApplicationArchiver"/>
+ <property category="archiving" name="contentRules.1" value="I:**/*.*"/>
+ <property category="archiving" name="includeDeps" value="1"/>
+ <property category="archiving" name="libraryStates.1" value="2:lib/greekconverter.jar"/>
+ <property category="archiving" name="manifestMainClass" value="lxxm.LXXMConv"/>
+ <property category="archiving" name="obfuscator" value="RetroGuard"/>
+ <property category="archiving" name="targetCompressed" value="1"/>
+ <property category="archiving" name="targetPath" value="lxxm.jar"/>
+ <property category="archiving" name="usingRules" value="1"/>
+ </node>
+ <file path="lxxm.html"/>
+</project>
diff --git a/modules/lxxm/lxxm.jpx.local b/modules/lxxm/lxxm.jpx.local
new file mode 100644
index 0000000..bbf4d02
--- /dev/null
+++ b/modules/lxxm/lxxm.jpx.local
@@ -0,0 +1,20 @@
+build.menu.1[0]=com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make
+build.menu.2[0]=com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;rebuild
+content.layout.xml.[0]=<project-layout><tab_container selected_index="0"><tab node_name="src/lxxm/LXXMConv.java"/><tab node_name="[/space/usr/local/jdk1.5.0_04/src.zip]/java/lang/String.java"/></tab_container></project-layout>
+debug.NoTracingClasses.1[0]=16 java.lang.Object1 1 -1
+debug.NoTracingClasses.2[0]=21 java.lang.ClassLoader1 1 -1
+debug.NoTracingClasses.3[0]=16 java.lang.String1 1 -1
+debug.SplitThreadsAndDataView[0]=0
+history.files.active[0]=src/lxxm/LXXMConv.java,F;19,2247
+history.files.open.1[0]=src/lxxm/LXXMConv.java,F;19,2247
+history.files.open.2[0]=[/space/usr/local/jdk1.5.0_04/src.zip]/java/lang/String.java,F;1743,69911
+import.optimize.legacyPropertiesRead[0]=1
+packagebrowser.lastClassName[0]=lxxm.LXXMConv
+sys.Author[0]=
+sys.DefaultPackage[0]=lxxm
+sys.ReopenHistory.1[0]=[/space/usr/local/jdk1.5.0_04/src.zip]/java/io/BufferedReader.java
+sys.ReopenHistory.2[0]=src/greekconverter/BetacodeToUnicode.java
+sys.ReopenHistory.3[0]=classes/greekconverter/UC.class
+sys.ReopenHistory.4[0]=src/lxxm/Untitled1.java
+team.lastScanned[0]=1128944865968
+wizard.package.package_history.1[0]=lxxm
diff --git a/modules/lxxm/src/lxxm/LXXMConv.java b/modules/lxxm/src/lxxm/LXXMConv.java
new file mode 100644
index 0000000..5c6d74d
--- /dev/null
+++ b/modules/lxxm/src/lxxm/LXXMConv.java
@@ -0,0 +1,93 @@
+package lxxm;
+
+import greekconverter.BetacodeToUnicode;
+import java.io.BufferedReader;
+import java.io.FileReader;
+import java.io.*;
+
+public class LXXMConv {
+ public LXXMConv() {
+ }
+
+ public static void main(String[] args) {
+ BetacodeToUnicode bc = new BetacodeToUnicode();
+ BufferedReader input = null;
+ if (args.length < 1) {
+ System.err.println("usage: LXXMConv <fileName> [fileName] ...");
+ return;
+ }
+ for (int i = 0; i < args.length; i++) {
+ try {
+ input = new BufferedReader(new FileReader(args[i]));
+ } catch (FileNotFoundException ex) {
+ System.err.println("Couldn't open file: " + args[i]);
+ return;
+ }
+ String line = null;
+ try {
+ boolean first = true;
+ boolean heading = false;
+ String headingTxt = "";
+ line = input.readLine();
+ while (line != null) {
+ if ((line.length() > 0) && (line.length() < 36)) {
+ if (line.matches("...*[0-9].*")) {
+ System.out.println("");
+ System.out.print("$$$");
+ // book
+ System.out.print(line.substring(0, line.indexOf(' ')));
+ // chapter (or verse if no chapter)
+ System.out.print("/"+((line.indexOf(':') > 0) ? line.substring(line.indexOf(' ') + 1, line.indexOf(':')) : line.substring(line.indexOf(' ') + 1)));
+ // verse (if exists)
+ if (line.indexOf(':') > 0) {
+ System.out.print("/"+line.substring(line.indexOf(':') + 1));
+ }
+ System.out.println("");
+ if (headingTxt.length() > 0) {
+ System.out.println("<title type=\"section\" subtype=\"x-preverse\">"+headingTxt+"</title>");
+ headingTxt = "";
+ }
+ heading = false;
+ }
+ else {
+ heading = true;
+ }
+ first = true;
+ }
+ else {
+ String out = "";
+ if (line.length() > 36) {
+ String word = line.substring(0, 25).trim();
+ String parse = line.substring(25, 36).trim();
+ String lemma = line.substring(36).trim();
+ if (lemma.indexOf(' ') > 0) {
+ lemma = lemma.substring(0, lemma.indexOf(' ')) + "," + lemma.substring(lemma.lastIndexOf(' '));
+ }
+ if (!first) {
+ // space between words
+ out += " ";
+ } else {
+ first = false;
+ }
+ out += "<w lemma=\"" +
+ bc.convertString(lemma).
+ substring(1) +
+ "\" morph=\"packard:" + parse +
+ "\" xlit=\"betacode:" + word +
+ "\">" +
+ bc.convertString(word).
+ substring(1) + "</w>";
+ }
+ if (heading)
+ headingTxt += out;
+ else
+ System.out.print(out);
+ }
+
+ line = input.readLine();
+ }
+ input.close();
+ } catch (Exception ex1) { ex1.printStackTrace();}
+ }
+ }
+}