{"id":26908750,"url":"https://github.com/travisgk/py-long-s","last_synced_at":"2026-01-28T20:03:40.546Z","repository":{"id":250172214,"uuid":"821555725","full_name":"travisgk/py-long-s","owner":"travisgk","description":"This Python tool accurately inserts the historical long S character ( ſ ) back into the given text to make it appear as if it were written before the 20th century. English, French, German, Spanish and Italian are supported.","archived":false,"fork":false,"pushed_at":"2024-11-29T16:18:19.000Z","size":351,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T10:57:07.913Z","etag":null,"topics":["alphabet","converter","deutsch","digital-humanities","docx","english","french","german","historical","historical-linguistics","history","italian","latin-alphabet","linguistics","odf","orthography","spanish","spelling","text-processing","typography"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/travisgk.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":"2024-06-28T20:15:07.000Z","updated_at":"2024-11-29T16:18:22.000Z","dependencies_parsed_at":"2024-07-25T17:03:51.190Z","dependency_job_id":"c9f5d51b-4087-43c1-8f2f-fa9c12152f2b","html_url":"https://github.com/travisgk/py-long-s","commit_stats":null,"previous_names":["travisgk/long-s","travisgk/py-long-s"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/travisgk/py-long-s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisgk%2Fpy-long-s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisgk%2Fpy-long-s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisgk%2Fpy-long-s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisgk%2Fpy-long-s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travisgk","download_url":"https://codeload.github.com/travisgk/py-long-s/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisgk%2Fpy-long-s/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28850474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alphabet","converter","deutsch","digital-humanities","docx","english","french","german","historical","historical-linguistics","history","italian","latin-alphabet","linguistics","odf","orthography","spanish","spelling","text-processing","typography"],"created_at":"2025-04-01T12:18:13.553Z","updated_at":"2026-01-28T20:03:40.530Z","avatar_url":"https://github.com/travisgk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-long-s\nThis Python tool accurately inserts the historical long S character (\u0026nbsp;ſ\u0026nbsp;) back into the given text to make it appear as if it were written before the 20th century.\n\nEnglish, French, German, Spanish, and Italian are supported.\n\n#### Installation\n```\npip install long-s\n```\n\u003cbr\u003e\n\nThe libraries used in this project can be installed separately by using:\n```\npip install numpy python-docx odfpy unidecode\n```\n\n\u003cbr\u003e\n\n## Online Converter\nThere's also a [JavaScript version](https://github.com/travisgk/long-s-converter) available that can be used online.\n\n\u003cbr\u003e\n\n## Example\n```\nimport long_s\n\nprint(long_s.convert(\"The discussion was surprisingly insightful.\", lang=\"en\"))\nprint(long_s.convert(\"La discussion était étonnamment perspicace.\", lang=\"fr\"))\nprint(long_s.convert(\"Die Diskussion war überraschend aufschlussreich.\", lang=\"de\"))\nprint(long_s.convert(\"La discusión fue sorprendentemente perspicaz.\", lang=\"es\"))\nprint(long_s.convert(\"La discussione è stata sorprendentemente perspicace.\", lang=\"it\"))\n```\n\n```\nThe diſcuſſion was ſurpriſingly inſightful.\nLa diſcuſſion était étonnamment perſpicace.\nDie Diskuſſion war überraſchend aufſchluſsreich.\nLa diſcuſión fue ſorprendentemente perſpicaz.\nLa diſcuſſione è ſtata ſorprendentemente perſpicace.\n```\n\n\u003cbr\u003e\n\n## Converting Files\n### .txt files\n```\nlong_s.convert_text_file(src_path=\"story.txt\", dst_path=None, lang=\"en\"))\n```\nSince `dst_path` is None, the program will save the converted text file as `story-long-s.txt`.\n\n\u003cbr\u003e\n\n### .odf files\n```\nlong_s.convert_odf_file(src_path=\"story.odt\", dst_path=\"old-story.odt\", lang=\"en\"))\n```\n\n\u003cbr\u003e\n\n### .docx files\n```\nlong_s.convert_docx_file(src_path=\"märschen.docx\", lang=\"de\"))\n```\n\n\u003cbr\u003e\n\n## Special Thanks\n\nThank you Andrew West of the TeX Users Group for the documentation found under [The Rules for Long S](https://www.tug.org/TUGboat/tb32-1/tb100west.pdf), which was fundamental in writing the conversion functions for English, French, Spanish, and Italian. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisgk%2Fpy-long-s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravisgk%2Fpy-long-s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisgk%2Fpy-long-s/lists"}