- ADLaM Display – OFL 1.1; 1 file (Regular)
- Ebrima – Commercial; 2 files (Regular, Bold)
- Kigelia – Commercial; 6 files (Light, Light Italic, Regular, Italic, Bold, Bold Italic)
- Noto Sans Adlam – OFL 1.1; 4 files (Regular, Medium, SemiBold, Bold); 1 variable font.
- Noto Sans Adlam Unjoined – OFL 1.1; 4 files (Regular, Medium, SemiBold, Bold); 1 variable font.
Normally when preprocessing text, we want to normalise our data. Unicode Normalisation Forms KC and KD can be used for converting compatibility characters during normalisation. This will handle some confusable characters, but not all. The function below attempts to normalise confusable characters.
In is_confusable()
we parse a string using icu.SpoofChecker
, which is based on
Unicode Technical Report #36 and Unicode Technical Standard #39.
UTS 39 defines two strings to be confusable if they map to the same skeleton.
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
from collections import Counter | |
import regex | |
class ngraphs: | |
"""Calculate ngraph occurrences for target string | |
Attributes | |
---------- | |
text: str | |
A plain text string to be analysed. Specific to ngraph instance. |
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
def get_ipa (syllable): | |
ipa = '' | |
ipa += get_cons_ipa(syllable) | |
ipa += get_medial_ipa(syllable) | |
ipa += get_vowel_ipa (syllable) | |
if u"\u028A" in ipa: |
from pdfminer3.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
from pdfminer3.pdfdevice import TagExtractor | |
from pdfminer3.pdfpage import PDFPage | |
from io import BytesIO | |
def convert_pdf(path, password=''): | |
rsrcmgr = PDFResourceManager() | |
retstr = BytesIO() | |
try: |
#... | |
function gitzip() { | |
git archive -o [email protected] HEAD | |
} | |
#... gitzip ZIPPED_FILE_NAME |
# generated by Git for Windows | |
test -f ~/.profile && . ~/.profile | |
test -f ~/.bashrc && . ~/.bashrc | |
_gitzip(){ | |
CURRDATE=`date +%Y%m%d` | |
NAME=${PWD##*/} | |
ARG=$1 | |
LAST_COMMIT=$2 |
#!/bin/bash | |
## | |
## I usually put this in my .bashrc | |
## | |
## When in a git project dir, run 'gitzip foo' to get a 'foo.zip' in the parent | |
## directory. | |
gitzip() { git archive HEAD --format=zip --prefix="$*/" > ../"$*.zip"; } |
import copy | |
import datetime | |
import pickle | |
# Each quarter corresponds to the following month and day combinations: | |
_q1 = (3, 31) | |
_q2 = (6, 30) | |
_q3 = (9, 30) | |
_q4 = (12, 31) |