25
”.length === 1 Arabic Unicode and Calligraphy Nick Doiron - @mapmeld

Arabic Unicode and Calligraphy

Embed Size (px)

Citation preview

Page 1: Arabic Unicode and Calligraphy

“ ”.length === 1

Arabic Unicode and CalligraphyNick Doiron - @mapmeld

Page 2: Arabic Unicode and Calligraphy

Today I...

WILLhelp you avoid embarrassing errors

explain Arabic / RTL text

show pretty calligraphy

WILL NOT

teach you Arabic

Page 3: Arabic Unicode and Calligraphy
Page 4: Arabic Unicode and Calligraphy

NopeNotArabic.Tumblr.com

Page 5: Arabic Unicode and Calligraphy

But I can’t read Arabic... - Most letters connect

- Words have spaces

- Check left / right ends

Page 6: Arabic Unicode and Calligraphy

Let’s try: multicolor letters

‍ sandwich

These letters are so lonely

Page 7: Arabic Unicode and Calligraphy

User types د then ب then يThey see دبيParens, punctuation flip

Vowels...

Most times: Unicode is magic

Page 8: Arabic Unicode and Calligraphy
Page 9: Arabic Unicode and Calligraphy

Making a right-to-left website

Page 10: Arabic Unicode and Calligraphy

The dir attribute CSS<body dir = “rtl”> [dir=“rtl”] .icon { ... } <input dir = “auto”/></body>

Use English text as a placeholder •

Changes *layout direction* •

Not order of letters / words within tags •

Uneven padding, icons, round corners •

Page 11: Arabic Unicode and Calligraphy

Fun fact:

Numbers inArabicaren’tArabicnumerals

Page 12: Arabic Unicode and Calligraphy

Fun fact:Nastaliq font

Page 13: Arabic Unicode and Calligraphy

SpecialGraphics:

Don’t just

mirror it

Page 14: Arabic Unicode and Calligraphy

Edge cases...

Why do ‘undo’ arrows point left?

Geolocation

FedEx

Page 15: Arabic Unicode and Calligraphy

Final Challenge: Geometric Calligraphy

Page 16: Arabic Unicode and Calligraphy

Based on areal bug in OpenStreetMap

But circle example makes way more sense

Page 17: Arabic Unicode and Calligraphy

Problem

Page 18: Arabic Unicode and Calligraphy

Arabic Unicode: Extended Universe

Page 19: Arabic Unicode and Calligraphy

Arabic Unicode: Extended Universe

لایر

۩ ملسو هيلع هللا ىلص هلالج لج

Quran,Currencies,Calligraphy

Page 20: Arabic Unicode and Calligraphy

Kashida “stretch Arabic”

Page 21: Arabic Unicode and Calligraphy
Page 22: Arabic Unicode and Calligraphy

Google it: github circular arabic

center canvas context

for ( letter in word ) {

char = getExtendedArabic( letter,

{ initial / medial / final })

Draw char + vowels

Draw arc connecting to next letter (if applies)

Rotate (2PI rad / word-length * text-direction)

}

Page 23: Arabic Unicode and Calligraphy

Now in outie and innie styles!

Page 24: Arabic Unicode and Calligraphy
Page 25: Arabic Unicode and Calligraphy

“ ”.length === 1

Arabic Unicode and CalligraphyNick Doiron - @mapmeld