Open main menu

Changes

228 bytes added ,  13:25, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
[TODO, perhaps {{todo|Perhaps give another title to this page, perhaps accented characters]}}
== . == In TeX you can only access 256 glyphs at a time(With XeTeX and LuaTeX, it's over, thanks to UTF-8 support). Well, but even if you could access more of them, a glyph or two that you need may be absent in your favourite font.
== Choosing the proper encoding ==
First of all: make sure that you are using the proper encoding and the proper regime (see slso [[Encodings and Regimes- Old Content]]). Most problems can already be solved by deciding for the proper encoding (or by making one by your own).
[TODO: describe {{todo|Describe where to check for it, perhaps write a wiki page for every encoding.]}}
You have to be aware that a word with faked glyphs cannot be hyphenated and the the resulting PDF won't be fully searchable either.
<context>\ccaron</context>
(If you need a lot of non-standard accented characters, texnansi, the default, may not be the best choice. Consider using the '''ec''' or any other encoding - see [[Encodings and Regimes- Old Content]] for more info.)
== Composing characters ==
However, some of them may be missing in the encoding you use, so make sure that the accent you want is available in the encoding first.
[TODO: provide {{todo|Provide a more comprehensive overview and more complex examples]}}
=== Defining a shortcut ===
[TODO: {{todo|<code>enco-acc.tex]</code>}}
== Drawing characters ==
đ/Đ (U+0110/0111, "latin small/capital letter d with stroke") are glyphs present in very few encodings. On the other hand, only a straight line has to be drawn in order to fake the glyph. Although it is difficult to position this line (stroke) properly for a general case and despite being far from optimal, it can be sometimes useful to have such a little hack. Here's an example of how \dstroke and \Dstroke were faked:
[TODO]{{todo|Something goes here.}}
=== Drawing with metafun ===
[TODO: this {{todo|This is probably also possible]. (Yes, it is; see the "verbatim end-of-line character" page for an example. --Brooks}}
=== Cropping existing characters ===
[TODO: how {{todo|How to use \{{cmd|crop]}}}}
== Rotating/mirorring characters ==
[TODO: comments {{todo|Comments about the following code and some more examples:].}}
<texcode>
== Making your own encoding ==
[[Latin Modern Roman]] for example happens to have over 600 glyphs, so it may be that your favourite glyph (such as <code>udoublegrave</code>) is already there, but you can't access it using standard encodings. In this case you can write your own encoding and support for it. This way takes some more effort and skills than all of the above mentioned solutions and it also takes additional effort if you want to compile the document on another computer. But unless you are using [[XeTeX]], [[Aleph]], ... or any other TeX system which got rid of the 256-glyphs-limit, this is the only proper way if you're opting for high quality.
[TODO]{{todo|Something goes here.}}
[[Category:Fonts]]
[[Category:InternationalLanguages]]