Commit Graph

191 Commits

Author SHA1 Message Date
Roozbeh Pournader 16159d0fae Add Akan (ak) and Fanti (fat) orthographies (bug #20390) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader 881a7cd93b Add Herero (hz) orthograhy (bug #20387) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader bc701d2a5b Add Ewe (ee) orthography (bug #20386) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader 5a83914b73 Update Serbo-Croatian (sh) orthography (bug #20368) 2009-03-02 14:03:33 +03:30
Roozbeh Pournader 505ea8ce37 Extend Crimean Tatar (crh) orthography (bug #19891) 2009-03-02 14:03:33 +03:30
Roozbeh Pournader 4c7da799f3 Add Divehi (dv) orthography (bug #20207) 2009-03-02 14:03:33 +03:30
Roozbeh Pournader 5cac0a4fd6 Remove digits and symbols from some Indic orthographies (bug #20204)
These orthographies were changed: Gujarati (gu), Kannada (kn), Lao (lo),
Malayalam (ml), Oriya (or), Telugu (te), and Thai (th).
2009-03-02 14:03:33 +03:30
Roozbeh Pournader ea628d9770 Tighten Central Khmer (km) orthography (bug #20202) 2009-03-02 14:03:32 +03:30
Roozbeh Pournader 4a5805d9c6 Change Kashmiri (ks) orthography to Arabic script (bug #20200) 2009-03-02 14:03:32 +03:30
Roozbeh Pournader cda5721922 Rename Fulah orthography from 'ful' to 'ff' (bug #20177) 2009-03-02 14:03:32 +03:30
Roozbeh Pournader a32b79c3a5 Rename Bambara orthography from 'bam' to 'bm' (bug #20175) 2009-03-02 14:03:32 +03:30
Roozbeh Pournader 74a0a28695 Rename Avaric orthography from 'ava' to 'av' (bug #20174) 2009-03-02 14:03:31 +03:30
Roozbeh Pournader eba32fa3f3 Update Azerbaijani in Latin (az_az) to present usage (bug #20173)
Removed Cyrillic that is no longer in use. Removed "A WITH DIAERESIS"
too, since it was only temporarily used in 1991-1992.
2009-03-02 14:03:31 +03:30
Roozbeh Pournader 1c7bacc214 Switch Uzbek (uz) orthography to Latin (bug #19851) 2009-03-02 14:03:31 +03:30
Roozbeh Pournader dfd5d0937c Add Crimean Tatar (crh) orthography (bug #19891) 2009-03-02 14:03:31 +03:30
Roozbeh Pournader 502c46c23d Add Papiamento (pap_aw, pap_an) orthographies (bug #19891) 2009-03-02 14:03:30 +03:30
Roozbeh Pournader b4cd4cb6cc Add Blin (byn) orthography (bug #19891) 2009-03-02 14:03:30 +03:30
Roozbeh Pournader 4d7412a28b Divide Panjabi (pa) to that of Pakistan and India (bug #19890)
Previous Panjabi orthography was in the Gurmukhi script only, while in
Pakistan, the Arabic script (called Shahmukhi) is used for Panjani.
2009-03-02 14:03:30 +03:30
Roozbeh Pournader 7a22c9d347 Add Ottoman Turkish (ota) orthography (bug #20114) 2009-03-02 14:03:30 +03:30
Roozbeh Pournader b5675e4c92 Remove Euro Sign from all orthographies (bug #19865) 2009-03-02 14:03:29 +03:30
Behdad Esfahbod f6993c8803 [fc-lang] Continue parsing after an "include" (#20179) 2009-03-02 14:03:29 +03:30
Roozbeh Pournader abe0e056d5 Fix Bengali (bn) and Assamese (as) orthographies (bug #22924)
Removing digits, symbols, and the letters not used in the languages.
2009-02-16 02:14:43 -08:00
Roozbeh Pournader 40b2904c89 Add Sidamo (sid) and Wolaitta (wal) orthographies (bug #19891) 2009-02-16 02:14:43 -08:00
Roozbeh Pournader d333969e0c Add Sardinian (sc) orthography (bug #19891) 2009-02-16 02:14:43 -08:00
Roozbeh Pournader 1ae2e9b479 Add Limburgan (li) orthography (bug #19891) 2009-02-16 02:14:43 -08:00
Roozbeh Pournader d8a4ee921a Ad Ganda (lg) orthography (bug #19891) 2009-02-16 02:14:42 -08:00
Roozbeh Pournader f4159adaa8 Add Haitian Creole (ht) orthography (bug #19891) 2009-02-16 02:14:42 -08:00
Roozbeh Pournader 190b4b5b2b Add Aragonese (an) orthography (bug #19891) 2009-02-16 02:14:42 -08:00
Roozbeh Pournader 3541f01828 Add Kurdish in Turkey (ku_tr) orthography (bug #19891) 2009-02-16 02:14:42 -08:00
Roozbeh Pournader 3792f01990 Use newly added Cyrillic letters for Kurdish (bug #20049) 2009-02-16 02:14:42 -08:00
Roozbeh Pournader 0d8b15f00f Add Chhattisgarhi (hne) orthography (bug #19891) 2009-02-16 02:14:41 -08:00
Behdad Esfahbod 967267556c Further update Sinhala orthography (#19288) 2009-02-15 13:40:25 -08:00
Behdad Esfahbod ecce22d40c Update Sinhala orthography (#19288)
Patch from Harshula Jayasuriya.
2009-02-15 13:40:25 -08:00
Roozbeh Pournader fe00689cdd Remove punctuation symbols from Asturian orthography (bug #19893)
Also fix the URL for orthography.
2009-02-15 13:40:23 -08:00
Roozbeh Pournader a4f651241e Rename Igbo from "ibo" to "ig" (bug #19892) 2009-02-15 13:40:23 -08:00
Roozbeh Pournader ff71a83c20 Renamed az to az_az (bug #19889) 2009-02-15 13:40:22 -08:00
Roozbeh Pournader e53956ee5e Add Berber orthographies in Latin and Tifinagh scripts (bug #19881) 2009-02-15 13:40:22 -08:00
Roozbeh Pournader 3765a7483e Add Upper Sorbian (hsb) orthography (bug #19870) 2009-02-15 13:40:21 -08:00
Roozbeh Pournader 9f54d9db29 Add Kinyarwanda (rw) orthography (bug #19868) 2009-02-15 13:40:21 -08:00
Roozbeh Pournader 3889de9e3c Add Malay (ms) orthography (bug #19867) 2009-02-15 13:40:21 -08:00
Roozbeh Pournader 0896d14ab7 Add Kashubian (csb) orth file (bug #19866) 2009-02-15 13:40:21 -08:00
Roozbeh Pournader a32870457e Rename "ku" to "ku_am", add "ku_iq" (bug #19853).
For Iraq, we are assuming its the same Arabic orthography used in Iran.

According to Ethnologue, Kurdish is written in Cyrillic in Armenia:
http://www.ethnologue.com/show_language.asp?code=kmr

Turkey and Syria need more research.
2009-02-15 13:40:21 -08:00
Roozbeh Pournader 2199c6e321 Rename Venda from "ven" to "ve" (bug #19852)
Since ISO 639-1 code exists, we should use it.
2009-02-15 13:40:20 -08:00
Roozbeh Pournader d7dd87649c Change Turkmen orth from Cyrillic to Latin (bug #19849) 2009-02-15 13:40:19 -08:00
Roozbeh Pournader b25a42963d Fix doubly encoded UTF-8 in comments (bug #19848) 2009-02-15 13:40:19 -08:00
Roozbeh Pournader f3c214a1cd Split Mongolian orth to Mongolia and China (bug #19847)
The orth file for Mongolia uses Cyrillic, while that of
China uses the classical Mongolian script.
2009-02-15 13:40:19 -08:00
Roozbeh Pournader 0d5f9a2592 Add Filipino orth, alias Tagalog to Filipino (bug #19846)
The previous Tagalog orthography used the Tagalog script, which is not in
modern use.
2009-02-15 13:40:19 -08:00
Roozbeh Pournader 2bf7d799bf Remove Sinhala characters not in modern use (bug #19288) 2009-02-15 13:40:19 -08:00
Roozbeh Pournader 2f3b07fe80 Correct Sindhi orthography to use Arabic script (bug #17140)
The previous version used the Devanagari script. But in both Pakistan and
India, Sindhi is generally written in Arabic. The Devanagari data could
prove to be useful, if we decide on how we should name such files (see
bug #17208 and bug #19869).
2009-02-15 13:40:18 -08:00
Harshula Jayasuriya 030983185b Fix Sinhala coverage (bug #19288) 2009-02-13 16:54:02 -08:00
Behdad Esfahbod f31d8b1b1a Add Sindhi .orth file. (#17140) 2009-02-13 16:53:58 -08:00
Behdad Esfahbod b9f18922f1 Update sr.orth to actul subset of Cyrillic used by Serbian (#17208) 2009-02-13 16:53:57 -08:00
Behdad Esfahbod 317b849215 Replace RCS Id tags with the file name 2009-02-13 16:53:55 -08:00
Behdad Esfahbod aef608efed Add orth file for Maithili mai.orth (#15821) 2009-02-13 16:53:54 -08:00
Neskie Manuel 557f87f733 Add Secwepemctsin Orthography. Bug 15996. 2008-05-24 15:51:41 -07:00
Keith Packard dbd065ad31 Remove freetype requirement for build-time applications.
This avoids requiring the freetype development files when cross compiling
2008-01-02 08:47:14 -08:00
Dwayne Bailey cf3e888b71 Add/fix *.orth files for South African languages
This adds the missing orth files for Ndebele (South) (nr), Northern Sotho
(nso), Swati (ss) and Southern Sotho (st).  It also fixes the Tswana (tn)
orth file.
2007-10-25 01:16:06 -07:00
Keith Packard feecc86cea There is no U+1257 (bug 10899).
The Eritrean Tigrinya orthography mistakenly included this unicode value.
2007-10-25 00:46:41 -07:00
Keith Packard d50cfeb805 Leave generated headers out of distribution (bug 12734).
If the generated header files are included in the distribution, a build
outside of the source directory will use them. For machine-specific files,
this generates the wrong result (fcarch.h). Leaving them out of the
distribution forces them to be built.
2007-10-24 21:47:40 -07:00
Keith Packard e85789a997 Place language name in constant array instead of pointer.
Constant char array of 8 bytes is the same size as a pointer plus a short
string, so this actually saves memory and eliminates a pile of relocations.
2007-10-18 08:58:14 -07:00
Keith Packard 23816bf9ac Eliminate .so PLT entries for local symbols. (thanks to Arjan van de Ven)
Using a simple shell script that processes the public headers, two header
files are constructed that map public symbols to hidden internal aliases
avoiding the assocated PLT entry for referring to a public symbol.

A few mistakes in the FcPrivate/FcPublic annotations were also discovered
through this process
2006-09-05 02:24:01 -07:00
Keith Packard afe5a67160 Oops, fc-lang broke when I added cache referencing.
Add FcCacheObjectReference/FcCacheObjectDereference stubs to fc-cache.
2006-09-04 22:39:51 -07:00
Keith Packard 34227592c2 Remove all .cvsignore files 2006-09-03 16:27:09 -07:00
Keith Packard caf996342b Add Assamese orthography (as.orth). Bug #8050
Behdad Esfahbod says Assamese is the same as Bengali, so this just uses
bn.orth.
2006-09-01 12:59:09 -07:00
Keith Packard c9e6d2c8cc Chinese/Macau needs the Hong Kong orthography instead of Taiwan (bug 7884)
From Abel Cheung:
Currently zh_mo.orth includes zh_tw.orth, which means it is assumed Macau
only uses traditional Chinese characters used in Taiwan; however that is
wrong, as a majority of Macau people speaks Cantonese too, and also uses
additional traditional Chinese chars from Hong Kong (there are already some
place names that can't be represented in just chars used in Taiwan). So it
should include zh_hk.orth instead.
2006-09-01 12:45:43 -07:00
Keith Packard 18b6857c64 Fix fc-lang to use new charset freezer API.
Charset freezer api now uses allocated object. Also required minor fixes to
charset freezer code to remove assumption that all input charsets are
persistant.
2006-09-01 01:49:47 -07:00
Keith Packard e3096d90fd Fix build problems caused by cache rework.
Pagesize no longer matters in architecture decisions, the entire cache file
is mmaped into the library. However, lots of intptr_t values are in use now,
so that value is important.

fc-lang now requires fcserialize.c, which has been added to the repository.
2006-08-30 04:24:03 -07:00
Keith Packard 7ce1967331 Rework cache files to use offsets for all data structures.
Replace all of the bank/id pairs with simple offsets, recode several
data structures to always use offsets inside the library to avoid
conditional paths. Exposed data structures use pointers to hold offsets,
setting the low bit to distinguish between offset and pointer.

Use offset-based data structures for lang charset encodings; eliminates
separate data structure format for that file.

Much testing will be needed; offsets are likely not detected everywhere in
the library yet.
2006-08-30 04:16:22 -07:00
Patrick Lam 04f7d3e7fd Properly convert static charsets to dynamic charsets.
Fix memory leak in error case (Coverity defects #1820, #1821, #1822).
Fix memory leak (Coverity defect #1819).
prevent crash when invalid include line is parsed (Coverity defect #763).
Fix potential null pointer access (Coverity defect #1804).
Remove dead code (Coverity defect #1194).
Prevent potential null pointer access (Coverity defect #767), ensure error
    value is read (Coverity defect #1195).
reviewed by: plam
2006-04-11 14:20:59 +00:00
Patrick Lam 67ed0b7297 Include more stub definitions to make HP-UX's C compiler happy. 2006-04-10 22:08:35 +00:00
Patrick Lam f23f5f388d SGI compilation fixes (reported by Christoph Bauer):
1) reorder union definition of _FcChar;
2) omit .stats =.
2006-04-07 17:37:09 +00:00
Patrick Lam 0d745819a9 Fix intel compiler warnings: make many variables static, eliminate
duplicate names, reduce variable scopes, unsigned/signed printf
    formatting.
reviewed by: plam
2006-04-06 04:33:11 +00:00
Patrick Lam 04af4f56dc Fix typos in orth files. Reported by Denis Jacquerye. 2006-03-15 15:58:59 +00:00
Patrick Lam 2509fc7ac1 Add orthography for Lingala.
reviewed by: plam
2006-03-08 19:27:25 +00:00
Patrick Lam cf5cf4cadb Strip \r and whitespace from input; fixes bug 3454. 2006-02-22 04:50:16 +00:00
Patrick Lam 69a3fc78e2 Allocate large arrays statically in fc-lang to fix crashes under
MinGW/MSYS.
2006-02-22 04:09:39 +00:00
Patrick Lam 2b90aee363 Remove one more archaic character.
reviewed by: plam
2006-02-21 15:29:54 +00:00
Patrick Lam a81f23c0ce Fix hidden variable warning. 2006-02-07 03:53:32 +00:00
Patrick Lam 946478e1a7 Remove references to dead fontconfig(3) manpages in other fontconfig
manpages.
reviewed by: plam
2006-01-30 14:43:04 +00:00
Patrick Lam 16a71eff3e Treat zh-hk fonts differently from zh-tw fonts. This patch may cause
fontconfig to treat A-X fonts differently from A-Y fonts; please mail
    the fontconfig list if this causes any problems.
reviewed by: plam
2006-01-25 02:54:37 +00:00
Patrick Lam b8948e8542 Refactor FcCacheBankToIndex into an inlineable part (in fcint.h) which
checks the front of the list and a non-inlineable part which finds and
    moves the appropriate element to the front of the list.
reviewed by: plam
2005-11-29 14:57:10 +00:00
Patrick Lam a151acedc0 Further fix of patch from 2005-11-04: miscounted numbers count
(numbers_count); didn't strip duplicate numbers (langBankNumbers); and
    leafidx_offset and numbers_offset in fcLangCharSets are wrong.
Removed leafidx_count and numbers_count since they are the same and
    replaced them with offset_count.
reviewed by: plam
2005-11-19 16:24:53 +00:00
Patrick Lam 82f35f8bb4 Fix bug 2878 (excessive relocations at startup for charsets, reported by
Ross Burton): fc-lang/fc-lang now creates the static form of the
    langset, not the dynamic form, so that the charsets should now be in
    .rodata.
2005-11-04 19:31:26 +00:00
Patrick Lam c7beacf916 Small patch for output in case where lineno not defined. 2005-09-23 01:48:33 +00:00
Patrick Lam 67accef4d3 Fix more gcc4 warnings:
- Cast sizeof to int, to shut up signedness warnings in comparison.
- Add consts where appropriate.
reviewed by: Patrick Lam <plam@mit.edu>
2005-09-22 23:45:53 +00:00
Patrick Lam 8245771d5a Merge with HEAD and finish the GCC 4 cleanups (no more warnings!) 2005-09-11 02:16:09 +00:00
Patrick Lam 4262e0b385 Overhaul the serialization system to create one mmapable file per directory
and distribute bytes for each directory from a single malloc for that
    directory. Store pointers as differences between the data pointed to
    and the pointer's address (s_off = s - v). Don't serialize data
    structures that never actually get serialized. Separate strings used
    for keys from strings used for values (in FcPatternElt and FcValue,
    respectively). Bump FC_CACHE_VERSION to 2.
2005-08-24 06:21:30 +00:00
Patrick Lam 212c9f437e #ifdef out old cache stuff, replace with first version of new mmapping
cache. Add *Read and *Write procedures which mmap in and write out the
    fontconfig data structures to disk. Currently, create cache in /tmp,
    with different sections for each architecture (as returned by uname's
    .machine field. Run the fc-cache binary to create a new cache file;
    fontconfig then uses this cache file on subsequent runs, saving lots of
    memory. Also fixes a few bugs and leaks.
2005-07-25 04:10:09 +00:00
Patrick Lam cd2ec1a940 Add functionality to allow fontconfig data structure serialization.
This patch allows the fundamental fontconfig data structures to be
    serialized. I've converted everything from FcPattern down to be able to
    use *Ptr objects, which can be either static or dynamic (using a union
    which either contains a pointer or an index) and replaced storage of
    pointers in the heap with the appropriate *Ptr object. I then changed
    all writes of pointers to the heap with a *CreateDynamic call, which
    creates a dynamic Ptr object pointing to the same object as before.
    This way, the fundamental fontconfig semantics should be unchanged; I
    did not have to change external signatures this way, although I did
    change some internal signatures. When given a *Ptr object, just run *U
    to get back to a normal pointer; it gives the right answer regardless
    of whether we're using static or dynamic storage.
I've also implemented a Fc*Serialize call. Calling FcFontSetSerialize
    converts the dynamic FcFontSets contained in the config object to
    static FcFontSets and also converts its dependencies (e.g. everything
    you'd need to write to disk) to static objects. Note that you have to
    call Fc*PrepareSerialize first; this call will count the number of
    objects that actually needs to be allocated, so that we can avoid
    realloc. The Fc*Serialize calls then check the static pointers for
    nullness, and allocate the buffers if necessary. I've tested the
    execution of fc-list and fc-match after Fc*Serialize and they appear to
    work the same way.
2005-06-28 03:41:02 +00:00
Keith Packard a65a77aecf The ka.orth file requires several characters which are not used anymore in
modern Georgian and which are missing in the free Georgian TrueType
    fonts downloadable at:
http://aiet.qartuli.net/docs/georgian_on_linux_en.php
reviewed by: Mike Fabian Bug: 3352
2005-05-20 15:56:51 +00:00
Keith Packard d8ae9c9219 Add SEE ALSO section (bug 2085)
Cross compiling fixes (bug 280)
reviewed by: Keith Packard <keithp@keithp.com>
2005-01-13 18:31:50 +00:00
Keith Packard 02748dd3b8 Add territory database
Reviewed by: Keith Packard
Remove Han characters from Korean orthography
2004-12-29 10:07:10 +00:00
Keith Packard 9af19286b0 Currently Russian (ru) requires 0406 and 0456 (І and і), but these were
eliminated in Russian in 1918 in favor of 0418 and 0438 (И and и),
    and don't even appear in KOI8-R. (The hypothesis that they don't appear
    in KOI8-R due to their similarity with Latin I and i is eliminated by
    their presence in KOI8-U.) I have a couple of fonts with Russian
    support that don't have the letter.
Therefore, 0406 and 0456 should be removed from or commented out of ru.orth
reviewed by: Keith Packard <keithp@keithp.com>
2004-12-09 19:36:30 +00:00
Keith Packard 46b51147d1 Change files from ISO-Latin-1 to UTF-8 2004-12-07 01:14:46 +00:00
Keith Packard 54560b013f Sleep for two seconds before exiting to make sure timestamps for future
changes have distinct mod times in the file system. Bug #1982.
Add Punjabi orthography. Bug #1671.
reviewed by: Keith Packard <keithp@keithp.com>
2004-12-05 06:19:46 +00:00
Keith Packard 4f27c1c0a3 Move existing fonts.conf to fonts.conf.bak
Add detection of iconv
Document new selectfont elements
Switch to UTF-8 in comment
Add fullname, and family/style/fullname language entries
Respect selectfont/*/glob
Add support for selectfont
Add multi-lingual family/style/fullname support
Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
Add new FcPatternRemove/FcPatternAppend. FcObjectStaticName stores computed
    pattern element names which are required to be static.
2004-12-04 19:41:10 +00:00
Keith Packard 6ae6acf317 Add instructions for doing a release
clean up .spec file; perhaps this will be useful to somebody...
Update to 2.2.93
Make 'scanopen' static so GCC doesn't whine about lacking prototype
Add WARN_CFLAGS to pass -W flags for GCC systems
Change various char types around to match across function calls. Fixed bug
    in using available_sizes[i].height which is in pixels, not 64ths of a
    pixel.
2004-04-14 18:08:41 +00:00
Keith Packard b68b96464f Add Low Saxon orthography (Kenneth Rohde Christiansen <kenneth@gnu.org>)
Oops. Left 'newest.set' unset, which would miscompute the newest file
Add FcGetPixelSize to extract correct pixel size from bdf/pcf font
    properties (which report the wrong value in current FreeType)
Don't attempt to check for empty glyphs in non-scalable fonts; they have no
    outlines...
2004-02-07 07:13:48 +00:00
Roozbeh Pournader d3481737be Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto (Afghan
and Pakistani).
Updated Urdu orthography with real data.
2004-01-03 18:27:29 +00:00
Keith Packard 4cbc3ee8fe Yet more cleanups to finish getting 'make distcheck' working This has been
tested to ensure that it even works from a _build directory.
2003-10-27 10:44:13 +00:00