Package: rasm-arch
Rasm ArchRasm_arch is a text processing utility for converting Arabic-scripted text to a completely dediacritised skeleton.Rasm_arch is a text processing utility for converting Arabic-scripted text to a completely dediacritised skeleton. If Quranic indexes are given, it can also retrieve Quranic text.A minimal Rust implementation can be found under src.Requirementsimportlib-metadata>=6.6.0ujson>=5.1.0If ujson is not installed, json will be used.InstallationInstall rasm_arch package and rasm_arch command-line utility through pip:$python-mpipinstallrasm_archInstall rasm_arch package and rasm_arch command-line utility along with the man page locally using the makefile:$makeOr simply install the man page manually:$sudocpman/rasm_arch.1/usr/share/man/man1/rasm_arch.1
$sudogzip-f/usr/share/man/man1/rasm_arch.1
$mandbUse the following commands to uninstall it:$pipuninstallrasm_archor$pythonsetup.pyinstall--recordfiles.txt
$xargsrm-rf<files.txtExamples of usageIn python:>>>importio
>>>fromrasm_archimportrasm_archasrasm
>>>forori,rlt,rar,palinrasm(io.StringIO('کُتِب'),paleo=True):
...print(ori,rlt,rar,pal)کُتِبKBBكٮٮKᵘB²ᵢB₁>>>importio
>>>fromrasm_archimportrasm_archasrasm
>>>forword,blocksinrasm(io.StringIO("فنار الإسكندرية"),blocks=True,paleo=True):
...print(f"word = {word}")...forori,rlt,rar,palinblocks:
...print("--",ori,rlt,rar,pal)word=فنار
--فناFBAڡٮاF¹B¹A
--رRرRword=الإسكندرية
--اAاA
--لإLAلاLAɂ
--سكندSKBDسكٮدSKB¹D
--رRرR
--يةBHٮهB₂H²In python with Quran indexes as input:>>>importio
>>>fromrasm_archimportrasm_archasrasm
>>>forword,blocksinrasm(((2,14,15,None),(2,15,1,1)),paleo=True,blocks=True):
...print(word,*blocks[0],sep='\t')...iflen(blocks)>1:
...forblockinblocks[1:]:
...print('-',*block,sep='\t')نَحۡنُنَحۡنُBGNٮحںB¹ᵃGᵒN¹ᵘ(2,14,15,1)مُسۡتَهۡزِءُونَمُسۡتَهۡزِءُMSBHRمسٮهرMᵘSᵒB²ᵃHᵒR¹ᵢʔᵘ(2,14,16,1)-وWوW(2,14,16,2)-نَNںN¹ᵃ(2,14,16,3)ٱٱAاAᵟ(2,15,1,1)As a command-line utility:>>>aspell-dardumpmaster|rasm-arch|tail-2
يينBBNٮٮں
ييئسBBBSٮٮٮس>>>rasm-arch-q2:286:35-2:286:36--json|jq.[{"ori":"لَا","rlt":"LA","rar":"لا","ind":[2,286,35]},{"ori":"طَاقَةَ","rlt":"TAFH","rar":"طاڡه","ind":[2,286,36]}]Version1.2.5License for the codeRasm_arch is a text processing utility for converting Arabic-scripted text to a completely dediacritised skeleton.The code for this project is licensed under the MIT License.Be aware that if you use the Quranic text from rasm, they have two different licences, that you can find below.MIT LicenseCopyright (c) 2023 Alicia González Martínez and Thomas MiloPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.License for the dataRasm_arch includes two digitised Quranic texts: The Decotype Quran and the Tanzil Quran.Decotype QuranThe Decotype Quran is the best encoded Quran with complete orthography and the only digital Quran that has been used to render a printed Quran approved by Al-Azhar.The Decotype Quran is private.Tanzil QuranThe Tanzil Quran is the most widely used digital Quran. It was made available by the Tanzil project,https://tanzil.net.We have included two versions of the Tanzil Quran text:A complete Uthmanic QuranA simplified QuranTanzil Quran Text
Copyright (C) 2007-2021 Tanzil Project
License: Creative Commons Attribution 3.0This copy of the Quran text is carefully produced, highly
verified and continuously monitored by a group of specialists
in Tanzil Project.TERMS OF USE:Permission is granted to copy and distribute verbatim copies
of this text, but CHANGING IT IS NOT ALLOWED.This Quran text can be used in any website or application,
provided that its source (Tanzil Project) is clearly indicated,
and a link is made to tanzil.net to enable users to keep
track of changes.This copyright notice shall be included in all verbatim copies
of the text, and shall be reproduced appropriately in all files
derived from or containing substantial portion of this text.Please check updates at:http://tanzil.net/updates/ContactAlicia González Martínez ,aliciagm85+kabikaj at gmail dot com