2015-05-19 9:39 GMT+02:00 Kevin Brubeck Unhammer <[email protected]>:
> Jacob Nordfalk <[email protected]> writes:
>
> [...]
>
> > I have this headache....:
> >
> > 1) The viewer is best suited for development pairs from SVN, but they
> > are the hardest to find
> >
> > 2) I can find installed pairs (and online pairs) easily (looking in
> > i.a. /usr/local/share, /usr/share), therefore I show them.
> >
> > I cannot find the development pairs as they could be anywhere on the
> > file system.
> >
> > I feel that the effect of 1) + 2) is that people don't use
> > Apertium-viewer for what its best for.
> >
> > Any ideas ?
> >
> > One idea would be to check if 'lt-comp' can be executed.
> > If yes, prompt the user to load some modes.
> > Another (rather intrusive) way would be to scan the user's home
> > directory and subdirectories for modes.
>
> How about "locate/mdfind"?
>
It is (only) updated daily, so stuff the user just downloaded from SVN wont
be listed.
.... but definitely a possibility !
>
> $ time locate -eLb '\modes.xml' >/dev/null
>
> real 0m0.247s
> user 0m0.246s
> sys 0m0.000s
>
> I tend to think of the existence of a modes.xml as a fairly sure sign
> that this is an apertium data directory.
>
>
Yes, and installed pairs arent listed ! Great.
--
Jacob Nordfalk <http://profiles.google.com/jacob.nordfalk>
javabog.dk
Androidudvikler og -underviser på DTU
<http://www.cv.diplom.dtu.dk/Diplomuddannelser/IT-Diplomuddannelsen/Valgfrie-moduler/Mobilapplikationsudvikling/Formaal-og-laeringsmaal>
og Lund&Bendsen
<https://www.lundogbendsen.dk/undervisning/beskrivelse/LB1809/>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff