google-code-export / notepad2-mod

Automatically exported from code.google.com/p/notepad2-mod
Other
2 stars 1 forks source link

"Mark occurences" does not support Chinese? #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Opera a file containing Chinese characters.
2. Double click on a Chinese string(make sure there are occurences somewhere 
else).

What is the expected output? What do you see instead?
Other occurences are not highlighted as expected.

What version of the product are you using? On what operating system?
Notepad2-mod.4.2.25_r486_x86-32, XP Pro sp3 ENG/CHS.

Please provide any additional information below.
"Mark occurences" works on english words.
I found out that if there are spaces surrounding the word, "Mark occurences" 
will work on Chinese.  So is this normally handled? Or can this be improved? 
Because usually it's not necessary to use space to seperate Chinese words.

Original issue reported on code.google.com by ahm...@gmail.com on 11 May 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Provide a sample cause not everyone has a Chinese text.

Original comment by XhmikosR on 11 May 2011 at 11:32

GoogleCodeExporter commented 9 years ago
故宫神奇,国宝云集,为全国乃至全世界人民最为开眼的地��
�,可也有不开眼的贼盯住此块风水宝地,几百年来都是如此�
��明清两朝皇家禁地,闲杂人员进入就得考虑丢了性命,所以
贼也是内贼,顺手牵羊者众,外来入侵者无;解放之后,故��
�向劳动人民开放,外贼多了一块施展之地,几十年来,数次�
��顾故宫,几乎都被擒获,有贼为此还丢下性命。
香港两依藏博物馆和故宫联合搞一个中西合璧的展览,名曰��
�交融》,年初的时候两依藏主人曾邀请我参加展览的开幕式�
��我欣然应允,半月前,春暖花开,此展览如期在故宫东路斋
宫开展,宾客云集,也算盛况,展出的中国文物以紫檀黄花��
�为主,西方文物则以名牌金属化装盒为多,尽是眼熟耳详的�
��牌,中国老名牌对西方新名牌,让展览煞是有趣。
不料,昨日多名记者电话我问及此展览被盗事宜,开始我还��
�信将疑,这年头听风就是雨的瞎事太多,可电话多了,就有�
��风不起浪之感,一经核实,让人惊愕。

I wonder if its possible to perform this highlight search like the way Opera 
does?

Original comment by ahm...@gmail.com on 12 May 2011 at 3:08

Attachments:

GoogleCodeExporter commented 9 years ago
Sample text saved in UTF-8 Signatured.

Original comment by ahm...@gmail.com on 12 May 2011 at 3:16

Attachments:

GoogleCodeExporter commented 9 years ago
It will be fixed when the new patch in issue 19 goes in the SVN.
Attached is a screenshot from a build with the patch with the option "Match 
Whole Words Only" unchecked.

Original comment by XhmikosR on 12 May 2011 at 5:33

Attachments:

GoogleCodeExporter commented 9 years ago
Very nice.  Thanks!

Original comment by ahm...@gmail.com on 12 May 2011 at 12:25

GoogleCodeExporter commented 9 years ago
Fix committed in r494. Don't thank me, thank the guy who made the patch :P

Original comment by XhmikosR on 12 May 2011 at 3:35