Changes between Version 2 and Version 3 of TracUnicode
- Timestamp:
- 2019-05-02T09:45:05-03:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUnicode
v2 v3 1 = Unicode Support in Trac 2 1 = Unicode Support in Trac = 3 2 [[TracGuideToc]] 4 3 5 Trac encodes all text using [ wikipedia:UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [wikipedia:Unicode] representations. As such, it supports mostcommonly used character encodings.4 Trac encodes all text using [http://en.wikipedia.org/wiki/UTF-8 UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [http://en.wikipedia.org/wiki/Unicode Unicode] representations. As such, it supports most (all?) commonly used character encodings. 6 5 7 If the default encoding in your source code repository is not UTF-8, you can specify it in your [TracIni#trac-section trac.ini] file:8 {{{ #!ini6 If the default encoding in your source code repository is not UTF-8, you can specify it in the [TracIni#trac-section trac.ini]: 7 {{{ 9 8 default_charset = gbk 10 9 }}} … … 14 13 To convert your database to UTF-8, the easiest way is to create a dump of the database, convert it into UTF-8, for example using [http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html iconv], and then import it back into the database. 15 14 16 == Examples 15 == Examples == 17 16 18 === Arabic 19 17 === Arabic === 20 18 تراك يقوم بحفظ كل الكلمات باستخدام صيغة UTF-8، بما في ذلك الكلمات المستخدمة في صفحات التيكت والويكي. 21 19 22 === Bulgarian 23 20 === Bulgarian === 24 21 Българският език работи ли? 25 22 26 === Česky 27 23 === Česky === 28 24 Čeština v kódování UTF-8, žádný problém. 29 25 30 === Chinese 26 === Chinese === 27 Traditional: 繁體中文, 漢字測試; Simplified: 简体中文,汉字测试 31 28 32 Traditional: 繁體中文, 漢字測試 29 === Croatian === 30 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ 33 31 34 Simplified: 简体中文,汉字测试 35 36 === Croatian 37 38 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ. 39 40 === English 41 32 === English === 42 33 Yes indeed, Trac supports English. Fully. 43 34 44 === Français 35 === Français === 36 Il est possible d'écrire en Français : à, ç, û, ... 45 37 46 Il est possible d'écrire en Français : à, ç, û. 38 === German === 39 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß 47 40 48 === German 49 50 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß. 51 52 === Greek 53 41 === Greek === 54 42 Τα Ελληνικά υποστηρίζονται επαρκώς επίσης. 55 43 56 === Hebrew 57 44 === Hebrew === 58 45 אני יכול לאכול זכוכית וזה לא מזיק לי 59 46 60 === Hindi 61 47 === Hindi === 62 48 अब हिन्दी में। 63 49 64 === Hungarian 50 === Hungarian === 51 Árvíztűrő tükörfúrógép 65 52 66 Árvíztűrő tükörfúrógép. 67 68 === Icelandic 69 53 === Icelandic === 70 54 Ævar sagði við ömmu sína: Sjáðu hvað ég er stór! 71 55 72 === Japanese 73 56 === Japanese === 74 57 漢字 ひらがな カタカナ ハンカクカナ 日本語試験 75 58 76 === Korean 59 === Korean === 60 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글 77 61 78 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글. 79 80 === Latvian 62 === Latvian === 81 63 82 64 Latviešu valoda arī strādā! 83 65 84 === Lithuanian 66 === Lithuanian === 67 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia :) 68 Kas tie mes? 85 69 86 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia. Kas tie mes? 87 88 === Persian (Farsi) 89 70 === Persian (Farsi) === 90 71 این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید. 91 72 {{{ … … 99 80 }}} 100 81 101 === Polish 82 === Polish === 83 Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka. 102 84 103 Pchnąć w tę łódź jeża lub osiem skrzyń fig. Nocna gżegżółka zawsze dzienną przekuka. 104 105 === Portuguese 106 85 === Portuguese === 107 86 É possível guardar caracteres especias da língua portuguesa, incluindo o símbolo da moeda européia '€', trema 'ü', crase 'à', agudos 'áéíóú', circunflexos 'âêô', til 'ãõ', cedilha 'ç', ordinais 'ªº', grau '°¹²³'. 108 87 109 === Russian 88 === Russian === 89 Проверка русского языка: кажется работает... И буква "ё" есть... 110 90 111 Проверка русского языка: кажется работает. И буква "ё" есть. 112 113 === Serbian 114 91 === Serbian === 115 92 Podržan, uprkos činjenici da se za njegovo pisanje koriste чак два алфабета. 116 93 117 === Slovenian 118 94 === Slovenian === 119 95 Ta suhi škafec pušča vodo že od nekdaj! 120 96 121 === Spanish 97 === Spanish === 98 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi 122 99 123 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardillo y kiwi. 124 125 === Swedish 126 100 === Swedish === 127 101 Räven raskar över isen med luva på. 128 102 129 === Thai 130 103 === Thai === 131 104 Trac แสดงภาษาไทยได้อย่างถูกต้อง! 132 105 133 === Ukrainian 106 === Ukrainian === 107 Перевірка української мови... 134 108 135 Перевірка української мови. 136 137 === Urdu 138 109 === Urdu === 139 110 ٹریک اردو بھی سپورٹ کرتا ہے۔ 140 111 141 === Vietnamese 142 112 === Vietnamese === 143 113 Viết tiếng Việt cũng được.