Commit Graph

202 Commits

Author SHA1 Message Date
Akira TAGOH 5478192f37 Add README describes the criteria to add/modify the orthography files
https://bugs.freedesktop.org/show_bug.cgi?id=73461
2014-03-18 12:14:03 +09:00
Akira TAGOH f35b44c35b Update zh_hk.orth
Patch from Abel Cheung

https://bugs.freedesktop.org/show_bug.cgi?id=73461
2014-01-17 12:24:02 +09:00
Alan Coopersmith cb72901d0b Leave room for null terminators in arrays
Code currently returns a fatal error if it tries to add more entries
than the array has room for, but it wasn't checking to make sure
the final null terminator entry would fit.

Reported by parfait 1.3:
Error: Buffer overrun
   Buffer overflow (CWE 120): In array dereference of files[i] with index i
      Array size is 256 elements (of 4 bytes each), index >= 0 and index <= 256
        at line 250 of fc-glyphname/fc-glyphname.c in function 'main'.
Error: Buffer overrun
   Buffer overflow (CWE 120): In array dereference of entries[i] with index i
      Array size is 1024 elements (of 8 bytes each), index >= 0 and index <= 1024
        at line 298 of fc-lang/fc-lang.c in function 'main'.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-05 11:42:59 +09:00
Akira TAGOH 53ad60deab Add quz.orth to Makefile.am 2013-08-29 17:12:45 +09:00
Akira TAGOH c6228f8091 Bug 68587 - copy qu.orth to quz.orth 2013-08-27 12:28:52 +09:00
Behdad Esfahbod bc62c40597 Really fix cross-compiling and building of tools this time 2013-01-02 20:09:05 -06:00
Behdad Esfahbod 558b3c65f9 Use CC_FOR_BUILD to generate source files
Previously we were failing if CROSS_COMPILING and the generated headers
were not present.  It works just fine now.

One caveat: the fix is not fully correct since config.h is being
included in the files built with CC_FOR_BUILD, but config.h has config
for the host system, not the build system.  Should be fine though.
2013-01-02 17:49:41 -06:00
Behdad Esfahbod ed41b23765 Switch .gitignore to git.mk 2013-01-02 00:36:12 -06:00
Behdad Esfahbod a0638ff0c7 Remove unneeded stuff 2012-12-31 17:20:12 -06:00
Akira TAGOH 2442d61157 Fix build issues on clean tree 2012-11-30 20:10:30 +09:00
Jon TURNEY faea1cac85 Fix build when srcdir != builddir
When ./configure'd in a directory other than the srcdir, we need to look
in ${top_builddir)/src for the generated header fcstdint.h

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2012-11-29 12:53:21 +09:00
Behdad Esfahbod 65da8c091c Fix N'ko orthography 2012-08-25 14:10:14 -04:00
Akira TAGOH bbc8fb5ba7 Bug 32853 - Export API to get the default language
Add a new API FcGetDefaultLangs() to export the string sets of the default
languages.
2012-06-08 15:18:30 +09:00
Akira TAGOH 9279f71a3a Bug 24729 - [ne_NP] Fix ortho file
further update for ne.orth

Patch from Pravin Satpute.
2012-03-30 11:52:25 +09:00
Akira TAGOH f2813ffc68 Revert "Fix a build fail on some environment"
This reverts commit b75eb63982.
2012-03-16 11:55:47 +09:00
Akira TAGOH a5b609196f Revert "Fix a build fail on some environment."
This reverts commit 0fdfddf2ac.

Conflicts:

	doc/Makefile.am
2012-03-16 11:55:30 +09:00
Akira TAGOH 0fdfddf2ac Fix a build fail on some environment. 2012-03-10 23:30:30 +09:00
Akira TAGOH b75eb63982 Fix a build fail on some environment 2012-03-10 22:05:07 +09:00
Akira TAGOH 353f7cc691 Fix distcheck error 2012-03-09 17:33:03 +09:00
Pravin Satpute c7a671ab60 Bug 25652 - Add ortho file for locale mni_IN
Add mni.orth for Maniputi

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-24 16:50:14 +09:00
Pravin Satpute 04c96f59b9 Bug 25653 - Add ortho file for locale doi_IN
Add doi.orth for Dogri

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-24 16:43:14 +09:00
Akira TAGOH 857753d368 Add brx.orth and sat.orth 2012-02-23 20:12:06 +09:00
Parag Nemade 942cb16f6c Bug 25650 - Add ortho file for locale sat_IN
Add sat.orth for Santali

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-23 20:06:41 +09:00
Parag Nemade 38b9c42fe2 Bug 25651 - Add ortho file for locale brx_IN
Add brx.orth for Bodo.

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-23 19:34:18 +09:00
Pravin Satpute a53553b4b6 Bug 43321 - Required corrections in urdu.orth file
Drop U+0629 and U+0647, and add U+06c3 to ur.orth

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-21 15:40:46 +09:00
Akira TAGOH d3c4382216 Add a missing file 2012-02-21 15:11:30 +09:00
Akira TAGOH 5582043a49 Bug 32965 - Asturian (ast-ES) language matching missing ḷḷḥ
Add U+1E24, U+1E25, U+1E36 and U+1e37 for Asturian
2012-02-21 15:08:47 +09:00
Akira TAGOH dab0afd810 Remove the unnecessary comment in ks.orth 2012-02-21 14:45:52 +09:00
Pravin Satpute dedc16733a Bug 27195 - need updates to ks.orth file
Add U+0620, U+0657, U+065f, U+0672, U+0673 and U+06c4 for Kashmiri

See http://www.unicode.org/charts/PDF/U0600.pdf

Signed-off-by: Akira TAGOH <akira@tagoh.org>
2012-02-21 14:45:52 +09:00
Akira TAGOH a1ecd679db Bug 24744 - No n'ko orthography
Add nqo.orth for N'Ko
2011-11-14 17:44:24 +09:00
Behdad Esfahbod f0ee5761e1 Fix warning 2011-03-14 18:58:13 -03:00
Behdad Esfahbod ccc239b386 Bug 20113 - Uighur (ug) orthography incomplete 2011-03-14 17:28:53 -03:00
Behdad Esfahbod 2a6b235ff6 Make most generated-files cross-compiling-safe
By simply including a copy in the tarball.

Remains fc-arch which is trickier.
2010-12-27 13:20:47 -06:00
Behdad Esfahbod 5aaf466d38 Cleanup copyright notices to replace "Keith Packard" with "the author(s)" 2010-11-10 16:45:42 -05:00
Behdad Esfahbod caa4bec945 Bug 24729 - [ne_NP] Fix ortho file
Exclude three characters (U+090C..090E) from Nepalese.
2010-09-21 13:18:05 -04:00
Behdad Esfahbod 0a023b24da [fc-lang] Support excluding characters
By prefixing a line by a hyphen/minus sign.  Useful when including
other orth files.
2010-09-21 13:14:55 -04:00
Alan Coopersmith 7836684446 Fix compiler warnings 2010-06-02 22:38:19 -04:00
Behdad Esfahbod d2fb683796 Clean up Makefile's a bit 2009-11-18 09:35:40 -05:00
Roozbeh Pournader 25436fd08f Updated Arabic, Persian, and Urdu orthographies
- Arabic (ar), Persian (fa), and Urdu (ur) now use generic forms (bug #23004)
- Persian (fa) orthography updated to latest standards and orthographies
- Persian dialects Dari/Eastern Farsi (prs) and Western Farsi (pes) added
2009-09-02 20:03:42 -07:00
Roozbeh Pournader d9d8b88264 Correct Ewe (ee) orthography to use U+025B (bug #20711) 2009-09-02 18:54:24 -07:00
Behdad Esfahbod d354a321ee Bug 23419 - "contains" expression seems not working on the fontconfig rule
Fix bug in FcLangSetContains(), similar to
5c6d1ff23b
2009-08-25 20:39:20 -04:00
Behdad Esfahbod 161620108b [ja.orth] Comment out FULLWIDTH YEN SIGN (#22942) 2009-07-28 14:24:21 -04:00
Roozbeh Pournader aa82a4f81d Reorganize Panjabi/Punjabi and Lahnda orthographies (bug #19890)
The correct ISO 639 code for Pakistani/Western Panjabi seems to be 'lah',
not 'pa'. We are keeping 'pa_pk.orth' for compatiblity with glibc.

Signed-off-by: Behdad Esfahbod <behdad@behdad.org>
2009-06-24 13:52:11 -04:00
Behdad Esfahbod ffd6668b46 [fc-lang] Make LangSet representation in the cache files stable
Fontconfig assigns an index number to each language it knows about.
The index is used to index a bit in FcLangSet language map.  The bit
map is stored in the cache.

Previously fc-lang simply sorted the list of languages and assigned
them an index starting from zero.  Net effect is that whenever new
orth files were added, all the FcLangSet info in the cache files would
become invalid.  This was causing weird bugs like this one:

  https://bugzilla.redhat.com/show_bug.cgi?id=490888

With this commit we fix the index assigned to each language.  The index
will be based on the order the orth files are passed to fc-lang.  As a
result all orth files are explicitly listed in Makefile.am now, and
new additions should be made to the end of the list.  The list is made
to reflect the sorted list of orthographies from 2.6.0 released followed
by new additions since.

This fixes the stability problem.  Needless to say, recreating caches
is necessary before any new orthography is recognized in existing fonts,
but at least the existing caches are still valid and don't cause bugs
like the above.
2009-06-24 13:52:10 -04:00
Behdad Esfahbod bb36e67685 [fc-lang] Fix bug in country map generation
Previously the county map code was using an uninitialized variable and
hence was totally failing to populate same-lang-different-territory map.
2009-06-24 13:52:09 -04:00
Behdad Esfahbod 3074a73b41 Replace 'KEITH PACKARD' with 'THE AUTHOR(S)' in license text in all files 2009-03-13 17:59:28 -04:00
Behdad Esfahbod 916640ce40 Fix Makefile's to not create target file in case of failure 2009-03-10 02:16:09 -04:00
Behdad Esfahbod 26ce979e82 Fix Fanti (fat) orth file (#20390) 2009-03-10 02:16:09 -04:00
Roozbeh Pournader 49111c11fb Add Sundanese (su) orthography (bug #20440) 2009-03-09 13:18:51 -04:00
Roozbeh Pournader 0eaed16d34 Add Kanuri (kr) orthography (bug #20438) 2009-03-09 13:18:51 -04:00