Monday, 14 March 2011

iFruit

Danny 大霓 and Elaine 爱兰 Round have adopted the name iFruit for their Loughborough 拉夫堡 Market Fruit and Veg stall. I have produced a poster for them that reflects their name. There is much more to the poster than first meets the eye. But first a visual of my poster:-


A second version of the poster with business contact details.

The name transforms in steps from the English iFruit to the Chinese 爱水果. The Chinese character 爱, in this context, means Loves or Likes. 爱 is pronounced the same as the English letter i. Thus 爱Fruit is pronounced the same as iFruit. 水果 is the Chinese for Fruit. The three forms of the name now take on the meanings Love Fruit or Like Fruit.

The Emoticons and the Fruits on the poster are characters in new Unicode blocks introduced in Unicode version 6.0.0. The Unicode blocks they belong to are:

  • Miscellaneous Symbols & Pictographs U+1F300⇒1F5FF
  • Emoticons U+1F600⇒1F64F

The specific characters I used are:

  • U+1F347 GRAPES
  • U+1F349 WATERMELON
  • U+1F352 CHERRIES
  • U+1F353 STRAWBERRY
  • U+1F603 SMILING FACE WITH OPEN MOUTH
  • U+1F604 SMILING FACE WITH OPEN MOUTH AND SMILING EYES
  • U+1F60B FACE SAVOURING DELICIOUS FOOD
  • U+1F60C RELIEVED FACE

If you want to use characters in these new Unicode blocks then you will need a font with the glyphs. I highly recommend the excellent and free Symbola font.

I produced these posters on a Mac using Pages which is one of the Apps in Apple's 爱Work bundle.

Wednesday, 9 March 2011

Chinese Tones


Recently, in one of my International Computing lectures, I was demonstrating the use of the Unicode Combining Diacritical Marks. I was using Latin letters as my base character and combining various combinations of diacritcs. As was expected they worked fine.

Then an idea occurred to me. I wondered if the diacritics would combine appropriately with Chinese characters. I was pleasantly surprised to discover that with TextEdit on Mac OSX they combined rather well. Later I tried with various Word Processors and the results of combining were either poor or non-existant.

The next step was to try it with web pages. Combining did not work at all with the browsers I tried. I then used html5 Ruby Annotation and that works quite well, as below.

̬ ̱ ̱ ̗ ̬

The Combining Diacritical Marks I have used for the annotation are:-

  • U+0316 COMBINING GRAVE ACCENT BELOW
  • U+0317 COMBINING ACUTE ACCENT BELOW
  • U+032C COMBINING CARON BELOW
  • U+0331 COMBINING MACRON BELOW

Friday, 4 March 2011

jShortener

There is an excellent Japanese URL shortening service at 縮.jp This service uses Japanese Kanji characters instead of ASCII characters to form the shortened address. There are far more Kanji characters than ASCII characters and so one can produce shorter addresses.

The site refers to the 1981 Jouyou Kanji 常用漢字 which contains 1945 characters. Thus with just two Kanji characters there are 3783025 unique combinations. With three Kanji characters there are 7357983625 unique combinations.

The 2010 Jouyou Kanji has 2136 characters and so would generate many more shortened addresses for a given number of characters used in the shortened form. I am, though, assuming that this service is using the 1981 Jouyou Kanji character set.

The shortened addresses are ideal for use with Twitter because of current Twitter system deficiencies. ㊀ 地図.縮.jp and ㊁ ta.gd/ラフバラー both resolve to a Google Japanese map of Loughborough. ㊀ works with Twitter but ㊁ does not because the pathname part of the address contains non ASCII characters.

Here are some of my shortened URLs where I have let this service choose the Kanji characters. My observations lead me to deduce that the Kanji are being allocated in Dictionary order ie by radical and then by number of strokes.

  1. 丁迅.縮.jp
  2. 丁郭.縮.jp
  3. 丁酌.縮.jp

Here are some customised shortened URLs where I chose the Kanji characters.

  1. 小山.縮.jp
  2. 地図.縮.jp

Wednesday, 23 February 2011

Loughborough T-shirts

Yesterday I took delivery of 50 new T-shirts. These T-shirts have been procured as part of an initiative to promote and internationalise Loughborough Market. The internationalised part is that the T-shirts have Loughborough Market printed on them in Chinese and Japanese. Specifically, 25 Chinese T-shirts and 25 Japanese T-shirts.

Chinese T-shirt: One of the transliterations for Loughborough in Chinese is 拉夫堡. Market in Chinese is 市场 which is a translation. So together that gives us 拉夫堡市场 for Loughborough Market.



Japanese T-shirt: One of the transliterations for Loughborough in Japanese is ラフバラ. Market in Japanese is 市場 which is a translation. So together that gives us ラフバラ市場 for Loughborough Market.


Thank you to Roger Stone for the T-shirt suggestion and thank you to One Stop Promotions for printing the T-shirts.

Sunday, 30 January 2011

Causal language

Consider the following sentence: "You ate the blueberries because your fingers are stained." What is odd about it is that ordinarily, when we say "X because of Y" we mean "Y is the cause of X". For example, "The window broke because the baseball hit it" means that the baseball hitting the window caused it to break. But in this case, the sentence surely doesn't mean that your fingers being stained caused you to eat the blueberries. Now one might object that it's a weird sentence, and that instead it should be "I believe you ate the blueberries because your fingers are stained." But the original version is not confusing to an English speaker, and people sometimes do speak this way. Language is a complicated business. And language about causality is particularly tricky.

It is well known that correlation does not imply causation. But when scientific studies are reported in the media, this dictum is often forgotten. Professor Jon Mueller at North Central College in Naperville, Illinois has compiled a great set of links to news articles reporting scientific findings. Some of the headlines for these articles suggest causal relationships and some do not. Clicking through to the actual news articles shows that the purported causal relationships are often a stretch, to say the least. For example:
TV raises blood pressure in obese kids: study
The news article reports that:
The researchers found children who watched two to four hours of TV were 2.5 times more likely to have high blood pressure compared with those who watched less than two hours of television a day. Those who watched more than 4 hours per day were 3.3 times more likely to have hypertension.
In other words this was an observational study, which established a correlation between watching high amounts of TV per day and having high blood pressure. Contrary to the headline, the study did not show that the TV watching was the cause of the high blood pressure. For convenience let's rework the headline, while preserving its causal sense:
TV watching increases the probability of high blood pressure. (1)
The causal implication can be removed by writing:
TV watchers have higher probability of high blood pressure. (2)
In a wiki entry on causal language Gustavo Lacerda points out that action words often express causality. Note that in the present example, in order to remove the causal aspect of (1), it was necessary to change the verb "watching" into the noun "watchers" and the verb "increases" into the noun "higher".

Interestingly, there is a Bayesian formulation that sounds closer to (1):
Being a TV watcher increases the probability that a child has high blood pressure.
Note that this version has the verb "increases", like (1), but not the verb "watching". Instead it's expressed as "being a TV watcher", which indicates group membership rather than action or choice. It is this information about group membership that is used to update the probability of high blood pressure, following the Bayesian recipe.

Prediction and causality

Prediction can sound a lot like causation. Consider this statement:
If you exercise, you're less likely to have a heart attack. (3)
Does this mean:
People who exercise are less likely than people who don't to have a heart attack. (4)
or does it mean:
The act of exercising reduces your chances of having a heart attack. (5)
It seems quite ambiguous. On the one hand, "if you exercise" sounds like a statement about your choice simply to exercise instead of not exercising, which supports interpretation (5). On the other hand, "if you exercise" identifies you as a person who exercises, and that may predict your risk of heart attack, perhaps due to another behaviour common among people who exercise, such as healthy eating. This would support interpretation (4).

Natural language allows ambiguities. It's convenient to leave things out because everyone knows what we mean. Don't they? Not necessarily. Certainly, when it comes to causality, ambiguity can lead to a mess of trouble. In ordinary speech, the distinction between correlation and causation is often blurred. Statement (3) above is ambiguous about the comparator: less likely than whom to have a heart attack? Less likely than people who don't exercise? Less likely than you would be if you chose not to exercise?

It seems to me that causal language is almost a worst-case scenario. Many people would see the concern as unimportant. And yet evidence and beliefs about causation are at the foundation of any intervention, whether in health care, education, social programs, economics, what have you. The media and politicians routinely use misleading causal language. But it's difficult even when we try to be clear!

Sweetness and life

One of my favorite of Mueller's examples is:
Eat sweets, live longer.
All you have to do is juxtapose "eat sweets" and "live longer". Your mind does the rest.

Wednesday, 19 January 2011

Thailand is Live

Earlier this week Thailand's idn ccTLD ไทย went live. Below are some web addresses using the ไทย ccTLD. My knowledge of Thai is non existent so I will only give the English name when it is shown on the site.

Those of you that are using Safari will see the list below numbered in Thai.

  1. DotArai [Domain Name Registrar] ดอทอะไร.ไทย
  2. Franchise Business แฟรนไชส์.ไทย
  3. iRPG Update ไออาร์พีจี.ไทย
  4. KhaoJai - Thai Language Translation Services เข้าใจ.ไทย
  5. Motorcycle Thailand มอเตอร์ไซค์เคิล.ไทย
  6. Smile Pro Video รับถ่ายวีดีโอ.ไทย
  7. Thai Decoration & Construction Materials Mart ไทยเดคคอนมาร์ท.ไทย
  8. Thai Network Information Center Foundation มูลนิธิทีเอชนิค.องค์กร.ไทย
  9. Web Games เว็บเกมส์.ไทย
  10. เครื่องจักร.ไทย
  11. ผ้าม่าน.ไทย
  12. บิน.ไทย
  13. ลูกทุ่ง.ไทย
  14. เรื่องย่อละคร.ไทย

Tuesday, 11 January 2011

Chance and inevitability

In an op-ed in today's issue of the Los Angeles Times, Michael Shermer wrote about the rush "to find the deep underlying causes of shocking events", with reference to the shooting in Tucson, Arizona and the recent mass bird deaths.

Shermer made some good points, but parts of his argument were flawed. For example, he cited statistics from the National Institute of Mental Health to argue that unbalanced people are not uncommon, and
Given these statistics, events such as the shooting in Tucson are bound to happen, no matter how nicely politicians talk to one another on the campaign trail or in Congress, no matter how extreme tea party slogans are about killing government programs, and no matter how stiff or loose gun control laws are in this or that state. By chance — and nothing more — there will always be people who do the unthinkable.
In other words, he is pointing out what he sees as an inevitability, and then attributing it to chance. But an inevitability is the opposite of chance: it is a systematic pattern. And a systematic pattern is precisely what we can hope to change. I tend to agree with Shermer that "there will always be people who do the unthinkable." But surely we ought to do what we can to make such occurrences as rare as possible, and to reduce the harms as much as we can.

Shermer finishes his piece as follows:
... as often as not, events in life turn on chance, randomness and statistical probabilities that are largely beyond our control. So calls for "an end to all overt and implied appeals to violence in American politics" — such as that just issued by MoveOn.org — may make us feel better, but they will do nothing to alter the inevitability of such one-off events in the future.
By definition "one-off events" are unpredictable and idiosyncratic. And yet Shermer says they are inevitable. The apparent confusion here is between statistical probabilities that can be used to make fairly certain predictions, and the virtual impossibility of prediction at the micro level. For example, age- and sex-specific incidence rates of different types of cancer are carefully tabulated by the CDC, and we can use these rates to predict the number of people who will be diagnosed with cancer this year. But we can't predict well who those people will be. There are, however, patterns. We learned that smoking causes lung cancer (and heart disease, and emphysema, ....) and through reduced smoking rates we have seen reductions in mortality [pdf]. Perhaps we do have some control after all.