{"id":6898,"date":"2013-03-29T18:07:27","date_gmt":"2013-03-29T18:07:27","guid":{"rendered":"http:\/\/blog.widmann.org.uk\/?p=6898"},"modified":"2013-03-29T18:07:27","modified_gmt":"2013-03-29T18:07:27","slug":"typesetting-gaelic-in-gaelic-type","status":"publish","type":"post","link":"https:\/\/widmanniana.org\/blog\/typesetting-gaelic-in-gaelic-type\/","title":{"rendered":"Typesetting Gaelic in Gaelic type"},"content":{"rendered":"<p><figure id=\"attachment_6900\" aria-describedby=\"caption-attachment-6900\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"https:\/\/widmanniana.org\/blog\/wp-content\/uploads\/gadelica.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/widmanniana.org\/blog\/wp-content\/uploads\/gadelica-300x170.png\" alt=\"Gaelic in Gadelica.\" width=\"300\" height=\"170\" class=\"size-medium wp-image-6900\" \/><\/a><figcaption id=\"caption-attachment-6900\" class=\"wp-caption-text\">Gaelic in Gadelica.<\/figcaption><\/figure>In Ireland, <a href=\"http:\/\/en.wikipedia.org\/wiki\/Gaelic_type\">Gaelic type<\/a> is widely used for writing Irish (although mainly for decorative purposes these days, if I&#8217;m not mistaken).  On the other hand, it&#8217;s hardly ever used in Scotland, although Irish and Scottish Gaelic are very closely related.<\/p>\n<p>However, I thought it&#8217;d be nice to be able to typeset Gaelic in Gaelic type using TeX\/LaTeX\/XeLaTeX.<\/p>\n<p>After a big of googling, I found a very nice font called <a href=\"http:\/\/www.iol.ie\/~sob\/gadelica\/\">Gadelica<\/a>.<\/p>\n<p>This is a beautiful OpenType font (and it supports the grave accents used in Scottish Gaelic, not just the acute ones used in Irish), but there is a slight problem: It assumes that the dotted letters (e.g., \u2018?\u2019 instead of \u2018ch\u2019) have been coded in Unicode rather than using the normal digraphs.<\/p>\n<p>To solve this, I created a <a href=\"https:\/\/widmanniana.org\/blog\/2009\/10\/13\/1650\/\">TECkit mapping<\/a> (see below for the complete mapping file).  Once you&#8217;ve compiled it, you can now easily create a XeLaTeX document and select font and mapping with <tt>\\setromanfont[Mapping=gadelica]{Gadelica}<\/tt>, and you can now input the normal ligatures.  For instance, the second line in the illustration above is simply given as <i>Dh&#8217;fheuch am faic mi fear a&#8217; bh\u00e0ta<\/i> in the source file.<\/p>\n<p>Here&#8217;s the complete mapping file, <tt>gadelica.map<\/tt> (compile with <tt>teckit_compile gadelica.map<\/tt>):<br \/>\n<code><br \/>\nLHSName \"Gadelica\"<br \/>\nRHSName \"UNICODE\"<\/p>\n<p>pass(Unicode)<\/p>\n<p>U+0062 U+0068 <> U+1E03     ;bh<br \/>\nU+0063 U+0068 <> U+010B     ;ch<br \/>\nU+0064 U+0068 <> U+1E0B     ;dh<br \/>\nU+0066 U+0068 <> U+1E1F     ;fh<br \/>\nU+0067 U+0068 <> U+0121     ;gh<br \/>\nU+006D U+0068 <> U+1E41     ;mh<br \/>\nU+0070 U+0068 <> U+1E57     ;ph<br \/>\nU+0073 U+0068 <> U+1E61     ;sh<br \/>\nU+0074 U+0068 <> U+1E6B     ;th<br \/>\nU+0042 U+0048 <> U+1E02     ;BH<br \/>\nU+0043 U+0048 <> U+010A     ;CH<br \/>\nU+0044 U+0048 <> U+1E0A     ;DH<br \/>\nU+0046 U+0048 <> U+1E1E     ;FH<br \/>\nU+0047 U+0048 <> U+0120     ;GH<br \/>\nU+004D U+0048 <> U+1E40     ;MH<br \/>\nU+0050 U+0048 <> U+1E56     ;PH<br \/>\nU+0053 U+0048 <> U+1E60     ;SH<br \/>\nU+0054 U+0048 <> U+1E6A     ;TH<br \/>\nU+0053 U+0048 <> U+1E60     ;SH<br \/>\nU+0054 U+0048 <> U+1E6A     ;TH<br \/>\nU+0042 U+0068 <> U+1E02     ;Bh<br \/>\nU+0043 U+0068 <> U+010A     ;Ch<br \/>\nU+0044 U+0068 <> U+1E0A     ;Dh<br \/>\nU+0046 U+0068 <> U+1E1E     ;Fh<br \/>\nU+0047 U+0068 <> U+0120     ;Gh<br \/>\nU+004D U+0068 <> U+1E40     ;Mh<br \/>\nU+0050 U+0068 <> U+1E56     ;Ph<br \/>\nU+0053 U+0068 <> U+1E60     ;Sh<br \/>\nU+0054 U+0068 <> U+1E6A     ;Th<\/p>\n<p>; Some stuff from tex-text.map:<br \/>\nU+002D U+002D                   <>      U+2013  ; -- -> en dash<br \/>\nU+002D U+002D U+002D    <>      U+2014  ; --- -> em dash<\/p>\n<p>U+0027                  <>      U+2019  ; ' -> right single quote<br \/>\nU+0027 U+0027   <>      U+201D  ; '' -> right double quote<br \/>\nU+0022                   >      U+201D  ; \" -> right double quote<\/p>\n<p>U+0060                  <>      U+2018  ; ` -> left single quote<br \/>\nU+0060 U+0060   <>      U+201C  ; `` -> left double quote<\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Ireland, Gaelic type is widely used for writing Irish (although mainly for decorative purposes these days, if I&#8217;m not mistaken). On the other hand, it&#8217;s hardly ever used in Scotland, although Irish and Scottish Gaelic are very closely related. However, I thought it&#8217;d be nice to be able to typeset Gaelic in Gaelic type using TeX\/LaTeX\/XeLaTeX. After a big of googling, I found a very nice font called Gadelica. This is a beautiful OpenType font (and it supports the grave accents used in Scottish Gaelic, not [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159,164,147],"tags":[],"class_list":["post-6898","post","type-post","status-publish","format-standard","hentry","category-en","category-gd","category-typography"],"_links":{"self":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts\/6898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/comments?post=6898"}],"version-history":[{"count":0,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts\/6898\/revisions"}],"wp:attachment":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/media?parent=6898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/categories?post=6898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/tags?post=6898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}