Showing posts with label language. Show all posts
Showing posts with label language. Show all posts

Saturday, September 24, 2016

Keyboard Layout for Polyglot Programmers

If you are chatting on Facebook with two-three friends and each speaks a different language, switching over between the keyboard layouts is demanding. It would be nice to have more of a universal layout, right? But it shouldn't be too weird and since you are a programmer, it should be based on the US-English layout, which has all those cool programming characters at hand.

Here is my attempt to create such a keyboard layout for MS Windows. It's basically a US-English keyboard, where the numbers in the alphanumeric section were replaced by dead-keys (inspired by the dead-keys from the Czech QWERTZ-layout). I haven't written the version for Unix-like systems, but I might add it later.

You can download it here: al-polyglot-keyboard-2016-source.klc

And it looks like this:

Normal state

Shift key pressed
AltGr key pressed


Who is it good for?

Programmers
...that use mostly US-English keyboard, but want to write from time to time in their own language with Latin-based alphabet properly, with all the diacritics
Polyglots
...that need to write short texts in several languages and switch over between the layouts often
Web developers
It has a damn-hard-to-find n-dash (–) and his elusive brother m-dash (—)!
Perl6 coders
The layout contains the French quotation marks («»)

Who is it not intended to?

Writers and copywriters
If you want to type fast in a specific language, you should probably stick with one of its dedicated layouts (Good luck learning French AZERTY ;) )
People with keyboards without NumPad
You cannot type numbers in the alphanumeric section of this layout, so numeric keypad is a must.

In what languages can I write with this?

The layout was created, so that it is fairly easy to type in: English, Czech, Slovak, Portuguese, German, Spanish, French (It even has the ligatures æ and œ. The cœur of my sœur rejoices.), Romanian, Polish, Hungarian and Esperanto.

But I discovered many more languages are covered by what I fit in, so you can also type in Italian (with their lack of diacritics and special characters, not much of a hard task), Breton, Catalan, Croatian, Danish, Estonian, Finnish, Indonesian, Irish (if you don't require the obsolete dot above—ponc séimhithe), Norwegian, Scottish Gaelic, Serbo-Croatian, Slovenian, Swedish and Welsh.

I have been testing it for a while. Because I was trying to fit in many alphabets, it's a compromise. However, I found out it is very comfortable to type in English, German, Portuguese and if you do not insist on the correct punctuation, even Spanish. French, Czech and Slovak are a bit clumsier. French because of the proximity of the key for the acute accent and the letter e, Slovak and Czech due to the frequency of the accented characters. Maybe, I'll find a way to optimize it in the future. I haven't tested the rest of the languages thoroughly yet.

And in which I can't?

I tried to add Lithuanian, Latvian, Icelandic and Turkish, but I would have to sacrifice either logic of the dead-key combinations or their ergonomics. Sorry guys!

Details (for typography nerds only)

Here is the list of all the possible dead-key combinations (not including their capitalisations):
  • ° (circle above): ů, å (used in Czech and Nordic languages)
  • ~ (tilde): ñ, ã, õ (Spanish, Portuguese and Estonian)
  • ´ (acute accent): á, é, í, ó, ú, ĺ, ŕ, ś, ć, ź, ń, ẃ (w is a Welsh vowel)
  • ^ (circumflex): â, ê. î, ô, û, ĉ, ĝ, ĵ, ĥ, ŝ, ŷ, ŵ (mostly in French, Portuguese and Esperanto)
  • ¨ (diaresis ): ä, ö, ü, ï, ë
  • ˝ (double acute accent): ő, ű (Hungarian)
  • ¸ (cedilla): ç, ș, ț, ą, ę (this group is a mixture of characters with cedilla, comma below and ogonek) 
  • ˇ (caron): č, ď, ě, ľ, ň, ř, š, ť, ž, ă, ŭ (another mixed goup—characters with caron and two last ones with a breve)
  • ` (grave accent): à, è, ì, ò, ù, ẁ
  • · (middot): ł, ż, œ, æ, đ, ø (this is a dead-key category of characters that did not fit elsewhere)

Some notes

  • I tried to prioritize the languages I can write in. So it is possible to type in Hungarian (which I can't speak nor write in it), but the dead-key for the double acute accent is under number 6, so not as easy to access as other accents.
  • Circumflex and (^) and the backtick/grave accent (`) are twice on the keyboard, but I left it that way to keep the layout as close to the original US-English layout as possible
  • Don't use the Romanian ș (s with a comma below) as Turkish ş (s with cedilla), they are two distinct graphemes

Pangrams are fun in all languages

I tested the layout typing pangrams. Pangrams are sentences containing all the characters of a given orthography of some language, or at least all the accentuated characters that use to be problematic in typography or on the web. Some of the pangrams I used are worth sharing :)
Catalan
«Dóna amor que seràs feliç!». Això, il·lús company geniüt, ja és un lluït rètol blavís d’onze kWh.
“Give love and you’ll be happy!”. This, ingenuous fellow with bad temper, is already in a blue sign of 11kWh.
Croatian
Gojazni đačić s biciklom drži hmelj i finu vatu u džepu nošnje.
The overweight little schoolboy with a bike is holding hops and fine cotton in the pocket of his attire.
Czech
Příliš žluťoučký kůň úpěl ďábelské ódy.
Unduly yellowish horse was groaning devilish odes.
Danish
Høj bly gom vandt fræk sexquiz på wc.
Tall shy groom won dirty sex quiz on W.C.
Esperanto
Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj.
According to Ludwig Zamenhof, fresh Czech food with spices tastes good.
Estonian
Põdur Zagrebi tšellomängija-följetonist Ciqo külmetas kehvas garaažis.
Ill-healthy cellist-feuilletonist Ciqo from Zagreb was being cold in a poor garage.
Finnish
Fahrenheit ja Celsius yrjösivät Åsan backgammon-peliin, Volkswagenissa, daiquirin ja ZX81:n yhteisvaikutuksesta.
Fahrenheit and Celsius threw up on Åsa’s Backgammon board, in a Volkswagen, due to the coeffect of daiquiri and a ZX81.
German
Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.
Victor chases twelve boxers across the great dam of Sylt.
Hungarian
Árvíztűrő tükörfúrógép
A flood-resistant mirror drill (what a language!)
Italian
Quel vituperabile xenofobo zelante assaggia il whisky ed esclama: alleluja!
That blameworthy, zealous xenophobe tastes his whisky and exclaims: Alleluja!
Polish
Dość gróźb fuzją, klnę, pych i małżeństw!
“Enough of these threats with the shotgun,” swear I, “haughtinesses and marriages!”
Portuguese
À noite, vovô Kowalsky vê o ímã cair no pé do pingüim queixoso e vovó põe açúcar no chá de tâmaras do jabuti feliz.
At night, grandpa Kowalsky sees the magnet falling on the complaining penguin’s foot and grandma puts sugar in the happy tortoise’s date tea.
Romanian
Bând whisky, jazologul șprițuit vomă fix în tequila.
Drinking whisky, the drunken jazzman threw up right in the tequila.
Serbian
Fin džip, gluh jež i čvrst konjić dođoše bez moljca.
A nice jeep, a deaf hedgehog and a tough horse came without a moth.
Slovak
Kŕdeľ šťastných ďatľov učí pri ústí Váhu mĺkveho koňa obhrýzať kôru a žrať čerstvé mäso.
A flock of happy woodpeckers by the mouth of the river Váh is teaching a silent horse to nibble on bark and feed on fresh meat.
Slovenian
Piškur molče grabi fižol z dna cezijeve hoste.
Lambry silently grasps beans from the bottom of caesium forest.
Spanish
Benjamín pidió una bebida de kiwi y fresa; Noé, sin vergüenza, la más exquisita champaña del menú.
Benjamin ordered a kiwi and strawberry beverage; Noah, without shame, the most exquisite champagne on the menu.
Swedish
Yxskaftbud, ge vår WC-zonmö IQ-hjälp.
Axe handle courier, give our WC zone maiden IQ help.

Saturday, March 19, 2016

End of my French Mission

I am writing this post from Hamburg again. Do you want to know how my French mission ended up? Watch the video ;) (French and English subtitles available)


France was an interesting experience. New friendships, some cultural shocks, a bunch of places checked on my "to visit" list. Hard beginnings that turned into another place where I feel at home. Many stories to tell and I will tell them when I meet you (yes you!). I am happy I went there and I left with precious memories. So many people I miss (you guys know who I am talking about :) ).







By the way, I did not say goodbye to la francophonie altogether, I keep reading books (also) in French, my best mate here in Hamburg is from Paris, so there is no way this "mission end" would be a total break up with the French language. Aaand, traditionally, here is a map of the countries in which I can, after the last year, make myself understood.

French-speaking world
Au revoir ! ;)

Friday, October 25, 2013

Good Night? Already Going to Sleep?

I'll take a break from the travel posts and the next one will be again linguistical.

One of the fascinating things is how different nations perceive time. Here is a small infogprahics of the greetings throughout the day in the languages I speak:

Greetings throughout the day in various languages

Portuguese is for me the most interesting case. They do greet each other with "Good day", but only in the morning. Then the afternoon is "tarde" (= "late"). And they strictly keep to this distinction. If you say "Bom dia" after 2 pm, they look at you very strangely. Evening greeting is "Boa noite" (= "Good night"), but they use it only after dark, i.e. a bit later than afore mentioned languages. And yes, it is a greeting :) This one is the hardest to get used to, I feel like I am sending the people to sleep already. Generally, all the portuguese greetings from the picture above can also be used when saying goodbye.

Why the difference? Well, the Portuguese do have it a bit shifted. They get up a bit later and also the best time to go out on Friday is 11 pm. That is the time of leaving for a pub, not of the subsequent way to a club. Another example: The Portuguese word for lunch is "almoço" and the breakfast does not even have a proper name of its own, it is just "pequeno almoço". On the other hand, they have a special word for late dinner.

Time zones in Europe
Blue: Greewich Time, Red: Central European Time
Spain is also famous for its shifted biorythm. But there it has more reasons. Except for the heat during the noon, it is also their "wrong" time zone. Spain uses the central-european time, even though it lies way more to the west. Franco wanted to please Hitler and that is why the sun sets quite soon in Spain. Portugal is more realistic when it comes to timezones. I just need to get used to "Boa noite".

Any thoughts on this? Leave a comment.

Friday, March 22, 2013

Similarities Between Certain German and Czech Expressions


Snowy Hamburg was replaced by rainy Mannheim. And they have trams here! And it looks generally much more like Brno. I have behind me the writing and listening modules of the exam, I will let you know the results after I get them.

Short stop at Göttingen
View from my room in Mannheim
Rhine River
In between I would like to talk about something else. During learning the German vocabulary, I noticed similarity of some expressions to Czech expressions and namely I speak about expressions whose meaning is not easily derivable from the structure.

An example of what I am talking about: "auskommen" means "to get by". "aus" = "out", "kommen" = "to come". The verb "vyjít" in Czech means the same thing and also its structure is similar: "vy" = "out", "jít" = "to go". Although when constructing a new artificial language, I would never connect the meaning of "getting by with money" with "going out". However, this connection somehow works both in German and Czech.

I tried to make a list of these Czech/German expressions. Here it is:
  • auskommen - vyjít s penězy (to get by)
  • Das wird uns teuer stehen - To nás bude stát draho (That will cost us)
  • durchfallen - přepadnout (to repeat a class)
  • sich etwas vorstellen - představit si něco (to imagine something)
  • Darauf kannst du Gift nehmen! - Na to můžeš vzít jed! (That's for sure!)
  • jemandem einen Korb geben - dát někomu košem (to leave a boyfriend/girlfriend)
  • bringen sich über etwas - přenést se přes něco (to put up with something)
  • in einer Prüfung bestehen - obstát ve zkoušce (to pass the exam)
  • schwerfällig - těžkopádný (cumbersome)
  • durchsetzen - prosadit (to accomplish in the face of the unwillingness of the others)
  • anwerfen - nahodit (to actuate)
  • die Aufgeblasenheit - nafoukanost (pompousness, conceit)
  • auf Achse (literally: "on the shoulders", the meaning "on the move" ) - there is a Czech expression "vzít nohy na ramena", literally "to take the feet on the shoulders", used in the meaning: "to run away"
  • auffällig - nápadný (noticeable)
  • erhalten - obdržet (to obtain)
  • die Angelegenheit - záležitost (issue)

What interests me: Is the similarity of the expressions just a pure coincidence, or did one language get inspired from the other one? Czech has been for long centuries under the influence of German, so the second explanation sounds more plausible. However, if you have another one, I will be happy to hear it.