Conversation
There was a problem hiding this comment.
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:
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Wineh
approved these changes
Jul 23, 2025
Contributor
Wineh
left a comment
There was a problem hiding this comment.
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 |
| --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 |
Contributor
There was a problem hiding this comment.
Wellicht de volledige output van
>>> transliterate.get_available_language_codes() ['ka', 'sr', 'l1', 'ru', 'mn', 'uk', 'mk', 'el', 'hy', 'bg']
hier toevoegen?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.