Home pcDTR Forum
If you like the work i do, you know what to do.
Welcome, Guest
Please Login or Register.    Lost Password?

what if title has both English and Chinese texts?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: what if title has both English and Chinese texts?
#103
what if title has both English and Chinese texts? 9 Months, 2 Weeks ago Karma: 0
I tested this with pcDTR v2.0.6 on Joomla 1.5.15.

My article title consists of both Chinese and English texts.

When I just use the default style CSS, the Chinese characters in the title will disappear, only English words left.

Then I change the default Brody font to one of my Chinese fonts ( the font file was already copied to the fonts folder). Now both the English and Chinese characters shown up, but, those English words lost the Brody font effect.

Is it possible to let Brody or other English, or other Latin fonts, work selectively ONLY for Latin characters when the user can't give a specific CLASS value for those Latin letters, just like this case, in the article title.

Thanks.
baijianpeng
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
http://www.joomlagate.com/

Chinese Joomla Users' Portal
 
#105
Re:what if title has both English and Chinese texts? 9 Months, 2 Weeks ago Karma: 2
There are many ways to achieve what you want to do.

The Chinese text disappears because Brody don't have Chinese chars in it. Guess you already figured that out.

If you are a php programmer you could add something that splits the title and add different classes. Example: '中文|latin|中文|latin'. Then in you article php file you split it up.

But the easiest way is to hide the title and add the title in the article text, with the different classes for English and Chinese text.

The solution for it depends on how your site looks like.
flowman
Admin
Posts: 110
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#118
Re:what if title has both English and Chinese texts? 9 Months, 2 Weeks ago Karma: 0
Use article content to show the title is a good trick.

However, in this way, the date and author will show above the title. Do you know how to move them under the title as usual?

This is not a question related to pcDTR, sorry for so many questions.

Thanks for your help.
baijianpeng
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
http://www.joomlagate.com/

Chinese Joomla Users' Portal
 
Go to topPage: 1
Banner
Copyright © 2010 pcDTR. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.