[debian-edu-commits] [Git][debian-edu/debian-edu-doc][master] Adapt Makefile.common to make it ready to build tamil pdf manuals.
    Frans Spiesschaert (@frans) 
    gitlab at salsa.debian.org
       
    Fri Oct 24 14:04:05 BST 2025
    
    
  
Frans Spiesschaert pushed to branch master at Debian Edu / debian-edu-doc
Commits:
986dd194 by Frans Spiesschaert at 2025-10-24T15:03:51+02:00
Adapt Makefile.common to make it ready to build tamil pdf manuals.
- - - - -
1 changed file:
- documentation/common/Makefile.common
Changes:
=====================================
documentation/common/Makefile.common
=====================================
@@ -33,6 +33,11 @@ SED_100= 's%<subtitle><para>%<subtitle>%'
 # Fix for id tag (legacy manuals)
 SED_101= "s%id='[0-9]\+%id='%g"
 SED_102= "s% id=''%%g"
+# Tamil script lacks support for Italic in FreeSerif font
+SED_200= 's%<emphasis>%<emphasis role="bold">%g'
+# Workaround because <litterallayout> cannot handle Tamil script
+SED_201= '/<literallayout>/,/<\/literallayout>/{/<literallayout>/n;/<\/literallayout>/!{s/$$/<\/para><para>/g}}'
+SED_202= "s%literallayout>%para>%g"
 
 # Use Make internal function 'subst': substitute -manual with nothing to get
 # the directory name.
@@ -95,7 +100,10 @@ build-xml:
 				;; \
 				zh-tw) sed -i $(SED_05) $(name).$$f.xml \
 				;; \
-				ta) sed -i $(SED_06) $(name).$$f.xml \
+				ta) sed -i $(SED_06) $(name).$$f.xml ; \
+                                    sed -i $(SED_200) $(name).$$f.xml ; \
+                                    sed -i $(SED_201) $(name).$$f.xml ; \
+                                    sed -i $(SED_202) $(name).$$f.xml \
 				;; \
 				id) sed -i $(SED_07) $(name).$$f.xml \
 				;; \
@@ -132,7 +140,10 @@ build-xml:
 			;; \
 			zh-tw) sed -i $(SED_05) $(name).$(LINGUA).xml \
 			;; \
-			ta) sed -i $(SED_06) $(name).$(LINGUA).xml \
+			ta) sed -i $(SED_06) $(name).$(LINGUA).xml ; \
+                            sed -i $(SED_200) $(name).$(LINGUA).xml ; \
+                            sed -i $(SED_201) $(name).$(LINGUA).xml ; \
+                            sed -i $(SED_202) $(name).$(LINGUA).xml \
 			;; \
 			id) sed -i $(SED_07) $(name).$(LINGUA).xml \
 			;; \
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/986dd1948051ba1dfd16abfaed60eec1a9838d63
-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/986dd1948051ba1dfd16abfaed60eec1a9838d63
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20251024/24b3887b/attachment-0001.htm>
    
    
More information about the debian-edu-commits
mailing list