package com.iyougames.weather.ui;
import java.io.UnsupportedEncodingException;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Set;
import java.util.Date;
/**
*
* 汉字转化为全拼,码表利用输入法的码表导出,汉字信息非常全,平时见到的汉字
* 转拼音的API只能处理几千个一级汉字,很多字都没有法查到,尤其是我自己的姓
* 都查不到所以只好自己做一个汉字转拼音的API,该API除可以处理99%以上的汉字,
* 而且可以返回多音字的读音
*/
public class CnToSpell
{
private static LinkedHashMap spellMap = null;
static
{
if (spellMap == null)
{
spellMap = new LinkedHashMap(20901);
}
initialize();
}
private CnToSpell()
{
}
private static void spellPut(String ascii, String spells)
{
spellMap.put(ascii, spells);
}
private static void initialize()
{
init0();
init1();
init2();
init3();
init4();
init5();
init6();
init7();
init8();
init9();
init10();
init11();
init12();
init13();
init14();
init15();
init16();
init17();
init18();
init19();
init20();
init21();
init22();
init23();
init24();
init25();
init26();
init27();
init28();
init29();
init30();
init31();
init32();
init33();
init34();
init35();
init36();
init37();
init38();
init39();
init40();
init41();
init42();
init43();
init44();
init45();
init46();
init47();
init48();
init49();
init50();
init51();
init52();
init53();
init54();
init55();
init56();
init57();
init58();
init59();
init60();
init61();
init62();
init63();
init64();
init65();
init66();
init67();
init68();
init69();
init70();
init71();
init72();
init73();
init74();
init75();
init76();
init77();
init78();
init79();
init80();
init81();
init82();
init83();
init84();
init85();
init86();
init87();
init88();
init89();
init90();
init91();
init92();
init93();
init94();
init95();
init96();
init97();
init98();
init99();
init100();
init101();
init102();
init103();
init104();
init105();
init106();
init107();
init108();
init109();
init110();
init111();
init112();
init113();
init114();
init115();
}
private static void init0()
{
spellPut("129-64", "kao,qiao,yu");
spellPut("129-65", "shang");
spellPut("129-66", "xia");
spellPut("129-67", "mo ye o ne");
spellPut("129-68", "mian");
spellPut("129-69", "chou");
spellPut("129-70", "shi");
spellPut("129-71", "diu");
spellPut("129-72", "qiu");
spellPut("129-73", "liang");
spellPut("129-74", "you");
spellPut("129-75", "bing");
spellPut("129-76", "jiu");
spellPut("129-77", "ji");
spellPut("129-78", "jie");
spellPut("129-79", "guan,kuang");
spellPut("129-80", "chan");
spellPut("129-81", "zhuo");
spellPut("129-82", "ba");
spellPut("129-83", "jing");
spellPut("129-84", "fu");
spellPut("129-85", "yi,ji");
spellPut("129-86", "yi");
spellPut("129-87", "shi me");
spellPut("129-88", "jiu");
spellPut("129-89", "ho");
spellPut("129-90", "yin");
spellPut("129-91", "hu");
spellPut("129-92", "cheng,sheng");
spellPut("129-93", "hao,yi");
spellPut("129-94", "wBn");
spellPut("129-95", "gai");
spellPut("129-96", "jiu");
spellPut("129-97", "hB ri");
spellPut("129-98", "ho lo");
spellPut("129-99", "dou");
spellPut("129-100", "shi");
spellPut("129-101", "nang");
spellPut("129-102", "gB ri");
spellPut("129-103", "ge ri");
spellPut("129-104", "dBo ri");
spellPut("129-105", "mo ri");
spellPut("129-106", "o lo");
spellPut("129-107", "cB lo");
spellPut("129-108", "xue");
spellPut("129-109", "yan");
spellPut("129-110", "po ri");
spellPut("129-111", "sB lo");
spellPut("129-112", "na");
spellPut("129-113", "qian");
spellPut("129-114", "sBo ri");
spellPut("129-115", "er");
spellPut("129-116", "zu ri");
spellPut("129-117", "zB ri");
spellPut("129-118", "zhi,luan");
spellPut("129-119", "gui");
spellPut("129-120", "qian");
spellPut("129-121", "luan");
spellPut("129-122", "lin");
spellPut("129-123", "yi");
spellPut("129-124", "jue");
spellPut("129-125", "ma");
spellPut("129-126", "shi");
spellPut("129-128", "yu");
spellPut("129-129", "si");
spellPut("129-130", "sui");
spellPut("129-131", "gen");
spellPut("129-132", "ya");
spellPut("129-133", "qi,zhai");
spellPut("129-134", "ya");
spellPut("129-135", "da");
spellPut("129-136", "ye");
spellPut("129-137", "xiang");
spellPut("129-138", "jing");
spellPut("129-139", "ye");
spellPut("129-140", "you");
spellPut("129-141", "dan");
spellPut("129-142", "lian");
spellPut("129-143", "duo");
spellPut("129-144", "wei,men");
spellPut("129-145", "ji");
spellPut("129-146", "ji");
spellPut("129-147", "wang");
spellPut("129-148", "ba");
spellPut("129-149", "bing");
spellPut("129-150", "fo");
spellPut("129-151", "jin,san");
spellPut("129-152", "e o");
spellPut("129-153", "xian");
spellPut("129-154", "tuo,cha,duo");
spellPut("129-155", "hong");
spellPut("129-156", "gan,han");
spellPut("129-157", "bo");
spellPut("129-158", "chao");
spellPut("129-159", "chang,zhang");
spellPut("129-160", "chang");
spellPut("129-161", "ren");
spellPut("129-162", "fan");
spellPut("129-163", "chao,miao");
spellPut("129-164", "qian");
spellPut("129-165", "wo");
spellPut("129-166", "yao,fo");
spellPut("129-167", "feng");
spellPut("129-168", "cang");
spellPut("129-169", "wang");
spellPut("129-170", "di");
spellPut("129-171", "zhong");
spellPut("129-172", "pei");
spellPut("129-173", "yu");
spellPut("129-174", "diao");
spellPut("129-175", "dun");
spellPut("129-176", "wen");
spellPut("129-177", "yi");
spellPut("129-178", "xin");
spellPut("129-179", "ji");
spellPut("129-180", "ai");
spellPut("129-181", "jin");
spellPut("129-182", "pi");
spellPut("129-183", "dan");
spellPut("129-184", "fu");
spellPut("129-185", "tang");
spellPut("129-186", "cui");
spellPut("129-187", "yun");
spellPut("129-188", "che,ju");
spellPut("129-189", "qian"
没有合适的资源?快使用搜索试试~ 我知道了~
根据地点获取天气情况的小程序
共26个文件
class:10个
java:4个
png:3个
需积分: 18 12 下载量 29 浏览量
2012-03-01
09:51:13
上传
评论
收藏 704KB ZIP 举报
温馨提示
根据Google 的天气API获取某个地点的天气情况,很简单,只是供大家参考下,里面有些东西是我自己 优化过的,呵呵
资源推荐
资源详情
资源评论
收起资源包目录
Weather.zip (26个子文件)
Weather
AndroidManifest.xml 770B
res
layout
main.xml 928B
drawable-ldpi
icon.png 2KB
drawable-mdpi
icon.png 3KB
drawable-hdpi
icon.png 4KB
values
strings.xml 188B
src
com
iyougames
weather
ui
WeatherDemoActivity.java 4KB
CnToSpell.java 777KB
Utils.java 3KB
bin
com
iyougames
weather
ui
WeatherDemoActivity.class 2KB
R.class 573B
R$layout.class 412B
R$attr.class 358B
CnToSpell.class 567KB
WeatherDemoActivity$1.class 5KB
R$id.class 496B
R$string.class 445B
R$drawable.class 418B
Utils.class 3KB
Weather.apk 196KB
classes.dex 616KB
resources.ap_ 11KB
.classpath 280B
assets
default.properties 364B
.project 843B
gen
com
iyougames
weather
ui
R.java 901B
共 26 条
- 1
资源评论
「已注销」
- 粉丝: 5
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功