Comments (8)
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.
Are you aware of these scripts to dump Wiktionary into ding format?
from dictionary.
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.
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.
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.
It would be nice if this could at least include conjugations, which is one of the main things I use Wiktionary for.
from dictionary.
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.
Big table of wiki markup parsers: https://www.mediawiki.org/wiki/Alternative_parsers
from dictionary.
Related Issues (20)
- Italian to Sicilian Dictionary HOT 1
- App crashes on start-up HOT 2
- Unable to download dictionaries on Android 11 HOT 3
- Problem with external Storage on LineageOS 18.1 / Android 11 HOT 8
- Choosing QuickDic in the text selection toolbar leads to "Invalid dictionary" error HOT 3
- Japanese kanji search reads how its read, not how its written HOT 2
- Dictionaries contain too much Wiktionary code stuff, possible to filter better? HOT 2
- Creating a Tolino compatible Quickdic dictionary starting with headwords, inflections and definitions HOT 1
- Wiktionary links error HOT 4
- RFE: Don't scroll to the top in dictionary manager when a download finishes HOT 1
- WebView scroll position lost after device orientation change
- Add language anchor in links to online Wiktionary
- Activity memory leak caused by anonymous threads HOT 2
- Scoped storage doesn't work HOT 3
- is this project still alive? HOT 4
- Not working on Android 14? HOT 48
- Advanced/partial word search HOT 2
- No dictionary selected at launch
- Show root word meaning rather than reference
- Cannot access wordList.txt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dictionary.