diff --git a/Cargo.toml b/Cargo.toml index e0082b9..8282499 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,5 @@ -[package] -name = "dict-tei" -version = "0.1.0" -authors = ["Anders Olsson "] -edition = "2018" - -[dependencies] -quick-xml = "0.13" +[workspace] +members = [ + "dict", + "dict-tei", +] diff --git a/.gitignore b/dict-tei/.gitignore similarity index 100% rename from .gitignore rename to dict-tei/.gitignore diff --git a/dict-tei/Cargo.toml b/dict-tei/Cargo.toml new file mode 100644 index 0000000..e0082b9 --- /dev/null +++ b/dict-tei/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "dict-tei" +version = "0.1.0" +authors = ["Anders Olsson "] +edition = "2018" + +[dependencies] +quick-xml = "0.13" diff --git a/data/pol-eng.tei b/dict-tei/data/pol-eng.tei similarity index 100% rename from data/pol-eng.tei rename to dict-tei/data/pol-eng.tei diff --git a/data/swe-pol.tei b/dict-tei/data/swe-pol.tei similarity index 100% rename from data/swe-pol.tei rename to dict-tei/data/swe-pol.tei diff --git a/src/lib.rs b/dict-tei/src/lib.rs similarity index 100% rename from src/lib.rs rename to dict-tei/src/lib.rs diff --git a/dict/.gitignore b/dict/.gitignore new file mode 100644 index 0000000..2f88dba --- /dev/null +++ b/dict/.gitignore @@ -0,0 +1,3 @@ +/target +**/*.rs.bk +Cargo.lock \ No newline at end of file diff --git a/dict/Cargo.toml b/dict/Cargo.toml new file mode 100644 index 0000000..13afc03 --- /dev/null +++ b/dict/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "dict" +version = "0.1.0" +authors = ["Anders Olsson "] +edition = "2018" + +[dependencies] +isolang = "1.0" \ No newline at end of file diff --git a/dict/src/lib.rs b/dict/src/lib.rs new file mode 100644 index 0000000..c69c00a --- /dev/null +++ b/dict/src/lib.rs @@ -0,0 +1,12 @@ +use isolang::Language; + +pub struct Entry { + language: Language, + orthographic: String, + translation: Vec, +} + +pub struct Translation { + language: Language, + translations: Vec, +} \ No newline at end of file