
On Mon, Sep 21, 2009 at 9:10 PM, bulia byak <buliabyak@...400...> wrote:
Thank you very much! I think we really need this, and if we can get it in before 0.47 we must do it. I have tested it on Windows XP and got it working somehow, but here are the issues I found:
- In
def loadAllDicts(self, directory): for dirname, dirnames, filenames in os.walk('.'):
must really be
def loadAllDicts(self, directory): for dirname, dirnames, filenames in os.walk(directory):
because otherwise it walks a different directory that happened to be current (on Windows).
- This failed for me:
self.hd += Hyph_dict(filename_full)
complaining that += is not supported for dictionaries. Maybe a different python version is the reason; we ship with 2.5.2 on Windows.
Sorry, My mistake. Corrected these two issues. And corrected version available here http://thottingal.in/projects/inkscape/inkscape-hyphenation.zip
- Finally and most importantly, while it did add correct hyphen
points to the text, Inkscape didn't treat them correctly: it just broke words at those points but didn't insert visible hyphens as it should (in English text). I know that some languages need to insert hyphens and some don't. What is the proper way to fix this? Should Inkscape determine this based on xml:lang?
For Malayalam, visible hyphens are not required. Not sure about other languages. Th inserted hyphen is "Soft Hyphen- \u00AD"
I also cc: our text expert, Richard Hughes. Richard, what would it take to implement adding visible hyphens on breaks in flowed text?
Thanks. Santhosh