[Solved] How to embed Khmer Unicode font into Joomla
-
- Joomla! Fledgling
- Posts: 3
- Joined: Mon Mar 15, 2010 2:45 am
- Location: Phnom Penh, Cambodia.
- Contact:
[Solved] How to embed Khmer Unicode font into Joomla
តើត្រូវធ្វើដូម្តេច ដើម្បីឲ្យខ្មែរ Unicode មានតំណើរការនៅលើ Browser [IE, FF, Opera, Chrome,... ] ដោយមិនបាច់តំឡើងFontក្នុងម៉ាស៊ីន? សូមខ្មែរForum ជួយបង្ហាញផង។
Last edited by hengsovann on Fri Jun 18, 2010 11:07 am, edited 2 times in total.
Reason: Changed to the right topic from "បញ្ហាខ្មែរ Unicode សំរាប់ Browser..."
Reason: Changed to the right topic from "បញ្ហាខ្មែរ Unicode សំរាប់ Browser..."
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: បញ្ហាខ្មែរ Unicode សំរាប់ Browser...
វិធីសាស្ត្របង្កប់ខ្មែរយូនីកូដក្នុងជូម្ល៉ាដោយសង្ខេប៖
ខាងក្រោមនេះខ្ញុំនឹងបង្កប់ពុម្ពអក្សរខ្មែរយូនីកូដឈ្មោះ Kh Battambang និង Kh Metal Chrieng ចូលក្នុងជូម្ល៉ា ដើម្បីអោយអ្នកទស្សនាដែលកុំព្យូទ័ររបស់ពួកគាត់ទោះជាគ្មានពុម្ពអក្សរខ្មែរយូនីកូដក៏អាចមើលអក្សរខ្មែរលើតំបន់បណ្ដាញ ឬគេហទំព័ររបស់យើងបានដែរ។
១. បង្កើតឯកសារ CSS ឈ្មោះ fonts.css មានមាតិកាដូចខាងក្រោម៖
រក្សាឯកសារនេះទុកក្នុង៖ ថតជូម្ល៉ាអ្នក\templates\template_name\css
template_name ជាឈ្មោះពុម្ពជូម្ល៉ារបស់អ្នក។ ឧទាហរណ៍៖ rhuk_milkyway, ja_purity,beez ដែលជាឈ្មោះពុម្ពឥតគិតថ្លៃភ្ជាប់មកជាមួយជូម្ល៉ាស្រាប់ពេលអ្នកបានដំឡើង។
ឧទាហរណ៍ បើ "km-kh" ជាឈ្មោះនៃពុម្ពរបស់ខ្ញុំ យើងបាន "ថតជូម្ល៉ាអ្នក\templates\km-kh\css\fonts.css"
២. ផ្ទុកពុម្ពអក្សរឡើងទៅចូលក្នុងថត "ថតជូម្ល៉ាអ្នក\templates\km-kh\css\"
ក) kh-metal-chrieng.ttf kh-battambang.ttf (សម្រាប់ Firefox )
អាចរកបាននៅ លើបណ្ដាញ ប៉ុន្តែ កុំច្រឡំជាមួយ Khmer OS Battambang ឬ Khmer OS Metal Chrieng ឲ្យសោះ។
ខ) kh-metal-chrieng.eot kh-battambang.eot (សម្រាប់ Internet Explorer)
.eot បង្កើតឡើងដោយប្រើWEFT 3.2 វិធីប្រើសូមអាន
៣. បន្ថែមកូដខាងក្រោម
ក្នុងចន្លោះ <head></head> ទៅក្នុង index.php នៃថតពុម្ពរបស់អ្នក។
នោះខ្ញុំត្រូវបញ្ចូលកូដខាងលើទៅក្នុង "ថតជូម្ល៉ាអ្នក\templates\km-kh\index.php"។
៤. កែបណ្ដាកូដ css ទាំងឡាយរបស់ពុម្ពជូម៉្លាអ្នក ដែលប្រើ font-family ឲ្យប្រើគ្រួសារពុម្ពអក្សរ Kh យូនីកូដខាងលើ
ឧទាហរណ៍ ក្នុង "ថតជូម្ល៉ាអ្នក\templates\km-kh\css\template.css"
កែទៅជា
ជូនពរអ្នករីករាយក្នុងការបង្កប់ពុម្ពអក្សរយូនីកូដខ្មែរក្នុងជូម្ល៉ា!
------------------
This topic sounds like "How to embed Khmer Unicode in Joomla"
Let me give you a brief answer as follow:
Below we are going to embed "Kh Battambang" and "Kh Metal Chrieng" fonts into Joomla site, so that your site visitors are able to see read your Khmer Joomla site without having any Khmer Unicode font on their computer.
1. Create a CSS file name it as fonts.css and input the following code:
This "fonts.css" stored at "your_joomla_root\templates\template_name\css".
template_name is the name of your Joomla template. eg. rhuk_milkyway, ja_purity,beez are free joom templates when you first install Joomla.
Here, example "km-kh" is the name of our default template then we get "your_joomla_root\templates\km-kh\css".
2. Upload the two fonts into "your_joomla_root\templates\km-kh\css" folder.
a) kh-metal-chrieng.ttf and kh-battambang.ttf (for Firefox, Chrome ... )
Available to download from Website But please do not confuse with Khmer OS Battambang or Khmer OS Metal Chrieng at all.
b) kh-metal-chrieng.eot and kh-battambang.eot (Only for Internet Explorer)
.eot files were created by using WEFT 3.2 How to use Please Read
3. Add the following codes:
between <head></head> into index.php of your Joomla template.
mean add the above code into "your_joomla_root\templates\km-kh\index.php"។
4. Modify all of your CSS files of your template which used font-family to use Kh Unicode fonts mentioned above.
eg. in "your_joomla_root\templates\km-kh\css\template.css"
Change to:
Wish you all success embedding Khmer Unicode fonts into Joomla!
ខាងក្រោមនេះខ្ញុំនឹងបង្កប់ពុម្ពអក្សរខ្មែរយូនីកូដឈ្មោះ Kh Battambang និង Kh Metal Chrieng ចូលក្នុងជូម្ល៉ា ដើម្បីអោយអ្នកទស្សនាដែលកុំព្យូទ័ររបស់ពួកគាត់ទោះជាគ្មានពុម្ពអក្សរខ្មែរយូនីកូដក៏អាចមើលអក្សរខ្មែរលើតំបន់បណ្ដាញ ឬគេហទំព័ររបស់យើងបានដែរ។
១. បង្កើតឯកសារ CSS ឈ្មោះ fonts.css មានមាតិកាដូចខាងក្រោម៖
Code: Select all
/*For Internet Explorer*/
@font-face {
font-family: Kh Metal Chrieng;
font-style: normal;
font-weight: normal;
src: url(kh-metal-chrieng.eot);
}
@font-face {
font-family: Kh Battambang;
font-style: normal;
font-weight: normal;
src: url(kh-battambang.eot);
}
/*For Firefox*/
@font-face {
font-family: Kh Metal Chrieng;
font-style: normal;
font-weight: normal;
src: url(kh-metal-chrieng.ttf);
}
@font-face {
font-family: Kh Battambang;
font-style: normal;
font-weight: normal;
src: url(kh-battambang.ttf);
}
template_name ជាឈ្មោះពុម្ពជូម្ល៉ារបស់អ្នក។ ឧទាហរណ៍៖ rhuk_milkyway, ja_purity,beez ដែលជាឈ្មោះពុម្ពឥតគិតថ្លៃភ្ជាប់មកជាមួយជូម្ល៉ាស្រាប់ពេលអ្នកបានដំឡើង។
ឧទាហរណ៍ បើ "km-kh" ជាឈ្មោះនៃពុម្ពរបស់ខ្ញុំ យើងបាន "ថតជូម្ល៉ាអ្នក\templates\km-kh\css\fonts.css"
២. ផ្ទុកពុម្ពអក្សរឡើងទៅចូលក្នុងថត "ថតជូម្ល៉ាអ្នក\templates\km-kh\css\"
ក) kh-metal-chrieng.ttf kh-battambang.ttf (សម្រាប់ Firefox )
អាចរកបាននៅ លើបណ្ដាញ ប៉ុន្តែ កុំច្រឡំជាមួយ Khmer OS Battambang ឬ Khmer OS Metal Chrieng ឲ្យសោះ។
ខ) kh-metal-chrieng.eot kh-battambang.eot (សម្រាប់ Internet Explorer)
.eot បង្កើតឡើងដោយប្រើWEFT 3.2 វិធីប្រើសូមអាន
៣. បន្ថែមកូដខាងក្រោម
Code: Select all
<link href="<?php echo $template_path; ?>/css/fonts.css" rel="stylesheet" type="text/css" media="screen" />
នោះខ្ញុំត្រូវបញ្ចូលកូដខាងលើទៅក្នុង "ថតជូម្ល៉ាអ្នក\templates\km-kh\index.php"។
៤. កែបណ្ដាកូដ css ទាំងឡាយរបស់ពុម្ពជូម៉្លាអ្នក ដែលប្រើ font-family ឲ្យប្រើគ្រួសារពុម្ពអក្សរ Kh យូនីកូដខាងលើ
ឧទាហរណ៍ ក្នុង "ថតជូម្ល៉ាអ្នក\templates\km-kh\css\template.css"
Code: Select all
#jsn-master {
font-family: Arial, Helvetica, sans-serif;
font-size: 75%;
line-height: 1.5;
background: #172534 url(../images/master-bg.jpg) repeat-x top left;
}
កែទៅជា
Code: Select all
@import url("fonts.css");
#jsn-master {
font-family: "Kh Battambang", Arial, Helvetica, sans-serif, "Khmer OS System";
font-size: 75%;
line-height: 1.5;
background: #172534 url(../images/master-bg.jpg) repeat-x top left;
}
------------------
This topic sounds like "How to embed Khmer Unicode in Joomla"
Let me give you a brief answer as follow:
Below we are going to embed "Kh Battambang" and "Kh Metal Chrieng" fonts into Joomla site, so that your site visitors are able to see read your Khmer Joomla site without having any Khmer Unicode font on their computer.
1. Create a CSS file name it as fonts.css and input the following code:
Code: Select all
/*For Internet Explorer*/
@font-face {
font-family: Kh Metal Chrieng;
font-style: normal;
font-weight: normal;
src: url(kh-metal-chrieng.eot);
}
@font-face {
font-family: Kh Battambang;
font-style: normal;
font-weight: normal;
src: url(kh-battambang.eot);
}
/*For Firefox*/
@font-face {
font-family: Kh Metal Chrieng;
font-style: normal;
font-weight: normal;
src: url(kh-metal-chrieng.ttf);
}
@font-face {
font-family: Kh Battambang;
font-style: normal;
font-weight: normal;
src: url(kh-battambang.ttf);
}
template_name is the name of your Joomla template. eg. rhuk_milkyway, ja_purity,beez are free joom templates when you first install Joomla.
Here, example "km-kh" is the name of our default template then we get "your_joomla_root\templates\km-kh\css".
2. Upload the two fonts into "your_joomla_root\templates\km-kh\css" folder.
a) kh-metal-chrieng.ttf and kh-battambang.ttf (for Firefox, Chrome ... )
Available to download from Website But please do not confuse with Khmer OS Battambang or Khmer OS Metal Chrieng at all.
b) kh-metal-chrieng.eot and kh-battambang.eot (Only for Internet Explorer)
.eot files were created by using WEFT 3.2 How to use Please Read
3. Add the following codes:
Code: Select all
<link href="<?php echo $template_path; ?>/css/fonts.css" rel="stylesheet" type="text/css" media="screen" />
mean add the above code into "your_joomla_root\templates\km-kh\index.php"។
4. Modify all of your CSS files of your template which used font-family to use Kh Unicode fonts mentioned above.
eg. in "your_joomla_root\templates\km-kh\css\template.css"
Code: Select all
#jsn-master {
font-family: Arial, Helvetica, sans-serif;
font-size: 75%;
line-height: 1.5;
background: #172534 url(../images/master-bg.jpg) repeat-x top left;
}
Change to:
Code: Select all
@import url("fonts.css");
#jsn-master {
font-family: "Kh Battambang", Arial, Helvetica, sans-serif, "Khmer OS System";
font-size: 75%;
line-height: 1.5;
background: #172534 url(../images/master-bg.jpg) repeat-x top left;
}
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
- voreakheng
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Nov 12, 2009 2:18 am
- Location: Beijing China
បង្កប់យូនីកូដខ្មែរចូលក្នុង Joomla
សង្ខេបពិតជាលម្អិតមែន!
វិធីសាស្រ្ដនេះនឹងជួយអោយអក្សរខ្មែរយើងកាន់តែបង្ហាញខ្លួនបានកាន់តែច្រើនកន្លែង ជាមួយនឹង Joomla!
តើវិធីនេះអាចប្រើបានទាំង Window និង MAC ឬ?
សូមអរគុណដែលបងចំណាយពេលឆ្លើយនឹងសំណួរនេះដោយឥតគិតថ្លៃ
មួយទៀតបើម្ចាស់សំណួរ ឬអ្នកសម្របសំរួលវេទិកា បង សុវណ្ណអាចប្ដូរប្រធានបទនេះទៅជា
"បង្កប់យូនីកូដខ្មែរចូលក្នុង Joomla" ឬ "How to embed Khmer Unicode into Joomla"
ដើម្បីជាប្រយោជន៍អ្នកទាំងអស់ងាយស្រួលយល់ថាប្រធានបទនេះនិយាយអំពីអ្វីបានទេ?
វិធីសាស្រ្ដនេះនឹងជួយអោយអក្សរខ្មែរយើងកាន់តែបង្ហាញខ្លួនបានកាន់តែច្រើនកន្លែង ជាមួយនឹង Joomla!
តើវិធីនេះអាចប្រើបានទាំង Window និង MAC ឬ?
សូមអរគុណដែលបងចំណាយពេលឆ្លើយនឹងសំណួរនេះដោយឥតគិតថ្លៃ
មួយទៀតបើម្ចាស់សំណួរ ឬអ្នកសម្របសំរួលវេទិកា បង សុវណ្ណអាចប្ដូរប្រធានបទនេះទៅជា
"បង្កប់យូនីកូដខ្មែរចូលក្នុង Joomla" ឬ "How to embed Khmer Unicode into Joomla"
ដើម្បីជាប្រយោជន៍អ្នកទាំងអស់ងាយស្រួលយល់ថាប្រធានបទនេះនិយាយអំពីអ្វីបានទេ?
ហេង វរៈ (Voreak Heng)
និយាយងាយជាងធ្វើ។ Easier said than done. 说来容易,做起来难。
និយាយងាយជាងធ្វើ។ Easier said than done. 说来容易,做起来难。
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: បញ្ហាខ្មែរ Unicode សំរាប់ Browser...
តាមខ្ញុំដឹងលោក ដាញ់ ហុង កំពុងអភិវឌ្ឍន៍ពុម្ពអក្សរខ្មែរយូនីកូដដែលអាចប្រើលើ Window និង MAC ។
បច្ចុប្បន្នឃើញមានតែពុម្ពអក្សរយូនីកូដគ្រួសារ Kh ដែលអាចប្រើបង្កប់បានតែលើ វីនដូ ប៉ុណ្ណោះ ។
បច្ចុប្បន្នឃើញមានតែពុម្ពអក្សរយូនីកូដគ្រួសារ Kh ដែលអាចប្រើបង្កប់បានតែលើ វីនដូ ប៉ុណ្ណោះ ។
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Fledgling
- Posts: 3
- Joined: Mon Mar 15, 2010 2:45 am
- Location: Phnom Penh, Cambodia.
- Contact:
Re: បញ្ហាខ្មែរ Unicode សំរាប់ Browser...
សូមអរគុណចំពោះការឆ្លើយតបរបស់លោក!
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: បញ្ហាខ្មែរ Unicode សំរាប់ Browser...
រីករាយបើដឹងថាបញ្ហាលោកត្រូវបានដោះស្រាយ!
តើលោក ឆើតអាចជួយកែសម្រួលប្រធានបទដើមរបស់លោក នឹងប្រើសញ្ញាជម្រើសព័ទ្ធដោយរង្វង់មូលពណ៌បៃតងបានទេ?
ដើម្បីជាសម្គាល់ថាប្រធានបទនេះត្រូវបានដោះស្រាយរួច ។
សូមអរគុណ!
តើលោក ឆើតអាចជួយកែសម្រួលប្រធានបទដើមរបស់លោក នឹងប្រើសញ្ញាជម្រើសព័ទ្ធដោយរង្វង់មូលពណ៌បៃតងបានទេ?
ដើម្បីជាសម្គាល់ថាប្រធានបទនេះត្រូវបានដោះស្រាយរួច ។
សូមអរគុណ!
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Apr 26, 2010 7:54 am
Re: How to embed Khmer Unicode font into Joomla
ពូកែរមែនៗ កំពុងតែរកអុស ក៏មកប្រទះចង្ក្រានហ្គាសនៅទីនេះ!
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: How to embed Khmer Unicode font into Joomla
បើបងប្អូនយើងបានសាកល្បងបង្កប់ពុម្ពអក្សរខ្មែរយូនីកូដចូលក្នុងតំបន់បណ្ដាញខ្លួនបានជោគជ័យហើយ សូមកុំភ្លេចដាក់ប្រកាសអាសយដ្ឋានតំបន់បណ្ដាញខ្លួននៅទីនេះដើម្បីជាព័ត៌មាន ក៏ដូចជាការចែករំលែក!
បើទទួលបានការឆ្លើយតបច្រើនយើងអាចបង្កើតប្រធានបទថ្មីដើម្បីរក្សាបញ្ជីនែបណ្ដាតំបន់បណ្ដាញទាំងនោះ ។
បើទទួលបានការឆ្លើយតបច្រើនយើងអាចបង្កើតប្រធានបទថ្មីដើម្បីរក្សាបញ្ជីនែបណ្ដាតំបន់បណ្ដាញទាំងនោះ ។
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Apprentice
- Posts: 10
- Joined: Fri Oct 23, 2009 9:39 am
Re: How to embed Khmer Unicode font into Joomla
Hi Bong Sovann,
I have followed all you instruction, but still some computer without Khmer Unicode can not read Khmer font.
Here is what I have done:
1. Create a css file called KhmerUnicode.css with the following codes:
/*For Internet Explorer*/
@font-face {
font-family: Kh System;
font-style: normal;
font-weight: normal;
src: url(Kh-System.eot);
}
/*For Firefox*/
@font-face {
font-family: Kh System;
font-style: normal;
font-weight: normal;
src: url(Kh-System.ttf);
}
2. I copy this KhmerUnicode.css into \templates\ja_trona\css directory. ja_trona is my template.
3. I have uploaded Kh-System.ttf and Kh-System.eot to \templates\ja_trona\css directory.
4. I insert <link href="<?php echo $template_path; ?>/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" /> in between <head></head> of index.php in \templates\ja_trona\ as the following :
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link href="<?php echo $template_path; ?>/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" />
5. I edit the \templates\ja_trona\css\template.css as the following:
@import url("KhmerUnicode.css");
body {
background: #FFFFFF;
color: #000000;
font-family: "Kh System", Arial, Helvetica, sans-serif;
line-height: 1.8;
}
Insert "Kh Sytstem" in any font-family: in this css file.
I think I have done all the step as in your instruction. Do you have any idea? Or can you test it for me.
Thanks you in advance for your help.
Best Regards,
I have followed all you instruction, but still some computer without Khmer Unicode can not read Khmer font.
Here is what I have done:
1. Create a css file called KhmerUnicode.css with the following codes:
/*For Internet Explorer*/
@font-face {
font-family: Kh System;
font-style: normal;
font-weight: normal;
src: url(Kh-System.eot);
}
/*For Firefox*/
@font-face {
font-family: Kh System;
font-style: normal;
font-weight: normal;
src: url(Kh-System.ttf);
}
2. I copy this KhmerUnicode.css into \templates\ja_trona\css directory. ja_trona is my template.
3. I have uploaded Kh-System.ttf and Kh-System.eot to \templates\ja_trona\css directory.
4. I insert <link href="<?php echo $template_path; ?>/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" /> in between <head></head> of index.php in \templates\ja_trona\ as the following :
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link href="<?php echo $template_path; ?>/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" />
5. I edit the \templates\ja_trona\css\template.css as the following:
@import url("KhmerUnicode.css");
body {
background: #FFFFFF;
color: #000000;
font-family: "Kh System", Arial, Helvetica, sans-serif;
line-height: 1.8;
}
Insert "Kh Sytstem" in any font-family: in this css file.
I think I have done all the step as in your instruction. Do you have any idea? Or can you test it for me.
Thanks you in advance for your help.
Best Regards,
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: How to embed Khmer Unicode font into Joomla
While viewing your page source at : http://www.khmersarika.com/Sophorth wrote:
I have followed all you instruction, but still some computer without Khmer Unicode can not read Khmer font.
Here is what I have done:
.............................
4. I insert <link href="<?php echo $template_path; ?>/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" /> in between <head></head> of index.php in \templates\ja_trona\ as the following :
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link href="<?php echo $template_path; ?>/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" />
..................
Best Regards,
We found:
<link rel="stylesheet" href="http://www.khmersarika.com/templates/sy ... eneral.css" type="text/css" />
<link href="/css/KhmerUnicode.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="http://www.khmersarika.com/templates/ja ... mplate.css" type="text/css" />
Then please try to use:
Code: Select all
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/KhmerUnicode.css" type="text/css" />
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Apprentice
- Posts: 10
- Joined: Fri Oct 23, 2009 9:39 am
Re: How to embed Khmer Unicode font into Joomla
It's almost perfect now. It displays the articles correctly. But there are still a small problem for some module and button are not displayed correctly. Is there any other css files that I can modify the font-family to "Kh System"
Note: It does not work well with IE8 (Will need to enable compatibility view to see it correctly) and completely doesn't work with Chrome 5.0.375
Regards,
Note: It does not work well with IE8 (Will need to enable compatibility view to see it correctly) and completely doesn't work with Chrome 5.0.375
Regards,
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: How to embed Khmer Unicode font into Joomla
You are right, if those modules have their own css files which linked to our index.php template.Sophorth wrote:....
But there are still a small problem for some module and button are not displayed correctly. Is there any other css files that I can modify the font-family to "Kh System"
...
We have DIY them to use font-family of Kh...
To make some button or text fields are able to show Khmer Unicode:
Code: Select all
/*additional input font design*/
input,select {
font-family: "Kh Battambang", Arial, Helvetica, sans-serif, "Khmer OS";
}
by adding the above code into bottom of your template.css of template.
Note: Please make sure that you are using the latest version of Kh(mer) font-family unicode which is suitable for embedding (for Window/Mac/Mobile). How to get those fonts please contact Mr. Danh Hong.
សល់ប៉ុន្មានទៀតទុកឲ្យអ្នកអាយធី គេរកលុយខ្លះផង
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Apprentice
- Posts: 10
- Joined: Fri Oct 23, 2009 9:39 am
Re: [Solved] How to embed Khmer Unicode font into Joomla
អរគុណ បងសុវណ្ណ ដែលកន្លងមកបានខ្នះខ្នែងជួយ ក្នុងការដោះស្រាយបញ្ហា Unicode ខ្មែរនេះ។
សូមសំណាងល្អ។
សូមសំណាងល្អ។
-
- Joomla! Fledgling
- Posts: 4
- Joined: Fri Dec 25, 2009 8:23 am
- Location: Phnom Penh
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
ខ្ញុំនៅតែមិនអាចធ្វើវាបាន។ ខ្ញុំព្យាយាមធ្វើតាមដំណាក់កាលខាងលើរួចហើយ។ ហើយខាងក្រោមនេះគឺជា វិធីដែលខ្ញុំធ្វើការ Embed font unicode.
Enter the URL address of your web page: ខ្ញុំដាក់ថាៈ
file://localhost/joomla/templates/mytemplate/css/fonts.css
Select Fonts.css and click Next and next
Font ដែលខ្ញុំចង់Embed គឺ Kh Battambang (ខ្ញុំធ្វើការជ្រើសរើសវា)
Subsetting ខ្ញុំជ្រើសរើស Family Based Sub setting រួចចុចលើ Button Subset និងSelect all character
Next
ក្នុងកន្លែង Font may only used from pages under root
http://localhost/joomla
Next next finish.
តែវានៅតែមិនដំណើរការ។
Enter the URL address of your web page: ខ្ញុំដាក់ថាៈ
file://localhost/joomla/templates/mytemplate/css/fonts.css
Select Fonts.css and click Next and next
Font ដែលខ្ញុំចង់Embed គឺ Kh Battambang (ខ្ញុំធ្វើការជ្រើសរើសវា)
Subsetting ខ្ញុំជ្រើសរើស Family Based Sub setting រួចចុចលើ Button Subset និងSelect all character
Next
ក្នុងកន្លែង Font may only used from pages under root
http://localhost/joomla
Next next finish.
តែវានៅតែមិនដំណើរការ។
Life for IT http://www.phpeasytech.com
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
ប្រហែលជាអ្នកកំពុងមានបញ្ហាជាមួយការបម្លែងពុម្ពអក្សរពីប្រភេទ ttf -> eot ហើយមើលទៅ។
តើអ្នកប្រាកដទេថាពុម្ពអក្សរ eot ត្រូវបានបង្កើតត្រឹមត្រូវ ។
សូមសាកល្បង ប្រើវានៅក្នុង ថាសស៊ី សិនទៅមើល ថាតើវាដំណើរការឬទេ?
តើអ្នកប្រាកដទេថាពុម្ពអក្សរ eot ត្រូវបានបង្កើតត្រឹមត្រូវ ។
សូមសាកល្បង ប្រើវានៅក្នុង ថាសស៊ី សិនទៅមើល ថាតើវាដំណើរការឬទេ?
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Fledgling
- Posts: 4
- Joined: Fri Dec 25, 2009 8:23 am
- Location: Phnom Penh
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
ឥឡូវ ខ្ញុំអាច Embed ចូលបានត្រឹមតែ Firefox និង IE ។ តើធ្វើដូចម្តេចដើម្បីអាចអោយវាដំណើរការក្នុង chrom?
បង sovann, តើខ្ញុំអាចលេខទូរសព្ទ័ រឺ អ៊ីម៉ែលរបស់បងបាន ទេ។
បង sovann, តើខ្ញុំអាចលេខទូរសព្ទ័ រឺ អ៊ីម៉ែលរបស់បងបាន ទេ។
Life for IT http://www.phpeasytech.com
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
សូមសាកល្បងប្រើ Phoca Font Component-សមាសភាគ ផូកា ពុម្ពអក្សរ ដើម្បីបង្កប់ពុម្ពអក្សរខ្មែរយូនីកូដចូលក្នុងគេហទំព័រជូម្ល៉ារបស់លោកអ្នក!
ជាសមាសភាគមួយរបស់ជូម្ល៉ា! ។ សមាសភាគនេះបន្ថែមគាំទ្រដល់ការប្រើប្រាស់បណ្ដាពុម្ពអក្សរអាចទាញយកបានសម្រាប់តំបន់បណ្ដាញជូម្ល៉ារបស់អ្នក ។ អ្នកអាចផ្ទុក និងជ្រើសរើសនូវពុម្ពអក្សរប្រភេទ .ttf ឬ .otf ផ្ទាល់ខ្លួនរបស់អ្នក ។ ពុម្ពអក្សរដែលបានបញ្ចូលក្នុងឯកសារពុម្ពអក្សរនេះនឹងបង្ហាញលើតំបន់បណ្ដាញរបស់អ្នក (ដោយមានការជួយជ្រោមជ្រែងពីច្បាប់ @font-face )។
មុខងារនេះត្រូវបានគាំទ្រដោយបណ្ដាកម្មវិធីរុករកខាងក្រោម៖
http://forum.joomla.org/viewtopic.php?f=569&t=533529
ព័ត៌មានបន្ថែមសូមអាន៖ Phoca Font Component
ជាសមាសភាគមួយរបស់ជូម្ល៉ា! ។ សមាសភាគនេះបន្ថែមគាំទ្រដល់ការប្រើប្រាស់បណ្ដាពុម្ពអក្សរអាចទាញយកបានសម្រាប់តំបន់បណ្ដាញជូម្ល៉ារបស់អ្នក ។ អ្នកអាចផ្ទុក និងជ្រើសរើសនូវពុម្ពអក្សរប្រភេទ .ttf ឬ .otf ផ្ទាល់ខ្លួនរបស់អ្នក ។ ពុម្ពអក្សរដែលបានបញ្ចូលក្នុងឯកសារពុម្ពអក្សរនេះនឹងបង្ហាញលើតំបន់បណ្ដាញរបស់អ្នក (ដោយមានការជួយជ្រោមជ្រែងពីច្បាប់ @font-face )។
មុខងារនេះត្រូវបានគាំទ្រដោយបណ្ដាកម្មវិធីរុករកខាងក្រោម៖
- Firefox 3.5
- Opera 10
- Safari 3.1
- IE6, IE7, IE8 (តែក្នុងករណីឯកសារ eot ត្រូវបានដាក់បញ្ចូលដែរ)
- Joomla!1.5.10 (មានលំនឹង ឬកំណែក្រោយពីនេះ)
- PHP 4.4.1 (ឬកំណែក្រោយទៀត) ។
- regular ធម្មតា
- bold ដិត
- italic ទ្រេត
- bold italic ទ្រេតដិត
- condensed ញឹក
- condensed bold ដិតញឹក
- condensed italic ទ្រេតញឹក
- condensed bold italic ទ្រេតដិតញឹក
http://forum.joomla.org/viewtopic.php?f=569&t=533529
ព័ត៌មានបន្ថែមសូមអាន៖ Phoca Font Component
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Dec 15, 2011 8:45 am
Re: [Solved] How to embed Khmer Unicode font into Joomla
ពិតជាមានប្រយោជន៏ យ៉ាងក្លាំងក្រៃលេង
សូមអរគុណ»
សូមអរគុណ»
-
- Joomla! Apprentice
- Posts: 22
- Joined: Fri Jul 06, 2012 2:18 am
- Location: ខែត្របន្ទាយមានជ័យ, ប្រទេសកម្ពុជា
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
កម្មវិធីសម្រាប់បម្លែងfont ទៅជា font.eot មិនមានដំណើរការលើwindow ខ្ញុំទែ ។ ខ្ញុំប្រើ Window 8 Release Preview។ ខ្ញុំចង់បាន font Hanuman.eot តើខ្ញុំអាចរក ទាញយក នៅទីណាបាន? សូមលោកពូ សុវណ្ណ ជួយផង។
សូមអរគុណលោកពូទុកជាមុន។
***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****__
អ៊ឹម ដារ៉ូ និស្សិតឆ្នាំទី២ វិទ្យាស្ថានបច្ចេកវិទ្យាកម្ពុជា
បច្ចុប្បន្នស្នាក់នៅសិក្សានារាជធានី ភ្នំពេញ
សូមអរគុណលោកពូទុកជាមុន។
***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****__
អ៊ឹម ដារ៉ូ និស្សិតឆ្នាំទី២ វិទ្យាស្ថានបច្ចេកវិទ្យាកម្ពុជា
បច្ចុប្បន្នស្នាក់នៅសិក្សានារាជធានី ភ្នំពេញ
- hengsovann
- Joomla! Explorer
- Posts: 375
- Joined: Fri Jul 10, 2009 4:00 am
- Location: Cambodia
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
ហេតុអ្វីមិនប្រើ Hanuman Google Webfont? បច្ចុប្បន្ន ដំណើរការ សឹងគ្រប់ កម្មវិធីរុករក Browser ទាំងអស់ទៅហើយ ។ សូមអាន៖ http://forum.joomla.org/viewtopic.php?f=569&t=543070
បើចង់បានពុម្ពអក្សរ eot អាចប្រើឧបករណ៍បម្លែងលើបណ្ដាញ font converter ស្វែងរកលើ Google លោកអ្នកនឹងអាចរកឃើញ
បើចង់បានពុម្ពអក្សរ eot អាចប្រើឧបករណ៍បម្លែងលើបណ្ដាញ font converter ស្វែងរកលើ Google លោកអ្នកនឹងអាចរកឃើញ
Sovann Heng ហេង សុវណ្ណ getinside360.com
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
អរគុណ"អាចជួយជំរុញអ្នកដទៃមានកម្លាំងចិត្តក្នុងការចែករំលែក
Khmer (CAMBODIA) Translation Team Coordinator អ្នកសម្របសម្រួលក្រុមបកប្រែភាសាខ្មែរ
- kathirsrs
- Joomla! Intern
- Posts: 60
- Joined: Tue Mar 13, 2012 4:20 am
- Location: Bangalore
Re: [Solved] How to embed Khmer Unicode font into Joomla
Hi
Can any one explain this briefly.Sry I dont get those points mentioned above.
Can any one explain this briefly.Sry I dont get those points mentioned above.
Thanks,
Kathir
Kathir
-
- Joomla! Apprentice
- Posts: 22
- Joined: Fri Jul 06, 2012 2:18 am
- Location: ខែត្របន្ទាយមានជ័យ, ប្រទេសកម្ពុជា
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
ខាងក្រោមជា code index.php នៃ template របស់ខ្ញុំ ។ ខ្ញុំមិនដឹងថា ត្រូវបញ្ចូល codehengsovann wrote:ហេតុអ្វីមិនប្រើ Hanuman Google Webfont? បច្ចុប្បន្ន ដំណើរការ សឹងគ្រប់ កម្មវិធីរុករក Browser ទាំងអស់ទៅហើយ ។ សូមអាន៖ http://forum.joomla.org/viewtopic.php?f=569&t=543070
បើចង់បានពុម្ពអក្សរ eot អាចប្រើឧបករណ៍បម្លែងលើបណ្ដាញ font converter ស្វែងរកលើ Google លោកអ្នកនឹងអាចរកឃើញ
Code: Select all
<link href='http://fonts.googleapis.com/css?family=Hanuman&subset=all' rel='stylesheet' type='text/css'>
Code: Select all
<?php
/**
*
* Main file
*
* @version 1.0.0
* @package Gavern Framework
* @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
*
*/
// No direct access.
defined('_JEXEC') or die;
// enable showing errors in PHP
//ini_set('error_reporting', E_ALL);
//ini_set('display_errors','On');
// include framework classes and files
require_once('lib/framework/gk.const.php');
require_once('lib/framework/gk.parser.php');
require_once('lib/gk.framework.php');
// run the framework
$tpl = new GKTemplate($this, $GK_TEMPLATE_MODULE_STYLES);
/* End of the file - index.php */
-
- Joomla! Apprentice
- Posts: 22
- Joined: Fri Jul 06, 2012 2:18 am
- Location: ខែត្របន្ទាយមានជ័យ, ប្រទេសកម្ពុជា
- Contact:
Re: [Solved] How to embed Khmer Unicode font into Joomla
នេះជាតំណ font Hanuman.eot ខ្ញុំរកបានហើយ។ សម្រាប់លោកអ្នកចង់បង្កប់ font Hanuman អាចទាញយកបាន
http://www.kirsle.net/wizards/ttf2eot-t ... anuman.eot
*** លោកអ្នកអាចបម្លែង font ផ្សេងពី ttf ទៅជា eot បានតាមរយៈ free online font converter ដែលមានអាសយដ្ឋាន http://www.kirsle.net/wizards/ttf2eot.cgi
*** មួយវិញទៀតបើចង់បម្លែងទៅប្រភេទ font ផ្សេងៗទៀតអាចចូលទៅកាន់ http://www.freefontconverter.com/
***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****__
អ៊ឹម ដារ៉ូ
និស្សិតឆ្នាំទី២ នៃ វិទ្យាស្ថានបច្ចេកវិទ្យាកម្ពុជា
http://www.kirsle.net/wizards/ttf2eot-t ... anuman.eot
*** លោកអ្នកអាចបម្លែង font ផ្សេងពី ttf ទៅជា eot បានតាមរយៈ free online font converter ដែលមានអាសយដ្ឋាន http://www.kirsle.net/wizards/ttf2eot.cgi
*** មួយវិញទៀតបើចង់បម្លែងទៅប្រភេទ font ផ្សេងៗទៀតអាចចូលទៅកាន់ http://www.freefontconverter.com/
***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****__
អ៊ឹម ដារ៉ូ
និស្សិតឆ្នាំទី២ នៃ វិទ្យាស្ថានបច្ចេកវិទ្យាកម្ពុជា
-
- I've been banned!
- Posts: 27
- Joined: Sat Apr 13, 2013 5:49 am
Re: [Solved] How to embed Khmer Unicode font into Joomla
Code: Select all
http://km-kh.com/en/tutorial/khmer-unicode/6-font-embedding/92-khmer-unicode-google-webfont-on-android-and-ios-iphone.html
http://km-kh.com/en/tutorial/khmer-unicode/6-font-embedding/6-khmer-unicode-font-with-google-font-api.html
-
- Joomla! Explorer
- Posts: 403
- Joined: Sat Jan 08, 2011 3:52 pm
Re: [Solved] How to embed Khmer Unicode font into Joomla
Does the Khmer Unicode support Joomla 3.3.6 yet?