New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No accented capital letters with xelatex #15
Comments
Ulrike Fischer has given a fix to be put in the document: \robustify` (which fixes for grave accents). Can this be implemented in the fmtcount.sty? |
Hello, First of all could you please confirm the proposal by Ulrike — I am afraid that we have a github markdown problem in your post — is that \robustify\` or \robustify` I cannot understand the latter. Now, concerning
\robustify\` with the outest scope — so not only the result of
\`e by \protect\`e ? |
-----BEGIN PGP SIGNED MESSAGE----- Le 09/11/2014 23:20, Vincent Belaïche a écrit :
It is this one Here is the Ulrike suggestion: `e is expanded to a \char command before \uppercase can see it and Imho the relevant `e in fc-french.def should be protected, but you \documentclass[11pt,twoside]{report} \usepackage[french]{babel} \begin{document} \ORDINALstringnum{2} \robustify` \ORDINALstringnum{2} Maybe contacting Ulrike directly could help on this issue. François Patte iEYEARECAAYFAlRghnQACgkQdE6C2dhV2JVXlQCfd2ZYTtKoYA7yG3fjVt7i0FhK |
Hello, I think that the following quote from Ulrike's message is clear enough:
that is exactly the kind of solution that came to my mind as the best one. |
Well, that seems more difficult than I thought. I did the change in fc-french.def locally on my machine so that any occurrence of \`e is replaced by \protect\`e Then I added a test, so file sample-polyglossia.tex is modified as: \documentclass{article}
\usepackage{xunicode,polyglossia}
\setmainlanguage{french}
\usepackage{fmtcount}
\newcounter{cnt}
\begin{document}
\numberstringnum{10}
\setcounter{cnt}{2}
\ORDINALstring{cnt}
\end{document} What I get is that the compilation fails as follows:
|
Just to add that this must be some |
Ok, I have made the correction and pushed them to the repo. You can get it this way: git clone https://github.com/nlct/fmtcount.git
cd fmtcount/dist
make install TEXMF_INSTALL_DIR=/path/of/the/texmf/where/you/will/install/it You need to replace in the above
|
Please @Alfonsib could you check that the problem is solved by my correction. See installation instruction in previous comment. |
I installed the files in my local texmf directory and tested. Everything worked just fine. Thanks a lot (Grand merci…) Bernard |
Ok fine, works for me.... waiting for the update on ctan |
The update on CTAN will come after another issue raised by Denis Bitouzé is solved — this issue is not on this issue base — it is twofold:
The second point is not yet solved, I need some discussion with Nicola about this because I do anything. |
It's all in the title: \ORDINALstring{cnt} produces DEUXIèME if the value of cnt is 2.
Minimal example:
\documentclass[11pt,twoside]{report}
\usepackage[french]{fmtcount}
\usepackage{fontspec}
\usepackage{titlesec}
\titleformat{\chapter}%
[display]%
{\filcenter}%
{\MakeUppercase{\chaptername}~\ORDINALstring{chapter}}%
{12pt}%
{\MakeUppercase}
\begin{document}
\chapter{Toto}
\chapter{Tata}
È
\end{document}
The text was updated successfully, but these errors were encountered: