↑ Home |
If you are a package maintainer of a Linux distribution, please feel free to build a DK tools package or a package set.
I already created *.spec files to build RPM packages on Scientific Linux and a debian subdirectory to build DEB packages for Debian.
Probably my attempts do not yet meet all requirements for various Linux distributions. So more experienced package maintainters should create DK tools packages and add them to the repositories.
If you are willing to build a package for your favourite Linux distribution and the distributions policies require changes to the source code, please feel free to contact me via forum on the SourceForge project page.
This package contains the dk-t2l program to convert text to LaTeX and other programs producing LaTeX output.
Input is decoded first to obtain a sequence of 32 bit characters in UNICODE encoding. For each of the 32 bit characters we search for a LaTeX encoding using translation tables.
As UNICODE uses 24 bit characters we need approximately 224 entries in the tables. I can not create all the tables on my own, I only provide tables containing glyphs to write in central european languages.
If you need support for glyphs/languages not yet contained, you should send me a translation table file.
The DK tools project uses a 3 clauses BSD license, so I will accept only contributions using the same license terms.
A translation table file consists of empty lines, comment lines and data lines.
Comment lines are started by # as the first text character. They are ignored when the file is read.
Data lines are the lines of interest. The first text is the hexadecimal representation of the character. Next there are LaTeX sequences for text mode, math mode or both modes. At least one of these is required. Optionally you can add information about font encodings allowed or denied and about LaTeX packages required.
Let's build a data line for the plus/minus sign ±. The UNICODE position of this glyph is U+00B1, the hexadecimal value can be written shorter as B1.
To show this glyph in text mode, we should write:
\textpm{}
and use the textcomp package.
To show this glyph in math mode, we should write:
\pm{}
So the *.t2l file line looks like:
B1 t=\textpm{} m=\pm{} p=textcomp
Please use the SourceForge project page for the DK tools project to send contributions. Create a bug report / feature request and attach the file.
Thank you.
↑ Home |