Giter Club home page Giter Club logo

aard2-web's Introduction

Aard2 for Web

Aard2 for Web is a minimalistic web UI to look up words and browse content of dictionaries in slob format.

Aard2 for Web requires Java 1.7 or newer and a modern browser such as Chrome or Firefox.

Download Aard2 for Web

To start the application, run

java -Dslobber.browse=true -jar aard2-web-0.8.jar ~/Downloads/*.slob

(assuming you have some slob files in ~/Downloads directory). This should open Aard2 web UI page (http://localhost:8013) in the default system browser.

To start the web server on a different port, set system property slobber.port. For example, to start on port 8014:

java -jar -Dslobber.port=8014 -Dslobber.browse=true ~/Downloads/*.slob

To build:

# clone slobj and slobber sources
git clone https://github.com/itkach/slobj.git
git clone https://github.com/itkach/slobber.git

# clone this repo
git clone https://github.com/itkach/aard2-web

#build fat jar
cd aard2-web
./gradlew build

aard2-web's People

Contributors

itkach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aard2-web's Issues

Parameters and configurability

Any half-decent web-based interface takes query parameters so you can use them in preconfigured search engines, bookmarks, etc.

Must-have

  • Search term. Whether it's s, search, pattern or something else doesn't matter, but I like s. Example: ?s=amicable.
  • Dictionary selection. The most sensible ones to select by are probably the slob tags label, source, and uri. Slob id could also have its uses, presumably the first 8 characters would suffice. Example: ?dics=label:Wiktionnaire (fr);label:Wiktionary (de);slob-id:7dd6ab5f.

Nice to have

  • Stylesheet.
  • dontClearContent.

MP3 audio files are rendered in <video> tag

The app doesn't correctly handle embedded audio by wrapping MP3 audio files into the <object><video> tag.

For example, an entry from LDOCE5 file is rendered as follows:

<object type="audio/x-wav" data="bre_brelasdeapple.mp3" width="40" height="40">
  <param name="autoplay" value="false" />
</object>

while the expected markup should be

<audio controls  src="exa_p008-000730820.mp3"/>
Click for full HTML source of entry
<font color="blue">
<b>ap</b><b>ple</b>
</font>
<b>
<font color="red"> S2</font>
</b>
<b>
<font color="red"> W3</font>
</b> /ˈæp <i>ə</i>l/ <i class="p">
<font color="green">BrE</font>
</i>
<object type="audio/x-wav" data="bre_brelasdeapple.mp3" width="40" height="40">
<param name="autoplay" value="false" />
</object>
<i class="p">
<font color="green">AmE</font>
</i>
<object type="audio/x-wav" data="ame_apple1.mp3" width="40" height="40">
<param name="autoplay" value="false" />
</object>
<i>
<font color="green"> noun</font>
</i>undefined</p>undefined<p style="padding-left:2em;margin:0">[ <font color="lightcoral">Language: </font>
<font color="darkgray">Old English</font>; <font color="lightcoral">Origin: </font>
<font color="darkgray">æppel</font>]undefined
</p>undefined<p style="padding-left:2em;margin:0">
<img align="top" src="apple.jpg" alt="apple.jpg" />undefined
</p>undefined</p>undefined<p style="padding-left:2em;margin:0">undefined<b>1</b>. undefined<font color="green"> [uncountable and countable]</font> a hard round fruit that has red, light green, or yellow skin and is white inside: undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<object type="audio/x-wav" data="exa_p008-000944636.mp3" width="40" height="40">
  <param name="autoplay" value="false" />undefined
</object>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">apple pie</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<object type="audio/x-wav" data="exa_p008-001671984.mp3" width="40" height="40">
  <param name="autoplay" value="false" />undefined
</object>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">an apple tree</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<object type="audio/x-wav" data="exa_p008-001671985.mp3" width="40" height="40">
  <param name="autoplay" value="false" />undefined
</object>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">roast pork and apple sauce <i> (=a thick sauce made from cooked apples)</i>
    </font>
  </span>undefined</span> ⇨ ↑undefined<a href="cooking apple">cooking apple</a>, ↑undefined<a href="eating apple">eating apple</a>undefined</p>undefined<p style="padding-left:2em;margin:0">undefined<b>2</b>. undefined<b>
  <font color="blue">be the apple of sb’s eye</font>undefined
</b> to be loved very much by someone: undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<object type="audio/x-wav" data="exa_p008-000944643.mp3" width="40" height="40">
  <param name="autoplay" value="false" />undefined
</object>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Ben was always the apple of his father’s eye.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:2em;margin:0">undefined<b>3</b>. undefined<b>
  <font color="blue">bob/dunk/dip for apples</font>undefined
</b> to play a game in which you must use your teeth to pick up apples floating in waterundefined</p>undefined<p style="padding-left:2em;margin:0">undefined<b>4</b>. undefined<b>
  <font color="blue">be as American as apple pie</font>undefined
</b> used to describe something that is typically Americanundefined</p>undefined<p style="padding-left:2em;margin:0">undefined<b>5</b>. undefined<b>
  <font color="blue">the apple doesn’t fall far from the tree</font>undefined
</b>undefined<i>
  <font color="maroon"> American English</font>undefined
</i> used to say that children are usually similar to their parents, especially in a bad wayundefined</p>undefined<p style="padding-left:2em;margin:0"> ⇨ undefined<b>upset the apple cart</b> at ↑undefined<a href="upset">upset</a>undefined<sup>1</sup>(4), ⇨ undefined<b>a rotten apple</b> at ↑undefined<a href="rotten">rotten</a>undefined<sup>1</sup>(7), ⇨ undefined<font color="blue">ADAM’S APPLE</font>, ↑undefined<a href="Big Apple">Big Apple</a>undefined</p>undefined<p style="padding-left:6em;margin:0">undefined<font color="gray">• • •</font>undefined</p>undefined<p style="padding-left:2em;margin:0">undefined<font color="darkgoldenrod">
  <b>COLLOCATIONS</b>undefined
</font>undefined</p>undefined<p style="padding-left:3em;margin:0">undefined<b>
  <font color="chocolate">■ adjectives</font>undefined
</b>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>juicy</b>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">a juicy green apple</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>sweet</b>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">This apple’s really sweet and delicious.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>sour/tart</b>undefined<i> (=not at all sweet)</i>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Some people prefer a slightly sour apple.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>rotten</b>undefined<i> (=bad, so that the skin goes brown)</i>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">There were a few rotten apples lying on the ground.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>an eating/dessert apple</b>undefined<i> (=one which is sweet enough to eat)</i>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Use dessert apples for this recipe.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>a cooking apple</b>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>a baked apple</b>undefined<i> (=one that has been cooked in the oven)</i>undefined</p>undefined<p style="padding-left:3em;margin:0">undefined<b>
  <font color="chocolate">■ verbs</font>undefined
</b>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>eat an apple</b>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Some people say that you should eat an apple every day.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>bite into an apple</b>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Sue bit into her apple with a loud crunch.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>munch on an apple</b>undefined<i> (=eat it)</i>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">He was munching on an apple.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>peel an apple</b>undefined<i> (=remove the skin)</i>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Peel the apples and slice them finely.</font>
  </span>undefined</span>undefined</p>undefined<p style="padding-left:4em;margin:0">undefined<font color="gray"></font>undefined<b>core an apple</b>undefined<i> (=remove the middle part containing the seeds)</i>undefined<span class="sec">
  <span class="ex">
    <font color="steelblue">Core the apples and cut into quarters.</font>
  </span>undefined</span>undefined</p>

Moreover, setting autoplay = true is undesirable because an entry can contain more than one audio which will cause all audios to play at the same time.

Java source available?

Hi!

Thought I'd find the source code of the jar file here. Is it available?

Best regards,
John

networking issue when ported to Docker

I'm trying to port your app to Docker, but it seems that the container's port isn't properly published to localhost, as mentioned here. Are there any workaround for this? Thanks!

Files favicon.ico and styleswitcher.js are missing

I'd repair javascript error by added missing files to repository, its was
extracted from jar-file.
But I have no permissions to send pool request. I commit to new local branch and try to create pull request, but official Github client says "You have no permission to push your changes to this repository". Maybe I do something wrong? I'm novice at Github and would try to work in other Aard repositories.
1

Morphology

Is there any possibility to add morphology support? For example Hunspell?

*.desktop file

How to launch aard2-web properly through the Gnome Desktop Menu Specifications?

[Desktop Entry]
    Name=FooCorp Painter Pro
    Exec=foocorp-painter-pro
    Icon=foocorp-painter-pro
    Type=Application
    Categories=GTK;GNOME;Utility;

thanks

thanks for making aard2. good tool.

BUG: some searchable articles cannot be opened

Search curl "http://127.0.0.1:8013/find/?key=min" -> "minaret" and "mind" are found.

[ {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "min",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/min?blob=218-83#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "min min",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/min%20min?blob=218-230#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "min.",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/min.?blob=218-84#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minable",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minable?blob=218-125#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minacious",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minacious?blob=218-85#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minamata disease",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minamata%20disease?blob=218-86#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minangkabau",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minangkabau?blob=218-87#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minaret",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minaret?blob=218-88#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minas gerais",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minas%20gerais?blob=218-89#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minatory",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minatory?blob=218-90#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minaudiere",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minaudiere?blob=218-91#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minbar",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minbar?blob=218-92#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mince",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mince?blob=218-93#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mince pie",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mince%20pie?blob=218-96#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minced",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minced?blob=218-94#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mincemeat",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mincemeat?blob=218-95#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minch",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minch?blob=218-97#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mincing",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mincing?blob=218-98#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind?blob=218-99#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind altering",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20altering?blob=218-100#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind bender",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20bender?blob=218-102#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind blowing",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20blowing?blob=218-103#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind boggling",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20boggling?blob=218-104#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind expanding",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20expanding?blob=218-109#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind fuck",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20fuck?blob=218-110#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind game",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20game?blob=218-113#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind map",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20map?blob=218-117#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind numbing",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20numbing?blob=218-118#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind one's own business",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20one's%20own%20business?blob=48-160#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind read",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20read?blob=218-120#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind set",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20set?blob=218-121#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind share",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20share?blob=218-122#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mind your own business",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mind%20your%20own%20business?blob=218-123#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindanao",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindanao?blob=218-101#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minded",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minded?blob=218-105#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindedness",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindedness?blob=218-106#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindel",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindel?blob=218-107#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minder",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minder?blob=218-108#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindful",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindful?blob=218-111#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindfulness",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindfulness?blob=218-112#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindi",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindi?blob=218-114#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindless",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindless?blob=218-115#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindlessly",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindlessly?blob=218-116#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mindoro",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mindoro?blob=218-119#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine?blob=218-124#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine detector",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20detector?blob=218-126#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine dump",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20dump?blob=218-127#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine field",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20field?blob=218-128#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine host",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20host?blob=165-200#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine hunter",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20hunter?blob=218-129#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine layer",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20layer?blob=218-130#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine proof",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20proof?blob=218-131#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine shaft",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20shaft?blob=218-147#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine sweeper",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20sweeper?blob=218-149#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine worker",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20worker?blob=218-150#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mine working",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mine%20working?blob=218-151#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "miner",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/miner?blob=218-132#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "miner",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/miner?blob=218-133#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "miner's right",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/miner's%20right?blob=218-144#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral?blob=218-134#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral oil",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral%20oil?blob=218-138#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral rights",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral%20rights?blob=218-139#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral spirits",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral%20spirits?blob=218-140#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral spring",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral%20spring?blob=218-141#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral water",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral%20water?blob=218-142#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineral wool",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineral%20wool?blob=218-143#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineralisation",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineralisation?blob=218-135#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineralocorticoid",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineralocorticoid?blob=218-136#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mineralogical",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mineralogical?blob=218-137#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minerva",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minerva?blob=218-145#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minervois",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minervois?blob=218-146#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minestrone",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minestrone?blob=218-148#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "ming",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/ming?blob=218-152#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minge",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minge?blob=218-153#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minger",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minger?blob=218-154#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mingier",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mingier?blob=218-159#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minging",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minging?blob=218-155#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mingle",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mingle?blob=218-156#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mingler",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mingler?blob=218-157#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mingus",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mingus?blob=218-158#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minhag",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minhag?blob=218-160#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "minho",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/minho?blob=218-161#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini?blob=218-162#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini?blob=218-163#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini bar",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20bar?blob=218-169#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini beast",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20beast?blob=218-170#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini break",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20break?blob=218-171#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini bus",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20bus?blob=218-172#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini cab",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20cab?blob=218-173#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini cam",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20cam?blob=218-174#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini camp",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20camp?blob=218-175#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini computer",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20computer?blob=218-177#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini disc",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20disc?blob=218-179#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini dress",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20dress?blob=218-180#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini golf",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20golf?blob=218-182#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini mall",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20mall?blob=218-189#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini market",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20market?blob=218-191#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini mart",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20mart?blob=218-192#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini me",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20me?blob=218-194#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini moon",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20moon?blob=218-197#"
}, {
  "dictLabel" : "Oxford Dictionary of English",
  "label" : "mini pill",
  "url" : "/slob/c5350107-4853-4dad-a113-11e71f05fb9d/mini%20pill?blob=218-208#"
} ]

Search by "mina" and "mind" -> these articles are not found.
curl "http://127.0.0.1:8013/find/?key=mina"
[ ]
curl "http://127.0.0.1:8013/find/?key=mind"
[ ]

Web UI page not work

After command

java -Dslobber.browse=true -jar aard2-web-0.3.jar d:\Documents\YandexDisk\slob\*.slob

web UI page is shown as

<html>
  <head>
    <title>
      Aard 2
    </title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <script src="jquery-2.1.1.min.js"></script>
    <script src="script.js"></script>
    <script src="/styleswitcher.js"></script>
  </head>
  <body>

    <div class="horizontal">

      <div id="lookup-container" class="vertical">
        <div id="top-link-container" align="center">
          <a id="dict-link" href="#">Dictionaries</a>
        </div>
        <div id="word-container" class="horizontal">
          <input id="word"
                 name="word"
                 placeholder="Lookup..."
                 type="search"
                 autocomplete="off"
                 autofocus>
          <a id="random-link" href="#">&#x2685;</a>
        </div>
        <div id="lookup-result"></div>
      </div>

      <div id="content-container" class="vertical">
        <div id="content-header" class="horizontal">
          <span id="header-title">Wikipedia</span>
          <select id="dictionary-style">
          </select>
        </div>
        <iframe id="content" name="content" class="vertical"> </iframe>
      </div>

    </div>

  </body>
</html>

OS - Windows 8.1. Java version - 8 Update 25. Browser - Opera 25.0.1614.68.

Contents of folder with slobs:
_ru-m-wiktionary-org_20141102.lzma2.slob_
_species-wikimedia-org.lzma2.slob_
_rugta_20131103.lzma2.slob_
_lurkmoreto-20141024.lzma2.slob_
_be-m-wikipedia-org-20141024.lzma2.slob_
_wikireality-ru.lzma2.slob_
_lurkmoreto-20131115.lzma2.slob_
_ru-m-wikisource-org.lzma2.slob_
_ru-m-wikinews-org.lzma2.slob_
_ru-m-wikivoyage-org.lzma2.slob_
_ru-m-wikiquote-org.lzma2.slob_
_ru-m-wikibooks-org.lzma2.slob_
_www-wowpedia-ru.lzma2.slob_

how to run on windows with multi dictionary

""*"" parameter at readme doesnt work run .

java -Dslobber.browse=true -jar "D:\Downloads\aard2\aard2-web-0.7.jar"   "D:\Downloads\aard2\*.slob"  

this works

java -Dslobber.browse=true -jar "D:\Downloads\aard2\aard2-web-0.7.jar"   "D:\Downloads\aard2\freedict-eng-tur-0.2.1.slob"  

if i had soruce code i maybe i could fix there but idont have it.


also . if im not wrong previous version is c++ you compiled that to all environments or other thing that i dont know .that must have been hard. and now this is java , in theory this look easier to maintain was it?

i wantted to know your opinion. about cross platform thing / c+ / java ,
also brief info how to do this things

sorry to bother.
lots of repos lots of effort.


edit
managed to fake bash glob like this. maybe helps other winusers

@echo off

@echo:
echo You Have To Run As Bat File, Copy Pasting inTo CMD may Not Work!!!
@echo:
echo folder Structure Should be like this:
@echo:
echo Folder/
echo     +run_aar2.bat   (this bat file)
echo     +aard2.jar
echo     +mydict1.slob
echo     +mydict2.slob
@echo:

setlocal enabledelayedexpansion enableextensions
set LIST=
for %%x in (*.slob) do set LIST=!LIST! "%~dp0\%%x"
set LIST=%LIST:~1%
 
echo   Check if Combined  Paths Right:
@echo: 
echo  %LIST%
@echo: 
 
java -Dslobber.browse=true -jar "%~dp0\aard2-web-0.7.jar"  %LIST%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.