~/talk

Python, Locales and Writing Systems

Talkat Swiss Python Summit 2017 · on Friday, 2017-02-17· [web-platform, python]
github:bellisk
slides:none on file

Python 3 uses Unicode strings by default but specific behaviors bite: Turkish dotted/dotless I breaks upper()/lower() under locale-aware case maps — workable fixes are importing PyICU or replacing characters with a str.translate table. Right‑to‑left scripts need shaping and reordering — use python-bidi display() and an Arabic reshaper (Android‑ported library) to get correct glyph forms. East Asian half/fullwidth glyphs convert with jaconv; Unicode normalization (NFD/NFC/NFKD/NFKC) affects Hangul composition and terminal column width. Beware multi‑byte escapes (0x5c) that enable SQL injection and past bidi URL spoofing now patched.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:06Python 3 and Unicode by default
  3. 4:20Turkish locale issues in Python
  4. 7:14Right-to-left writing systems
  5. 9:24Arabic letter shaping in text
  6. 11:35East Asian character widths
  7. 16:35Korean Hangul writing system
  8. 18:42Unicode character equivalence
  9. 23:40Security implications of Unicode
  10. 27:25Unicode in browser address bars
  11. 29:55Conclusion and takeaways
  12. 31:07Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.