Ios5 Global English-Chinese dictionary tutorial, available in ibooks and Safari

Source: Internet
Author: User

Http://bbs.weiphone.com/read-htm-tid-3926290.html

 

It seems that there is no tutorial on how to add an English-Chinese global dictionary in ipad2. I have been searching for it in other areas for a long time and finally finished it. I will sort out the tutorial here, it is also the experience of our predecessors (thanks to lucky_gjy's research and Xiao 15th's tutorial). I hope it will be helpful for FY that has not been done yet ..
In addition, weiphone was installed with Deb in the English-Chinese dictionary of the 21st century. However, the one that needs to occupy the system disk space (For details, refer to the description in step 3), and I am not satisfied with the dictionary, however, if it is not highly demanding or troublesome, you can directly install it on the weiphone source.

Operations in this tutorial are dangerous. Please proceed with caution ..

First, ios5ProgramWith built-in translation software, you can define the English words selected, but the default dictionary is only English and Japanese. For most fy, no English-Chinese dictionary is required, therefore, we need to make ourselves fit.

The system has its own effect. Because the modification is not retained, the image comes from the network ..

This is the effect of adding an English-Chinese dictionary ..

Okay, now, of course, the premise is that your iPad has to be jailbroken:

1. We need to download the dictionary. There are many online dictionaries. This post is a rich one I have found.
Http://bbs.weiphone.com/read.php? Tid = 1201733 & page = 1
The post contains tutorials, but they are only for iBook and cannot be used in other programs.
I personally recommend this dictionary:
Http://115.com/file/e6tgi87a
The dictionary is rich and the translation is simplified. The most important thing is to automatically recognize the deformed words. For example, if you look up "went", other dictionaries only display the "go style", and this dictionary displays go at the same time, translate the going, gone, went prototype, and three variants.

2. Then, the downloaded dictionary needs to modify the info. plist file. Before <key> dcsdictionarymanufacturername </key>, add the following content:
<Key> dcsdictionarypolicages </key>
<Array>
<Dict>
<Key> dcsdictionarydescriptionlanguage </key>
<String> ZH </string>
<Key> dcsdictionaryindexlanguage </key>
<String> en </string>
</Dict>
</Array>
This section declares that the dictionary is an English-Chinese dictionary.

At the same time, find this sentence:
<Key> cfbundleidentifier </key>
It will follow the following sentence:
<String> com. Apple. dictionary. xxxx </string>
The content of xxxx varies with the dictionary. note it down and use it later.

3. Import the modified dictionary to the directory/private/var/mobile/library/dictionaries on the iPad.
, if you do not have this directory, you can create it or store it in another directory. Just remember the path.
then, you can create a link to the/library/dictionaries directory. The link method is as follows:
select a dictionary file in ifile, and click Copy \ link in the lower right corner, select the creation Link under the/library/dictionaries directory.
(Principle explanation: the default path of the dictionary file is/library/dictionaries. However, in the IOS system disk, 200 + MB is left after the IOS system disk is jailbroken, each dictionary file is 100 + MB, which cannot be stored. Therefore, we create a folder in the User Drive to put the dictionary into the system disk by using the link method .)

4. Modify the ibooks dictionary index
Use ifile to enter var/mobile/applications, find the ibooks folder, and enter ibooks. APP folder, find a file named bkdictionarymanager_languagetoorder.plist.
(here is a tip to set ifile: for example, open the option "Application name, otherwise, the name of each application folder contains a string of passwords. After this option is enabled, we can easily find the iBook folder .)
in the file, find:

en

COM. apple. dictionary. noad
COM. apple. dictionary. oawt
COM. apple. dictionary. appledictionary

added below
COM. apple. dictionary. XXXX
XXXX is the content recorded in step 2.

5. Modify the global dictionary Index
Find the file \ System \ library \ privateframeworks \ dictionaryservices. Framework \ **. lproj \ defadicdictionaries. plist.
** Here refers to the corresponding language folder. For example, if you use simplified Chinese as the language for iOS, ** it is zh_cn, English is English, and traditional Chinese is zh_tw.
Find
<Key> dcsdefaactivactivedictionariesforios </key>
<Array>
Add the full path of the dictionary file below:
<String>/private/var/mobile/library/dictionaries/*****. dictionary </string>

Update content: Some FY statements indicate that after the files in the zh_cn folder are changed, the English-English dictionary is still used in some English software, the solution is to change the corresponding file in the English folder ..

6. The last step is to use ifile, ifunbox, itools, or other tools to search for all com. apple. dictionaryservices. plist has been deleted. These are cache items, which have previous dictionary settings. If you delete them boldly, the system will automatically generate new ones. The old ones won't go, and the new ones won't come. Then restart the iPad (in fact, respring can do the same.
Some people reported that using ifile to delete the file causes the system to crash. We recommend that you do not use ifile to perform this operation first, because the ifile search system seems to have a bug. If you delete the search result, you may not delete anything you want to delete.
Update: First, let's talk about the principle of Step 6. Each program runs a cache file that records dictionary information. If we do not delete this cache file, the next time the program runs, it will call the dictionary information in the cached file. Our changes to the dictionary will not take effect.
The dictionary cache of each program is stored in these two directories:
/Private/var/mobile/library/caches/*/COM. Apple. dictionaryservices (built-in software)
/Private/var/mobile/applications/*/caches/COM. Apple. dictionaryservices (installed IPA software)
The file name is dictionarycache. plist.
For example, the safari cache file address is
/Private/var/mobile/library/caches/COM. Apple. mobilesafari/COM. Apple. dictionaryservices/dictionarycache. plist
If you just want to use it in Safari, delete the file and restart the safari software.
This can also be used as a quick test method. When Safari is used normally, it will be promoted to other required applications.

Exception Handling: The exception mainly occurs in Step 6. Most people can use the dictionary normally in ibooks, but it still does not work in safari.
If the "Definition" option is not selected after the word is selected in Safari, the solution is to set-General-restore-Restore all settings. I personally feel that this method is dangerous, some plug-in errors may occur. Although I have not found any exceptions after using this method, please proceed with caution.
If the "Definition" option is available, it indicates that the dictionary is imported normally. You need to perform step 6 again. You can only delete the safari cache file, restart safari, and open the cache file, check whether your dictionary information is in the file. If not, check whether the link in the/library/dictionaries directory is normal (Step 3). If the dictionary information appears in the cache file, check \ System \ library \ privateframeworks \ dictionaryservices. framework \**. lproj \ defadicdictionaries. plist modification is normal (step 5 ).

Sort out the dependencies between the steps:
For ibooks, all the dictionaries (including links) in/library/dictionaries (Step 3) will be read at the time of opening, according to var/mobile/applications/*/ibooks. in the APP/bkdictionarymanager_languagetoorder.plist file (step 4), the sequence search dictionary displays the first result. Therefore, it is easy to implement the software after the software is restarted.

When other software is enabled, dictionarycache is read. the dictionary information in the plist file (Step 6), if no dictionarycache. the plist file (Step 6) reads all the dictionaries (including links) in/library/dictionaries (Step 3) and generates dictionarycache. plist file. Then, find the dictionary in the sequence in the \ System \ library \ privateframeworks \ dictionaryservices. Framework \ **. lproj \ defadicdictionaries. plist file (step 5) to display the first found result.

Last:
Ibooks:

Safari:

Mail:

Note:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.