[latex3-commits] [git/LaTeX3-latex3-babel] master: Transform: Harvard-Kyoto (Hindi). (01d3c41)

Javier email at dante.de
Mon Mar 29 17:19:36 CEST 2021


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/01d3c41b9ed8b71b5a28c35403b55c18c59b6aff

>---------------------------------------------------------------

commit 01d3c41b9ed8b71b5a28c35403b55c18c59b6aff
Author: Javier <email at localhost>
Date:   Mon Mar 29 17:19:36 2021 +0200

    Transform: Harvard-Kyoto (Hindi).


>---------------------------------------------------------------

01d3c41b9ed8b71b5a28c35403b55c18c59b6aff
 README.md                                   |   4 +--
 babel.dtx                                   |  27 ++++++++++++------
 babel.ins                                   |   2 +-
 babel.pdf                                   | Bin 824519 -> 824943 bytes
 bbcompat.dtx                                |   2 +-
 locale/hi/babel-hi.ini                      |  41 ++++++++++++++++++++++++++++
 news-guides/README.md                       |   1 +
 news-guides/news/whats-new-in-babel-3.57.md |  32 ++++++++++++++++++++++
 8 files changed, 97 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md
index 4d190c2..17ddcb4 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.56.2324
+## Babel 3.56.2326
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -51,8 +51,8 @@ respective authors.
          - Arabic:    transliteration.dad
          - Croatian:  digraphs.ligatures
          - Greek:     diaeresis.hyphen
+         - Hindi:     transliteration.hk
          - Hungarian: digraphs.hyphen
-         - Spanish:   percent.space
          
 3.56   2021-03-24
        * Transforms (\babelprehyphenation, \babelposthyphenation)
diff --git a/babel.dtx b/babel.dtx
index ff5b2d1..9dfa4fd 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2021/03/27 v3.56.2324 The Babel package]
+\ProvidesFile{babel.dtx}[2021/03/29 v3.56.2326 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -3123,13 +3123,14 @@ OTF features), but it can get you out of a hurry.}
 upsilon if hyphenated just before. It works with the
 three variants.}
 
-\trans{Hungarian}{digraphs.hyphen}{Hyphenates the the groups
+\trans{Hindi}{transliteration.hk}{The Harvard-Kyoto system to romanize
+Devanagari.}
+
+\trans{Hungarian}{digraphs.hyphen}{Hyphenates the groups
 \textit{ccs}, \textit{ddz}, \textit{ggy}, \textit{lly}, \textit{nny},
 \textit{ssz}, \textit{tty} and \textit{zzs} as \textit{cs-cs},
 \textit{dz-dz}, etc.}
 
-\trans{Spanish}{percent.space}{Inserts a small space before \%}
-
 \vspace{1mm}\hrule\nobreak
 \endgroup
 
@@ -4896,8 +4897,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.56.2324>>
-%<<date=2021/03/27>>
+%<<version=3.56.2326>>
+%<<date=2021/03/29>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -10705,6 +10706,7 @@ help from Bernd Raichle, for which I am grateful.
   \let\bbl at KVP@intrapenalty\@nil
   \let\bbl at KVP@onchar\@nil
   \let\bbl at KVP@transforms\@nil
+  \global\let\bbl at release@transforms\@empty
   \let\bbl at KVP@alph\@nil
   \let\bbl at KVP@Alph\@nil
   \let\bbl at KVP@labels\@nil
@@ -11259,7 +11261,6 @@ help from Bernd Raichle, for which I am grateful.
     \let\bbl at savestrings\@empty
     \let\bbl at savetoday\@empty
     \let\bbl at savedate\@empty
-    \let\bbl at release@transforms\@empty
     \def\bbl at elt##1##2##3{%
       \def\bbl at section{##1}%
       \in@{=date.}{=##1}% Find a better place
@@ -13398,7 +13399,7 @@ help from Bernd Raichle, for which I am grateful.
   Babel.locale = {} % Free to use, indexed with \localeid
   function Babel.linebreaking.add_before(func)
     tex.print([[\noexpand\csname bbl at luahyphenate\endcsname]])
-    table.insert(Babel.linebreaking.before , func)
+    table.insert(Babel.linebreaking.before, func)
   end
   function Babel.linebreaking.add_after(func)
     tex.print([[\noexpand\csname bbl at luahyphenate\endcsname]])
@@ -14083,6 +14084,16 @@ end
 
             if Babel.debug then
               Babel.debug_hyph(w, w_nodes, sc, first, last, last_match)
+              local ss = ''
+              for itt in node.traverse(head) do
+               if itt.id == 29 then
+                 ss = ss .. unicode.utf8.char(itt.char)
+               else
+                 ss = ss .. '{' .. itt.id .. '}'
+               end
+              end
+              print('*****************', ss)
+
             end
 
             local crep = r[rc]
diff --git a/babel.ins b/babel.ins
index 4710132..368a9a1 100644
--- a/babel.ins
+++ b/babel.ins
@@ -26,7 +26,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 %%
-\def\filedate{2021/03/27}
+\def\filedate{2021/03/29}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 91e174a..fd57465 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 925235d..e561b4c 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/03/27 v3.56.2324]
+\ProvidesFile{bbcompat.dtx}[2021/03/29 v3.56.2326]
 %</dtx>
 %
 %% File 'bbcompat.dtx'
diff --git a/locale/hi/babel-hi.ini b/locale/hi/babel-hi.ini
index 7419d2f..a99f3c2 100644
--- a/locale/hi/babel-hi.ini
+++ b/locale/hi/babel-hi.ini
@@ -201,3 +201,44 @@ superscriptingExponent = ×
 
 [counters]
 alphabetic = क ख ग घ ङ च छ ज झ ञ ट ठ ड ढ ण त थ द ध न प फ ब भ म य र ल व श ष स ह
+
+[transforms.prehyphenation]
+; Multiletter
+transliteration.hk.1.0  = { lRR } 
+transliteration.hk.1.1  =   { string = ॡ }
+transliteration.hk.1.2  =   { remove }
+transliteration.hk.1.3  =   { remove }
+transliteration.hk.2.0  = { OM } 
+transliteration.hk.2.1  =   { string = ॐ }
+transliteration.hk.2.2  =   { remove }
+transliteration.hk.3.0  = { {007C}{007C} } 
+transliteration.hk.3.1  =   { string = ॥ }
+transliteration.hk.3.2  =   { remove }
+transliteration.hk.4.0  = { ([lR])R }
+transliteration.hk.4.1  =   { string = {1|lR|ऌॠ} }
+transliteration.hk.4.2  =   { remove }
+transliteration.hk.5.0  = { a([iu]) }
+transliteration.hk.5.1  =   { remove }
+transliteration.hk.5.2  =   { string = {1|iu|ऐऔ} }
+; Xh
+transliteration.hk.6.0  = { ([kgcjTDtdpb])h }
+transliteration.hk.6.1  =   { string = {1|kgcjTDtdpb|खघछझठढथधफभ} }
+transliteration.hk.6.2  =   { remove }
+; Single letter
+transliteration.hk.7.0  = { ([MHaAiIuUReokgGcjJTDNtdnpbmyrlvzSshL{007C}']) }
+transliteration.hk.7.1  =   { string = {1|MHaAiIuUReokgGcjJTDNtdnpbmyrlvzSshL{007C}'|ंःअआइईउऊऋएओकगङचजञटडणतदनपबमयरलवशषसहळ।ऽ} }
+; Post-process vowels
+transliteration.hk.8.0  = { [{0915}-{0939}]([आइईउऊऋॠऌॡएऐओऔऎऒ]) }
+transliteration.hk.8.1  =   {}
+transliteration.hk.8.2  =   { string = {1|आइईउऊऋॠऌॡएऐओऔऎऒ|ािीुूृॄॢॣेैोौॆॊ} }
+transliteration.hk.9.0  = { [{0915}-{0939}]([{0915}-{0939}]) }
+transliteration.hk.9.1  =   {}
+transliteration.hk.9.2  =   { string = ^^^^094d{1} }
+; Duplicated (a trick)
+transliteration.hk.10.0 = { [{0915}-{0939}]([{0915}-{0939}]) }
+transliteration.hk.10.1 =   {}
+transliteration.hk.10.2 =   { string = ^^^^094d{1} }
+; Implicit a
+transliteration.hk.11.0 = { [{0915}-{0939}]{0905} }
+transliteration.hk.11.1 =   {}
+transliteration.hk.11.2 =   { remove }
diff --git a/news-guides/README.md b/news-guides/README.md
index cb942a9..e176591 100644
--- a/news-guides/README.md
+++ b/news-guides/README.md
@@ -25,6 +25,7 @@ This is the home page for Babel, a multilingual environment for latex (and somet
 
 | Version | Most relevant changes
 | --- | --- |
+| [3.57](news/whats-new-in-babel-3.57.md) | (Under development.) |
 | [3.56](news/whats-new-in-babel-3.56.md) | Transforms (in `ini` files) |
 | [3.55](news/whats-new-in-babel-3.55.md) | Mainly internal changes. Captions in Uyghur. |
 | [3.54](news/whats-new-in-babel-3.54.md) | Improved `picture`. |
diff --git a/news-guides/news/whats-new-in-babel-3.57.md b/news-guides/news/whats-new-in-babel-3.57.md
new file mode 100644
index 0000000..bc4c59c
--- /dev/null
+++ b/news-guides/news/whats-new-in-babel-3.57.md
@@ -0,0 +1,32 @@
+# What's new in babel 3.57
+
+(*Under development.*)
+
+## Transforms added to `ini` files
+
+*Some of them are still experimental or incomplete.*
+
+
+* **Arabic** `transliteration.dad` ▸ Applies the transliteration system
+devised by Yannis Haralambous for \textsf{dad}. Not yet complete, but
+sufficient for many texts.
+
+* **Croatian** `digraphs.ligatures` ▸ Ligatures *DŽ*, *Dž*,
+*dž*, *LJ*, *Lj*, *lj*, *NJ*,
+*Nj*, *nj*. It assumes they exist. This is not the
+recommended way to make these transformations (the best way is with
+OTF features), but it can get you out of a hurry.
+
+* **Greek** `diaeresis.hyphen` ▸ Removes the diaeresis above iota and
+upsilon if hyphenated just before. It works with the
+three variants.
+
+* **Hindi** `transliteration.hk` ▸ The Harvard-Kyoto system to romanize
+Devanagari.
+
+* **Hungarian** `digraphs.hyphen` ▸ Hyphenates the groups
+*ccs*, *ddz*, *ggy*, *lly*, *nny*,
+*ssz*, *tty* and *zzs* as *cs-cs*,
+*dz-dz*, etc.
+
+





More information about the latex3-commits mailing list.