[tex4ht-commits] [SCM] tex4ht updated: r697 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon May 25 10:47:32 CEST 2020


Author: michal_h21
Date: 2020-05-25 11:47:32 +0300 (Mon, 25 May 2020)
New Revision: 697

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed script selection in polyglossia

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-05-25 08:17:30 UTC (rev 696)
+++ trunk/lit/ChangeLog	2020-05-25 08:47:32 UTC (rev 697)
@@ -1,6 +1,8 @@
 2020-05-25 Michal Hoftich  <michal.h21 at gmail.com>
 
-	* tex4ht-4ht.tex (usepackage.4ht): disable script selection in Polyglossia.
+	* tex4ht-4ht.tex (usepackage.4ht): load Unicode definitions when script
+	option for language selection is used in Polyglossia.
+	https://github.com/reutenauer/polyglossia/issues/419
 
 2020-05-22 Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-05-25 08:17:30 UTC (rev 696)
+++ trunk/lit/tex4ht-4ht.tex	2020-05-25 08:47:32 UTC (rev 697)
@@ -3744,7 +3744,11 @@
     #1 / direction
     .  code:n = {},
     #1 / script
-    .  code:n = {},
+    .  code:n = {\ifdefined\XeTeXversion
+      \edef\:tempscript{\str_uppercase:f{\tl_head:n {#1}}\tl_tail:n{#1}}
+      \xeuniuseblock{#1}
+      \expandafter\xeuniuseblock\expandafter{\:tempscript}
+    \fi},
   }
 }
 \def\RequireBidi{}%



More information about the tex4ht-commits mailing list.