[texhax] Fwd: Latvian Special Characters
Daniel Greenhoe
dgreenhoe at gmail.com
Mon Mar 17 04:37:43 CET 2014
Hi Pascal,
I suspect that the LaTeX command \v{g} will give you ǧ (a Latin lower
case "g" with the diacritic "caron" on top); but what you want for
Latvian is ģ (a Latin lower case "g" with the diacritic "cedilla" on
top).
I might recommend that you consider typesetting with XeLaTeX rather
than LaTeX. XeLaTeX is included in the standard TeXLive distribution
(so probably you don't need to download anything new). XeLaTeX was
initially written by Jonathan Kew of SIL (one of the leading
linguistic organizations in the world) for the purpose of easily and
conveniently supporting a very large number of language scripts and
fonts.
You can use it from the command line just like you might use LaTeX:
xelatex <myfile.tex>
Using XeLaTeX, you can easily select and change fonts. The selected
fonts can be any that happen to be on your harddrive---even if they
are not "installed" fonts. So you can download and use any font you
like that supports the Latvian script. You can check what glyphs a
font supports by using the free utility BabelMap:
http://www.babelstone.co.uk/Software/BabelMap.html
If you want a serif font (like Times New Roman), I might recommend
Heuristica, "an extended version of Adobe Utopia font" which can be
downloaded from
http://code.google.com/p/evristika/
If you want a sans-serif font (like Arial), I might recommend "Heros"
from the Tex-Gyre project:
http://www.ctan.org/pkg/tex-gyre-heros
One of the very powerful features of XeLaTeX is that you can specify a
"teckit mapping" file to easily define macros to typeset glyphs not
included in the standard ABC Latin alphabet. You can write your own
mapping file if you like as mapping.map, and then compile to
mapping.tec using the free utility "teckit_compile.exe". I am
including to this email my mapping files
punctuation.map
punctuation.tec
You are free to use or modify them if you like.
Here is an example (see also attachment):
\documentclass{book}
\usepackage[no-config,no-math]{fontspec} % font selection for xelatex
\usepackage{xunicode} % unicode character support
\setmainfont[
ExternalLocation,
Path = {/xfonts/heuristica/},
Extension = {.otf},
Mapping = /dan/r/common/teckit/punctuation,
UprightFont = {*-Regular},
BoldFont = {*-Bold},
ItalicFont = {*-Italic},
BoldItalicFont = {*-BoldItalic},
Scale = {0.9},
]{Heuristica}
\setsansfont[
Extension = {.otf},
UprightFont = {*-regular},
BoldFont = {*-bold},
ItalicFont = {*-italic},
BoldItalicFont = {*-bolditalic},
]{texgyreheros}
\begin{document}
A /-A B C /vC D E /-E F /;G H I /-I J K /;K L /;L M N /;N O P Q R S
/vS T U /-U V W X Y Z /vZ\\
a /-a b c /vc d e /-e f /;g h i /-i j k /;k l /;l m n /;n o p q r s
/vs t u /-u v w x y z /vz
\end{document}
But I note that in the output pdf file (see attachment) that the
cedilla for the g is being placed below the g rather than above it.
Maybe a different font would give you something more acceptable?
Kind Regards,
Dan
On Mon, Mar 17, 2014 at 2:11 AM, Pascal <pascal.bernhard at belug.de> wrote:
> Hi all,
>
> in my master thesis I need to use some special Latvian characters. Since
> I'm writing the document in German I use the babel ngerman package in
> the preamble.
>
> For most special characters that works, but I hit upon a quite specific
> g, I could not get "diplayed" correctly so far: ģ
>
> The technical specifications for this letter are:
> UTF-8: 0xC4 0xA3
> UTF-16: 0x0123
> C oktal dargestelltes UTF-8: \304\243
> XML-Dezimal-Entität: ģ
>
>
> I came upon this website (http://home.lu.lv/~drikis/TeX/) which provides
> "commands" for Latvian letters, but this g it does not work, and since I
> do not understand Latvian, I miss the instructions on how to set up the
> LaTeX environment in order for the "commands" to work properly.
>
> Here is a minimal example where the ģ is not displayed correctly:
>
> \documentclass{scrreprt}
> \usepackage[ngerman]{babel}
> \usepackage[ansinew]{inputenc}
> \usepackage{lmodern}
>
> \begin{document}
>
> Latvijas Republikas Ekonomikas Ministrija (2012): Latvijas ener
> \v{g}\={e}tika skait\c{l}os -- Latvian Energy In Figures.
>
> \end{document}
>
> I guess I would have to switch the babel package or something else for
> that line, but since I am definitively not a LaTeX expert, I'm at a loss
> of how to solve my issue.
>
> Thanks for your kind help,
>
> Pascal
>
>
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
-------------- next part --------------
;==============================================================================
; Variants to TECkit mapping file
; Input file name: Unihan_Variants.txt
; Output file name: Unihan_Variants.txt
; Daniel J. Greenhoe
;
; References:
; ----------
; 1. TIPA version 1.3 http://www.ctan.org/pkg/tipa
; 2. Unicode standard 6.0, IPA Extensions, http://unicode.org/charts/PDF/U0250.pdf
; 3. Handbook of the International Phonetic Association;
; A guide to the use of the International Phonetic Alphabet
; Cambridge University Press, 1999, isbn 978-0-521-63751-0 (paperback)
; 4. symbol names: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
;==============================================================================
;
;=======================================
; Header information
;=======================================
;EncodingName "punctuation"
;DescriptiveName "Puctuation"
LHSName "punctuation-codes"
RHSName "unicode-punctuation"
LHSDescription "punctuation symbols"
RHSDescription "Unicode 6.0 symbols"
;LHSFlags ()
;RHSFlags ()
Version "0"
Contact "Daniel J. Greenhoe, mailto:dgreenhoe at gmail.com"
;RegistrationAuthority ""
RegistrationName "ascii-uipa"
;
;=======================================
; Macros
;=======================================
Define BSL reverse_solidus ; U+005C
Define FSL solidus ; U+002F /
Define COL colon ; U+003A :
Define SCO semicolon ; U+003B ;
Define AST asterisk ; U+002A *
Define LCB left_curly_bracket ; U+007B {
Define RCB right_curly_bracket ; U+007D }
Define HYP hyphen_minus ; U+002D -
Define EQU equals_sign ; U+003D =
Define GTS greater_than_sign ; U+003E >
Define EXM exclamation_mark ; U+0021 !
Define VLN vertical_line ; U+007C |
Define TIL tilde ; U+007E ~
Define PER full_stop ; U+002E .
;
;=======================================
;pass(Byte) ; Byte==>Byte mapping pass
;=======================================
;
;=======================================
;pass(Byte_Unicode) ; Byte==>Unicode mapping pass
;=======================================
;
;=======================================
;pass(Unicode_Byte) ; Unicode==>Byte mapping pass
;=======================================
;
;=======================================
pass(Unicode) ; Unicode==>Unicode mapping pass
;=======================================
;---------------------------------------
;
;---------------------------------------
grave_accent grave_accent <> left_double_quotation_mark ;`` <> U+201C
quotation_mark <> right_double_quotation_mark ;" <> U+201D
hyphen_minus hyphen_minus hyphen_minus <> em_dash ;---<> U+2014
hyphen_minus hyphen_minus <> en_dash ;-- <> U+2013
;---------------------------------------
; diacritics
;---------------------------------------
FSL grave_accent latin_small_letter_a <> latin_small_letter_a_with_grave ;/`a <> U+00E0
FSL apostrophe latin_small_letter_a <> latin_small_letter_a_with_acute ;/'a <> U+00E1
FSL colon latin_small_letter_a <> latin_small_letter_a_with_diaeresis ;/:a <> U+00E4
FSL less_than_sign latin_small_letter_a <> latin_small_letter_a_with_circumflex ;/<a <> U+00E2
FSL HYP latin_small_letter_a <> latin_small_letter_a_with_macron ;/-a <> U+0101
FSL latin_small_letter_v latin_small_letter_a > latin_small_letter_a_with_caron ;/va <> U+01CE
FSL greater_than_sign latin_small_letter_a <> latin_small_letter_a_with_caron ;/>a <> U+01CE
FSL grave_accent latin_capital_letter_A <> latin_capital_letter_A_with_grave ;/`A <> U+00C0
FSL HYP latin_capital_letter_A <> latin_capital_letter_A_with_macron ;/-A <> U+
FSL apostrophe latin_capital_letter_A <> latin_capital_letter_A_with_acute ;/'A <> U+00C1
FSL less_than_sign latin_capital_letter_A <> latin_capital_letter_A_with_circumflex ;/<A <> U+00C2
FSL latin_small_letter_v latin_capital_letter_A > latin_capital_letter_A_with_caron ;/vA > U+01CD
FSL greater_than_sign latin_capital_letter_A <> latin_capital_letter_A_with_caron ;/>A <> U+01CD
FSL apostrophe latin_small_letter_c <> latin_small_letter_c_with_acute ;/'c <> U+0107
FSL less_than_sign latin_small_letter_c <> latin_small_letter_c_with_circumflex ;/<c <> U+0109
FSL latin_small_letter_v latin_small_letter_c <> latin_small_letter_c_with_caron ;/vc <> U+010D
FSL semicolon latin_small_letter_c <> latin_small_letter_c_with_cedilla ;/;c <> U+00E7
FSL apostrophe latin_capital_letter_C <> latin_capital_letter_C_with_acute ;/'C <> U+0106
FSL less_than_sign latin_capital_letter_C <> latin_capital_letter_C_with_circumflex ;/<C <> U+0108
FSL latin_small_letter_v latin_capital_letter_C <> latin_capital_letter_C_with_caron ;/vC <> U+010C
FSL semicolon latin_capital_letter_C <> latin_capital_letter_C_with_cedilla ;/;C <> U+00C7
FSL latin_small_letter_v latin_small_letter_d <> latin_small_letter_d_with_caron ;/vd <> U+010F
FSL semicolon latin_small_letter_d <> latin_small_letter_d_with_cedilla ;/;d <> U+1E11
FSL latin_small_letter_v latin_capital_letter_D <> latin_capital_letter_D_with_caron ;/vD <> U+010E
FSL semicolon latin_capital_letter_D <> latin_capital_letter_D_with_cedilla ;/;D <> U+1E10
FSL grave_accent latin_small_letter_e <> latin_small_letter_e_with_grave ;/`e <> U+00E8
FSL apostrophe latin_small_letter_e <> latin_small_letter_e_with_acute ;/'e <> U+00E9
FSL colon latin_small_letter_e <> latin_small_letter_e_with_diaeresis ;/:e <> U+00EB
FSL less_than_sign latin_small_letter_e <> latin_small_letter_e_with_circumflex ;/<e <> U+00EA
FSL latin_small_letter_v latin_small_letter_e > latin_small_letter_e_with_caron ;/ve <> U+011B
FSL greater_than_sign latin_small_letter_e <> latin_small_letter_e_with_caron ;/>e <> U+011B
FSL semicolon latin_small_letter_e <> latin_small_letter_e_with_cedilla ;/;e <> U+0229
FSL HYP latin_small_letter_e <> latin_small_letter_e_with_macron ;/-e <> U+0113
FSL HYP latin_capital_letter_E <> latin_capital_letter_E_with_macron ;/-E <> U+
FSL grave_accent latin_capital_letter_E <> latin_capital_letter_E_with_grave ;/`E <> U+00C8
FSL apostrophe latin_capital_letter_E <> latin_capital_letter_E_with_acute ;/'E <> U+00C9
FSL less_than_sign latin_capital_letter_E <> latin_capital_letter_E_with_circumflex ;/<E <> U+00CA
FSL latin_small_letter_v latin_capital_letter_E <> latin_capital_letter_E_with_caron ;/vE <> U+011A
FSL semicolon latin_capital_letter_E <> latin_capital_letter_E_with_cedilla ;/;E <> U+0228
FSL less_than_sign latin_small_letter_g <> latin_small_letter_g_with_circumflex ;/<g <> U+011D
FSL semicolon latin_small_letter_g <> latin_small_letter_g_with_cedilla ;/;g <> U+0123
FSL HYP latin_small_letter_g <> latin_small_letter_g_with_macron ;/-g <> U+1E20
FSL less_than_sign latin_capital_letter_G <> latin_capital_letter_G_with_circumflex ;/<G <> U+011C
FSL semicolon latin_capital_letter_G <> latin_capital_letter_G_with_cedilla ;/;G <> U+0122
FSL less_than_sign latin_small_letter_h <> latin_small_letter_h_with_circumflex ;/<h <> U+0125
FSL semicolon latin_small_letter_h <> latin_small_letter_h_with_cedilla ;/;h <> U+1E28
FSL less_than_sign latin_capital_letter_H <> latin_capital_letter_H_with_circumflex ;/<H <> U+0124
FSL semicolon latin_capital_letter_H <> latin_capital_letter_H_with_cedilla ;/;H <> U+1E29
FSL apostrophe latin_small_letter_i <> latin_small_letter_i_with_acute ;/'i <> U+00CD
FSL grave_accent latin_small_letter_i <> latin_small_letter_i_with_grave ;/`i <> U+00EC
FSL less_than_sign latin_small_letter_i <> latin_small_letter_i_with_circumflex ;/<i <> U+00EE
FSL greater_than_sign latin_small_letter_i <> latin_small_letter_i_with_caron ;/>i <> U+01D0
FSL HYP latin_small_letter_i <> latin_small_letter_i_with_macron ;/-i <> U+012A
FSL HYP latin_capital_letter_I <> latin_capital_letter_I_with_macron ;/-I <> U+
FSL grave_accent latin_capital_letter_I <> latin_capital_letter_I_with_grave ;/`I <> U+00CC
FSL apostrophe latin_capital_letter_I <> latin_capital_letter_I_with_acute ;/'I <> U+00ED
FSL less_than_sign latin_capital_letter_I <> latin_capital_letter_I_with_circumflex ;/<I <> U+00CE
FSL less_than_sign latin_small_letter_j <> latin_small_letter_j_with_circumflex ;/<j <> U+0135
FSL less_than_sign latin_capital_letter_J <> latin_capital_letter_J_with_circumflex ;/<J <> U+0134
FSL semicolon latin_small_letter_k <> latin_small_letter_k_with_cedilla ;/;k <> U+0137
FSL semicolon latin_capital_letter_K <> latin_capital_letter_K_with_cedilla ;/;K <> U+0136
FSL latin_small_letter_v latin_small_letter_l <> latin_small_letter_l_with_caron ;/vl <> U+013E
FSL semicolon latin_small_letter_l <> latin_small_letter_l_with_cedilla ;/;l <> U+013C
FSL PER latin_small_letter_l <> latin_small_letter_l_with_dot_below ;/.l <> U+1E37
FSL latin_small_letter_v latin_capital_letter_L <> latin_capital_letter_L_with_caron ;/vL <> U+013D
FSL semicolon latin_capital_letter_L <> latin_capital_letter_L_with_cedilla ;/;L <> U+013B
FSL grave_accent latin_small_letter_n <> latin_small_letter_n_with_grave ;/`n <> U+01F9
FSL apostrophe latin_small_letter_n <> latin_small_letter_n_with_acute ;/'n <> U+00F3
FSL latin_small_letter_v latin_small_letter_n <> latin_small_letter_n_with_caron ;/vn <> U+0148
FSL semicolon latin_small_letter_n <> latin_small_letter_n_with_cedilla ;/;n <> U+0146
FSL PER latin_small_letter_n <> latin_small_letter_n_with_dot_below ;/.n <> U+1E47
;FSL HYP latin_small_letter_n <> latin_small_letter_n_with_macron ;/-n <> U+0101
FSL grave_accent latin_capital_letter_N <> latin_capital_letter_N_with_grave ;/`N <> U+01F8
FSL latin_small_letter_v latin_capital_letter_N <> latin_capital_letter_N_with_caron ;/vN <> U+0147
FSL semicolon latin_capital_letter_N <> latin_capital_letter_N_with_cedilla ;/;N <> U+0145
FSL apostrophe latin_small_letter_o <> latin_small_letter_o_with_acute ;/'o <> U+00F2
FSL grave_accent latin_small_letter_o <> latin_small_letter_o_with_grave ;/`o <> U+00D2
FSL FSL latin_small_letter_o <> latin_small_letter_o_with_stroke ;//o <> U+00D8
FSL quotation_mark latin_small_letter_o <> latin_small_letter_o_with_double_acute ;/"o <> U+0151
FSL colon latin_small_letter_o <> latin_small_letter_o_with_diaeresis ;/:o <> U+00F6
FSL less_than_sign latin_small_letter_o <> latin_small_letter_o_with_circumflex ;/<o <> U+00F4
FSL quotation_mark latin_small_letter_o <> latin_small_letter_o_with_double_acute ;/"o <> U+0050
FSL HYP latin_small_letter_o <> latin_small_letter_o_with_macron ;/-o <> U+014D
FSL EQU latin_small_letter_o > latin_small_letter_o_with_macron ;/=o <> U+014D
FSL greater_than_sign latin_small_letter_o <> latin_small_letter_o_with_caron ;/>o <> U+01D2
FSL FSL latin_capital_letter_O <> latin_capital_letter_O_with_stroke ;/`O <> U+00F8
FSL grave_accent latin_capital_letter_O <> latin_capital_letter_O_with_grave ;/`O <> U+00C8
FSL apostrophe latin_capital_letter_O <> latin_capital_letter_O_with_acute ;/'O <> U+00D3
FSL quotation_mark latin_capital_letter_O <> latin_capital_letter_O_with_double_acute ;/"O <> U+0150
FSL less_than_sign latin_capital_letter_O <> latin_capital_letter_O_with_circumflex ;/<O <> U+00D4
FSL quotation_mark latin_capital_letter_O <> latin_capital_letter_O_with_double_acute ;/"O <> U+0151
FSL latin_small_letter_v latin_small_letter_r <> latin_small_letter_r_with_caron ;/vr <> U+0159
FSL semicolon latin_small_letter_r <> latin_small_letter_r_with_cedilla ;/;r <> U+0157
FSL latin_small_letter_v latin_capital_letter_R <> latin_capital_letter_R_with_caron ;/vR <> U+0158
FSL semicolon latin_capital_letter_R <> latin_capital_letter_R_with_cedilla ;/;R <> U+0156
FSL less_than_sign latin_small_letter_s <> latin_small_letter_s_with_circumflex ;/<s <> U+015D
FSL latin_small_letter_v latin_small_letter_s <> latin_small_letter_s_with_caron ;/vs <> U+0161
FSL semicolon latin_small_letter_s <> latin_small_letter_s_with_cedilla ;/;s <> U+015F
FSL less_than_sign latin_capital_letter_S <> latin_capital_letter_S_with_circumflex ;/<S <> U+015C
FSL latin_small_letter_v latin_capital_letter_S <> latin_capital_letter_S_with_caron ;/vS <> U+0160
FSL semicolon latin_capital_letter_S <> latin_capital_letter_S_with_cedilla ;/;S <> U+015E
FSL latin_small_letter_v latin_small_letter_t <> latin_small_letter_t_with_caron ;/vt <> U+0165
FSL semicolon latin_small_letter_t <> latin_small_letter_t_with_cedilla ;/;t > U+0163
FSL latin_small_letter_v latin_capital_letter_T <> latin_capital_letter_T_with_caron ;/vT <> U+0164
FSL semicolon latin_capital_letter_T <> latin_capital_letter_T_with_cedilla ;/;T <> U+0162
FSL apostrophe latin_small_letter_u <> latin_small_letter_u_with_acute ;/'u <> U+00FA
FSL grave_accent latin_small_letter_u <> latin_small_letter_u_with_grave ;/`u <> U+00F9
FSL colon latin_small_letter_u <> latin_small_letter_u_with_diaeresis ;/:u <> U+00FC
FSL quotation_mark latin_small_letter_u <> latin_small_letter_u_with_double_acute ;/"u <> U+0171
;FSL quotation_mark latin_small_letter_u <> latin_small_letter_u_with_double_acute ;/"u <> U+0070
FSL less_than_sign latin_small_letter_u <> latin_small_letter_u_with_circumflex ;/<u <> U+00FB
FSL asterisk latin_small_letter_u <> latin_small_letter_u_with_ring_above ;/*u <> U+0165
FSL HYP latin_small_letter_u <> latin_small_letter_u_with_macron ;/-u <> U+016B
FSL EQU latin_small_letter_u > latin_small_letter_u_with_macron ;/=u <> U+016B
FSL HYP COL latin_small_letter_u <> latin_small_letter_u_with_diaeresis_and_macron ;/-:u <> U+01D6
FSL greater_than_sign latin_small_letter_u <> latin_small_letter_u_with_caron ;/>u <> U+01D4
FSL HYP latin_capital_letter_U <> latin_capital_letter_U_with_macron ;/-U <> U+
FSL grave_accent latin_capital_letter_U <> latin_capital_letter_U_with_grave ;/`U <> U+00D9
FSL apostrophe latin_capital_letter_U <> latin_capital_letter_U_with_acute ;/'U <> U+00DA
FSL quotation_mark latin_capital_letter_U <> latin_capital_letter_U_with_double_acute ;/"U <> U+0170
FSL colon latin_capital_letter_U <> latin_capital_letter_U_with_diaeresis ;/:U <> U+00DC
FSL less_than_sign latin_capital_letter_U <> latin_capital_letter_U_with_circumflex ;/<U <> U+00DB
FSL quotation_mark latin_capital_letter_U <> latin_capital_letter_U_with_double_acute ;/"O <> U+0171
FSL greater_than_sign latin_capital_letter_U <> latin_capital_letter_U_with_caron ;/>U <> U+01D3
FSL grave_accent latin_small_letter_w <> latin_small_letter_w_with_grave ;/`w <> U+1E81
FSL less_than_sign latin_small_letter_w <> latin_small_letter_w_with_circumflex ;/<w <> U+0175
FSL grave_accent latin_capital_letter_W <> latin_capital_letter_W_with_grave ;/`W <> U+1E80
FSL less_than_sign latin_capital_letter_W <> latin_capital_letter_W_with_circumflex ;/<W <> U+0174
FSL apostrophe latin_small_letter_y <> latin_small_letter_y_with_acute ;/'y <> U+00FD
FSL less_than_sign latin_small_letter_y <> latin_small_letter_y_with_circumflex ;/<y <> U+0177
FSL apostrophe latin_capital_letter_Y <> latin_capital_letter_Y_with_acute ;/'Y <> U+00DD
FSL less_than_sign latin_capital_letter_Y <> latin_capital_letter_Y_with_circumflex ;/<Y <> U+0176
FSL HYP latin_small_letter_y <> latin_small_letter_y_with_macron ;/-y <> U+0232
FSL latin_small_letter_v latin_small_letter_z <> latin_small_letter_z_with_caron ;/vz <> U+017E
FSL latin_small_letter_v latin_capital_letter_Z <> latin_capital_letter_Z_with_caron ;/vZ <> U+017D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: punctuation.tec
Type: application/octet-stream
Size: 2749 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20140317/6a4688e6/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diacritics.pdf
Type: application/pdf
Size: 8338 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20140317/6a4688e6/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diacritics.tex
Type: application/x-tex
Size: 1147 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20140317/6a4688e6/attachment-0001.tex>
More information about the texhax
mailing list