diff options
Diffstat (limited to 'macros/latex/contrib/babel-contrib/georgian')
4 files changed, 458 insertions, 0 deletions
diff --git a/macros/latex/contrib/babel-contrib/georgian/README b/macros/latex/contrib/babel-contrib/georgian/README new file mode 100644 index 0000000000..c59bc7b55e --- /dev/null +++ b/macros/latex/contrib/babel-contrib/georgian/README @@ -0,0 +1,2 @@ +Georgian language support for babel. +works with classic TeX/LaTex as well as for XELatex/LuaLatex (8bit and unicode modes)
\ No newline at end of file diff --git a/macros/latex/contrib/babel-contrib/georgian/georgian.ldf b/macros/latex/contrib/babel-contrib/georgian/georgian.ldf new file mode 100644 index 0000000000..4469b3e6e7 --- /dev/null +++ b/macros/latex/contrib/babel-contrib/georgian/georgian.ldf @@ -0,0 +1,231 @@ +% Copyright 2017 Levan Shoshiashvili shoshia@hotmail.com and Werner Lemberg <wl@gnu.org>. +% This file is part of georgiantex package. License: LPPL, version 1.3 or newer, +% according to http://www.latex-project.org/lppl.txt +% +% +% georgian.ldf +% +% +% Changes +% +% 2.2 20/11/2017 +% Changed EU1,EU2 to TU encoding for utf-8 engines +% +% +% 2.1 17 Apr. 2014 +% Bugs fixed. +% +% +% 2.0 2013/06/06 +% Added unicode support similar to russianb.ldf +% +% 1.0 2012/09/21 +% First version. +% +% +\ProvidesLanguage{georgian} + [2017/11/20 2.2 Georgian support from the babel system] +\LdfInit{georgian}{captionsgeorgian} +\ifdefined\if@kauni@ode + \PackageError{babel}{if@kauni@ode already defined.\MessageBreak + Please contact author of georgian.ldf} + \relax +\fi +\newif\if@kauni@ode +\ifdefined\luatexversion \@kauni@odetrue \else +\ifdefined\XeTeXrevision \@kauni@odetrue \fi\fi +\ifx\l@georgian\@undefined + \@nopatterns{Georgian} + \adddialect\l@georgian0 +\fi +\def\@setgeorgianencoding{% + \def\sce@a##1##2{% + \edef\sce@b{##1}% + \edef\sce@c{##2}% + \ifx\sce@b\sce@c + \let\georgiancoding\sce@c + \fi}% + \def\cdp@elt##1##2##3##4{% + \sce@a{##1}{T8K}% + \sce@a{##1}{T8M}% + \if@kauni@ode + \sce@a{##1}{TU}%EU1 + \sce@a{##1}{TU}%EU2 + \fi}% + \cdp@list +} +\@setgeorgianencoding +\@onlypreamble\@setgeorgianencoding +\@onlypreamble\sce@a +\@onlypreamble\sce@b +\@onlypreamble\sce@c +\ifdefined\georgianencoding +\else + \if@kauni@ode + \ifdefined\XeTeXrevision + \edef\georgianencoding{TU} + \else\ifdefined\luatexversion + \edef\georgianencoding{TU} + \fi\fi + \else + \edef\georgianencoding{T8M} + \fi + \PackageWarning{babel}% + {No Georgian font encoding has been loaded so far.\MessageBreak + A font encoding should be declared before babel.\MessageBreak + Default `\georgianencoding' encoding will be loaded + }% + \lowercase\expandafter{\expandafter\input\georgianencoding enc.def\relax}% + \AtBeginDocument{\@setgeorgianencoding} +\fi +\DeclareRobustCommand{\Georgian}{\selectlanguage{\georgian}} +\DeclareRobustCommand{\georgiantext}{% + \fontencoding\georgianencoding\selectfont + \let\encodingdefault\georgianencoding + \expandafter\set@hyphenmins\georgianhyphenmins + \language\l@georgian}% +\let\geo\georgiantext +\expandafter\ifx\csname T@8M\endcsname\relax\else + \DeclareTextSymbolDefault{\AA}{OT1} + \DeclareTextSymbolDefault{\aa}{OT1} + \DeclareTextCommand{\aa}{OT1}{\r a} + \DeclareTextCommand{\AA}{OT1}{\r A} +\fi +\DeclareTextFontCommand{\textgeorgian}{\georgiantext} +\@ifpackageloaded{inputenc}{% + \if@kauni@ode + \PackageWarning{babel}{inputenc should not be used with LuaTeX or XeTeX} + \fi +}{% + \ifx\reserved@a\georgianencoding\else + \def\reserved@a{TU}% + \ifx\reserved@a\georgianencoding\else + \def\reserved@a{TU}% + \ifx\reserved@a\georgianencoding\else + \PackageWarning{babel}% + {No input encoding specified for Georgian language} + \fi\fi\fi + %\fi +} +\initiate@active@char{"} +\begingroup \catcode`\"12 +\def\reserved@a{\endgroup + \def\@SS{\mathchar"7019 } + \def\dq{"}} +\reserved@a +\declare@shorthand{georgian}{"`}{\quotedblbase} +\declare@shorthand{georgian}{"'}{\textquotedblleft} +\declare@shorthand{georgian}{"<}{\guillemotleft} +\declare@shorthand{georgian}{">}{\guillemotright} +\declare@shorthand{georgian}{""}{\hskip\z@skip} +\declare@shorthand{georgian}{"~}{\textormath{\leavevmode\hbox{-}}{-}} +\declare@shorthand{georgian}{"=}{\nobreak-\hskip\z@skip} +\declare@shorthand{georgian}{"|}{% + \textormath{\nobreak\discretionary{-}{}{\kern.03em}\allowhyphens}{}} +\declare@shorthand{georgian}{"-}{% + \def\georgian@sh@tmp{% + \if\georgian@sh@next-\expandafter\georgian@sh@emdash + \else\expandafter\russian@sh@hyphen\fi}% + \futurelet\georgian@sh@next\georgian@sh@tmp} +\def\georgian@sh@hyphen{\nobreak\-\bbl@allowhyphens} +\def\georgian@sh@emdash#1#2{\cdash-#1#2} +\def\cdash#1#2#3{\def\tempx@{#3}% +\def\tempa@{-}\def\tempb@{~}\def\tempc@{*}% + \ifx\tempx@\tempa@\@Acdash\else + \ifx\tempx@\tempb@\@Bcdash\else + \ifx\tempx@\tempc@\@Ccdash\else + \errmessage{Wrong usage of cdash}\fi\fi\fi} +\def\@Acdash{\ifdim\lastskip>\z@\unskip\nobreak\hskip.2em\fi + \geodash\hskip.2em\ignorespaces}% +\def\@Bcdash{\leavevmode\ifdim\lastskip>\z@\unskip\fi + \nobreak\geodash\penalty\exhyphenpenalty\hskip\z@skip\ignorespaces}% +\def\@Ccdash{\leavevmode + \nobreak\geodash\nobreak\hskip.35em\ignorespaces}% +\ifx\geodash\undefined + \def\geodash{\hbox to.8em{--\hss--}} + \PackageInfo{babel}{\string\geodash\space is defined} +\fi +\declare@shorthand{georgian}{",}{\nobreak\hskip.2em\ignorespaces} +\providehyphenmins{\CurrentOption}{\tw@\tw@} +\providehyphenmins{georgian}{\tw@\tw@} +\addto\extrasgeorgian{\georgiantext} +\addto\noextrasgeorgian{\latintext} +\addto\extrasgeorgian{\languageshorthands{georgian}} +\addto\extrasgeorgian{\bbl@activate{"}} +\addto\noextrasgeorgian{\bbl@deactivate{"}} +\addto\extrasgeorgian{\bbl@frenchspacing} +\addto\noextrasgeorgian{\bbl@nonfrenchspacing} +\def\Anbani#1{\expandafter\georgian@Alph\csname c@#1\endcsname} +\if@kauni@ode + \def\georgian@Alph#1{\ifcase#1\or + Ⴀ\or Ⴁ\or Ⴂ\or Ⴈ\or Ⴃ\or Ⴄ\or Ⴅ\or + Ⴆ\or Ⴇ\or Ⴉ\or Ⴊ\or Ⴋ\or Ⴌ\or Ⴍ\or + Ⴎ\or Ⴏ\or Ⴐ\or Ⴑ\or Ⴒ\or Ⴓ\or Ⴔ\or Ⴕ\or + Ⴖ\or Ⴗ\or Ⴘ\or Ⴙ\or Ⴚ\or Ⴛ\or Ⴜ\or + Ⴝ\or Ⴞ\or Ⴟ\or Ⴠ\or Ⴡ\or Ⴢ\or Ⴣ\or Ⴤ\or Ⴥ\else\@ctrerr\fi} +\else + \def\georgian@Alph#1{\ifcase#1\or + \GEOA\or\GEOB\or\GEOG\or\GEOD\or\GEOE\or\GEOV\or\GEOZ\or + \GEOTH\or\GEOI\or\GEOK\or\GEOL\or\GEOM\or\GEON\or\GEOO\or + \GEOP\or\GEOZH\or\GEOR\or\GEOS\or\GEOT\or\GEOU\or\GEOPH\or + \GEOQ\or\GEOGH\or\GEOY\or\GEOSH\or\GEOCH\or\GEOC\or\GEODZ\or + \GEOTS\or\GEOTCH\or\GEOKH\or\GEOSJ\or\GEOH\or\GEOHE\or\GEOIOT\or + \GEOWE\or\GEOHAR\or\GEOHOE\else\@ctrerr\fi} +\fi +\def\anbani#1{\expandafter\georgian@alph\csname c@#1\endcsname} +\if@kauni@ode + \def\georgian@alph#1{\ifcase#1\or + ა\or ბ\or გ\or г\or დ\or ე\or ვ\or + ზ\or თ\or ი\or კ\or ლ\or მ\or ნ\or + ო\or პ\or ჟ\or რ\or ს\or ტ\or უ\or ფ\or ქ\or ღ\or + ყ\or შ\or ჩ\or ც\or ძ\or წ\or ჭ\or + ხ\or ჯ\or ჰ\or ჱ\or ჲ\or ჳ\or ჴ\or + ჵ\or ჶ\or ჷ\or ჸ\or ჲ\or ჹ\or ჺ\else\@ctrerr\fi} +\else + \def\georgian@alph#1{\ifcase#1\or + \geoa\or\geob\or\geog\or\geod\or\geoe\or\geov\or\geoz\or + \geoth\or\geoi\or\geok\or\geol\or\geom\or\geon\or\geoo\or + \geop\or\geozh\or\geor\or\geos\or\geot\or\geou\or\geoph\or + \geoq\or\geogh\or\geoy\or\geosh\or\geoch\or\geoc\or\geodz\or + \geots\or\geotch\or\geokh\or\geosj\or\geoh\or\geohe\or\geoiot\or + \geowe\or\geohar\or\geohoe\or\geofi\else\@ctrerr\fi} +\fi +\@ifundefined{sym\georgianencoding letters}{}{% +\SetSymbolFont{\georgianencoding letters}{bold}\georgianencoding + \rmdefault\bfdefault\updefault +\DeclareSymbolFontAlphabet\geomathrm{\georgianencoding letters} +\DeclareMathAlphabet\geomathbf\georgianencoding + \rmdefault\bfdefault\updefault +\DeclareMathAlphabet\geomathsf\georgianencoding + \sfdefault\mddefault\updefault +\DeclareMathAlphabet\geomathit\georgianencoding + \rmdefault\mddefault\itdefault +\DeclareMathAlphabet\geomathtt\georgianencoding + \ttdefault\mddefault\updefault +\SetMathAlphabet\geomathsf{bold}\georgianencoding + \sfdefault\bfdefault\updefault +\SetMathAlphabet\geomathit{bold}\georgianencoding + \rmdefault\bfdefault\itdefault +} +\input{georgiancaps.tex} +\ldf@finish{georgian} +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\endinput +%% +%% End of file `russianb.ldf'. diff --git a/macros/latex/contrib/babel-contrib/georgian/georgian.sty b/macros/latex/contrib/babel-contrib/georgian/georgian.sty new file mode 100644 index 0000000000..56f2281dbe --- /dev/null +++ b/macros/latex/contrib/babel-contrib/georgian/georgian.sty @@ -0,0 +1,57 @@ +%% Georgian style file +%% Copyright (C) 2017 by Levan Shoshiashvili, +%% Please report errors to: +%% l. shoshiashvili shoshia at hotmail.com +\ifx\LdfInit\undefined + \def\LdfInit{% + \chardef\atcatcode=\catcode`\@ + \catcode`\@=11\relax + \input babel.def\relax + \catcode`\@=\atcatcode \let\atcatcode\relax + \LdfInit} +\fi +\ifx\PackageError\undefined + \def\ProvidesLanguage#1[#2 #3 #4]{% + \wlog{Language: #1 #4 #3 <#2>}}% +\else + \def\bblstyerror{% + \PackageError{babel}% + {You have used an old interface to call babel\MessageBreak + You may expect compatibility problems wit other packages}% + {You could proceed but don't complain if you run into errors}% + \let\bblstyerror\@undefined + } + \ifx\ProvidesLanguage\undefined + \bblstyerror + \def\ProvidesLanguage{% + \chardef\atcatcode=\catcode`\@ + \catcode`\@=11\relax + \input babel.def\relax + \catcode`\@=\atcatcode \let\atcatcode\relax + \ProvidesLanguage} + \else + \bblstyerror + \fi +\fi +\def\CurrentOption{georgian} +\input georgian.ldf\relax +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} + +\endinput +%% +%% End of file `georgian.sty'. diff --git a/macros/latex/contrib/babel-contrib/georgian/georgiancaps.tex b/macros/latex/contrib/babel-contrib/georgian/georgiancaps.tex new file mode 100644 index 0000000000..a6c9f9768c --- /dev/null +++ b/macros/latex/contrib/babel-contrib/georgian/georgiancaps.tex @@ -0,0 +1,168 @@ +%% Georgian captions file +%% Copyright (C) 2017 by Levan Shoshiashvili, +%% Please report errors to: +%% l. shoshiashvili shoshia at hotmail.com +\ifx\ProvidesFile\undefined \else + \ProvidesFile{georgiancaps.tex}[2013/06/06 v2.0 Captions in Georgian] +\fi + +\ifx\providecommand\undefined +\let\providecommand=\def +\fi +\if@kauni@ode + \addto\captionsgeorgian{% + \def\prefacename{წინასიტყვაობა}% + \def\refname{ლიტერატურა}% + \def\abstractname{ანოტაცია}% + \def\bibname{ლიტერატურა}% + \def\chaptername{თავი}% + \def\appendixname{დანართი}% + \@ifundefined{thechapter} + {\def\contentsname{შინაარსი}}% + {\def\contentsname{შინაარსი}}% + \let\tocname=\contentsname + \def\listfigurename{სურათი}% + \def\listtablename{ცხრილი}% + \def\indexname{საძიებელი}% + \def\authorname{სახელთა საძიებელი}% + \def\figurename{სურ.}% + \def\tablename{ცხრ.}% + \def\partname{ნაწილი}% + \def\enclname{ჩათვ.}% + \def\ccname{წყარ.}% + \def\headtoname{შ.}% + \def\pagename{გვ.}% + \def\seename{იხ.}% + \def\alsoname{იხ.\ ასევე}% + \def\proofname{დამტკიცება}% + \def\glossaryname{ტერმინები}% + }% +\else +\addto\captionsgeorgian{ + \def\prefacename{\geosh\geoe\geos\geoa\geov\geoa\geol\geoi}% + \def\refname{\geol\geoi\geot\geoe\geor\geoa\geot\geou\geor\geoa} + \def\abstractname{\geosh\geoe\geos\geoa\geov\geoa\geol\geoi} + \def\bibname{\geob\geoi\geob\geol\geoi\geoo\geog\geor\geoa\geof\geoi\geoa}% + \def\chaptername{\geoth\geoa\geov\geoi} + \def\appendixname{\geod\geoa\geon\geoa\geor\geoth\geoi} + \def\contentsname{\geos\geoa\geor\geoch\geoe\geov\geoi} + \def\listfigurename{\geos\geou\geor} + \def\listtablename{\geoc\geokh\geor\geoi\geol\geoi} + \def\indexname{\geos\geoa\geodz\geoi\geoe\geob\geoe\geol\geoi} + \def\figurename{\geos\geou\geor} + \def\tablename{\geoc\geokh\geor\geoi\geol\geoi}% + \def\partname{\geon\geoa\geots\geoi\geol\geoi} + \def\pagename{\geog\geov\geoe\geor\geod\geoi} + \def\headpagename{\geoth\geoa\geov\geoi}% + \def\seename{\geoi\geokh} + \def\alsoname{\geoa\geos\geoe\geov\geoe}% + \def\enclname{\geod\geoa\geon\geoa\geor\geoth\geoi} + \def\ccname{\geoc\geoc\geon\geoe\geoi\geom} + \def\headtoname{\geos\geoa\geoth\geoa\geou\geor\geoi} + \def\proofname{\geod\geoa\geom\geot\geok\geoi\geoc\geoe\geob\geoa} +} +\fi +%%%%%%%%%%%%%%%% +\providecommand\captionsgeorgiancapital{% + \def\prefacenamecap{\GEOSH\GEOE\GEOS\GEOA\GEOV\GEOA\GEOL\GEOI}% + \def\refnamecap{\GEOL\GEOI\GEOT\GEOE\GEOR\GEOA\GEOT\GEOU\GEOR\GEOA}% + \def\abstractnamecap{\GEOSH\GEOE\GEOS\GEOA\GEOV\GEOA\GEOL\GEOI}% + \def\bibnamecap{\GEOB\GEOI\GEOB\GEOL\GEOI\GEOO\GEOG\GEOR\GEOA\GEOF\GEOI\GEOA}% + \def\chapternamecap{\GEOTH\GEOA\GEOV\GEOI}% + \def\appendixnamecap{\GEOD\GEOA\GEON\GEOA\GEOR\GEOTH\GEOI}% + \def\contentsnamecap{\GEOS\GEOA\GEOR\GEOCH\GEOE\GEOV\GEOI}% + \def\listfigurenamecap{\GEOS\GEOU\GEOR\GEOA\GEOTH\GEOI}% + \def\listtablenamecap{\GEOC\GEOKH\GEOR\GEOI\GEOL\GEOI}% + \def\indexnamecap{\GEOS\GEOA\GEODZ\GEOI\GEOE\GEOB\GEOE\GEOL\GEOI}% + \def\figurenamecap{\GEOS\GEOU\GEOR.}% + \def\tablenamecap{\GEOC\GEOKH\GEOR\GEOI\GEOL\GEOI}% + \def\partnamecap{\GEON\GEOA\GEOTS\GEOI\GEOL\GEOI}% + \def\pagenamecap{\GEOG\GEOV\GEOE\GEOR\GEOD\GEOI}% + \def\headpagenamecap{\GEOTH\GEOA\GEOV\GEOI}% + \def\enclnamecap{\GEOD\GEOA\GEON\GEOA\GEOR\GEOTH\GEOI}% + \def\ccnamecap{\GEOC\GEOC\GEON\GEOE\GEOI\GEOM}% + \def\headtonamecap{\GEOS\GEOA\GEOTH\GEOA\GEOU\GEOR\GEOI}% + \def\proofnamecap{\GEOD\GEOA\GEOM\GEOT\GEOK\GEOI\GEOC\GEOE\GEOB\GEOA}% +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\if@kauni@ode + \addto\dategeorgian{% + \def\today{\number\day~\ifcase\month\or + იანვარი\or + თებერვალი\or + მარტი\or + აპრილი\or + მაისი\or + ივნისი\or + ივლისი\or + აგვისტო\or + სექტემბერი\or + ოქტომბერი\or + ნოემბერი\or + დეკემბერი\fi + \space \number\year~წ.}} +\else +\def\dategeorgian{% + \def\today{\number\day~\ifcase\month\or + \geoi\geoa\geon\geov\or + \geoth\geoe\geob\or +\geom\geoa\geor\or +\geoa\geop\geor\or +\geom\geoa\geoi\or +\geoi\geov\geon\or +\geoi\geov\geol\or +\geoa\geog\geov\or +\geos\geoe\geoq\or +\geoo\geoq\geot\or +\geon\geoo\geoe\or +\geod\geoe\geok\fi . + \ \number\year~\geots.}} +\fi +%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\providecommand\captionsenglish{% + \def\prefacename{Preface}% + \def\refname{References}% + \def\abstractname{Abstract}% + \def\bibname{Bibliography}% + \def\chaptername{Chapter}% + \def\appendixname{Appendix}% + \def\contentsname{Contents}% + \def\listfigurename{List of Figures}% + \def\listtablename{List of Tables}% + \def\indexname{\geos\geoa\geodz\geoi\geoe\geob\geoe\geol\geoi}% + \def\figurename{Figure}% + \def\tablename{Table}% + \def\partname{Part}% + \def\enclname{encl}% + \def\ccname{cc}% + \def\headtoname{To}% + \def\pagename{Page}% + \def\headpagename{Page}% + \def\prefacename{Preface}% + \def\seename{see}% + \def\alsoname{see also}} + +\providecommand\dateenglish{% + \def\today{% + \ifcase\day\or 1st\or 2nd\or 3rd\or 4th\or 5th\or 6th\or 7th\or + 8th\or 9th\or 10th\or 11th\or 12th\or 13th\or 14th\or 15th\or + 16th\or 17th\or 18th\or 19th\or 20th\or 21st\or 22nd\or 23rd\or + 24th\or 25th\or 26th\or 27th\or 28th\or 29th\or 30th\or 31st\fi + ~\ifcase\month\or January\or February\or March\or April\or May\or + June\or July\or August\or September\or October\or November\or + December\fi \space + \number\year}} + +\providecommand\dateUSenglish{% + \def\today{% + \ifcase\month\or January\or February\or March\or April\or May\or + June\or July\or August\or September\or October\or November\or + December\fi \space\number\day, \number\year}} +\providecommand\mrglovani{ +\fontencoding{T8M}\selectfont % +} +\providecommand\khucuri{ +\fontencoding{T8K}\selectfont} +\endinput
\ No newline at end of file |