Skip to content

Conversation

@zyronix
Copy link
Collaborator

@zyronix zyronix commented Jul 22, 2025

No description provided.

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

Copilot AI left a comment

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:

Copy link
Contributor

@Wineh Wineh left a comment

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!

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
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"

--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
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