MichaelUmmels

Differences between revisions 17 and 18
Revision 17 as of 2007-12-27 22:06:16
Size: 1895
Editor: pD9EBC13C
Comment:
Revision 18 as of 2008-08-06 16:41:00
Size: 1913
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
For more information about myself, see my [https://launchpad.net/~urmel291 Launchpad page] or my [http://www.ummels.de personal homepage]. For more information about myself, see my [[https://launchpad.net/~urmel291|Launchpad page]] or my [[http://www.ummels.de|personal homepage]].
Line 5: Line 5:
Since using Kubuntu for the first time, I had the problem that Chinese text was not rendered correctly in QT3 applications. This is due to QT's own font substitution mechanism, which apparently does not rely on fontconfig (see this [https://bugs.launchpad.net/ubuntu/+source/qt-x11-free/+bug/94282 bug report]). Since using Kubuntu for the first time, I had the problem that Chinese text was not rendered correctly in QT3 applications. This is due to QT's own font substitution mechanism, which apparently does not rely on fontconfig (see this [[https://bugs.launchpad.net/ubuntu/+source/qt-x11-free/+bug/94282|bug report]]).
Line 12: Line 12:
You can find the script here: attachment:qtfonts.py You can find the script here: [[attachment:qtfonts.py]]
Line 16: Line 16:
Currently, I only provide one package: the [http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/ cleveref] package for intelligent cross-referencing with latex. Feel free to try it out (no warranty). Currently, I only provide one package: the [[http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/|cleveref]] package for intelligent cross-referencing with latex. Feel free to try it out (no warranty).
Line 19: Line 19:
|| latex-cleveref || 0.8-0ubuntu1 || attachment:latex-cleveref_0.8-0ubuntu1_i386.deb || || latex-cleveref || 0.8-0ubuntu1 || [[attachment:latex-cleveref_0.8-0ubuntu1_i386.deb]] ||
Line 21: Line 21:
If you have any comments or questions, don't hesitate to [mailto:michael.ummels@rwth-aachen.de e-mail me]. If you have any comments or questions, don't hesitate to [[mailto:michael.ummels@rwth-aachen.de|e-mail me]].

For more information about myself, see my Launchpad page or my personal homepage.

QT3 font substitution

Since using Kubuntu for the first time, I had the problem that Chinese text was not rendered correctly in QT3 applications. This is due to QT's own font substitution mechanism, which apparently does not rely on fontconfig (see this bug report).

As a workaround, I wrote a Python script that emulates fontconfig's font substitution mechanism in QT3. The idea is to check for each font that exists on the system which fonts can be substituted for it using the fc-match command. A corresponding substitution entry is then written to the user's qtrc file. If the --system option is provided, the substitutions are written to the global qtrc file.

WARNING: The script will replace any existing font substitution in the qtrc file (e.g. ones written by the qtconfig tool). To keep the old substitutions, copy all entries in the [Font Substitution] section of the old qtrc file into the new one. A backup of the old qtrc file is saved under the name qtrc.old in the same directory where the qtrc file is located (i.e. $HOME/.qt or /etc/qt3 if you use the --system option).

You can find the script here: qtfonts.py

Ubuntu Packages

Currently, I only provide one package: the cleveref package for intelligent cross-referencing with latex. Feel free to try it out (no warranty).

Package name

Version

File

latex-cleveref

0.8-0ubuntu1

latex-cleveref_0.8-0ubuntu1_i386.deb

If you have any comments or questions, don't hesitate to e-mail me.

MichaelUmmels (last edited 2008-10-23 20:49:50 by pD9EBD91D)