Unicode: Good, Bad, and Ugly (2011)
azabani.com
azabani.com
Though I also like that my perceived difficulties with Unicode when moving from Ruby to Python are not just imaginary or out of ignorance, but seem to be actual differences/flaws in implementation. Also did not know about the `regex` module for Python, which aims to replace the standard `re` (and was just updated this week): http://pypi.python.org/pypi/regex
I wish Python went with UTF-8 instead of their multi width internal representation.
Python 3 already required all code to be looked over because of the string literal change so it wouldn't be much different.
As a result, if your MySQL databases/tables/columns are using `utf8` instead of `utf8mb4` (a MySQL invention) charset, you cannot store / retrieve emoji characters properly.
[1] https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8...
[2] https://mzsanford.wordpress.com/2010/12/28/mysql-and-unicode...
1 + ൭ == 8 ٦1٥٠3 + ٤६੬៩ - ৭۹੧ Python 3.5.0 (default, Sep 22 2015, 12:32:59)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> g = "\N{GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI}"
>>> print(g)
ᾲ
>>> print(re.search(r'\w', g))
<_sre.SRE_Match object; span=(0, 1), match='ᾲ'>
>>> p = "\N{MATHEMATICAL SCRIPT CAPITAL P}"
>>> print(p)
𝒫
>>> print(re.search(r'\w', p))
<_sre.SRE_Match object; span=(0, 1), match='𝒫'>
>>> print(re.search(r'..', p))
None
>>> print(re.search(r'.', p))
<_sre.SRE_Match object; span=(0, 1), match='𝒫'>
>>>You can also click on the Ø in the lower-right to remove all that and view it as a normal web page.
If not, what's the use? Mail him if it bothers you!
If you want your comment to be heard by the author, contact the author!
No. Because the slides have been published to the world wide web, it should follow WWW standards and then it could have been seen in any future device that followed those. Those are the expectations of the publishing platform, which this presentation doesn't follow.
The site instead chooses to break browser compatibility, and therefore many standard actions are impossible:
- Navigating back and forth between slides.
- Selecting text (such as the URL in the first slide, that I had to type in the address bar instead of being able to copy/paste it).
- Deep-linking a URL to any intermediate page (there's a workaround to this, but it's not obvious).
Apparently, its limitations also include not being able to see this simple content in any browser, like the native iOS one.
Now, to go back to the original page you were on before you went to the site, you have to search through your history or click 100x times on the back button.
I also never found a use for deep-linking to an intermediate page.
Useful trick: if you long-press on the back button in most browsers, it shows a list that allows you to jump several pages back.
However, I was not asking for keeping the slide history in the browser history - the presentation doesn't even have back/forward buttons to get back to the previous slide while staying in the page.
> I also never found a use for deep-linking to an intermediate page. It's used for referencing the content of the slide, so that people coming from an external site will see exactly the page that you're talking about.
I hate it when someone quotes some content in a slideshow and link you to the first page, forcing you to guess which part of the file contains the content they're talking about.
I hate
That has nothing to do with browser compatibility, it simply changes the element visibility.
>- Selecting text (such as the URL in the first slide, that I had to type in the address bar instead of being able to copy/paste it).
Works just fine if you press ^C before releasing the mouse button.
>- Deep-linking a URL to any intermediate page (there's a workaround to this, but it's not obvious).
True but again unrelated to browser compatibility.
Although you're right, it's extremely annoying and as stupid as single page apps and infinite scrolling websites.