{"id":13730256,"url":"https://github.com/eloraiby/arabtype","last_synced_at":"2026-02-18T08:03:13.487Z","repository":{"id":5152384,"uuid":"6320434","full_name":"eloraiby/arabtype","owner":"eloraiby","description":"a small and simple implementation that transform isolated arabic utf8 character strings into contextual forms.","archived":false,"fork":false,"pushed_at":"2016-04-21T01:24:35.000Z","size":166,"stargazers_count":69,"open_issues_count":1,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-14T21:37:54.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"shuyo/iir","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eloraiby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-21T13:03:17.000Z","updated_at":"2024-06-10T11:51:16.000Z","dependencies_parsed_at":"2022-08-22T15:10:38.661Z","dependency_job_id":null,"html_url":"https://github.com/eloraiby/arabtype","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/eloraiby%2Farabtype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloraiby%2Farabtype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloraiby%2Farabtype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloraiby%2Farabtype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eloraiby","download_url":"https://codeload.github.com/eloraiby/arabtype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252986912,"owners_count":21836253,"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":[],"created_at":"2024-08-03T02:01:12.309Z","updated_at":"2026-02-18T08:03:13.390Z","avatar_url":"https://github.com/eloraiby.png","language":"C","readme":"# Arabtype\n\nA small and simple implementation that transform isolated arabic utf8 character\nstrings into contextual forms useful for rendering (rendering example is provided).\n\nThis is mostly suitable for lightweight UIs (embedded systems, games, media players...).\nIt's worthy to note that this is far more lightweight than HarfBuzz (used by Qt/Pango...).\nFreetype 2 on the other hand lacks this functionality.\n\n### Usage\n\nOne call will convert a utf8 string to a sequence of code points:\n\n```C\nsize_t get_presentation_form_b(size_t in_len,\n                               unsigned char *in_str,\n                               size_t out_len,\n                               uint32_t* out_cp);\n```\n\nWhere\n\n`in_len`: the input utf8 string length in bytes\n\n`in_str`: the input utf8 string\n\n`out_len`: output code point buffer size (in bytes)\n\n`out_cp`: output code point buffer\t\n\n`return`: return the total number of code points transformed\n\n### Details\nArabic letters have 4 forms: Isolated, Initial, Medial and Ending. An arabic letter will have one of these forms depending on the letters preceding and succeeding it: For instance take the letter ﺡ : This is the isolated form (i.e. nothing precedes nor succeeds it), if it comes at the start of a syllable it will have the initial form ( ﺣ ). If it ends a syllable it will have the ending form ( ﺢ ) and if it is in the middle of a syllable it will have the medial form ( ﺤ ).  Some even have more complicated ligature forms (such as Lam and Alef together: ﻻ ) . A utf8 arabic string usually only comprises of isolated letters from [Arabic Unicode Block](http://en.wikipedia.org/wiki/Arabic_%28Unicode_block%29). With this library you will transform it to the rendering/presentation form: [Arabic Presentation Forms B](http://en.wikipedia.org/wiki/Arabic_Presentation_Forms-B)\n\n\n### Example ([Khalil Gibran](http://en.wikipedia.org/wiki/Kahlil_Gibran)'s Al-Nay)\n\n![ScreenShot](https://raw.github.com/eloraiby/arabtype/master/example.png)\n\n\n### LICENSE\n\nArabtype, Copyrights 2012-2015(c) Wael El Oraiby. All rights reserved.\n\nThis library is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License 3 for more details.\n\nUnder Section 7 of GPL version 3, you are granted additional\npermissions described in the [GCC Runtime Library Exception](https://www.gnu.org/licenses/gcc-exception-3.1.en.html), version 3.1,\nas published by the Free Software Foundation.\n\nRoughly speaking: it means that you can statically link with the code but you are obliged\nto make open your bug fixes and/or enhancement to the arabtype.c/arabtype.h code.\n\n-----------------------------------------------------------------------\nThe utf8.c file is under the following license:\n\nCopyright (c) 2008-2009 Bjoern Hoehrmann \u0026lt;bjoern@hoehrmann.de\u0026gt;\n\nSee \u003cA HREF=\"http://bjoern.hoehrmann.de/utf-8/decoder/dfa/\"\u003ehttp://bjoern.hoehrmann.de/utf-8/decoder/dfa/\u003c/A\u003e for details.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \u0026quot;Software\u0026quot;), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \u0026quot;AS IS\u0026quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feloraiby%2Farabtype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feloraiby%2Farabtype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feloraiby%2Farabtype/lists"}