diff options
author | Karl Berry <karl@freefriends.org> | 2008-02-09 01:29:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-02-09 01:29:09 +0000 |
commit | e588eae9bda72d2f3b40b598f828908e1a51f1e5 (patch) | |
tree | 3a42e8daab6aa675929148d072e5a63555246669 /Master/texmf-dist/source/xelatex | |
parent | 6a316639cbe6edb401366f73747ad5ab3d1c39a7 (diff) |
euenc 1.0c (5feb08)
git-svn-id: svn://tug.org/texlive/trunk@6572 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/euenc/euenc.dtx | 211 |
1 files changed, 125 insertions, 86 deletions
diff --git a/Master/texmf-dist/source/xelatex/euenc/euenc.dtx b/Master/texmf-dist/source/xelatex/euenc/euenc.dtx index 96396f00be6..64b9787fc67 100644 --- a/Master/texmf-dist/source/xelatex/euenc/euenc.dtx +++ b/Master/texmf-dist/source/xelatex/euenc/euenc.dtx @@ -14,7 +14,7 @@ % This work consists of the file euenc.dtx and various derived files. % %<*dtxinfo> -\ProvidesFile{euenc.dtx}[2006/08/22 v0.1a Experimental unicode font encodings] +\ProvidesFile{euenc.dtx}[2008/02/05 v0.1c Experimental unicode font encodings] %</dtxinfo> % %<*internalbatchfile> @@ -93,7 +93,7 @@ This work consists of the file \jobname.dtx and various derived files. % % \begin{abstract} % This file documents some experimental unicode font encodings, initially -% used for \XeTeX. So far, there's not much here. +% used for \XeTeX. Includes Latin Modern font definitions for version 1.106 of those fonts. % \end{abstract} % % \tableofcontents @@ -166,17 +166,23 @@ This work consists of the file \jobname.dtx and various derived files. %<*eu1> % \fi % \begin{macrocode} -\ProvidesFile{eu1enc.def}[2006/08/13 v0.1a Experimental unicode font encoding] +\ProvidesFile{eu1enc.def}[2008/02/05 v0.1c Experimental unicode font encoding] \DeclareFontEncoding{EU1}{}{} \DeclareErrorFont{EU1}{lmr}{m}{n}{10} \DeclareFontSubstitution{EU1}{lmr}{m}{n} % \end{macrocode} +% The |:| character needs to be sanitised in case \pkg{babel} makes it active: +% \begin{macrocode} +\g@addto@macro\nfss@catcodes{\@makeother:} +% \end{macrocode} % \iffalse %</eu1> % \fi % % \section{The Latin Modern OpenType fonts} % +% Version 0.1c of \pkg{euenc} supports version~1.106 of the LM fonts, released in February 2008. +% % \subsection{Conversion scripts} % The |.fd| files are converted from the \enc{T1} encoding % with the following shell script. In order to generate @@ -188,16 +194,17 @@ This work consists of the file \jobname.dtx and various derived files. % The sources that allow this generation are shown following. % % \subsubsection{Encoding conversion shell script} +% Make sure the \texttt{lm/} directory exists before running this script. % \iffalse %<*lmscript> % \fi % \begin{macrocode} -sed -E -f sed-eu1lmr.sed `kpsewhich t1lmr.fd` > eu1lmr.fd -sed -E -f sed-eu1lmdh.sed `kpsewhich t1lmdh.fd` > eu1lmdh.fd -sed -E -f sed-eu1lmss.sed `kpsewhich t1lmss.fd` > eu1lmss.fd -sed -E -f sed-eu1lmssq.sed `kpsewhich t1lmssq.fd` > eu1lmssq.fd -sed -E -f sed-eu1lmtt.sed `kpsewhich t1lmtt.fd` > eu1lmtt.fd -sed -E -f sed-eu1lmvtt.sed `kpsewhich t1lmvtt.fd` > eu1lmvtt.fd +sed -E -f sed-eu1lmr.sed `kpsewhich t1lmr.fd` > lm/eu1lmr.fd +sed -E -f sed-eu1lmdh.sed `kpsewhich t1lmdh.fd` > lm/eu1lmdh.fd +sed -E -f sed-eu1lmss.sed `kpsewhich t1lmss.fd` > lm/eu1lmss.fd +sed -E -f sed-eu1lmssq.sed `kpsewhich t1lmssq.fd` > lm/eu1lmssq.fd +sed -E -f sed-eu1lmtt.sed `kpsewhich t1lmtt.fd` > lm/eu1lmtt.fd +sed -E -f sed-eu1lmvtt.sed `kpsewhich t1lmvtt.fd` > lm/eu1lmvtt.fd % \end{macrocode} % \iffalse %</lmscript> @@ -212,21 +219,23 @@ sed -E -f sed-eu1lmvtt.sed `kpsewhich t1lmvtt.fd` > eu1lmvtt.fd %<*sedlmr> % \fi % \begin{macrocode} -s/ec-//g -s/lm([a-z]+)([0-9]+)/lmroman\2-\1/g -s/([0-9]+)-ri/\1-italic/g -s/([0-9]+)-ro/\1-oblique/g -s/([0-9]+)-r/\1-regular/g -s/([0-9]+)-bxi/\1-bolditalic/g -s/([0-9]+)-bxo/\1-boldoblique/g -s/([0-9]+)-bx/\1-bold/g -s/([0-9]+)-bo\}/\1-demioblique\}/g -s/([0-9]+)-b\}/\1-demi\}/g -s/([0-9]+)-csco/\1-capsoblique/g -s/([0-9]+)-csc/\1-capsregular/g -s/t1/eu1/g -s/T1/EU1/g -s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g +/^%.*/d +s/{T1}/{EU1}/g +s/t1lm/eu1lm/g + +s/ec-lmri([0-9]*)/lmroman\1-italic/g +s/ec-lmro([0-9]*)/lmromanslant\1-regular/g +s/ec-lmr([0-9]*)/lmroman\1-regular/g +s/ec-lmcsco([0-9]*)/lmromancaps\1-oblique/g +s/ec-lmcsc([0-9]*)/lmromancaps\1-regular/g + +s/ec-lmbxo([0-9]*)/lmromanslant\1-bold/g +s/ec-lmbxi([0-9]*)/lmroman\1-bolditalic/g +s/ec-lmbx([0-9]*)/lmroman\1-bold/g +s/ec-lmbo([0-9]*)/lmromandemi\1-oblique/g +s/ec-lmb([0-9]*)/lmromandemi\1-regular/g + +s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]:mapping=tex-text"/g % \end{macrocode} % \iffalse %</sedlmr> @@ -236,13 +245,12 @@ s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g %<*sedlmdh> % \fi % \begin{macrocode} -s/ec-//g -s/lm([a-z]+)([0-9]+)/lmroman\2-\1/g -s/([0-9]+)-dunh/\1-dunhill/g -s/([0-9]+)-duno/\1-dunhilloblique/g -s/t1/eu1/g -s/T1/EU1/g -s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g +/^%.*/d +s/{T1}/{EU1}/g +s/t1lm/eu1lm/g + +s/ec-lmdunh([0-9]*)/lmromandunh\1-regular/g +s/ec-lmduno([0-9]*)/lmromanslant\1-oblique/g % \end{macrocode} % \iffalse %</sedlmdh> @@ -252,18 +260,20 @@ s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g %<*sedlmss> % \fi % \begin{macrocode} -s/ec-//g -s/lm([a-z]+)([0-9]+)/lmsans\2-\1/g -s/([0-9]+)-ssbo/\1-boldoblique/g -s/([0-9]+)-ssbx/\1-bold/g -s/([0-9]+)-ssdc\}/\1-demicondensed\}/g -s/([0-9]+)-ssdo\}/\1-demicondensedoblique\}/g -s/([0-9]+)-ssi/\1-italic/g -s/([0-9]+)-sso/\1-oblique/g -s/([0-9]+)-ss/\1-regular/g -s/t1/eu1/g -s/T1/EU1/g -s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g +/^%.*/d +s/{T1}/{EU1}/g +s/t1lm/eu1lm/g + +s/ec-lmss([0-9]+)/lmsans\1-regular/g +s/ec-lmsso([0-9]+)/lmsans\1-oblique/g + +s/ec-lmssdc([0-9]+)/lmsansdemicond\1-regular/g +s/ec-lmssdo([0-9]+)/lmsansdemicond\1-oblique/g + +s/ec-lmssbx([0-9]+)/lmsans\1-bold/g +s/ec-lmssbo([0-9]+)/lmsans\1-boldoblique/g + +s/(>.[ ]*)(lm[a-z0-9\-]+)/\1"[\2]:mapping=tex-text"/g % \end{macrocode} % \changes{v0.1}{2007/01/18}{`ssdc' and `ssdo' were switched with the upright for some reason.} % \iffalse @@ -274,15 +284,16 @@ s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g %<*sedlmssq> % \fi % \begin{macrocode} -s/ec-//g -s/lm([a-z]+)([0-9]+)/lmsansquotation\2-\1/g -s/([0-9]+)-ssqbo/\1-boldoblique/g -s/([0-9]+)-ssqbx/\1-bold/g -s/([0-9]+)-ssqo/\1-oblique/g -s/([0-9]+)-ssq/\1-regular/g -s/t1/eu1/g -s/T1/EU1/g -s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g +/^%.*/d +s/{T1}/{EU1}/g +s/t1lm/eu1lm/g + +s/ec-lmssq([0-9]+)/lmsansquot\1-regular/g +s/ec-lmssqo([0-9]+)/lmsansquot\1-oblique/g +s/ec-lmssqbx([0-9]+)/lmsansquot\1-bold/g +s/ec-lmssqbo([0-9]+)/lmsansquot\1-boldoblique/g + +s/(>.[ ]*)(lm[a-z0-9\-]+)/\1"[\2]:mapping=tex-text"/g % \end{macrocode} % \iffalse %</sedlmssq> @@ -292,22 +303,25 @@ s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g %<*sedlmtt> % \fi % \begin{macrocode} -s/ec-//g -s/lm([a-z]+)([0-9]+)/lmtypewriter\2-\1/g -s/([0-9]+)-tl\}/\1-light\}/g -s/([0-9]+)-tlo\}/\1-lightoblique\}/g -s/([0-9]+)-tk\}/\1-dark\}/g -s/([0-9]+)-tko\}/\1-darkoblique\}/g -s/([0-9]+)-tlc\}/\1-lightcondensed\}/g -s/([0-9]+)-tlco\}/\1-lightcondensedoblique\}/g -s/([0-9]+)-tcso/\1-capsoblique/g -s/([0-9]+)-tcsc/\1-capsregular/g -s/([0-9]+)-tti/\1-italic/g -s/([0-9]+)-tto/\1-oblique/g -s/([0-9]+)-tt/\1-regular/g -s/t1/eu1/g -s/T1/EU1/g -s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g +/^%.*/d +s/{T1}/{EU1}/g +s/t1lm/eu1lm/g + +s/ec-lmtt([0-9]+)/lmmono\1-regular/g +s/ec-lmtto([0-9]+)/lmmono\1-oblique/g + +s/ec-lmtcsc([0-9]+)/lmmonocaps\1-regular/g +s/ec-lmtcso([0-9]+)/lmmonocaps\1-oblique/g + +s/ec-lmtl([0-9]+)/lmmonolt\1-regular/g +s/ec-lmtlo([0-9]+)/lmmonolt\1-oblique/g +s/ec-lmtk([0-9]+)/lmmonolt\1-bold/g +s/ec-lmtko([0-9]+)/lmmonolt\1-boldoblique/g + +s/ec-lmtlc([0-9]+)/lmmonoltcond\1-regular/g +s/ec-lmtlco([0-9]+)/lmmonoltcond\1-oblique/g + +s/(>.[ ]*)(lm[a-z0-9\-]+)/\1"[\2]:mapping=tex-text"/g % \end{macrocode} % \iffalse %</sedlmtt> @@ -317,17 +331,19 @@ s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g %<*sedlmvtt> % \fi % \begin{macrocode} -s/ec-//g -s/lm([a-z]+)([0-9]+)/lmtypewritervarwd\2-\1/g -s/([0-9]+)-vtl\}/\1-light\}/g -s/([0-9]+)-vtlo\}/\1-lightoblique\}/g -s/([0-9]+)-vtk\}/\1-dark\}/g -s/([0-9]+)-vtko\}/\1-darkoblique\}/g -s/([0-9]+)-vtto/\1-oblique/g -s/([0-9]+)-vtt/\1-regular/g -s/t1/eu1/g -s/T1/EU1/g -s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g +/^%.*/d +s/{T1}/{EU1}/g +s/t1lm/eu1lm/g + +s/ec-lmvtt([0-9]+)/lmmonoprop\1-regular/g +s/ec-lmvtto([0-9]+)/lmmonoprop\1-oblique/g + +s/ec-lmvtl([0-9]+)/lmmonoproplt\1-regular/g +s/ec-lmvtlo([0-9]+)/lmmonoproplt\1-oblique/g +s/ec-lmvtk([0-9]+)/lmmonoproplt\1-bold/g +s/ec-lmvtko([0-9]+)/lmmonoproplt\1-boldoblique/g + +s/(>.[ ]*)(lm[a-z0-9\-]+)/\1"[\2]:mapping=tex-text"/g % \end{macrocode} % \iffalse %</sedlmvtt> @@ -459,8 +475,11 @@ s/(>.[ ]*)(lm[a-z0-9\-]*)/\1"[\2]"/g % %<*readme> % \begin{macrocode} -_______________________ -THE EU ENCODING(S) v0.1a +________________________ +THE EU ENCODING(S) v0.1c + +Warning: don't install this package with Latin Modern fonts prior to +version 1.106, which was released in Feb 2008. This package is the first release of the first step towards offering a LaTeX font encoding based on unicode. XeTeX is the only engine currently @@ -470,9 +489,17 @@ offered in order to access the OpenType versions of those fonts. N.B. This will only work when xdvipdfmx is used as the output driver for XeTeX; xdv2pdf (Mac OS X only) does not support OpenType fonts that aren't -installed in the system itself. +installed in the system itself. As of XeTeX v0.997, xdv2pdf is no longer +the default driver in Mac OS X. -Example of use: +Usually you'll just want to use fontspec: +\documentclass{article} +\usepackage{fontspec} +\begin{document} +... +\end{document} + +Example of use without fontspec: \documentclass{article} \usepackage[EU1]{fontenc} \usepackage{lmodern} @@ -482,6 +509,19 @@ Example of use: See the accompanying file <test-eu1lm.ltx> for a complete example. +____________ +INSTALLATION + +CTAN contains the necessary files to install for this package: + - eu1enc.def + - lm/eu1lm*.fd (* is a wild card: six files in all) +These should be placed in $TEXMF/tex/xelatex/euenc . + +To generate these files from the euenc.dtx file, first run `latex eu1enc.ins`. +This will extract the eu1enc.def file and a slew of shell scripts that +create the lm/eu1lm*.fd files. These .fd files are generated by executing +`sh convert-lmfd.sh`. + ______________ Will Robertson 2007 @@ -574,8 +614,7 @@ Will Robertson %% fontspec declarations: \setromanfont[Mapping=tex-text]{FPL Neu} \defaultfontfeatures{Scale=MatchLowercase} -\setsansfont[Weight=1.2, Width=1.1, - Mapping=tex-text, +\setsansfont[Mapping=tex-text, BoldFont={Skia}, BoldFeatures={Weight=1.7}]{Skia} \setmonofont{Osaka-Mono} @@ -603,7 +642,7 @@ Will Robertson % \typeout{* To finish the installation you have to move the following} % \typeout{* file into a directory searched by XeTeX:} % \typeout{*} -% \typeout{* \space\space\space .sty} +% \typeout{* \space\space\space eu1enc.def} % \typeout{*} % \typeout{*************************************************************} % |