[Git][debian-edu/debian-edu-doc][master] Adapt Makefile.common to make it ready to build tamil pdf manuals.

"Frans Spiesschaert (@frans)" <[email protected]>
Newsgroups gmane.linux.skolelinux.cvs
Message-ID <[email protected]>

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.

_______________________________________________
debian-edu-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-edu-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.