How to detect "None" and "Manual" hyphenation using .NET

Greetings!

I created three variants of the same word document, one with hyphenation as none, the other with hyphenation as auto and the last one is manually hyphenated. I have converted all those three documents to EPUB using aspose-words-18.7.0. In the generated HTML, i could see an empty span element has been inserted wherever the hyphenation is required(manual and automatic).

My requirement here is to figure out if hyphenation applied on the word document is none. I cannot rely on the empty span elements created between the words for auto/manual hyphenation. So is there already a way to figure that out? Or Can Aspose help with this by stamping a metadata in the html to indicate what kind of hyphenation is applied?

Thanks,
Vasanth

@VasanthkumarMunusamy

Please use Document.HyphenationOptions property provides access to document hyphenation options. You can use HyphenationOptions.AutoHyphenation property to determine whether automatic hyphenation is turned on for the document.

Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we have logged this feature request as WORDSNET-20398 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

@VasanthkumarMunusamy

Please note that MS Word has only two options - Auto and None. Manual is not an option, it is an action. You cannot select the ‘Manual’ option, you only can click it. The difference is what ‘Auto’ and ‘None’ don’t change the document, it is only a property of it. But ‘Manual’ changes the document, it inserts ‘w:softHyphen’ tags in appropriate places.

When the HyphenationOptions.AutoHyphenation is false, hyphenation is set to NONE.

In spite of “Manual” is a menu item, it is action rather than state and you cannot get it selected. So, we have closed this issue (WORDSNET-20398)…