Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Script for Updating Custom Dictionary with Words from .po Files #574

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

Conversation

Copy link
Contributor

@mgiannopoulos24 mgiannopoulos24 commented Dec 9, 2024
edited
Loading

Περιγραφή του PR

Αυτό το script προσφέρει μια αυτοματοποιημένη διαδικασία ενημέρωσης του custom λεξικού main.txt με νέες λέξεις που εξάγονται από αρχεία .po. Το script:

  • Σαρώνει τα αρχεία .po για να εντοπίσει μοναδικές ελληνικές και αγγλικές λέξεις, αγνοώντας metadata γραμμές (π.χ. γραμμές που ξεκινούν με #:).
  • Ελέγχει ποιες λέξεις δεν υπάρχουν ήδη στο λεξικό main.txt, το οποίο βρίσκεται στον φάκελο dictionaries/.
  • Προσθέτει τις νέες λέξεις στο λεξικό με αλφαβητική σειρά.

Χαρακτηριστικά

  • Υποστήριξη για λέξεις με ελληνικούς τονισμούς.
  • Αυτόματη δημιουργία του αρχείου main.txt αν δεν υπάρχει ήδη.
  • Διαχείριση multiline msgstr εγγραφών στα .po αρχεία.
  • Εκτέλεση όλων των διαδικασιών με στόχο τη διατήρηση της συνοχής και την αποφυγή διπλών καταχωρίσεων.

Τρόπος Χρήσης

python scripts/add_to_dictionary.py <file_path>

Παράδειγμα

python scripts/add_to_dictionary.py translations/el.po

Λίστα Εργασιών

  • Αλλαγή script

artemisln and others added 9 commits December 4, 2024 15:29
* Translated distributing/index.po
* Update index.po
* Update index.po
* [pre-commit.ci lite] apply automatic fixes
---------
Co-authored-by: = <=>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: skpanagiotis <panagiotis.skias@gmail.com>
pre-commit-ci-lite bot and others added 20 commits December 9, 2024 18:11
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
mgiannopoulos24 and others added 27 commits December 11, 2024 02:14
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /