Giter Club home page Giter Club logo

Comments (8)

rdoeffinger avatar rdoeffinger commented on June 2, 2024

Yes, the fact that there are so many, and that they are different in each regional wiktionary and that they should be replaced depending on dictionary language makes this very problematic.
Unfortunately it does not seem possible (easily/efficiently) to just use the engine that wiktionary uses, which seems the only "proper" solution to this.
For those reasons personally I am not planning any work on this so far, though if someone has a particularly nice idea to solve this or wants to work on it that's of course welcome.

from dictionary.

astoff avatar astoff commented on June 2, 2024

Are you aware of these scripts to dump Wiktionary into ding format?

from dictionary.

Jibec avatar Jibec commented on June 2, 2024

We probably should make lists of template replacement.

Somme examples:

  • global:
  • per language

I'll be glad help for french language.

Example "S" template, used in titles : {{S|(.)(|.)+}}

  • {S|étymologie}} => étymologie
  • {S|nom|fr}} => nom

This website is great to make easy tests: https://regex101.com/#python

some automatic test would be great to make sure we can maintain it
some automatic template detection (count results per language) would be great to know where to focus.

from dictionary.

rdoeffinger avatar rdoeffinger commented on June 2, 2024

Now that I see it written, I also have a concern that the replacement must be done in a way that it's clear it's not actually part of the translation or so itself, since the user might not know some of those words in the language they are translating to.
Unless you mean {S|étymologie} would be replaced by the matching word in whatever the user's system language is, which would be a lot more effort though.

from dictionary.

Jibec avatar Jibec commented on June 2, 2024

Some templates are only for cosmetics, some are for "inclusion" (to include content from a template or sub-page), some are internal links, some are external links.
I did not mean to translate anything, "just" to create regex search and replace of text to make it clean when displayed to user.

Here is an article with an extensive usage of templates (63!):
https://fr.wiktionary.org/wiki/encyclop%C3%A9die?action=edit&veswitched=1

But when talking about internal (inside wiktionary in same or different language) links, you may want to create an articulation with currently installed dictionaries in user's smartphone, but I have no ideas how to handle this.

from dictionary.

happysmash27 avatar happysmash27 commented on June 2, 2024

It would be nice if this could at least include conjugations, which is one of the main things I use Wiktionary for.

from dictionary.

woj-tek avatar woj-tek commented on June 2, 2024

Are you aware of these scripts to dump Wiktionary into ding format?

Sorry for necro-responding but (1) QuickDic was recently updated on F-droid and (2) the wikionary formatting is somewhat annoying so while looking for a way to make it better I stumbled against this issue and above comment and it looks quite awesome. While having full-blown dictionary with translation is great, having readable simple dictionary.

from dictionary.

DougInAMug avatar DougInAMug commented on June 2, 2024

Big table of wiki markup parsers: https://www.mediawiki.org/wiki/Alternative_parsers

from dictionary.

Related Issues (20)

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.