Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding words #20

Closed
decentral1se opened this issue Mar 16, 2017 · 5 comments
Closed

Adding words #20

decentral1se opened this issue Mar 16, 2017 · 5 comments

Comments

@decentral1se
Copy link

decentral1se commented Mar 16, 2017

Hi there, great to see this repository and initiative!

I was hoping to build a CLI tool which would benefit from such translations. However, rather than just take translations, I'd also hope to add them upstream when they are missing.

I saw the following commit 0f1aa58 and was wondering what do I need to do to submit a pull request with new words? Just add the words and bump the version?

Do you have existing command line tool which can manipulate (add words to) the XML? (EDIT: Oh, I saw in this wiki page you are working on it!?)

Thanks!

@humenda
Copy link
Member

humenda commented Mar 16, 2017 via email

@decentral1se
Copy link
Author

What do you mean by upstream? In some cases, we are upstream.

Ah yes, I meant you. But I also get your point that some times upstream is someone else.

please introduce yourself on the mailing list

Will do!

Fixes are welcome, really, but we probably would need to modify the pull request. Despite the version number, the change log, author information and headword count have to be correct. We would like to avoid patching sources which we import from upstream.

Ah, I see.

Do you have existing command line tool which can manipulate the XML?
Sadly no. It's fairly easy to transform word lists into TEI XML and if you could
tell us what your skills are and what you are most comfortable to use, we
certainly find a solution.

You could for instance write your words in the Ding format, for which we plan to
write a importer in the near future.

I write Python mostly. I'll keep an eye on the mailing list and see if I can help!

I'll check the wiki pages then, thanks! 👍

@humenda
Copy link
Member

humenda commented Mar 16, 2017 via email

@decentral1se
Copy link
Author

Python is awesome.

Agreed!

It only supports TEI as a writer in an pretty ancient version, but updating this shouldn't be too hard.

I'm kinda new to all this but is there somewhere to see the difference between the TEI versions? I suppose there are specifications? My web search skills are failing me ...

@bansp
Copy link
Member

bansp commented Mar 16, 2017

Can of worms... there is a generic translator from P4 into P5, but one's best bet in such a case is to look at the intended semantics and to apply it to the format we now use in Freedict.
Having said that, I need to add that I kind of hope to be able to change this format slightly, once the TEI-Lex0 recommendations are out.
I wouldn't recommend pyglossary modification as a project for now. For December, maybe :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants