如何在关键maping术语中将一种字体更改为其他字体 [英] How to change one font to other font in the term of key maping

查看:55
本文介绍了如何在关键maping术语中将一种字体更改为其他字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在Joy字体中有一些文件,有些是anmol字体,有些是其他字体,都是旁遮普语,我想合并所有这些单个字体的文件你可以说想转换成unicode格式我怎么能实现这个。

谢谢



我是什么尝试过:



我有一个参考网站转换文本 - 在线旁遮普字体转换器 [ ^ ]这是我想要的工作网站,但我无法获得代码

解决方案

请参阅我对该问题的评论。从本质上讲,它包含了答案,这个答案的实质是:没有这样的问题。



你所有的问题是:你只需要一些教育。在这种情况下,你必须学习另外两件事:1)什么是Unicode及其作用,它与编码有什么不同,2)CSS。



然后,您只需使用标准事实上的UTF-8在UTF页面上输入您的所有文本。您需要了解它与Unicode的关系:

常见问题 - UTF-8,UTF-16,UTF -32& BOM [ ^ ],

Unicode Consortium [ ^ ],

Unicode - 维基百科,免费的百科全书 [ ^ ],

通用编码字符集 - 维基百科,免费百科全书 [ ^ ]。



您输入的所有网页内容都采用相同的编码方式,不作任何排除。无论如何,UTF-8与ASCII和ANSI兼容。在HTTP-EQUIV中规定编码是非常重要的:

 <   html  >  
< head >
< meta http-equiv = 内容类型 内容 = text / html; charset = utf-8 / >
< / head >

<! - ... - >

< / html >





现在,让我们看看你需要使用两种不同类型的HTML元素:Joy和Punjabi。我确定喜悦是什么,不能和旁遮普一样,但是旁遮普使用了两种不同的书写系统:Gurmukhī和Shahmukhi,两者都得到了Unicode的支持。这是你必须要关心的,而不是使用书写系统的语言:

Gurmukhī字母 - 维基百科,免费的百科全书 [ ^ ],

Shahmukhi字母 - 维基百科,免费的百科全书 [ ^ ]。



我不确定,但我们假设Joy不支持任何这些字母。然后你只需要更改那些不同类型元素的字体,在CSS中称为类:

  div  joy  { font-family   ...; } 
/ * 希望,Punjabi的字体系列可以默认使用* /
/ * 否则,可以有更多类* /



然后在HTML中你可以有

 <   div     class   =  joy >  <! -     ...    - >   <   / div  >  



依旧...







我几乎差不多忘了:你不能假设所有用户都安装了所有异国情调的字体,比如你的快乐。所以,它涉及到一个令人不快的家务:你也可能需要在CSS中嵌入一些字体。例如,请参阅使用@ font-face | CSS-Tricks [ ^ ]。



另见: CSS字体模块3级 [ ^ ]。







另请参阅我过去对该主题的回答:

如何从ascii转换为C#中的unicode [ ^ ],

在WSDL NuSoap中获取UTF-8字符 [ ^ ],

阿拉伯语中的unicode chr [ ^ ],

Ascii to Unicode Converter [ ^ ]。



另外,一个相关答案,关于使用Microsoft Keyboard Creator以及制作任何键盘布局的可能性:输入印地语和英语的问题 [ ^ ]。



我提供了一些关于Unicode的基本概念的解释,这可能没有得到恰当的解释:



关于Unicode作为抽象概念之间的一对一对应关系:

Unicode是一种标准,它定义了字符之间正式的一对一对应关系,理解为从其精确图形中抽象出来的某些文化类别(例如,拉丁语A和西里尔语А是不同的字符,您可以使用本段上的文本搜索来测试它)和整数,从他们的计算机演示文稿中抽象出来,如大小和字节顺序。尽管存在共同的错误观点,但这不是16位代码,因为目前由Unicode标准化的代码点的范围远远超出了可以容纳16位的范围(称为基本多语言平面,BMP)。由于存在不同的整数类型,因此有几种不同的方式来表示称为UTF的Unicode文本。





另一个视图,具有历史视角,由Joel Spolsky提供: http://www.joelonsoftware.com/articles/Unicode.html [ ^ ]。



< DD> -SA


Hi,

I have some document in Joy font some in anmol font and some in some other font, all are in punjabi, I want to merge all these documents into single font u can say want to convert then into unicode format how i can achieve this.
Thanks

What I have tried:

I got a reference site Convert Text - Online Punjabi Font Converter[^] which is working site as I want but I am not able to get the code

解决方案

Please see my comment to the question. Essentially, it contains the answer, and the essence of this answer is: there is no such problem.

All your problem is: you just need some education. In this case, you have to learn just two additional things: 1) what is Unicode and what it does, how it's different from "encoding", 2) CSS.

Then you will simply enter all your text on the page in UTF, by the standard de-facto, UTF-8. You need to learn how is it related to Unicode:
FAQ - UTF-8, UTF-16, UTF-32 & BOM[^],
Unicode Consortium[^],
Unicode — Wikipedia, the free encyclopedia[^],
Universal Coded Character Set — Wikipedia, the free encyclopedia[^].

You enter in the same encoding all your Web page content, with no exclusion. UTF-8 is compatible with ASCII and ANSI, anyway. It's very important to prescribe the encoding in HTTP-EQUIV:

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>

<!-- ... -->

</html>



Now, let's see you need to use two different types of HTML element: "Joy" and "Punjabi". I'm sure what "Joy" is and cannot it be the same as Punjabi, but there are two different writing systems used by Punjabi: Gurmukhī and Shahmukhi, both supported by Unicode. This is what you have to care about, not the language using the writing systems:
Gurmukhī alphabet — Wikipedia, the free encyclopedia[^],
Shahmukhi alphabet — Wikipedia, the free encyclopedia[^].

I'm not sure, but let's assume that "Joy" doesn't support any of these alphabets. Then you simply need to change the font for those different types of elements, which are called "classes" in CSS:

div.joy { font-family: "..."; }
/* hopefully, font families for Punjabi can come by default */
/* otherwise, there can be more classes */


and then in HTML you can have

<div class="joy"> <!-- ... --> </div>


And so on…

[EDIT #1]

I almost forgot: you cannot assume that all you users have all the exotic fonts installed, like your "joy". So, it comes to one unpleasant chore: you also may need to embed some fonts themselves in CSS. See, for example, Using @font-face | CSS-Tricks[^].

See also: CSS Fonts Module Level 3[^].

[EDIT #2]

See also my past answers on the topic:
How do i convert from ascii to unicode in C#[^],
get UTF-8 char in WSDL NuSoap[^],
unicode chr in arabic lang[^],
Ascii to Unicode Converter[^].

Also, one related answer, about the use of Microsoft Keyboard Creator and the possibility to craft any keyboard layout: Problem in typing in Hindi and english[^].

I provided some conceptual explanation of something fundamental about Unicode, something which perhaps wasn't properly explained:

About Unicode as one-to-one correspondence between abstract notions:

Unicode is a standard which defines formal one-to-one correspondence between "characters" understood as some cultural categories abstracted from their exact graphics (for example, Latin "A" and Cyrillic "А" are different characters, you can test it by using text search on this paragraph) and integer numbers, abstracted from their computer presentation like size and endianess. Despite of common wrong opinion, this is not 16-bit code as the range of "code points" presently standardized by Unicode goes far beyond the range which can fit in 16 bits (called Base Multilingual Plane, BMP). As there are different integer types, there are several different ways to represent Unicode text called UTFs.



One more view, with historical perspective, by Joel Spolsky: http://www.joelonsoftware.com/articles/Unicode.html[^].

—SA


这篇关于如何在关键maping术语中将一种字体更改为其他字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆