{"id":23913215,"url":"https://github.com/fs-frost/asu.utilidades","last_synced_at":"2026-06-12T22:32:38.490Z","repository":{"id":191675561,"uuid":"117481572","full_name":"FS-Frost/Asu.Utilidades","owner":"FS-Frost","description":"Library on .NET Framework to work with subtitles on ASS format.","archived":false,"fork":false,"pushed_at":"2023-01-09T18:55:37.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T18:19:33.583Z","etag":null,"topics":["aegisub","csharp","dotnet","fansub","subtitles"],"latest_commit_sha":null,"homepage":"http://syncrajo.net/","language":"C#","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/FS-Frost.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}},"created_at":"2018-01-15T01:17:33.000Z","updated_at":"2024-05-22T12:52:12.000Z","dependencies_parsed_at":"2023-08-31T04:11:35.479Z","dependency_job_id":null,"html_url":"https://github.com/FS-Frost/Asu.Utilidades","commit_stats":null,"previous_names":["fs-frost/asu.utilidades"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FS-Frost/Asu.Utilidades","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FS-Frost%2FAsu.Utilidades","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FS-Frost%2FAsu.Utilidades/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FS-Frost%2FAsu.Utilidades/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FS-Frost%2FAsu.Utilidades/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FS-Frost","download_url":"https://codeload.github.com/FS-Frost/Asu.Utilidades/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FS-Frost%2FAsu.Utilidades/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aegisub","csharp","dotnet","fansub","subtitles"],"created_at":"2025-01-05T09:32:25.194Z","updated_at":"2026-06-12T22:32:38.472Z","avatar_url":"https://github.com/FS-Frost.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asu.Utilidades\nLibrary on .NET Framework to work with subtitles on ASS format.\n\n## Requirements\n- Microsoft .Net Framework 4.0 or higher.\n- NUnit Framework 3.9.\n\n## Some use cases\n\n### Read an ASS file:\n````csharp\nconst string path = \"Lucky Star S2 - 01.ass\";\nvar assFile = AssFile.Open(path);\n````\n### Parse and modify a line:\n````csharp\nconst string rawLine = @\"Dialogue: 0,0:44:14.79,0:44:15.68,Default,Kota,0,0,0,,What?\";\n\nvar line = new Line(rawLine);\nvar tag = new TagBe(5);\nline.Content = string.Format(\"{{{0}}}{1}\", tag.ToString(), line.Content);\n````\n\n### Parse a karaoke:\n````csharp\nconst string rawLine = @\"Comment: 0,0:01:47.02,0:01:53.69,Nexus,,0,0,0,karaoke,{\\kf27}tsu{\\kf23}ku{\\kf18}ri{\\kf25}mo{\\kf46}no {\\kf20}ja{\\kf26}na{\\kf26}i{\\kf21} {\\kf14}ha{\\kf27}p{\\kf25}pi{\\kf25}i {\\kf24}e{\\kf24}n{\\kf14}do {\\kf282}he\";\n\nvar line = new Line(rawLine);\nvar karaoke = new Karaoke(line.Content);\n````\n### Check fonts on an ASS file:\n````csharp\nconst string path = \"Boku wa Tomodachi ga Sukunai S3 - 02.ass\";\nvar assFile = new AssFile(path);\nConsole.WriteLine(\"File loaded: {0}\\n\", assFile.Name);\n\nforeach (var style in assFile.Styles) {\n    try {\n        var font = new System.Drawing.FontFamily(style.FontName);\n        Console.WriteLine(\"The font {0} exists.\", style.FontName);\n    } catch (Exception) {\n        Console.WriteLine(\"The font {0} doesn't exist.\", style.FontName);\n    }\n}\n````\n### Modify tag \\pos(x,y) on all non-commented dialogue lines:\n````csharp\n// Open the file.\nconst string path = \"Darker than Black S3 - 01.ass\";\nvar assFile = new AssFile(path);\n\n// Filter the lines that have the target tag.\nvar targetLines = (\n    from line in assFile.Events\n    where line.Type == LineType.Dialogue\n    where AssFilter.TagExists(line.Content, Tags.Pos) == true\n    select line\n);\n\n// Modify the lines.\nforeach (var line in targetLines) {\n    var tagRaw = AssFilter.SearchTag(line.Content, Tags.Pos).Value;\n    var tag = new TagPos(tagRaw);\n    tag.X += 10;\n    tag.Y -= 10;\n    line.Content = AssFilter.ReplaceTag(line.Content, Tags.Pos, tag.ToString());\n}\n\n// Save the file.\nassFile.Save(true);\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs-frost%2Fasu.utilidades","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffs-frost%2Fasu.utilidades","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs-frost%2Fasu.utilidades/lists"}