usbong / UsbongKit

A framework for reading and displaying contents of Usbong Trees
www.usbong.ph
Apache License 2.0
2 stars 1 forks source link

Word Hints do not get applied to words with special symbols, e.g. apostrophe #33

Open masarapmabuhay opened 7 years ago

masarapmabuhay commented 7 years ago

Salut! I've added our updated offline Filipino dictionary to "None: Day 1-Segment 1". I noticed, however, that words with an apostrophe, are not given Word Hints.

screen shot 2017-01-24 at 10 31 17 am screen shot 2017-01-24 at 10 32 02 am

I hope you'll guide me in resolving this issue, s'il te plaît.

Merci beaucoup toujours!

masarapmabuhay commented 7 years ago

Salut! I'm now working on fixing this issue, and I was able to narrow down the search of the pertinent files to these two:

1) UsbongKit -> Views -> HintsTextView.swift 2) UsbongKit -> Usbong -> UsbongTree -> UsbongTree.swift

For some reason that I do not yet understand, it seems that special characters, such as an apostrophe or a single quote, are removed, which is why the word cannot be found in the hints dictionary.

I will continue to look in the code for the part that explicitly removes special characters in the String, but I welcome any guidance that I may receive from you.

Merci beaucoup!