Ada | a425353 | 2022-02-19 12:06:09 +0000 | [diff] [blame] | 1 | # Author: Ada (Haowen) Yu <me@yuhaowen.com> |
| 2 | |
| 3 | all: \ |
| 4 | menu_chinese_gb.936.vim \ |
| 5 | menu_uk_ua.cp1251.vim \ |
| 6 | menu_uk_ua.koi8-u.vim \ |
| 7 | menu_chinese_taiwan.950.vim \ |
| 8 | menu_cs_cz.iso_8859-2.vim \ |
| 9 | menu_czech_czech_republic.1250.vim \ |
| 10 | menu_ja_jp.euc-jp.vim \ |
| 11 | menu_japanese_japan.932.vim \ |
| 12 | menu_ko_kr.euckr.vim \ |
| 13 | menu_pl_pl.iso_8859-2.vim \ |
| 14 | menu_polish_poland.1250.vim \ |
| 15 | menu_ru_ru.koi8-r.vim \ |
| 16 | menu_sl_si.cp1250.vim \ |
| 17 | menu_sl_si.latin2.vim \ |
| 18 | menu_slovak_slovak_republic.1250.vim \ |
| 19 | menu_tr_tr.cp1254.vim \ |
| 20 | menu_tr_tr.iso_8859-9.vim \ |
| 21 | menu_sr_rs.iso_8859-5.vim \ |
| 22 | menu_sr_rs.iso_8859-2.vim \ |
| 23 | menu_sr_rs.ascii.vim \ |
| 24 | menu_czech_czech_republic.ascii.vim \ |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 25 | menu_hu_hu.iso_8859-2.vim \ |
| 26 | menu_sk_sk.iso_8859-2.vim \ |
| 27 | |
Ada | a425353 | 2022-02-19 12:06:09 +0000 | [diff] [blame] | 28 | |
| 29 | # Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim. |
| 30 | menu_chinese_gb.936.vim: menu_zh_cn.utf-8.vim |
| 31 | rm -f menu_chinese_gb.936.vim |
| 32 | iconv -f utf-8 -t cp936 menu_zh_cn.utf-8.vim | \ |
| 33 | sed -e 's/scriptencoding utf-8/scriptencoding cp936/' -e 's/" Original translations/" Generated from menu_zh_cn.utf-8.vim, DO NOT EDIT/' > menu_chinese_gb.936.vim |
| 34 | |
| 35 | # Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim. |
| 36 | menu_chinese_taiwan.950.vim: menu_zh_tw.utf-8.vim |
| 37 | rm -f menu_chinese_taiwan.950.vim |
| 38 | iconv -f utf-8 -t cp950 menu_zh_tw.utf-8.vim | \ |
| 39 | sed -e 's/scriptencoding utf-8/scriptencoding cp950/' -e 's/" Original translations/" Generated from menu_zh_tw.utf-8.vim, DO NOT EDIT/' > menu_chinese_taiwan.950.vim |
| 40 | |
| 41 | # Convert menu_cs_cz.utf-8.vim to create menu_cs_cz.iso_8859-2.vim. |
| 42 | menu_cs_cz.iso_8859-2.vim: menu_cs_cz.utf-8.vim |
| 43 | rm -f menu_cs_cz.iso_8859-2.vim |
| 44 | iconv -f utf-8 -t iso8859-2 menu_cs_cz.utf-8.vim | \ |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 45 | sed -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ |
Ada | a425353 | 2022-02-19 12:06:09 +0000 | [diff] [blame] | 46 | -e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \ |
| 47 | -e 's/\(" Menu Translations:.*\)(.*)/\1(ISO8859-2)/' \ |
| 48 | > menu_cs_cz.iso_8859-2.vim |
| 49 | |
| 50 | # Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.1250.vim. |
| 51 | menu_czech_czech_republic.1250.vim: menu_cs_cz.utf-8.vim |
| 52 | rm -f menu_czech_czech_republic.1250.vim |
| 53 | iconv -f utf-8 -t cp1250 menu_cs_cz.utf-8.vim | \ |
| 54 | sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ |
| 55 | -e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \ |
| 56 | -e 's/\(" Menu Translations:.*\)(.*)/\1(CP1250)/' \ |
| 57 | > menu_czech_czech_republic.1250.vim |
| 58 | |
| 59 | # Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.ascii.vim. |
| 60 | menu_czech_czech_republic.ascii.vim: menu_cs_cz.utf-8.vim |
| 61 | rm -f menu_czech_czech_republic.ascii.vim |
| 62 | sed -e 's/Á/A/g' -e 's/á/a/g' -e 's/Č/C/g' -e 's/č/c/g' -e 's/Ď/D/g' \ |
| 63 | -e 's/ď/d/g' -e 's/É/E/g' -e 's/é/e/g' -e 's/Ě/E/g' -e 's/ě/e/g' \ |
| 64 | -e 's/Í/I/g' -e 's/í/i/g' -e 's/Ň/N/g' -e 's/ň/n/g' -e 's/Ó/O/g' \ |
| 65 | -e 's/ó/o/g' -e 's/Ř/R/g' -e 's/ř/r/g' -e 's/Š/S/g' -e 's/š/s/g' \ |
| 66 | -e 's/Ť/T/g' -e 's/ť/t/g' -e 's/Ú/U/g' -e 's/ú/u/g' -e 's/Ů/U/g' \ |
| 67 | -e 's/ů/u/g' -e 's/Ý/Y/g' -e 's/ý/y/g' -e 's/Ž/Z/g' -e 's/ž/z/g' \ |
| 68 | -e 's/scriptencoding utf-8/scriptencoding latin1/' \ |
| 69 | -e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \ |
| 70 | -e 's/\(" Menu Translations:.*\)(.*)/\1(ASCII - without diacritics)/' \ |
| 71 | menu_cs_cz.utf-8.vim > menu_czech_czech_republic.ascii.vim |
| 72 | |
| 73 | # Convert menu_ja_jp.utf-8.vim to create menu_ja_jp.euc-jp.vim. |
| 74 | menu_ja_jp.euc-jp.vim: menu_ja_jp.utf-8.vim |
| 75 | rm -f menu_ja_jp.euc-jp.vim |
| 76 | iconv -f utf-8 -t euc-jp menu_ja_jp.utf-8.vim | \ |
| 77 | sed -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \ |
| 78 | -e 's/" Original translations/" Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT/' \ |
| 79 | -e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \ |
| 80 | > menu_ja_jp.euc-jp.vim |
| 81 | |
| 82 | # Convert menu_ja_jp.utf-8.vim to create menu_japanese_japan.932.vim. |
| 83 | menu_japanese_japan.932.vim: menu_ja_jp.utf-8.vim |
| 84 | rm -f menu_japanese_japan.932.vim |
| 85 | iconv -f utf-8 -t cp932 menu_ja_jp.utf-8.vim | \ |
| 86 | sed -e 's/scriptencoding utf-8/scriptencoding cp932/' \ |
| 87 | -e 's/" Original translations/" Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT/' \ |
| 88 | -e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \ |
| 89 | > menu_japanese_japan.932.vim |
| 90 | |
| 91 | # Convert menu_ko_kr.utf-8.vim to create menu_ko_kr.euckr.vim. |
| 92 | menu_ko_kr.euckr.vim: menu_ko_kr.utf-8.vim |
| 93 | rm -f menu_ko_kr.euckr.vim |
| 94 | iconv -f utf-8 -t euc-kr menu_ko_kr.utf-8.vim | \ |
| 95 | sed -e 's/scriptencoding utf-8/scriptencoding euc-kr/' -e 's/" Original translations/" Generated from menu_ko_kr.utf-8.vim, DO NOT EDIT/' > menu_ko_kr.euckr.vim |
| 96 | |
| 97 | # Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim. |
| 98 | menu_pl_pl.iso_8859-2.vim: menu_pl_pl.utf-8.vim |
| 99 | rm -f menu_pl_pl.iso_8859-2.vim |
| 100 | iconv -f utf-8 -t iso8859-2 menu_pl_pl.utf-8.vim | \ |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 101 | sed -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' > menu_pl_pl.iso_8859-2.vim |
Ada | a425353 | 2022-02-19 12:06:09 +0000 | [diff] [blame] | 102 | |
| 103 | # Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim. |
| 104 | menu_polish_poland.1250.vim: menu_pl_pl.utf-8.vim |
| 105 | rm -f menu_polish_poland.1250.vim |
| 106 | iconv -f utf-8 -t cp1250 menu_pl_pl.utf-8.vim | \ |
| 107 | sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' > menu_polish_poland.1250.vim |
| 108 | |
| 109 | # Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim. |
| 110 | menu_ru_ru.koi8-r.vim: menu_ru_ru.utf-8.vim |
| 111 | rm -f menu_ru_ru.koi8-r.vim |
| 112 | iconv -f utf-8 -t koi8-r menu_ru_ru.utf-8.vim | \ |
| 113 | sed -e 's/scriptencoding utf-8/scriptencoding koi8-r/' -e 's/" Original translations/" Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT/' > menu_ru_ru.koi8-r.vim |
| 114 | |
| 115 | # Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim. |
| 116 | menu_sl_si.cp1250.vim: menu_sl_si.utf-8.vim |
| 117 | rm -f menu_sl_si.cp1250.vim |
| 118 | iconv -f utf-8 -t cp1250 menu_sl_si.utf-8.vim | \ |
| 119 | sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ |
| 120 | -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_sl_si.cp1250.vim |
| 121 | |
| 122 | # Convert menu_uk_ua.utf-8.vim to create menu_sl_si.latin2.vim. |
| 123 | menu_sl_si.latin2.vim: menu_sl_si.utf-8.vim |
| 124 | rm -f menu_sl_si.latin2.vim |
| 125 | iconv -f utf-8 -t latin2 menu_sl_si.utf-8.vim | \ |
| 126 | sed -e 's/scriptencoding utf-8/scriptencoding latin2/' -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_sl_si.latin2.vim |
| 127 | |
| 128 | # Convert menu_uk_ua.utf-8.vim to create menu_slovak_slovak_republic.1250.vim. |
| 129 | menu_slovak_slovak_republic.1250.vim: menu_sl_si.utf-8.vim |
| 130 | rm -f menu_slovak_slovak_republic.1250.vim |
| 131 | iconv -f utf-8 -t cp1250 menu_sl_si.utf-8.vim | \ |
| 132 | sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_slovak_slovak_republic.1250.vim |
| 133 | |
| 134 | # Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim. |
| 135 | menu_tr_tr.cp1254.vim: menu_tr_tr.utf-8.vim |
| 136 | rm -f menu_tr_tr.cp1254.vim |
| 137 | iconv -f utf-8 -t cp1254 menu_tr_tr.utf-8.vim | \ |
| 138 | sed -e 's/scriptencoding utf-8/scriptencoding cp1254/' -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' > menu_tr_tr.cp1254.vim |
| 139 | |
| 140 | # Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim. |
| 141 | menu_tr_tr.iso_8859-9.vim: menu_tr_tr.utf-8.vim |
| 142 | rm -f menu_tr_tr.iso_8859-9.vim |
| 143 | iconv -f utf-8 -t iso8859-9 menu_tr_tr.utf-8.vim | \ |
| 144 | sed -e 's/scriptencoding utf-8/scriptencoding iso8859-9/' -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' > menu_tr_tr.iso_8859-9.vim |
| 145 | |
| 146 | # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim. |
| 147 | menu_sr_rs.iso_8859-5.vim: menu_sr_rs.utf-8.vim |
| 148 | rm -f menu_sr_rs.iso_8859-5.vim |
| 149 | iconv -f utf-8 -t iso8859-5 menu_sr_rs.utf-8.vim | \ |
| 150 | sed -e 's/scriptencoding utf-8/scriptencoding iso8859-5/' -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' > menu_sr_rs.iso_8859-5.vim |
| 151 | |
| 152 | # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-2.vim. |
| 153 | menu_sr_rs.iso_8859-2.vim: menu_sr_rs.utf-8.vim |
| 154 | rm -f menu_sr_rs.iso_8859-2.vim |
| 155 | sed -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \ |
| 156 | -e 's/ђ/đ/g' -e 's/е/e/g' -e 's/ж/ž/g' -e 's/з/z/g' -e 's/и/i/g' \ |
| 157 | -e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \ |
| 158 | -e 's/н/n/g' -e 's/њ/nj/g' -e 's/о/o/g' -e 's/п/p/g' -e 's/р/r/g' \ |
| 159 | -e 's/с/s/g' -e 's/т/t/g' -e 's/ћ/ć/g' -e 's/у/u/g' -e 's/ф/f/g' \ |
| 160 | -e 's/х/h/g' -e 's/ц/c/g' -e 's/ч/č/g' -e 's/џ/dž/g' -e 's/ш/š/g' \ |
| 161 | -e 's/А/A/g' -e 's/Б/B/g' -e 's/В/V/g' -e 's/Г/G/g' -e 's/Д/D/g' \ |
| 162 | -e 's/Ђ/Đ/g' -e 's/Е/E/g' -e 's/Ж/Ž/g' -e 's/З/Z/g' -e 's/И/I/g' \ |
| 163 | -e 's/Ј/J/g' -e 's/К/K/g' -e 's/Л/L/g' -e 's/Љ/Lj/g' -e 's/М/M/g' \ |
| 164 | -e 's/Н/N/g' -e 's/Њ/Nj/g' -e 's/О/O/g' -e 's/П/P/g' -e 's/Р/R/g' \ |
| 165 | -e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/Ć/g' -e 's/У/U/g' -e 's/Ф/F/g' \ |
| 166 | -e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/Č/g' -e 's/Џ/Dž/g' -e 's/Ш/Š/g' \ |
| 167 | -e 's/scriptencoding utf-8/scriptencoding iso8859-2/' -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' \ |
| 168 | menu_sr_rs.utf-8.vim | iconv -f utf-8 -t iso8859-2 \ |
| 169 | > menu_sr_rs.iso_8859-2.vim |
| 170 | |
| 171 | # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim. |
| 172 | menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.vim |
| 173 | rm -f menu_sr_rs.ascii.vim |
| 174 | sed -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \ |
| 175 | -e 's/ђ/dj/g' -e 's/е/e/g' -e 's/ж/z/g' -e 's/з/z/g' -e 's/и/i/g' \ |
| 176 | -e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \ |
| 177 | -e 's/н/n/g' -e 's/њ/nj/g' -e 's/о/o/g' -e 's/п/p/g' -e 's/р/r/g' \ |
| 178 | -e 's/с/s/g' -e 's/т/t/g' -e 's/ћ/c/g' -e 's/у/u/g' -e 's/ф/f/g' \ |
| 179 | -e 's/х/h/g' -e 's/ц/c/g' -e 's/ч/c/g' -e 's/џ/dz/g' -e 's/ш/s/g' \ |
| 180 | -e 's/А/A/g' -e 's/Б/B/g' -e 's/В/V/g' -e 's/Г/G/g' -e 's/Д/D/g' \ |
| 181 | -e 's/Ђ/Đ/g' -e 's/Е/E/g' -e 's/Ж/Z/g' -e 's/З/Z/g' -e 's/И/I/g' \ |
| 182 | -e 's/Ј/J/g' -e 's/К/K/g' -e 's/Л/L/g' -e 's/Љ/Lj/g' -e 's/М/M/g' \ |
| 183 | -e 's/Н/N/g' -e 's/Њ/Nj/g' -e 's/О/O/g' -e 's/П/P/g' -e 's/Р/R/g' \ |
| 184 | -e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/C/g' -e 's/У/U/g' -e 's/Ф/F/g' \ |
| 185 | -e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/C/g' -e 's/Џ/Dz/g' -e 's/Ш/S/g' \ |
| 186 | -e 's/scriptencoding utf-8/scriptencoding latin1/' -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' \ |
| 187 | menu_sr_rs.utf-8.vim > menu_sr_rs.ascii.vim |
| 188 | |
| 189 | # Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.cp1251.vim. |
| 190 | menu_uk_ua.cp1251.vim: menu_uk_ua.utf-8.vim |
| 191 | rm -f menu_uk_ua.cp1251.vim |
| 192 | iconv -f utf-8 -t cp1251 menu_uk_ua.utf-8.vim | \ |
| 193 | sed -e 's/scriptencoding utf-8/scriptencoding cp1251/' -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' > menu_uk_ua.cp1251.vim |
| 194 | |
| 195 | # Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim. |
| 196 | menu_uk_ua.koi8-u.vim: menu_uk_ua.utf-8.vim |
| 197 | rm -f menu_uk_ua.koi8-u.vim |
| 198 | iconv -f utf-8 -t koi8-u menu_uk_ua.utf-8.vim | \ |
| 199 | sed -e 's/scriptencoding utf-8/scriptencoding koi8-u/' -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' > menu_uk_ua.koi8-u.vim |
Bram Moolenaar | 2ecbe53 | 2022-07-29 21:36:21 +0100 | [diff] [blame] | 200 | |
| 201 | # Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim. |
| 202 | menu_hu_hu.iso_8859-2.vim: menu_hu_hu.utf-8.vim |
| 203 | rm -f menu_hu_hu.iso_8859-2.vim |
| 204 | iconv -f utf-8 -t iso8859-2 menu_hu_hu.utf-8.vim | \ |
| 205 | sed -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_hu_hu.utf-8.vim, DO NOT EDIT/' > menu_hu_hu.iso_8859-2.vim |
| 206 | |
| 207 | # Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim. |
| 208 | menu_sk_sk.iso_8859-2.vim: menu_slovak_slovak_republic.1250.vim |
| 209 | rm -f menu_sk_sk.iso_8859-2.vim |
| 210 | iconv -f cp1250 -t iso8859-2 menu_slovak_slovak_republic.1250.vim | \ |
| 211 | sed -e 's/scriptencoding cp1250/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_slovak_slovak_republic.1250.vim, DO NOT EDIT/' > menu_sk_sk.iso_8859-2.vim |