diff options
author | Norbert Preining <preining@logic.at> | 2008-07-29 14:56:18 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-07-29 14:56:18 +0000 |
commit | df5a884fe92d0b1fb73fbf07a53ac0f8a64d253e (patch) | |
tree | 37f2e809ef4c94b4827c5f30108ca14384923773 /Master/texmf-dist/tex/context/third/french | |
parent | 6a16d7c1c74097b02799900c08c9c21feeebe07c (diff) |
add context-french from CTAN
git-svn-id: svn://tug.org/texlive/trunk@9875 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/third/french')
-rw-r--r-- | Master/texmf-dist/tex/context/third/french/t-french.tex | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/third/french/t-french.tex b/Master/texmf-dist/tex/context/third/french/t-french.tex new file mode 100644 index 00000000000..68325adde8a --- /dev/null +++ b/Master/texmf-dist/tex/context/third/french/t-french.tex @@ -0,0 +1,72 @@ +%D \module +%D [ file=t-french, +%D version=2008.05.04, +%D title=\CONTEXT\ User Module, +%D subtitle=For French documents, +%D author=Peter Münster, +%D date=\currentdate, +%D copyright={Peter Münster}] +%C This module is copyrighted by Peter Münster. +%C Please send any comments to pmrb at free.fr. +%C You can find the latest version of this module on +%C http://modules.contextgarden.net/ + +% This program is free software; you can redistribute it and/or +% modify it under the terms of the GNU General Public License +% as published by the Free Software Foundation; either version 2 +% of the License, or (at your option) any later version. + +% This program is distributed in the hope that it will be useful, +% but without any warranty; without even the implied warranty of +% merchantability or fitness for a particular purpose. See the +% GNU General Public License for more details. + +%D This module tries to do similar things as the frenchb.ldf in LaTeX: +%D \startitemize +%D \item automatic space before » and after «, :, ?, ; and ! +%D \item changing symbol for itemize environment +%D \stopitemize + +\writestatus{loading}{Typesetting French documents} +\doifnotmode{mkiv}{\writestatus{error}{needs luatex}\wait\end} + +\startlanguagespecifics[fr] + \setcharacterspacing[frenchpunctuation] + \setupitemize[symbol=2] + \lccode`\'=`\' +\stoplanguagespecifics + +\appendtoks + \setcharacterspacing[reset]% + \setupitemize[symbol=\currentitemlevel]% + \to \everyresetlanguagespecifics + +\mainlanguage[fr] + +\doifnotmode{demo}{\endinput} + +%D Usage example: +\def\myItems{% + \startitemize + \item test + \item test + \startitemize + \item test + \item test + \startitemize + \item test + \item test + \stopitemize + \stopitemize + \stopitemize} + +\usemodule[french] + +\starttext +Voilà: Voilà? Voilà! Voilà; +{\en some english text: «English» or \quotation{French}, ok?} +«voilà» \quote{voilà} \quotation{voilà} +\myItems +\en +\myItems +\stoptext |