能看的av_午夜黄色av_在线观看国产视频_天天爱综合_国产精品亚洲成在人线_日韩一

訂閱本欄目 RSS您所在的位置: 深山工作室 > ASP > 正文

ASP漢字轉(zhuǎn)拼音,支持自定義特殊詞語

深山行者個(gè)人網(wǎng)站 2010/1/20 13:40:45 深山行者 字體: 瀏覽 12330
以下是”特殊字符“代碼:


Function getEnglish(ByVal Str)
    getEnglish = Str
    getEnglish = Replace(getEnglish, "中國", " china ")
    getEnglish = Replace(getEnglish, "策劃", " plan ")
    getEnglish = Replace(getEnglish, "免費(fèi)", " free ")
    getEnglish = Replace(getEnglish, "介紹", " intro ")
    getEnglish = Replace(getEnglish, "技巧", " skill ")
    getEnglish = Replace(getEnglish, "生活", " life ")
    getEnglish = Replace(getEnglish, "活動(dòng)", " activity ")
    getEnglish = Replace(getEnglish, "工具", " tool ")
    getEnglish = Replace(getEnglish, "聯(lián)盟", " union ")
    getEnglish = Replace(getEnglish, "注冊(cè)", " register ")
    getEnglish = Replace(getEnglish, "經(jīng)驗(yàn)", " experience ")
    getEnglish = Replace(getEnglish, "翻譯", " translate ")
    getEnglish = Replace(getEnglish, "項(xiàng)目", " item ")
    getEnglish = Replace(getEnglish, "網(wǎng)站", " web-site ")
    getEnglish = Replace(getEnglish, "英語", " english ")
    getEnglish = Replace(getEnglish, "英文", " english ")
    getEnglish = Replace(getEnglish, "雅虎", " yahoo ")
    getEnglish = Replace(getEnglish, "新浪", " sina ")
    getEnglish = Replace(getEnglish, "支付寶", " alipay ")
    getEnglish = Replace(getEnglish, "交易", " trade ")
    getEnglish = Replace(getEnglish, "網(wǎng)店", " b2c ")
    getEnglish = Replace(getEnglish, "升級(jí)", " update ")
    getEnglish = Replace(getEnglish, "雜志", " magazine ")
    getEnglish = Replace(getEnglish, "空間", " space ")
    getEnglish = Replace(getEnglish, "愛情", " love ")
    getEnglish = Replace(getEnglish, "朋友", " friend ")
    getEnglish = Replace(getEnglish, "友情", " friend ")
    getEnglish = Replace(getEnglish, "鏈接", " like ")
    getEnglish = Replace(getEnglish, "標(biāo)簽", " label ")
    getEnglish = Replace(getEnglish, "運(yùn)行", " running ")
    getEnglish = Replace(getEnglish, "管理", " manager ")
    getEnglish = Replace(getEnglish, "管理", " manage ")
    getEnglish = Replace(getEnglish, "頁面", " page ")
    getEnglish = Replace(getEnglish, "模板", " template ")
    getEnglish = Replace(getEnglish, "游戲", " game ")
    getEnglish = Replace(getEnglish, "論壇", " forum ")
    getEnglish = Replace(getEnglish, "新聞", " news ")
    getEnglish = Replace(getEnglish, "音樂", " music ")
    getEnglish = Replace(getEnglish, "幫助", " help ")
    getEnglish = Replace(getEnglish, "優(yōu)化", " optimize ")
    getEnglish = Replace(getEnglish, "軟件", " soft ")
    getEnglish = Replace(getEnglish, "教程", " tech ")
    getEnglish = Replace(getEnglish, "下載", " download ")
    getEnglish = Replace(getEnglish, "搜索", " search ")
    getEnglish = Replace(getEnglish, "引擎", " engine ")
    getEnglish = Replace(getEnglish, "蜘蛛", " spider ")
    getEnglish = Replace(getEnglish, "日志", " log ")
    getEnglish = Replace(getEnglish, "博客", " blog ")
    getEnglish = Replace(getEnglish, "百度", " baidu ")
    getEnglish = Replace(getEnglish, "谷歌", " google ")
    getEnglish = Replace(getEnglish, "郵箱", " mailbox ")
    getEnglish = Replace(getEnglish, "郵件", " mail ")
    getEnglish = Replace(getEnglish, "域名", " domain ")
    getEnglish = Replace(getEnglish, "測(cè)試", " test")
    getEnglish = Replace(getEnglish, "演示", " demo ")
    getEnglish = Replace(getEnglish, "音樂", " music ")
    getEnglish = Replace(getEnglish, "笑話", " joke ")
    getEnglish = Replace(getEnglish, "產(chǎn)品", " product ")
    getEnglish = Replace(getEnglish, "留言", " message ")
    getEnglish = Replace(getEnglish, "反饋", " freedback ")
    getEnglish = Replace(getEnglish, "評(píng)論", " comment ")
    getEnglish = Replace(getEnglish, "推薦", " commend ")
    getEnglish = Replace(getEnglish, "共享", " share ")
    getEnglish = Replace(getEnglish, "資源", " resource ")
    getEnglish = Replace(getEnglish, "插件", " plugins ")
    getEnglish = Replace(getEnglish, "本本", " notebook ")
    getEnglish = Replace(getEnglish, "電腦", " computer ")
    getEnglish = Replace(getEnglish, "系統(tǒng)", " system ")
    getEnglish = Replace(getEnglish, "學(xué)校", " school ")
    getEnglish = Replace(getEnglish, "無憂", " 5u ")
    getEnglish = Replace(getEnglish, "工作", " job ")
    getEnglish = Replace(getEnglish, "信息", " info ")
    getEnglish = Replace(getEnglish, "娛樂", " ent ")
    getEnglish = Replace(getEnglish, "汽車", " car ")
    getEnglish = Replace(getEnglish, "手機(jī)", " mobile ")
    getEnglish = Replace(getEnglish, "網(wǎng)絡(luò)", " network ")
    getEnglish = Replace(getEnglish, "老板", " boss ")
    getEnglish = Replace(getEnglish, "狗", " dog ")
    getEnglish = Replace(getEnglish, "電視", " tv ")
    getEnglish = Replace(getEnglish, "電影", " movie ")
End Function



以下是"中文轉(zhuǎn)換到拼音"引用片段:

function pinyin(byval chinese)
    chinese = replace(chinese, "/", ""): chinese = replace(chinese, "\", "")
    chinese = replace(chinese, "*", ""): chinese = replace(chinese, "]", "")
    chinese = replace(chinese, "[", ""): chinese = replace(chinese, "}", "")
    chinese = replace(chinese, "{", ""): chinese = replace(chinese, "'", "")
    chinese = getEnglish(chinese) '在這里使用getEnglish先將特殊詞語轉(zhuǎn)換
    dim pinyinstr, istr, iIsCn, IsCn
    dim pinyinconn, rs, i, x
    '在這里打開拼音庫
    '你也可以將拼音庫的并入你的程序數(shù)據(jù)庫里.
    on error resume next
    set pinyinconn = server.createobject("Adodb.connection")
    pinyinconn.open "Provider=Microsoft.Jet.OLEdb.4.0;Data Source=" & server.mappath("pinyin.Asp")
    if err then pinyin = "": set pinyinconn = nothing: exit function
    IsCn = true
    for i = 1 to len(chinese)
    iIsCn = IsCn ' 獲取上次是不是中文的值
    istr = Mid(chinese, i, 1)
    x = Asc(istr)
    if (x >= 65 and x <= 90) or (x >= 97 and x <= 122) or (x >= 48 and x <= 57) or istr = " " then
        IsCn = false ' 這些是英文,數(shù)字(保留字符),不改動(dòng)
        if istr = " " then istr = "-"
    else
        set rs = pinyinconn.execute("select Top 1 [pinyin] From [pinyin] Where [content] like '%" & istr & "%';")
        if not rs.eof then
        istr = lcase(rs(0)): IsCn = true   ' 中文
        else
        IsCn = false
        if istr = " " then istr = "-" else istr = "" ' 將空格轉(zhuǎn)換成-,如果是其他字符則清除
        end if
        rs.close: set rs = nothing
    end if
    if iIsCn = IsCn then pinyinstr = pinyinstr & istr else pinyinstr = pinyinstr & "-" & istr
    pinyinstr = replace(pinyinstr, "--", "-")
    pinyinstr = replace(pinyinstr, "__", "_")
    next
    if right(pinyinstr, 1) = "-" then pinyinstr = left(pinyinstr, len(pinyinstr) - 1)
    if right(pinyinstr, 1) = "_" then pinyinstr = left(pinyinstr, len(pinyinstr) - 1)
    if left(pinyinstr, 1) = "-" then pinyinstr = right(pinyinstr, len(pinyinstr) - 1)
    if left(pinyinstr, 1) = "_" then pinyinstr = right(pinyinstr, len(pinyinstr) - 1)
    pinyinconn.close
    set pinyinconn = nothing
    pinyin = trim(pinyinstr)
end Function


拼間數(shù)據(jù)庫:pinyin.rar

后一頁:asp日歷代碼
相關(guān)閱讀
ASP中SQL和Access數(shù)據(jù)庫中時(shí)間/日期字段內(nèi)容查詢的方法說明
專注于戶外擴(kuò)展、商務(wù)會(huì)議建站解決方案
新疆旅游在線
asp獲得系統(tǒng)Unix時(shí)間戳與將Unix時(shí)間戳轉(zhuǎn)為正常日期
Android移動(dòng)端自動(dòng)化測(cè)試:使用UIAutomatorViewer與Selenium定位元素
旅行社網(wǎng)站管理系統(tǒng)免費(fèi)版 V2.4
國旅(深圳)國際旅行社有限公司
uni-app操作json數(shù)組
共有0條關(guān)于《ASP漢字轉(zhuǎn)拼音,支持自定義特殊詞語》的評(píng)論
發(fā)表評(píng)論
正在加載評(píng)論......
返回頂部發(fā)表評(píng)論
呢 稱:
表 情:
內(nèi) 容:
評(píng)論內(nèi)容:不能超過 1000 字,需審核,請(qǐng)自覺遵守互聯(lián)網(wǎng)相關(guān)政策法規(guī)。
驗(yàn)證碼: 驗(yàn)證碼 
網(wǎng)友評(píng)論聲明,請(qǐng)自覺遵守互聯(lián)網(wǎng)相關(guān)政策法規(guī)。

您發(fā)布的評(píng)論即表示同意遵守以下條款:
一、不得利用本站危害國家安全、泄露國家秘密,不得侵犯國家、社會(huì)、集體和公民的合法權(quán)益;
二、不得發(fā)布國家法律、法規(guī)明令禁止的內(nèi)容;互相尊重,對(duì)自己在本站的言論和行為負(fù)責(zé);
三、本站對(duì)您所發(fā)布內(nèi)容擁有處置權(quán)。

更多信息>>欄目類別選擇
百度小程序開發(fā)
微信小程序開發(fā)
微信公眾號(hào)開發(fā)
uni-app
asp函數(shù)庫
ASP
DIV+CSS
HTML
python
更多>>同類信息
ASP中Utf-8與Gb2312編碼轉(zhuǎn)換亂碼問題的解決方法頁面編碼聲明
asp顯示隨機(jī)密碼
通過阿里云服務(wù)接口獲得ip地址詳細(xì)信息
iis點(diǎn)開后任務(wù)欄上有顯示,但是窗口看不到的解決辦法
RSA加密解密插件
微軟Encoder加密解密函數(shù)
更多>>最新添加文章
dw里面查找替換使用正則刪除sqlserver里面的CONSTRAINT
Android移動(dòng)端自動(dòng)化測(cè)試:使用UIAutomatorViewer與Selenium定位元素
抖音直播音掛載小雪花 懂車帝小程序
javascript獲取瀏覽器指紋可以用來做投票
火狐Mozilla Firefox出現(xiàn):無法載入您的Firefox配置文件 它可能已經(jīng)丟失 或是無法訪問 問題解決集合處理辦法
在Android、iOS、Windows、MacOS中微信小程序的文件存放路徑
python通過代碼修改pip下載源讓下載庫飛起
python里面requests.post返回的res.text還有其它的嗎
更多>>隨機(jī)抽取信息
ASP事務(wù)處理 for access
CSS教程:用dl dt dd來制作新聞文章列表
北京泓源萬國咨詢服務(wù)有限公司
請(qǐng)勿在本地站發(fā)布亂七八糟的廣告,本站所有的留言與評(píng)論全是需要審核的
旅行社手機(jī)網(wǎng)站模板4
JavaScript實(shí)現(xiàn)把漢字轉(zhuǎn)換為拼音
主站蜘蛛池模板: 日本在线免费看 | 一级片大全| 国产精品一卡二卡 | 免费三片在线观看网站 | 黄色a视频 | 在线成人av | a级三四级黄大片 | 久久精精品 | 日本黄色大片免费 | 成年人视频在线观看免费 | 午夜影院在线观看视频 | 精品视频久久久 | 免费av电影观看 | 日本久久精品视频 | 国产精品久久免费视频在线 | 国产精品美女久久久久aⅴ国产馆 | 黄网站涩免费蜜桃网站 | 国产精品中文字幕在线播放 | 国产精品久久久久久久久久妞妞 | 国产精品中文字幕在线 | 日本精品免费在线观看 | 精品欧美乱码久久久久久 | 刘亦菲的毛片 | 中文字幕成人 | 91精品久久 | 精品久久久久久久久久久下田 | 老司机在线精品视频 | 日韩在线视频免费看 | 日本一区二区三区视频免费看 | 中文字幕第二十六页页 | 亚洲成人动漫在线观看 | 日本xxx性| 久久久久久久久久穴 | 久久这里精品 | 日韩av一区二区在线观看 | 亚洲精品a区| 狠狠爱亚洲 | 一区二区三区在线免费播放 | 一级黄色片看看 | 天天久久| 成人国产精品久久 |