{"id":26501937,"url":"https://github.com/nevmenandr/replace_u_with_v","last_synced_at":"2025-10-08T19:39:05.536Z","repository":{"id":283417316,"uuid":"951693596","full_name":"nevmenandr/replace_u_with_v","owner":"nevmenandr","description":"This code replaces \"u\" with \"v\" in Latin text under the specified conditions ","archived":false,"fork":false,"pushed_at":"2025-03-20T06:11:29.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T06:25:00.638Z","etag":null,"topics":["latin-language","perl-script","text-tools"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nevmenandr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-20T05:05:45.000Z","updated_at":"2025-03-20T06:11:32.000Z","dependencies_parsed_at":"2025-03-20T06:35:10.413Z","dependency_job_id":null,"html_url":"https://github.com/nevmenandr/replace_u_with_v","commit_stats":null,"previous_names":["nevmenandr/replace_u_with_v"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevmenandr%2Freplace_u_with_v","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevmenandr%2Freplace_u_with_v/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevmenandr%2Freplace_u_with_v/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevmenandr%2Freplace_u_with_v/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nevmenandr","download_url":"https://codeload.github.com/nevmenandr/replace_u_with_v/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244657291,"owners_count":20488761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latin-language","perl-script","text-tools"],"created_at":"2025-03-20T17:22:55.097Z","updated_at":"2025-10-08T19:39:05.530Z","avatar_url":"https://github.com/nevmenandr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Perl](https://img.shields.io/badge/perl-%2339457E.svg?style=for-the-badge\u0026logo=perl\u0026logoColor=white)](https://github.com/search?q=owner%3Anevmenandr+lang%3APerl+\u0026type=repositories) \n\n# Replacement u with v in Latin\n\n![latin](https://img.shields.io/badge/latin-language-blue) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15061593.svg)](https://doi.org/10.5281/zenodo.15061593)\n\n\n## Pre-notice\n\nThe name of the Perl programming language is similar to the name of a pearl, although its name does not come from the name of a pearl. 20 years ago, I [studied](http://nevmenandr.net/personalia/thesis.pdf) the influence of the Baroque style on literature, and one of the versions of the origin of the name Baroque is also from the name of an irregularly shaped pearl (*perola barroca*). So I absolutely must have a [repository](https://github.com/nevmenandr/replace_u_with_v) of Perl code, plus it's the second programming language I've learned. For the task I would like to solve with code in this language, I chose to work with text in Latin. Latin language has a long history, and in different centuries it was written differently, in particular, in ancient times it did not have a lowercase letter `v`, and only the letter `u` was used everywhere with exception for uppercase. Modern readers are used to reading texts with `v` in non-syllabic position. This code replaces `u` with `v` in non-syllabic positions and makes the text presented according to ancient rules more familiar to the eye of a modern reader. The script works with both lowercase and uppercase letters.\n\n## How to Use the Script\n\n1. Create input file: create a text file (e.g., `input.txt`) with the Latin text you want to process.\n\n2. Run the [script](./uv.pl): Open your terminal or command prompt and navigate to the directory where you saved the script and input file. Run the script using the following command:\n\n```bash\n   perl uv.pl input.txt\n```\n\nThe output file name will be constructed by appending `_v` to the base name before the extension. E.g. if your input file is named `input.txt`, then after running the script, you will get an output file named `input_v.txt`. The contents of this output file will reflect the changes made by replacing \"u\" with \"v\" as previously described.\n\n## Rules\n\nU changes to V in those cases where U is non-syllabic. This is the position before a vowel not after a consonant.\n\n## Example\n\nHere’s an example of an input file with various Latin phrases:\n\n```\nurbi et urbem sunt in utero.\nUeni, uidi, uici.\nUbi sunt qui ante nos fuerunt?\nQuod erat demonstrandum.\nAudire est credere.\nUbi est ueritas?\nSic transit gloria mundi.\nUxor et uir.\n```\n\nAfter running the script, output file will contain:\n\n```\nurbi et urbem sunt in utero.\nVeni, vidi, vici.\nUbi sunt qui ante nos fuerunt?\nQuod erat demonstrandum.\nAudire est credere.\nUbi est veritas?\nSic transit gloria mundi.\nUxor et vir.\n```\n\nRepository [contains](./input.txt) a book by M. A. Lucan written with u taken from [here](https://www.thelatinlibrary.com/lucan/lucan2.shtml) and a [converted text](./input_v.txt) with a script.\n\n## Citation info\n\nif you use this software for academic purposes, please cite it like this:\n\n```\nOrekhov, B. (2025). Replacement u with v in Latin (Version 1.0.1) [Computer software]. https://github.com/nevmenandr/replace_u_with_v DOI: 10.5281/zenodo.15061592\n```\n\n```\n@software{Orekhov_Replacement_u_with_2025,\nauthor = {Orekhov, Boris},\nlicense = {GPL-3.0+},\nmonth = mar,\ntitle = {{Replacement u with v in Latin}},\nurl = {https://github.com/nevmenandr/replace_u_with_v},\nversion = {1.0.1},\nyear = {2025}\n}\n```\n\n\n## See also\n\n* [Vindolanda: a font that reproduces old Roman cursive](https://nevmenandr.github.io/vindolanda/)\n* [Study of Huysmans' Latin](https://github.com/nevmenandr/huysmans)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevmenandr%2Freplace_u_with_v","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnevmenandr%2Freplace_u_with_v","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevmenandr%2Freplace_u_with_v/lists"}