[Debian-in-commits] [fonts-lohit-gu] 02/03: New upstream version 2.92.4

Kartik Mistry kartik at moszumanska.debian.org
Thu Jun 22 16:12:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

kartik pushed a commit to branch master
in repository fonts-lohit-gu.

commit c6f36c60c22c3e818df8e9b9cf85686a0a41995d
Author: Kartik Mistry <kartik.mistry at gmail.com>
Date:   Thu Jun 22 21:41:51 2017 +0530

    New upstream version 2.92.4
---
 AUTHORS                                    |  1 +
 ChangeLog                                  |  9 +++++-
 Lohit-Gujarati.sfd                         |  4 +--
 Makefile                                   | 12 +++----
 apply_featurefile.py                       |  8 ++---
 auto_test.py                               | 52 ++++++++++++++++++++++++++++++
 io.pagure.lohit.gujarati.font.metainfo.xml | 27 ++++++++++++++++
 7 files changed, 100 insertions(+), 13 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index f0ef578..5d6171e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -2,6 +2,7 @@ Contributors (Alphabetically) :-
 - Baishampayan Ghose
 - Bernard Massot
 - Darshan Santani
+- Eduardo Rodriguez Tunni
 - Hiran Venugopalan
 - Leon Ho 
 - Parag Nemade
diff --git a/ChangeLog b/ChangeLog
index 4f1a039..b553cc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 				  lohit-gujarati
-Current Version :- 2.92.2
+Current Version :- 2.92.4
+
+* Wed Apr 26 2017 Pravin Satpute <psatpute at redhat.com> - 2.92.4
+- Added appstream metadata file io.pagure.lohit.devanagari.font.metainfo.xml
+
+* Thu Mar 02 2017 Pravin Satpute <psatpute at redhat.com> - 2.92.3
+- PR for python2 to 3 from ShaguftaMethwani and mandarvaze.
+- Updated Makefile to call script from fontforge rather than python.
 
 * Thu Jan 02 2014 Pravin Satpute <psatpute at redhat.com> - 2.92.2
 - Resolved issue #31: ttf Error - not valid font
diff --git a/Lohit-Gujarati.sfd b/Lohit-Gujarati.sfd
index 883d363..65c53cc 100644
--- a/Lohit-Gujarati.sfd
+++ b/Lohit-Gujarati.sfd
@@ -4,7 +4,7 @@ FullName: Lohit Gujarati
 FamilyName: Lohit Gujarati
 Weight: Book
 Copyright: Copyright 2011-13 Lohit Fonts Project contributors.\n<http://fedorahosted.org/lohit>\nOpen type tables written by:\nPravin Satpute <psatpute AT redhat DOT com>\nSneha Kore <skore At redhat DOT com>\n\n   Licensed under the SIL Open Font License 1.1 (see file OFL.txt)
-Version: 2.92.2
+Version: 2.92.4
 ItalicAngle: 0
 UnderlinePosition: -300
 UnderlineWidth: 20
@@ -448,7 +448,7 @@ ShortTable: maxp 16
   0
   0
 EndShort
-LangName: 1033 "" "" "Regular" "FontForge 2.0 : Lohit Gujarati : 12-11-2013" "" "2.92.2" "" "Lohit is a trademark of Red Hat, Inc.+AAoA" "" "" "" "" "" "OFL 1.1" "http://scripts.sil.org/OFL" 
+LangName: 1033 "" "" "Regular" "FontForge 2.0 : Lohit Gujarati : 12-11-2013" "" "2.92.4" "" "Lohit is a trademark of Red Hat, Inc.+AAoA" "" "" "" "" "" "OFL 1.1" "http://scripts.sil.org/OFL" 
 Encoding: UnicodeBmp
 Compacted: 1
 UnicodeInterp: none
diff --git a/Makefile b/Makefile
index a6cb220..4ef61ba 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,29 @@
 all: sfd-dist ttf woff eot ttf-dist web-dist
 
-version:= 2.92.2
+version:= 2.92.4
 
 ttf: ttf-bin
 	@echo "----------Generating ttf from sfd file----------"
-	python apply_featurefile.py Lohit-Gujarati.sfd Lohit-Gujarati.fea
+	fontforge -lang=py -script apply_featurefile.py Lohit-Gujarati.sfd Lohit-Gujarati.fea
 	./generate.pe *.sfd
 	@echo "----------Finished generating ttf file----------"
 	@echo " "
 
 woff: woff-bin
 	@echo "----------Generating woff from ttf file----------"
-	java -jar /usr/share/java/sfnttool.jar -w Lohit-Gujarati.ttf Lohit-Gujarati.woff
+	sfntly -w Lohit-Gujarati.ttf Lohit-Gujarati.woff
 	@echo "----------Finished generating woff file----------"
 	@echo " "
 
 eot: eot-bin
 	@echo "----------Generating eot from ttf file----------"
-	java -jar /usr/share/java/sfnttool.jar -e -x Lohit-Gujarati.ttf Lohit-Gujarati.eot
+	sfntly -e -x Lohit-Gujarati.ttf Lohit-Gujarati.eot
 	@echo "----------Finished generating eot file----------"
 	@echo " "
 
 ttf-dist: dist
 	mkdir lohit-gujarati-ttf-$(version)
-	cp -p COPYRIGHT OFL.txt test-gujarati.txt README  AUTHORS  ChangeLog 66-lohit-gujarati.conf Lohit-Gujarati.ttf lohit-gujarati-ttf-$(version)
+	cp -p COPYRIGHT OFL.txt test-gujarati.txt README  AUTHORS  ChangeLog 66-lohit-gujarati.conf Lohit-Gujarati.ttf io.pagure.lohit.gujarati.font.metainfo.xml lohit-gujarati-ttf-$(version)
 	rm -rf lohit-gujarati-ttf-$(version)/.git
 	tar -cf lohit-gujarati-ttf-$(version).tar lohit-gujarati-ttf-$(version)
 	gzip lohit-gujarati-ttf-$(version).tar
@@ -31,7 +31,7 @@ ttf-dist: dist
 
 sfd-dist: dist
 	mkdir lohit-gujarati-$(version)
-	cp -p COPYRIGHT OFL.txt test-gujarati.txt README  AUTHORS generate*.pe *.py *.fea Makefile ChangeLog 66-lohit-gujarati.conf Lohit-Gujarati.sfd lohit-gujarati-$(version)
+	cp -p COPYRIGHT OFL.txt test-gujarati.txt README  AUTHORS generate*.pe *.py *.fea Makefile ChangeLog 66-lohit-gujarati.conf Lohit-Gujarati.sfd io.pagure.lohit.gujarati.font.metainfo.xml lohit-gujarati-$(version)
 	rm -rf lohit-gujarati-$(version)/.git
 	rm -rf lohit-gujarati-$(version)/*.ttf
 	tar -cf lohit-gujarati-$(version).tar lohit-gujarati-$(version)
diff --git a/apply_featurefile.py b/apply_featurefile.py
index 9ee3941..2a168cf 100644
--- a/apply_featurefile.py
+++ b/apply_featurefile.py
@@ -21,7 +21,7 @@ import fontforge
 
 if __name__ == "__main__":
     if len(sys.argv) < 3:
-        print "USAGE: python apply_featurefile.py <sfd file> <featurefile>"
+        print("USAGE: python apply_featurefile.py <sfd file> <featurefile>")
     else:
         font = fontforge.open(sys.argv[1])
 
@@ -31,12 +31,12 @@ if __name__ == "__main__":
 
         # Remove all GPOS lookups 
         # These lines are disable since gpos tables are font specific and simply importing from lohit will not help it.
-        # for lookup in font.gpos_lookups:
-        #    font.removeLookup(lookup)        
+        for lookup in font.gpos_lookups:
+            font.removeLookup(lookup)        
 
         # Merge the new featurefile 
         font.mergeFeature(sys.argv[2])
         font.save()
         font.close()
-        print "[SUCCESS]", sys.argv[2], "feature file applied"
+        print("[SUCCESS]", sys.argv[2], "feature file applied")
 
diff --git a/auto_test.py b/auto_test.py
new file mode 100644
index 0000000..6195077
--- /dev/null
+++ b/auto_test.py
@@ -0,0 +1,52 @@
+# !/usr/bin/python
+# -*- coding: UTF-8 -i*-
+# Copyright (C) 2013-14, Sneha Kore <skore at redhat.com>, Pravin Satpute <psatpute at redhat.com>
+# This script requires hb-shape utility from available in harfbuzz-devel rpm
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+import os,sys,subprocess
+
+def auto_test(txt_file,ttf_file):
+	inputfile=open(txt_file)
+	outputfile=open("failed_test_case.txt","w")
+
+	#Read the test-case input
+	flines=inputfile.readlines()
+	count=0
+
+	#Exceute hb-shape command for each test-case from output file
+	for string in flines:
+		words=string.split()
+		status, output = subprocess.getstatusoutput("hb-shape %s %s"%(ttf_file,words[0]))
+		# Test to check, wheather test-case from output file & the result, are matching
+		if words[1] != output:
+			print(words[0]+ " [FAILURE]\n")
+			outputfile.write("  *  "+words[0]+"\t"+""+output+"\n")
+			count=count+1
+
+	#Count for failed test-cases
+	print("%d Test Cases Failed out of %d"%(count,len(flines)))
+	print("failed_test_case.txt file generated !!")
+	inputfile.close()
+	outputfile.close()
+
+if __name__ == "__main__":
+
+	if len(sys.argv) < 3:
+		print(" USAGE: python test.py <test file> <font_file> ")
+	else:
+		txt_file = sys.argv[1]
+		font_file = sys.argv[2]
+		auto_test(txt_file,font_file)
diff --git a/io.pagure.lohit.gujarati.font.metainfo.xml b/io.pagure.lohit.gujarati.font.metainfo.xml
new file mode 100644
index 0000000..cc3f1f4
--- /dev/null
+++ b/io.pagure.lohit.gujarati.font.metainfo.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>io.pagure.lohit.gujarati.font</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>OFL-1.1</project_license>
+  <name>Lohit Gujarati</name>
+  <summary>Lohit family font for the Gujarati language</summary>
+  <description>
+    <p>
+	    This package provides a free Gujarati Script TrueType font.
+    </p>
+    <p>
+	    This font is part of the Lohit font family, a set of fonts for
+	    Indic languages originally created by Modular Infotech and
+	    now maintained by Red Hat. Lohit means “red” in Sanskrit.
+    </p>
+  </description>
+  <url type="homepage">https://pagure.io/lohit</url>
+  <url type="bugtracker">https://github.com/pravins/lohit/issues</url>
+  <updatecontact>psatpute_at_redhat_dot_com</updatecontact>
+  <provides>
+	  <font>Lohit Gujarati Regular</font>
+  </provides>
+  <languages>
+	  <lang>gu</lang>
+  </languages>
+</component>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-in/fonts-lohit-gu.git



More information about the Debian-in-commits mailing list