{"id":20064141,"url":"https://github.com/i10416/latex2unicode","last_synced_at":"2026-04-11T22:43:52.277Z","repository":{"id":40242635,"uuid":"478404774","full_name":"i10416/latex2unicode","owner":"i10416","description":"convert latex to unicode in JVM, JavaScript and native","archived":false,"fork":false,"pushed_at":"2022-11-24T11:14:20.000Z","size":36,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T22:43:56.386Z","etag":null,"topics":["latex","scala","scalajs","web"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i10416.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}},"created_at":"2022-04-06T04:40:20.000Z","updated_at":"2022-04-06T04:41:34.000Z","dependencies_parsed_at":"2023-01-21T03:48:27.789Z","dependency_job_id":null,"html_url":"https://github.com/i10416/latex2unicode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Flatex2unicode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Flatex2unicode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Flatex2unicode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Flatex2unicode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i10416","download_url":"https://codeload.github.com/i10416/latex2unicode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494142,"owners_count":19971870,"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":["latex","scala","scalajs","web"],"created_at":"2024-11-13T13:44:56.871Z","updated_at":"2026-04-11T22:43:47.233Z","avatar_url":"https://github.com/i10416.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LaTeX2Unicode\n\n\nLaTeX2Unicode translates LaTeX markup to human readable Unicode when possible. Here's an online demo that can be conveniently used to type in special characters. (demo source)\n\nBasic math notations are supported. For instance:\n\n```\n\\because \\t{AB} + \\t{BC} \\neq \\t{AC}\n\\therefore \\iint\\sqrt[4]{\\xi^{\\theta+1}} - \\frac 38 \\le\n\\Sigma \\zeta_i \\\\\n\\therefore \\exists{x}\\forall{y} x \\in \\^A\n```\n\nis converted to\n\n\u003e ∵ A͡B + B͡C ≠ A͡C ∴ ∬∜ξ̅ᶿ̅⁺̅¹̅ - ⅜ ≤ Σ ζᵢ\n\n\u003e ∴ ∃x∀y x ∈ Â\n\nHundreds of other symbols and special characters are supported, too. For example, `\\spadesuit`, `\\aleph`, `\\OE`, `\\downdownarrows` and `\\o` are translated to `♠`, `ℵ`, `Œ`, `⇊`, `ø`, respectively.\n\nSome font styles are supported, too. For instance:\n\n```\n\\textbb{Black Board Bold}, \\textfrak{Fraktur},\n{\\bf Bold Face}, {\\cal Calligraphic}, {\\it Italic},\n{\\tt Monospace}\n```\n\nis translated to\n\n\u003e 𝔹𝕝𝕒𝕔𝕜 𝔹𝕠𝕒𝕣𝕕 𝔹𝕠𝕝𝕕, 𝔉𝔯𝔞𝔨𝔱𝔲𝔯, 𝐁𝐨𝐥𝐝 𝐅𝐚𝐜𝐞, 𝓒𝓪𝓵𝓵𝓲𝓰𝓻𝓪𝓹𝓱𝓲𝓬, 𝐼𝑡𝑎𝑙𝑖𝑐, 𝙼𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎\n\n# Using as Scala / Java Library\n\nLaTeX2Unicode is written in Scala, thus can serve as a 3rd party library in any JVM, JS or native application that needs to extract information from LaTeX texts (e.g. BibTeX).\n\n## Simple Conversion\n\nFor simple conversion without configuration, which works fine in most cases, one call to a static method and you're done.\n\nIn Scala:\n\n```scala\nimport dev.i10416.latex2unicode._\n\nval latex = \"\\\\ss^2 + \\\\alpha_3 \\n \\\\div \\\\frac{1}{3} = \\\\sqrt[3]{123}\"\nval unicode = LaTeX2Unicode.convert(latex)\nprintln(unicode)\n```\n\nIn Java:\n\n```java\nimport dev.i10416.latex2unicode.LaTeX2Unicode;\n\nString latex = \"\\\\ss^2 + \\\\alpha_3 \\n \\\\div \\\\frac{1}{3} = \\\\sqrt[3]{123}\"\nString unicode = LaTeX2Unicode.convert(latex)\nSystem.out.println(unicode);\n```\n\n\n## SBT Dependency\n\nor add the following to your `build.sbt` file if you use sbt 0.11+:\n\n```scala\nlibraryDependencies += \"dev.i10416\" %% \"latex2unicode\" % \"0.0.1\"\n```\n# Credits\n\n`dev.i10416.Latex2unicode` is inspired by two similar projects, [latex-to-unicode by ypsu](https://github.com/ypsu/latex-to-unicode) \\(written in Python\\) and [latex-to-unicode by vikhyat](https://github.com/vikhyat/latex-to-unicode) \\(written in Ruby\\).\n\n`dev.i10416.Latex2unicode` is built on [cats-parse](https://github.com/typelevel/cats-parse).\n\n# Licence\n\nApache License Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi10416%2Flatex2unicode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi10416%2Flatex2unicode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi10416%2Flatex2unicode/lists"}