summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/polyglossia/TODO.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/polyglossia/TODO.txt')
-rw-r--r--Master/texmf-dist/doc/xelatex/polyglossia/TODO.txt111
1 files changed, 111 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/polyglossia/TODO.txt b/Master/texmf-dist/doc/xelatex/polyglossia/TODO.txt
new file mode 100644
index 00000000000..4fb1894ba5c
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/polyglossia/TODO.txt
@@ -0,0 +1,111 @@
+=== THIS IS THE TODO LIST FOR THE POLYGLOSSIA PACKAGE ===
+
+polyglossia.sty:
+ * for languages with hyphenation patterns but without
+ a gloss-* module, allow to load it with only a warning message
+ * MAKE polyglossia cooperate with Babel-aware packages and classes, for
+ example scrlttr2! Lines 1347 to 1708 of scrlttr2.cls are a sort of
+ patch for Babel, which is not compatible with polyglossia right now...
+
+ * hyphenation shorthands:
+ Perhaps implement the following as an option, based on dutch module of babel:
+
+ "| disable ligature at this position
+ "- an explicit hyphen sign, allowing hyphenation in the rest of the word
+ "~ to produce a hyphencharacter without the following \discretionary{}{}{}.
+ "" to produce an invisible ‘breakpoint’.
+ \- like the old \-, but allowing hyphenation in the rest of the word.
+
+
+TEST THIS:
+============================================================================
+\newcommand{\PolyglossiaSetup}[2]{%
+ \xpg@define@keys{#1}%
+ \setkeys[xpg@setup]{#1}{script,direction,hyphenmins,frenchspacing,frenchindent}% to set the defaults
+ \setkeys[xpg@setup]{#1}{#2}}
+
+\def\xpg@first#1,#2{#1}
+\def\xpg@second#1,#2{#2}
+
+\def\xpg@define@keys#1{%
+ \define@key[xpg@setup]{#1}{script}{%
+ \def\@tmpa{##1}\def\tmp@latin{latin}%
+ \csgdef{#1@script}{\@tmpa}% -> could be eventually useful
+ \ifx\@tmpa\tmp@latin%
+ \csgdef{#1@script@latin}{\relax}%
+ \ifcsundef{#1@font}{\cslet{#1@font}{\normalfontlatin}}{}%
+ \fi}%
+ \define@choicekey+[xpg@setup]{#1}[\tmp@val]{Direction}{LR,RL}[LR]{%
+ \def\tmp@RL{RL}%
+ \ifx\tmp@val\tmp@RL%
+ \csgdef{#1@RL}{\relax}%
+ \else%
+ \cslet{#1@RL}{\@undefined}
+ \fi}%
+ {\PackageWarning{polyglossia}{#1: Invalid value for key Direction}}%
+ \define@key[xpg@setup]{#1}{hyphenmins}[{2,2}]{%
+ \edef\@tmpb{\xpg@first{##1}}%
+ \edef\@tmpc{\xpg@second{##1}}%
+ \providehyphenmins{#1}{\@tmpb\@tmpc\relax}%
+ }%
+ \define@boolkeys[xpg@setup]{#1}[#1@]{frenchspacing,frenchindent}[false]%
+}
+
+\endinput
+
+Example (at the end of a gloss file):
+\PolyglossiaSetup{<lang>}{%
+ Script=Latin, %default=Latin
+ Direction=LR, %default=LR
+% LanguageString=<lang>, %default=<lang>
+% Aliases={Foo,Bar},
+ hyphenmins={x,y} %default={2,2} ? {2,3} in babel...
+ frenchspacing=true, %default=false
+ frenchindent=true %default=false
+ }
+
+=> \<lang>@latin is defined and if \<lang>@font is not def. it is set to \normalfontlatin
+=> if Direction=RL , \<lang>@RL is defined
+=> \providehyphenmins{<lang>}{xy}
+=> \frenchspacing etc are set in \select@language etc
+
+
+============================================================================
+
+gloss-arabic.ldf:
+ * check locales: if morocco or algeria : use western numerals but don't
+ override the numbers key
+ * define a defaultLRlanguage … \def\LRtoday{\localdefaultLRlanguage{\today}} ???
+
+gloss-english.ldf:
+ * change format to Day Month Year when dialect is british
+
+gloss-farsi.ldf:
+ * add option for months
+ * implement ftoday.sty?
+
+gloss-finnish.ldf:
+ * hyphenpenalty as in Babel?
+
+gloss-french.ldf:
+ * \define@key{french}{guillemets}[normal]{
+ * \addfontfeature{Mapping=sansaccents}% <<< TODO!
+
+gloss-hebrew.ldf
+ * insert gereshayim (\char"05F4) before last letter of a sequence of two letters or more
+ * insert geresh (\char"05F3) after letter if it is alone
+
+gloss-italian.ldf
+ * \clubpenalty3000\widowpenalty3000\finalhyphendemerits50000000
+
+gloss-{l,u}sorbian.ldf
+ * implement option date=old
+
+gloss-ukrainian.ldf and others
+ * add stuff from Babel ? (operators etc)
+
+hijrical.sty
+ * \def\CYearsFromHijri#1{%yields the corr julian or gregorian years
+
+** UPDATE ldf for spanish using new ldf for Babel by J Bezos
+ and add option for mexican (using mx package)