Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soft hyphen handling (Markdown, docx) #3691

Closed
BowiFromStackOverflow opened this issue May 23, 2017 · 0 comments
Closed

Soft hyphen handling (Markdown, docx) #3691

BowiFromStackOverflow opened this issue May 23, 2017 · 0 comments

Comments

@BowiFromStackOverflow
Copy link

Consider this example markdown file testDoc.md, consisting of one word:

Konfi­guration

Add a soft hyphen after "Konfi" (in Windows, it's ALT+0173), I cannot add it here.

Converting it to html with pandoc -s -o testDoc.md.docx testDoc.md brings a Word file with the following relevant part:

<w:t xml:space="preserve">Konfi&#173;guration</w:t>

But this is wrong. When I edit the file with word and replace the unicode character, showing as hard hyphen (Word does not seem to understand it), with a Word-y soft hyphen (Ctrl + -), the edited file testDoc.md.docx-edited.docx contains this:

<w:r><w:t>Konfi</w:t></w:r><w:r><w:softHyphen/></w:r><w:r w:rsidR="007628EE"><w:t>guration</w:t></w:r>

(I do not know how much garbage that line contains, the important part is <w:softHyphen/> instead of the inline &#173;.)

The other way round, it's correct. When I convert the edited file back to Markdown (pandoc -s -o testDoc.md.docx-edited.docx.md testDoc.md.docx-edited.docx), it is equal to the document I started with, including the soft hyphen (#2415).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants