Skip to content

Adding transliterate feature#69

Merged
zyronix merged 4 commits into
masterfrom
feature/transliterate
Jul 24, 2025
Merged

Adding transliterate feature#69
zyronix merged 4 commits into
masterfrom
feature/transliterate

Conversation

@zyronix

@zyronix zyronix commented Jul 22, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@zyronix
zyronix requested review from Wineh, Copilot and gochujang-c July 22, 2025 16:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a transliterate feature to the application, which converts text from one script to another (e.g., Cyrillic to Latin characters). The feature accepts a 2-letter ISO language code and can be combined with the --non-ascii option for further character conversion.

  • Adds transliterate functionality with language code parameter
  • Includes test coverage for Serbian transliteration
  • Documents the new feature with usage examples

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.

File Description
tests/test_app.py Adds test case for transliterate feature using Serbian test data
tests/conftest.py Creates test input file with Cyrillic text for transliteration testing
docs/usage.rst Documents the new transliterate feature with usage instructions and examples
Comments suppressed due to low confidence (1)

tests/test_app.py:1017

  • The test should verify that the output file was created successfully and handle potential file I/O errors. Consider adding error handling or using a context manager with proper cleanup.
    with open('testdata/output55') as f:

Comment thread docs/usage.rst Outdated
Comment thread docs/usage.rst Outdated
zyronix and others added 2 commits July 22, 2025 18:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@Wineh Wineh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paar kleine puntjes, voor de rest approve!

Comment thread bin/demeuk.py Outdated
Comment thread bin/demeuk.py Outdated
Comment thread bin/demeuk.py
Comment thread bin/demeuk.py
Comment thread bin/demeuk.py
becomes u, ç becomes c.
--trim Enables removing newlines representations from end and beginning. Newline
representations detected are '\\n', '\\r', '\n', '\r', '<br>', and '<br />'.
--transliterate <language> Transliterate a strings, for example "ipsum" becomes "իպսում". Language is iso

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier ook -s bij "strings"

Comment thread bin/demeuk.py
--trim Enables removing newlines representations from end and beginning. Newline
representations detected are '\\n', '\\r', '\n', '\r', '<br>', and '<br />'.
--transliterate <language> Transliterate a strings, for example "ipsum" becomes "իպսում". Language is iso
2 letter code. Examples: ru, sr, ua

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wellicht de volledige output van
>>> transliterate.get_available_language_codes() ['ka', 'sr', 'l1', 'ru', 'mn', 'uk', 'mk', 'el', 'hy', 'bg']

hier toevoegen?

@zyronix
zyronix merged commit fbea76c into master Jul 24, 2025
4 checks passed
@zyronix
zyronix deleted the feature/transliterate branch July 24, 2025 08:33
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

Successfully merging this pull request may close these issues.

3 participants