View Single Post
Old 11-23-2014, 06:13 PM   #19
trekky0623
Member
trekky0623 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by Ephemerality View Post
No luck on it so far. Not sure why it wouldn't have worked with adding the aliases, maybe an encoding issue. I used Notepad++ for doing mine and it seemed to work alright.
The main issue I'm running into is that words don't always have a single soft hyphen in them, sometimes they have 2 or 3. Unless I can come up with a fancy regular expression that can match the word and still work properly with the HTML-parsing library I'm using, I'm not sure what else I can do.
The only other thing I can think of is to brute-force it by searching every possible combination of position and amount of soft hyphens in every term, but that seems a bit excessive.
If anyone has a simpler solution I'm all ears.
I'll try saving it in something other than Notepad, then.


EDIT: Awww yis, that worked perfectly. I opened it with Sublime Text and saved as UTF-8 instead of Western that Notepad uses. Thank you SO MUCH!

Last edited by trekky0623; 11-23-2014 at 06:19 PM.
trekky0623 is offline   Reply With Quote