Skip to content

Instantly share code, notes, and snippets.

View elsanussi-s-mneina's full-sized avatar

Elsanussi S. Mneina elsanussi-s-mneina

View GitHub Profile
@elsanussi-s-mneina
elsanussi-s-mneina / How_to_remove_Middle_Eastern_Diacritics_using_Spreadsheet_formulas.txt
Created March 10, 2022 07:48
Formulas for removing Middle Eastern Diacritic characters using a spreadsheet program. https://youtu.be/kQ97ubscAkY
Full title: How to remove Hebrew, Arabic, Syriac, Mandaic, Samaritan, Yezidi diacritics (nequdot, pointing, cantillation, tashkeel) in Excel, Numbers, Google Sheets, or other Spreadsheet program using a formula
Full description for the video at: https://youtu.be/kQ97ubscAkY
Instructions:
1. Copy one of the formulas below into a spreadsheet program such as Excel.
2. Modify the formula changing the text "G15" to refer to the cell where you have the text with diacritics.
You can use the formulas without worrying about copyright law. The license is at the bottom of this gist.
If you want more information contact me in various ways or by emailing me at grassdewmorning@gmail.com
@elsanussi-s-mneina
elsanussi-s-mneina / Latin Alphabetical 2.keylayout
Created March 8, 2022 09:33
This is the result of the tutorial at https://www.youtube.com/watch?v=tiwksfqQ24s on the Keyboard Layouts and GrassDewMorning YouTube channel. I created a keyboard layout with Latin letters in alphabetical order using the Ukelele keyboard editor. A keyboard layout for macOS.
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Created by Ukelele version 351 on 2022-03-08 at 02:23 (CST)-->
<!--Last edited by Ukelele version 351 on 2022-03-08 at 02:41 (CST)-->
<keyboard group="126" id="-25259" name="Latin Alphabetical Ultimate" maxout="1">
<layouts>
<layout first="0" last="17" mapSet="ANSI" modifiers="Modifiers"/>
<layout first="18" last="18" mapSet="JIS" modifiers="Modifiers"/>
<layout first="21" last="23" mapSet="JIS" modifiers="Modifiers"/>
<layout first="30" last="30" mapSet="JIS" modifiers="Modifiers"/>
@elsanussi-s-mneina
elsanussi-s-mneina / arabicToOldSouthArabianTranslit.html
Created December 23, 2021 01:47
A single page web application for converting from Arabic script to Old South Arabian script. part of a video on my Youtube channel.
<!DOCTYPE html>
<!--
MIT License
Copyright (c) 2021 Elsanussi Mneina
https://github.com/elsanussi-s-mneina
https://www.linkedin.com/in/elsanussi-mneina-57a8181b5/
elsanussi.m@outlook.com
@elsanussi-s-mneina
elsanussi-s-mneina / how to allow GopherJS functions to be called from Javascript.txt
Created December 22, 2021 19:11
I finally figured out how to call Go programming language code from Javascript when using GopherJS. This is a minimal working example.
This was done using GopherJS version numbers: GopherJS 1.17.1+go1.17.3
Date: December 2021
How to use. Assuming you have GopherJS runing and on your path.
Put surround.go, and index.html in the same directory.
Run the following command from that directory:
GOOS=linux gopherjs build surround.go
Open the index.html file, press the button on the screen labelled "Surround". After you press the button,
@elsanussi-s-mneina
elsanussi-s-mneina / How_to_get_gopher_js_running_on_Mac_OS_BigSur.txt
Created December 22, 2021 09:12
some notes to save lessons learned while setting up gopherjs to transpile go to javascript on MacOS BigSur
Notes on Gopherjs installation on MacOS BigSur:
First you must know the version number to know if these notes are relevant to you:
% sw_vers
ProductName: macOS
ProductVersion: 11.6.1
BuildVersion: 20G224
% go version
go version go1.17.5 darwin/amd64
@elsanussi-s-mneina
elsanussi-s-mneina / Armenian_to_ArabicScript_transliteration_demo_of_gopherJS.go
Created December 21, 2021 22:38
Converts Armenian Script to Arabic based on a system I invented 2 hours ago. Transliteration system not intended to be very sophisticated. This uses GopherJS, and can run in the browser.
// This code runs using GopherJS. It was
// programmed and demonstrated on the gopherJS playground,
// at https://gopherjs.github.io/playground/
// This is a demonstration program for Arabic to Armenian transliteration.
// It can also be used to demonstrate Go programming language, GopherJS,
// And GopherJS playground. You can watch educational videos on my
// YouTube channel.
/*
@elsanussi-s-mneina
elsanussi-s-mneina / arabic_to_Cyrillic_transliteration_for_Arabic.go
Created December 16, 2021 05:14
Converting Arabic text to Cyrillic. The Arabic text is written in the Arabic script. The Cyrillic text is a transliteration system I made without much design and is non-standard. This transliteration system is based on how Russian is written in Cyrillic, and a Turkic language that has interdental fricatives.
package main
import (
"fmt"
"strings"
)
var table = [][2]string{
{"ا", "-"},
{"أ", "-"},
@elsanussi-s-mneina
elsanussi-s-mneina / hebrew_to_arabic_transliteration_Dec7_2021_episode.go
Created December 7, 2021 07:47
Here we transliterate Hebrew text from Hebrew script to Arabic script, all letters of the Hebrew alphabet, plus 3 vowels are transliterated.
/*
Copyright 2021 Elsanussi Mneina (youtube.com/GrassDewMorning)
Permission 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
/*
Copyright 2021 Elsanussi Mneina (youtube.com/GrassDewMorning)
Permission 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
@elsanussi-s-mneina
elsanussi-s-mneina / ArabicFakeMinimalPairGenerator.go
Created November 14, 2021 20:31
Generates fake Arabic words with two differing consonants. (for purpose of pronunciation practice)
package main
import "fmt"
const nilVowel string = "ْ"
var consonants []string = []string{"أ",
"ب",
"ت",
"ث",