|
Post by Decebal Udrea on Sept 23, 2018 16:13:18 GMT
Hi, I'm a former user of Pingrid (and Pablo) in fact since my Chinese language session study in 2012. At this times I've had contributed, but under another ID I was using od version of Pingrid (I don't remember exactly which version)
Some days ago I lost my HDD with some programs (Pablo and Pingrid) Fortunately I had a lot of data back copies... All my wordlist were saved ! I just loaded the new Pingrid version (3.7) and wanted to use it with my old worldlist files. For most of them it works, but for certain I got a strange result the data loaded seems to be changed by news when I open Pingrid. See an example based on one of my firts (and very simple) file. First attachment and copied infra : 不 忙 很 汉语 难 爸爸 妈妈 他男 哥哥 弟弟 妹妹 But when I load it in Pingrid I don't get this characters but some full different (see the file prefs.txt in second attachment and infra) wordfile=D:\Mega\Documents\Chinois\Dico\wordlist1-2.txt showtutorial=false font=KaiTi fontsize=36 1or2chars=2 tradorsimpl=Simplified gamemode=Double(pinyin+translation) learningmode=Original Pingrid newworddrill=false speakwords=true individualcharacters=false flatproba=0.2 englishproba=0.2 pinyinproba=0.2 scribble=on smartbrush=true scribblelevels=0,3,6,10,12 installdate=2018.9.22 numberofrows=4 numberofcols=5 1charwordnumber=20 1charwordtime=8 2charwordnumber=20 2charwordtime=7 !newword 0 蹇 !newword 0 涓 !newword 0 浠 !newword 0 濡堝 !newword 0 寮熷紵 !newword 0 寰 !newword 0 摜 !newword 0 濡瑰 !newword 0 鍝 !newword 0 鐖哥埜 !newword 0 鐢 !newword 0 闅 But for others files like the third attachment it work's perfectly. Can anybody help me ? Thanks in advance
Attachments:wordlist1-2.txt (78 B)
prefs.txt (719 B)
bleu-1.txt (62 B)
|
|
|
Post by Decebal Udrea on Sept 24, 2018 10:15:13 GMT
Hi everybody
Answering to myself. After some test I discovered that anomaly occurs when certain words are present in the file. By try and error I was able to identify : 爸爸 and 弟弟 (ba4ba and di4di) Removing these words in the file occurs in no error. I've tried to put it in the custom dictionary.txt file, but it doesn't works ! I really need to suppress these words.
Must be an index problem somewhere...
I'm afraid there are any others ....
|
|
|
Post by Admin on Oct 5, 2018 15:31:12 GMT
Dear Decebal, I am really sorry for this inconvenience. I will look into the bug shortly.
|
|
|
Post by Admin on Oct 5, 2018 16:04:32 GMT
A first look at your files gives a hint. This is an encoding issue. The file is encoded in UTF-8 code, but Pingrid treats it as if it were GB-encoded. The reason is that the file in itself does not bear any encoding identification, so Pingrid tries to guess it, and sometimes fails.
Here is what you can do to get the file interpreted correctly: Solution 1) at the beginning of your file, add a first line containing "utf-8". Solution 2) in your text editor, save your text files with the "UTF-8 with BOM" format. The BOM is a prefix in the file which flags that the encoding is UTF-8. Solution 3) from Pingrid, in the "Open file" dialog, open the menu list at the bottom-right and select "UTF-8 file".
I'll look deeper into the issue and see if I can come up with something automatic.
|
|
|
Post by Decebal Udrea on Oct 6, 2018 6:41:11 GMT
Thanks. It works fine....(Solution 2 and 3)
|
|
|
Post by Admin on Oct 6, 2018 11:52:54 GMT
I am happy this works. Solution 1 should be ok as well (it worked on my machine).
By the way, don't worry about the strange words previously added to prefs.txt. They'll do no harm: Pingrid only tests you on the words present in the wordlist, so the strange words in prefs.txt will just be sitting there unused.
|
|