TeX - LaTeX Asked by Mercurial on April 1, 2021
I am trying to render som IPA fonts on a Page.
% HeadersRequirePackage{silence} % :-
WarningFilter{scrreprt}{Usage of package `titlesec'}
%WarningFilter{scrreprt}{Activating an ugly workaround}
WarningFilter{titlesec}{Non standard sectioning command detected}
documentclass[ twoside,openright,titlepage,numbers=noenddot,%1headlines,
headinclude,footinclude,cleardoublepage=empty,abstract=on,
BCOR=5mm,paper=a5,fontsize=9pt,svgnames
]{scrreprt}
usepackage{lipsum}
usepackage{multicol}
usepackage{scrextend}
usepackage{pifont}
usepackage{longtable}
usepackage{scrextend}
setlength{columnsep}{0.5cm}
usepackage{tcolorbox}
usepackage{fontawesome}
newfontfamilyhindifont{Noto Sans Devanagari}[Script=Devanagari] % Use any Devanagari font on your system
% --- Sample Script
Consonants
resizebox{textwidth}{!}{%
begin{tabular}{ccccccccccc}
{[}p{]} & pig & {[}pig{]} & & {[}θ{]} & think & {[}θiŋk{]} & & {[}h{]} & hand & {[}hænd{]}
{[}b{]} & box & {[}bɑks{]} & & {[}ð{]} & this & {[}ðis{]} & & {[}m{]} & man & {[}mæn{]}
{[}t{]} & time & {[}taim{]} & & {[}s{]} & sun & {[}sʌn{]} & & {[}n{]} & nose & {[}nouz{]}
{[}d{]} & dog & {[}dɔg{]} & & {[}z{]} & zoo & {[}zu:{]} & & {[}ŋ{]} & wing & {[}wiŋ{]}
{[}k{]} & cat & {[}kæt{]} & & {[}ʃ{]} & shoe & {[}ʃuː{]} & & {[}r{]} & run & {[}rʌn{]}
{[}g{]} & go & {[}gou{]} & & {[}Ʒ{]} & treasure & {[}tréʒǝr{]} & & {[}l{]} & light & {[}lait{]}
{[}f{]} & face & {[}feis{]} & & {[}tʃ{]} & chair & {[}tʃεǝr{]} & & {[}j{]} & year & {[}jiǝr{]}
{[}v{]} & vase & {[}veis{]} & & {[}dƷ{]} & juice & {[}dʒuːs{]} & & {[}w{]} & west & {[}west{]}
end{tabular}%
}
Vowel
resizebox{textwidth}{!}{%
begin{tabular}{ccccccccccc}
multicolumn{7}{c}{begin{tabular}[c]{@{}c@{}}Monophthongs (single, pure vowel sound)end{tabular}} &
&
multicolumn{3}{c}{begin{tabular}[c]{@{}c@{}}Diphthongs (two vowel sounds joined in one syllable)end{tabular}}
{[}i:{]} & feet & {[}fi:t{]} & & {[}ǝ{]} & bird & {[}bǝrd{]} & & {[}ai{]} & eye & {[}ai{]}
{[}i{]} & fish & {[}fiʃ{]}{]} & & {[}u:{]} & two & {[}tu:{]} & & {[}au{]} & mouse & {[}maus{]}
{[}e{]} & bed & {[}bed{]} & & {[}u{]} & book & {[}buk{]} & & {[}ɔi{]} & toy & {[}tɔi{]}
{[}æ{]} & apple & {[}æpl{]} & & {[}ɔ{]} & ball & {[}bɔl{]} & & {[}ju{]} & you & {[}ju{]}
{[}ʌ{]} & sun & {[}sʌn{]} & & {[}ɑ{]} & mama & {[}m'ɑmɑ{]} & & {[}ei{]} & cake & {[}keik{]}
{[}ǝ{]} & alive & {[}ǝl'aiv{]} & & & & & & {[}ou{]} & go & {[}gou{]}
end{tabular}%
}
Now some of the fonts are being rendered but some are not getting rendered, for example notice the shoe
sign ʃ
.
Am I missing any package or is it logical error?
It is simply a matter of choosing a font that has the characters.
If you use xelatex's default computer modern, the log file will show multiple
Missing character: There is no ʃ in font [lmroman10-regular]:mapping=tex-text;!
If I switch to Arial then there are no such warnings and all the characters appear, many other fonts will be available, but no font covers all of Unicode so you need to pick one that covers the range you need.
I removed the resizebox
.
documentclass[a4paper]{article}
usepackage{fontspec}
setmainfont{Arial}
begin{document}
centering
Consonants
begin{tabular}{@{}ccccccccccc@{}}
[p] & pig & [pig] & & [θ] & think & [θiŋk] & & [h] & hand & [hænd] relax
[b] & box & [bɑks] & & [ð] & this & [ðis] & & [m] & man & [mæn] relax
[t] & time & [taim] & & [s] & sun & [sʌn] & & [n] & nose & [nouz] relax
[d] & dog & [dɔg] & & [z] & zoo & [zu:] & & [ŋ] & wing & [wiŋ] relax
[k] & cat & [kæt] & & [ʃ] & shoe & [ʃuː] & & [r] & run & [rʌn] relax
[g] & go & [gou] & & [Ʒ] & treasure & [tréʒǝr] & & [l] & light & [lait] relax
[f] & face & [feis] & & [tʃ] & chair & [tʃεǝr] & & [j] & year & [jiǝr] relax
[v] & vase & [veis] & & [dƷ] & juice & [dʒuːs] & & [w] & west & [west]
end{tabular}
Vowel
begin{tabular}{@{}ccccccccccc@{}}
multicolumn{7}{c}{begin{tabular}[c]{@{}c@{}}Monophthongs (single, pure vowel sound)end{tabular}} &
&
multicolumn{3}{c}{begin{tabular}[c]{@{}c@{}}Diphthongsrelax (two vowel sounds relax joined in one syllable)end{tabular}} relax
[i:] & feet & [fi:t] & & [ǝ] & bird & [bǝrd] & & [ai] & eye & [ai] relax
[i] & fish & [fiʃ]] & & [u:] & two & [tu:] & & [au] & mouse & [maus] relax
[e] & bed & [bed] & & [u] & book & [buk] & & [ɔi] & toy & [tɔi] relax
[æ] & apple & [æpl] & & [ɔ] & ball & [bɔl] & & [ju] & you & [ju] relax
[ʌ] & sun & [sʌn] & & [ɑ] & mama & [m'ɑmɑ] & & [ei] & cake & [keik] relax
[ǝ] & alive & [ǝl'aiv] & & & & & & [ou] & go & [gou{]}
end{tabular}%
end{document}
Correct answer by David Carlisle on April 1, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP