Showing posts with label 8-bit. Show all posts
Showing posts with label 8-bit. Show all posts

Friday, April 29, 2016

More on Sinanci & 豪萨语 (Chinese & Hausa)

Quick follow up to the earlier post on "Sinanci & 豪萨语 (Chinese & Hausa) materials."
  • Another example of a Chinese lesson for Hausa speakers (PDF format) in which Hausa boko and Chinese pinyin used 8-bit modified ("hacked") fonts. The forward on the first page of the document is dated March 2010, which would mean use of non-Unicode solutions has continued more recently, when Unicode was available and be a better solution. The old 8-bit fonts display the characters fine in PDF, as you can see, but the text coding does not facilitate text searches and makes copy-paste of material to another document problematic. One would expect that more recent Hausa-Chinese documents use Unicode, but I have not accessed any examples.
  • Another material for Hausa speakers learning Chinese: Sinanci na Yau da Kullum 每日汉语(豪萨语注释)
  • Another material for Chinese speakers learning Hausa: Hausar Baka 豪萨语听说教程
  • Another Chinese-Hausa dictionary: Haruffan Sinanci 800 汉语800字(汉豪萨语对照)
It is not my intent to list all bilingual Hausa & Chinese materials, but with this and the previous post on this topic, hope to call attention to how much has been done in this area, as well as a persistent font issue familiar to many of us who have dealt with African languages in extended Latin orthographies.

Saturday, April 23, 2016

Sinanci & 豪萨语 (Chinese & Hausa) materials

Contemporary Chinese
A couple of quick observations about links between Hausa language and Chinese (Mandarin), with attention to China:
  1. More is being done with these two languages (without using another tongue as intermediary) than many realize; and
  2. There appears to be a gap in knowledge of Unicode support for the extended-Latin "hooked" characters in Hausa by people producing materials with Hausa text .
I plan to go a little more in-depth on African languages and Chinese in a future post - and should note in that context that Swahili is the African language (other than Arabic) with the most connections with Chinese - but for now would note that there is a number of materials for Hausa speakers to learn Chinese, and for Chinese speakers to learn Hausa. Although I have not yet found a bibliography of such materials, responses to a question on the Chinese in Africa/Africans in China (CA/AC) list, and an internet search focused on Hausa and Chinese have yielded information on some items (the latter beginning with images, which is unusual from my web-searching experience).

Chinese for Hausa-speakers


The image on the top right, for Sinanci na Zamani - 当代中文, is for one of a set of materials (see here for another) for learning Chinese from Hausa - the title translates as Modern or Contemporary Chinese.

I received divergent assessments of availability of Chinese learning materials for Africa in African languages, with one reporting for instance that Confucius Institutes create local language materials on their own, and another suggesting that materials and teacher skills mainly in English might be limitations of the Institutes. In follow up research, however, I found PDFs of a book chapter introducing the Chinese pinyin system in Hausa, and a chapter on basic conversation (the latter includes the title "Kuaile Hanyu" in the page footers), both on the Confucius Institute's website, Hanban.org (it is not clear that either of these is part of the Sinanci na Zamani series mentioned above).

That doesn't necessarily mean that these materials are used in Confucius Institutes - they could be used in schools. (I would mention here that I heard from another source that a private Chinese language school in Niamey, Niger taught from French, and used neither Hausa or Zarma.)

One technical note on the production of both of these Hausa-Chinese chapters found on Hanban.org pertains to hacks used for extended Latin characters used in both Hausa (the "hooked letters" ɓ, ɗ, and k) and Chinese pinyin (vowels with tone marks). The image of "Gabatarwa" (introduction) above "reveals" the coding behind the hooked characters in the PDF: } = ƙ] = ɗ; ~ = ɓ. This is similar to the pre-Unicode 8-bit font hacks like we had to do for the Fulfulde lexicon a quarter century ago, or have been done with fonts like Bambara Arial also in the 1990s. In fact, it appears to be the "ANSI" encoded (8-bit) font "AbdallaUbaAdamu-regular" that is the source of these substitutions (one source indicates this font was created in 1996).

What is more surprising is the many such substitutions done for tone-marked vowels in pinyin, all of which have had Unicode codepoints for years now. (For a quick look, see the Google cached versions of one and the other of the two chapters mentioned above, which show the actual characters that have been hacked for hooked consonants or toned vowels). Either the documents are rather old or their creators were not "Unicode savvy" in an expression that itself is dated.
Hausa Language

Hausa for Chinese-speakers


Although there must certainly be a significant number of materials for Chinese speakers learning Hausa, given that Hausa has been taught for many years at Beijing Foreign Studies University, my quick searches have not come up with a lot. One book that did come up in several searches is Harshen Hausa - 豪萨语 (Hausa Language; see image of cover on right).

Dictionaries


Classified Dictionary
I was told about one dictionary for young Hausa speakers learning Chinese characters - 汉语图解小词典(豪萨语版)/ Ƙaramin Ƙamus Na Sinanci Da Hausa Cikin Hotuna - and in the course of researching found some others. Notable among them is one listed on the Hanban.org site: 汉语豪萨语分类词典 Ƙamus na Sinanci zuwa Hausa (A Classified Chinese-Hausa Dictionary; image on left). Published in 2013, it is also available for Kindle and as iBook and App. I also found proofs for the first few pages of a dictionary (image PDF; not clear what publication it came from).

In addition, the Chinese multinational telecom, Hwawei, has a dictionary app for Android: Ƙamus na Hausa - Sinanci da Sinanci - Hausa / 豪萨语 - 中文 以及 中文 - 豪萨语 字典 Ver 1.0 APK.

Summary


I came to this subject with modest expectations, which were more or less confirmed by responses to the question I posed on the CA/AC list (thanks again to those who responded offline to my question). However as I looked into it further, it seemed that there is much more happening. In addition to materials, it bears mentioning that what I understood as plans for Hausa dubbing of Chinese films have already started (more on that in another post).

The 8-bit vs. Unicode font issue mentioned may already be resolved. Assuming it is, the lessons learned might be applicable to China Radio International's Hausa service web content.

This very quick survey is just a start and doubtless has missed much. I hope to come back to the topic as indicated above, in a broader Africa-wide look at connections between Chinese and African languages.

Sunday, November 29, 2015

Corrected Bambara poster; thinking about best practices

 Bambara poster on hand-washing from International SOS
In an earlier posting, I highlighted a poster in Bambara on hand-washing, which had evidently been composed in a non-standard 8-bit font making it all but unreadable (see image on top right). I have written International SOS, on whose site the poster is available, and Translators Without Borders (TWB) which is listed on the poster, to signal the problem.

Since the issue has already been a subject on this blog, I would like to follow through with presentation of a corrected version (already shared with TWB), in the spirit of 2Ds+4Rs (reasons to repost African language materials). I'd also like to use this to raise the larger issue of the best licensing for such public education materials in languages that are less-resourced and/or less-widely spoken.
Text from poster with tracked changes

This material is © 2015 AEA International Holdings Pte. Ltd. I am sharing it, as I have other materials in African languages from other sources, with attribution, in my understanding of fair use. However, this is not ideal. It would be much more helpful for the original purposes of creating these materials to use a Creative Commons license to encourage the kind of thing I'm demonstrating here, as well as more substantive re-use of such material. Would it be possible for organizations involved in authoring and/or translating extension and public education materials in African languages - not only for health but also other domains of social and economic importance - to agree on a set of "best practices" for facilitating their review, dissemination, revision, and re-use?

For this particular document, what I did was to copy the text into a Word document and first run 3 search and replaces, since the problem with the document stemmed from it being in an old font that had certain letters substituted with "special characters" needed for Bambara. These were q ɛ, x → ɲ, \ → ɔ. Then less than a dozen minor copy-edits, mainly changing capital "I" to lower case "i" - the software on which the original was produced was evidently expecting English text, and auto-corrected free-standing i's (i = second person singular pronoun in Bambara, not capitalized ) to capital I's. It was very quick set of corrections, but did not include any review of the translation itself - that would be easier now with the text that follows.



K’i tɛgɛ ko ni safinɛ ye, o b’a to ko banakisɛ tɛ jɛnsɛn

Safinɛ ta: Ji gansan tɛ bɔgɔ ni tulu bɔ yen, olu minnu bɛ se ka banakisɛw dogo.
I tɛgɛ ko murumuru 15-20 nin cogo la.
A baara mumɛ ye murumuru 40-60.

1 I bolola nɛgɛw bɛɛ bɔ, o kɔ, i tɛgɛ ɲigin ni ji ye
2 Safinɛ k’i tɛgɛ la
3 I bolow jɔsi ɲɔgɔnna
4 Se i bolo ni tɛgɛ yɔrɔ bɛɛ ma
5 I bolo ni bolokɔni n’u tugunda bɛɛ saniya
6 Furancɛ min bɛ i bolokɔnikunba ni dɔ in cɛ saniya
7 I sɔninkɔrɔrɔla saniya n’a jɔsili ye I tɛgɛkɔnɔna na
8 A sɛnɛnko ka ɲa jiɲuman na
9 Fini walima sɛriwɛti jɛlen kɛ ka orobinɛ datugun, o kɔ, i tɛgɛ laja ni kura ye

Nin ja in labɛnna kalan de kɔsɔn ani fana tiɲɛ don a bɔtuma na. Dɔkɔtɔrɔw ka
ladilikanw bilanɔna tɛ.. Nin ɲininkaliw waloima hamiw minnu b’aw la nin
kan, a’ y’aw ka dɔkɔtɔrɔ sɛgɛrɛ.

© 2015 AEA International Holdings Pte. Ltd. All rights reserved.
Unauthorized copy or distribution prohibited.
Handwashing Steps Poster– v2 BAMBARA
 

Monday, October 12, 2015

The secret life of Bambara Arial

Quite unexpectedly, I heard yesterday the names of two old 8-bit Malian computer fonts - Bambara Arial and Bambara Times - from two different people. Matt Heberger, who is coordinating work on the forthcoming Bambara translation of Where There is No Doctor mentioned that one of the translators provided him with copies of these fonts (as .ttf files), and Sam Samake, an old friend and former Peace Corps/Mali staff member, asked how I got "Bambara Arial" to work on the internet.

It wasn't supposed to be this way once Unicode rendered such special fonts unnecessary.

The history


In the 1990s, a joint project of the Malian Ministry of Education and the French Agence de Coopération Culturelle et Technique (ACCT; precursor to the Organisation Internationale de la Francophonie), produced two modified/hacked versions of the Arial and Times fonts, replacing characters not used in the orthographies of Malian national languages with characters not present in those original fonts or other commercially available fonts of that era. Thus for example, the "q" was replaced with "ɛ"* (type "q" get "ɛ" instead).

Table from Enguehard & Mbodj 2004.* Caractère affiché is what you get;
Caractère initial is original character & the key you tap to get the new one.
This approach for adapting fonts for writing systems not supported by the pre-Unicode standards was fairly common 1980s and 1990s, including in a number of African countries like Mali. Fonts like these achieved what they were primarily intended for - being able to compose and print documents with the extended alphabets. One could also share digital copies of documents, but those could be properly read only with the same fonts. Different modified fonts - and Mali had several - were mtually incompatible. That was the whole reason, of course, for Unicode, which also makes it possible to share documents in any alphabet across the internet on any browser, wordprocessor, etc.

But while Unicode became the international standard, evidently at least some people in Mali kept using Bambara Arial and perhaps other similar "special fonts." In 2005, USAID-funded "Community Learning and Information Centers" (CLICs) relied on these fonts for anything done in Malian national languages (apparently not that often). It may be that technicians in these telecenters did not have Unicode explained to them in their project training or prior study of computers.

The word about obsolescence of 8-bit fonts like Bambara Arial may not have gotten too far, or maybe the notion of a need for a "special font" to process text in languages like Bambara just was too ingrained. At this point I'm just wondering how after almost 2 decades, these old fonts are still in circulation and conversation. Just two years ago, there were these references to Bambara Arial online (thanks to a Google search):
  • N'oublie pas de les ecrire en vrai Bambara ''Bambara Arial''Dans Microsoft Word (Facebook, 2013-1-11)
  • I would like to arrange for volunteer translators for Bambara. How can I access fonts for the Bambara alphabet (Bambara Arial for example)? (Google code Khan Academy issue tracker, 2013-3-23)

 

More to it?

Adapted from an image by Denis Jacquerye.

There's a twist to the story though. It seems that in one respect, these old fonts follow Malian orthographies better than the Unicode fonts. The letter ɲ has two forms of upper case, one like the lower case letter but bigger ("n-form") and the other like the capital N with a tail on the left leg ("N-form") on the left and right sides respectively of the image on the right. The "n-form" is most used in Mali and apparently in the hacked 8-bit "special fonts" like Bambara Arial; most Unicode fonts use the "N-form" (thanks to Matt Heberger for his observations on that.). I doubt that this alone could account for the persistence of the old fonts, but it might be a factor.

Maybe a new life could be given to the old fonts that people are still using by reencoding them to Unicode and releasing them under recognizable names.



* Two articles in French mention modified 8-bit fonts used in Mali, showing which different characters were changed to extended Latin characters:  
Chantal Enguehard,et Chérif Mbodj. "Correcteurs orthographiques pour les langues africaines." Bulag 29, 2004, pp. 51-68.
Chantal Enguehard, et Soumana Kané. "Langues africaines et communication électronique : développement de correcteurs orthographiques." Agence universitaire de la Francophonie. Actes des Premières Journées scientifiques communes des réseaux de chercheurs concernant la langue, 31mai-1 juin 2004, Ouagadougou, Burkina Faso. pp.59-75.