1

I have a METAFONT that implements the shavian alphabet mapping ASCII characters to shavian glyphs, for example the t is the shavian letter 'tot'. I have mapped the shavian letter's unicode representation to the glyphs, like this:

\DeclareUnicodeCharacter{10450}{{\shaw p}}
\DeclareUnicodeCharacter{10451}{{\shaw t}}
\DeclareUnicodeCharacter{10452}{{\shaw k}}
\DeclareUnicodeCharacter{10453}{{\shaw f}}
\DeclareUnicodeCharacter{10454}{{\shaw X}}

This inserts the shavian "p" when I enter the symbol "๐‘". The problem is that the kerning does not work. When I write {\shaw nt} it displays the kerning, but if I write ๐‘ฏ๐‘‘ it does not work. This seems to be caused by the grouping. I have tried mapping these symbols like this: \DeclareUnicodeCharacter{10454}{X} and enclosing the whole shavian text in {\shaw }, but the shaw font lacks punctuation, so it is not a viable alternative.

For example, in the text

๐‘’๐‘ช๐‘ฅ๐‘ฆ๐‘’๐‘ผ ๐‘“๐‘ฎ๐‘ฐ๐‘›๐‘ค๐‘ฐ๐‘š ๐‘“๐‘ง๐‘ผ๐‘›๐‘ฆ๐‘ฏ๐‘ณ๐‘ฏ๐‘› ๐‘ฎ๐‘ซ๐‘™๐‘ง (1794--1867) ๐‘ง๐‘ผ๐‘•๐‘‘๐‘ฅ๐‘ญ๐‘ค๐‘• ๐‘ฆ๐‘•๐‘ท๐‘ค๐‘ฐ๐‘ผ๐‘‘ ๐‘ข๐‘ซ๐‘ผ๐‘›๐‘ง. ๐‘›๐‘ณ๐‘•
"`๐‘ฅ๐‘ง๐‘‘๐‘ž๐‘ค"'  ๐‘ฆ๐‘ฏ ๐‘ฅ๐‘ง๐‘‘๐‘ž๐‘ค๐‘‘๐‘ช๐‘ท๐‘š๐‘ฎ๐‘ด๐‘ฅ๐‘ฐ๐‘ฏ  ๐‘š๐‘ง๐‘พ๐‘ฐ๐‘‘ ๐‘•๐‘ฆ๐‘  ๐‘”๐‘š๐‘ฎ๐‘ฆ๐‘œ๐‘ฉ๐‘ฏ๐‘• ๐‘ฌ๐‘“  ๐‘›๐‘ฐ ๐‘œ๐‘ค๐‘ฒ๐‘๐‘ง  ๐‘’๐‘ช๐‘ฅ๐‘ฆ๐‘–๐‘ง
๐‘–๐‘‘๐‘ฎ๐‘ซ๐‘’๐‘‘๐‘ต๐‘ฎ ๐‘ข๐‘ฆ๐‘ง ๐‘›๐‘ณ๐‘• "`๐‘ฅ๐‘ง๐‘‘๐‘ž๐‘ค"' ๐‘ฆ๐‘ฏ 

the german quoutes ("` and "'), the numbers and the long hyphen (--) should appear in the computer modern font, while the rest appears in the shavian font (which should be properly kerned).

Is there any simple way to achieve kerning while using computer modern's punctuation symbols?

  • Welcome. You can't get kerning between characters from different fonts. In this case, that kerning is not even defined. – cfr Jun 21 '15 at 19:36
  • @cfr I do not want to get kerning between different fonts, I want to get kerning between the shaw characters, which are all in the same font. – G. P Jun 21 '15 at 19:38
  • Hmm... but you are switching fonts in between the characters. A minimal example would help, even if we don't have the font. – cfr Jun 21 '15 at 19:42
  • The only answer I can think of here - unless Xe/LuaTeX offers something - is to create a virtual font using letters from the shaw font and punctuation from cmr or lmr or whatever. This is the way you usually create fonts for (pdf)TeX when you want to combine glyphs from different fonts. Once created, you have a new font which TeX will treat as just a regular font. This would not be too hard. fontinst can be set up so that it will take everything it can from shaw and then fill out empty slots in an encoding from your secondary font. Since there is no punctuation in shaw, you... – cfr Jun 21 '15 at 19:50
  • don't have to worry about overriding it which would involve additional messing around. Take a look at the Font Installation Guide and decide how badly you want to do this. It isn't especially hard, but it does take time and patience and you need to do the reading in order to understand how to get what you want where you want it. – cfr Jun 21 '15 at 19:52

Your Answer

By clicking โ€œPost Your Answerโ€, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.