Commit Graph

221 Commits

Author SHA1 Message Date
Carmina16 401d521c1f ie.orth: Corrected; mistaken source replaced 2021-01-30 10:21:33 +00:00
Akira TAGOH 3ae08a8601 Make more clearer the license terms
COPYING is missing non-expat license terms for some files and some files is also missing license terms. This is changes to makes it clearer and update.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/219
2020-09-03 06:25:30 +00:00
Akira TAGOH ef28c78350 Integrate python scripts to autotools build
Recently some python scripts has been added to the build toolchain for meson build support. but we don't want to maintain multiple files for one purpose. since autotools build support will be guradually discontinued, integrating those scripts into autotools would be better.
2020-08-26 13:33:07 +00:00
Tim-Philipp Müller 57a224f51d Add Meson build system
See https://mesonbuild.com
2020-07-31 07:26:11 +00:00
Alan Coopersmith 9bc88933b2 Fix some typos/spelling errors
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-07-21 18:42:40 -07:00
Akira TAGOH 528b17b283 Drop elements with its namespace from conf
The translation related elements are now provided by separate files
fontconfig.its and fontconfig.loc. we don't need to have it in conf
anymore.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/234
2020-05-25 10:44:05 +09:00
Akira TAGOH f555f50a20 Add 35-lang-normalize.conf
This avoids a situation where the score of lang becomes lower or equal to others
and then figures out the best font according to other properties and the order
of family names.

This typically happens only when our orthography files are the subset of lang
in patterns. i.e. fc-match :lang=en-us to match on en.orth.
In this case, the score is lower than the exact match (en to en) and the partial
match (en to en-us). thus, the result of 'fc-match :lang=en-us' isn't necessarily
same to 'fc-match :lang=en'.

So 35-lang-normalize.conf contains languages only which is available as orth
without countries and tries to update properties to match on orth exactly like:

  <match>
    <test name="lang" compare="contains">
      <string>en</string>
    </test>
    <edit name="lang" mode="assign" binding="same">
      <string>en</string>
    </edit>
  </match>

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/155
2019-07-26 07:42:36 +00:00
Tom Anderson c60ed9ef66 Fix undefined-shift UBSAN errors
The expression "1 << 31" will cause UBSAN to complain with this error message:
runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

The same operation on unsigned types is fine, however.  This CL replaces the
strings "1 <<" with "1U <<".
2018-04-16 15:23:20 +02:00
Akira TAGOH 7e74366f56 und_zsye.orth: polish to get for NotoEmoji-Regular.ttf 2017-09-14 12:25:22 +09:00
Akira TAGOH 69918f0eaa Polish und_zmth.orth more for Cambria Math and Minion Math 2017-08-23 12:36:15 +09:00
Akira TAGOH a7fcaed61e Polish und_zmth.orth for Libertinus Math 2017-08-23 11:21:10 +09:00
Akira TAGOH 53c4440ee3 Add und_zmth.orth to support Math in lang 2017-08-22 20:37:30 +09:00
Behdad Esfahbod 26fdd3e4c6 Remove unneeded codepoints 2017-08-02 16:48:33 +01:00
Akira TAGOH ef0b5f8901 Add more code points to und-zsye.orth 2017-08-02 16:02:41 +01:00
Behdad Esfahbod 9978203bf1 [fc-lang] Allow using ".." instead of "-" in ranges
Allows copying emoji-data.txt and other Unicode data files intact.
2017-08-02 15:31:15 +01:00
Akira TAGOH 1bb8e691bd Add und-zsye.orth to support emoji in lang 2017-08-02 15:18:53 +01:00
Florent Rougon 02161ef2d6 fc-lang: gracefully handle the case where the last language initial is < 'z'
FcLangSetIndex() contains code like this:

  low = fcLangCharSetRanges[firstChar - 'a'].begin;
  high = fcLangCharSetRanges[firstChar - 'a'].end;
  /* no matches */
  if (low > high)

The assumption behind this test didn't hold before this commit, unless
there is at least one language name that starts with 'z' (which is
thankfully the case in our world :-). If the last language name in
lexicographic order starts for instance with 'x', this change ensures
that fcLangCharSetRanges['y' - 'a'].begin and
     fcLangCharSetRanges['z' - 'a'].begin
are equal to NUM_LANG_CHAR_SET, in order to make the above assumption
correct in all cases.
2017-06-09 13:48:00 +09:00
Behdad Esfahbod cd9631d83e [ko.orth] Remove U+3164 HANGUL FILLER
Better not to reject a font just over that.  Note that we do NOT
list U+115F and U+1160 either.
2014-06-12 17:02:10 -04:00
Akira TAGOH 81664fe54f Rebase ja.orth against Joyo kanji characters
Patch from Akihiro TSUKADA
2014-04-22 12:39:12 +09:00
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